Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions ci/setup_accounts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,12 @@ sqlplus system/${DATABASE_SYS_PASSWORD}@${DATABASE_NAME} <<SQL
@@spec/support/create_arunit_user.sql
exit
SQL

# `grant execute on dbms_lock` requires SYS in 12c+; SYSTEM no longer has the
# privilege. Run it through a separate `as sysdba` session so the same script
# works on both gvenzl/oracle-xe:11 and gvenzl/oracle-free.
sqlplus -s sys/${DATABASE_SYS_PASSWORD}@${DATABASE_NAME} as sysdba <<SQL
whenever sqlerror exit failure
grant execute on dbms_lock to hr;
exit
SQL
1 change: 0 additions & 1 deletion spec/support/unlock_and_setup_hr_user.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
create user hr identified by hr;
alter user hr identified by hr account unlock;
grant dba to hr;
grant execute on dbms_lock to hr;