Skip to content

Conversation

@xiang17
Copy link
Contributor

@xiang17 xiang17 commented Nov 20, 2025

Why

Fixes #

The database fails to start intermittently because it attempted to create the user before the pluggable database fully opened.

############################################
ORACLE PASSWORD FOR SYS AND SYSTEM: NTU0YWJj
############################################
CONTAINER: Creating app user for default pluggable database.

Session altered.

   CREATE USER appuser IDENTIFIED BY "@d0110fb5a7184d16af73b62ae27ce509" QUOTA UNLIMITED ON USERS
*
ERROR at line 1:
ORA-01109: database not open
Help: https://docs.oracle.com/error-help/db/ora-01109/

What

Fixes intermittent OracleMdaTests failures with "database not open" errors.

Tests

Checklist

  • CHANGELOG.md is updated.
  • Documentation is updated.
  • New features are covered by tests.

Remove APP_USER/APP_USER_PASSWORD environment variables from OracleFixture
and create the application user programmatically after container startup.

The gvenzl/oracle-free image's built-in user provisioning script had a race
condition where it attempted to create the user before the pluggable database
(FREEPDB1) was fully opened, causing ORA-01109 errors and exit code 85.

Now explicitly open all PDBs, switch to FREEPDB1 context, and create the
appuser after the container passes readiness checks, ensuring reliable
initialization in CI and local environments.

Fixes intermittent OracleMdaTests failures with "database not open" errors.
@xiang17 xiang17 marked this pull request as ready for review November 20, 2025 09:24
@xiang17 xiang17 requested a review from a team as a code owner November 20, 2025 09:24
@xiang17 xiang17 marked this pull request as draft November 20, 2025 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant