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
Open
Conversation
7e0e0b3 to
6c9fc79
Compare
…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
6c9fc79 to
2bef492
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implement oracle_run_datapatch Oracle Agent Handler to support the SQL patching phase of the out-of-place patching workflow.
Handler logic:
ALTER PLUGGABLE DATABASE ALL OPENto make sure patches are applied to all containers in a CDB. Failures here are logged as non-fatal to support non-CDB setups.$ORACLE_HOME/OPatch/datapatch -verboseto apply SQL-level changes to the database registry.@?/rdbms/admin/utlrpscript to recompile any invalid objects.dba_registry_sqlpatchview to log the patch status for debugging.