Patching: ADOP finalize phase
What is the ADOP Finalize Phase?
After applying the patches in the patch edition, it will create lots of invalid objects. The finalize phase will compile the invalid objects, and it will prepare the environment for the cutover phase.
The finalize phase is the optional phase in the patching cycle. After applying the patch, if we missed it, run Finalize and directorally run the cutover. The cutover phase will check if the if the finalize phase is completed or not. If not completed, the finalize phase cutover phase will start.
Key Actions during the Finalize Phase
Mode Selection: ADOP offers two modes for finalization - "quick" and "full":
- Quick Mode: This mode prioritizes speed by skipping non-essential tasks, making it ideal for scenarios where minimal downtime is critical.
- Full Mode: In contrast, full mode executes additional actions such as gathering statistics to the DML statment and enhance system performance after the patch is applied. This mode is beneficial for maintaining optimal performance in the long run, especially after major Patches.
Step-by-Step Execution
1.Checking for Pending Sessions
To ensure a smooth transition, the system checks for any pending hotpatch or cleanup sessions. This is a vital step to avoid conflicts and ensure that all updates are applied correctly.
- Pending Hotpatch Session: Verifying if there are any ongoing hotpatch sessions that need to be completed.
- Pending Cleanup Session: Ensuring that any cleanup tasks from previous phases are finished.
2. Continuing with Existing Session
If an existing session is detected, the system continues with it, as indicated by the session ID.
- Session ID: 22: The system identifies and continues with the ongoing session.
3. Verifying Data Dictionary
The system verifies the data dictionary to ensure that all database objects are correctly defined and consistent.
4. Running Finalize Phase Database Actions
This step involves executing specific database actions required to finalize the deployment.
- Log: @ADZDSHOWLOG.sql: The system runs the log script to capture all actions taken during this phase.
5. Finalize System Actions
Executing the FINALIZE actions is critical to ensure that all components are correctly configured and ready for production.
- Compiling Invalid Objects: The system compiles any invalid objects to ensure they are functional.
- Generating Log Report: A comprehensive log report (
adzdshowlog.out
) is generated to document all actions taken during the finalize phase.
6. Successful Completion
The finalize phase concludes successfully.
Comments
Post a Comment