Skip to content

Comments

Implement oracle_run_datapatch Oracle Agent Handler to support the SQL patching phase of the out-of-place patching workflow.#293

Open
copybara-service[bot] wants to merge 1 commit intomainfrom
test_872616013
Open

Implement oracle_run_datapatch Oracle Agent Handler to support the SQL patching phase of the out-of-place patching workflow.#293
copybara-service[bot] wants to merge 1 commit intomainfrom
test_872616013

Conversation

@copybara-service
Copy link

Implement oracle_run_datapatch Oracle Agent Handler to support the SQL patching phase of the out-of-place patching workflow.

Handler logic:

  1. Attempts to open all PDBs using ALTER PLUGGABLE DATABASE ALL OPEN to make sure patches are applied to all containers in a CDB. Failures here are logged as non-fatal to support non-CDB setups.
  2. Runs the $ORACLE_HOME/OPatch/datapatch -verbose to apply SQL-level changes to the database registry.
  3. Executes the@?/rdbms/admin/utlrp script to recompile any invalid objects.
  4. Queries the dba_registry_sqlpatch view to log the patch status for debugging.

…L patching phase of the out-of-place patching workflow.

Handler logic:
   1. Attempts to open all PDBs using `ALTER PLUGGABLE DATABASE ALL OPEN` to make sure patches are applied to all containers in a CDB. Failures here are logged as non-fatal to support non-CDB setups.
   2. Runs the `$ORACLE_HOME/OPatch/datapatch -verbose` to apply SQL-level changes to the database registry.
   3. Executes the`@?/rdbms/admin/utlrp` script to recompile any invalid objects.
   4. Queries the `dba_registry_sqlpatch` view to log the patch status for debugging.

PiperOrigin-RevId: 872616013
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