We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 416e451 + 476bdd2 commit 11c4d58Copy full SHA for 11c4d58
2 files changed
ci/setup_accounts.sh
@@ -7,3 +7,12 @@ sqlplus system/${DATABASE_SYS_PASSWORD}@${DATABASE_NAME} <<SQL
7
@@spec/support/create_arunit_user.sql
8
exit
9
SQL
10
+
11
+# `grant execute on dbms_lock` requires SYS in 12c+; SYSTEM no longer has the
12
+# privilege. Run it through a separate `as sysdba` session so the same script
13
+# works on both gvenzl/oracle-xe:11 and gvenzl/oracle-free.
14
+sqlplus -s sys/${DATABASE_SYS_PASSWORD}@${DATABASE_NAME} as sysdba <<SQL
15
+whenever sqlerror exit failure
16
+grant execute on dbms_lock to hr;
17
+exit
18
+SQL
spec/support/unlock_and_setup_hr_user.sql
@@ -1,4 +1,3 @@
1
create user hr identified by hr;
2
alter user hr identified by hr account unlock;
3
grant dba to hr;
4
-grant execute on dbms_lock to hr;
0 commit comments