Skip to content

Commit 00e09d3

Browse files
tanbroclaude
andcommitted
fix: switch to FREEPDB1 container before granting DBMS_LOCK
The test user is created in the FREEPDB1 pluggable database, so we need to switch to that container before granting permissions. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 39713af commit 00e09d3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,12 @@ jobs:
158158
run: |
159159
podman exec oracledb sqlplus -s / as sysdba <<'EOF'
160160
ALTER SESSION SET "_ORACLE_SCRIPT"=TRUE;
161+
ALTER SESSION SET CONTAINER=FREEPDB1;
161162
GRANT EXECUTE ON SYS.DBMS_LOCK TO test;
163+
SELECT * FROM dba_tab_privs WHERE table_name = 'DBMS_LOCK' AND grantee = 'TEST';
162164
exit;
163165
EOF
166+
echo "Grant completed"
164167
165168
- name: Run tests
166169
shell: bash

0 commit comments

Comments
 (0)