From 7dddb69ebc374569d5086acdf30bda962163b78d Mon Sep 17 00:00:00 2001 From: Yasuo Honda Date: Sun, 12 Apr 2026 20:23:14 +0900 Subject: [PATCH] Remove DBMS_LOCK grant from shared setup; keep it only for 11g DBMS_SESSION.SLEEP is available in Oracle 12c+ and does not require a separate DBMS_LOCK grant. Move the grant into the test_11g workflow where it is still needed. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/test_11g.yml | 3 +++ spec/support/unlock_and_setup_hr_user.sql | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_11g.yml b/.github/workflows/test_11g.yml index 8083a6e2..bdac493f 100644 --- a/.github/workflows/test_11g.yml +++ b/.github/workflows/test_11g.yml @@ -84,6 +84,9 @@ jobs: - name: Create database user run: | ./ci/setup_accounts.sh + - name: Grant execute on DBMS_LOCK for Oracle 11g + run: | + echo "GRANT EXECUTE ON DBMS_LOCK TO hr;" | sqlplus system/${DATABASE_SYS_PASSWORD}@${DATABASE_NAME} - name: Bundle install run: | bundle install --jobs 4 --retry 3 diff --git a/spec/support/unlock_and_setup_hr_user.sql b/spec/support/unlock_and_setup_hr_user.sql index 1cd91154..ee117ddf 100644 --- a/spec/support/unlock_and_setup_hr_user.sql +++ b/spec/support/unlock_and_setup_hr_user.sql @@ -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;