wiki:update_oracle_database_on_windows_server
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| wiki:update_oracle_database_on_windows_server [2024/01/25 08:25] – wagner.jer | wiki:update_oracle_database_on_windows_server [2025/05/06 08:22] (current) – wagner.jer | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| * __**Download the required patches to perform update**__\\ | * __**Download the required patches to perform update**__\\ | ||
| - | | + | |
| Windows Bundle Patch - R19x Database Release Update Revision, column " | Windows Bundle Patch - R19x Database Release Update Revision, column " | ||
| OJVM - R19x OJVM Release Update | OJVM - R19x OJVM Release Update | ||
| - | **// | + | **//Note: //** Windows patches release date might be delayed of other patches. You can find real release dates on the following link: [[https:// |
| - | Once patches numbers are noted you can download from the support | + | Once patches numbers are noted you can download from the support |
| * __**Install patches on Windows server**__\\ | * __**Install patches on Windows server**__\\ | ||
| Line 14: | Line 14: | ||
| * Check if there are any invalid packages | * Check if there are any invalid packages | ||
| Start CMD as administrator | Start CMD as administrator | ||
| - | <cli type=dos> | + | <cli type=dos> |
| - | SQL> connect as sysdba | + | <cli type=dos> |
| - | Enter user-name: sys | + | Enter user-namc:\source |
| Enter password: | Enter password: | ||
| Connected | Connected | ||
| - | SQL> set line 2000 | + | <cli type=dos> |
| - | SQL> select owner, object_type, | + | <cli type=dos> |
| + | |||
| + | no rows selected</ | ||
| + | |||
| + | <cli type=dos> | ||
| * Check if there is any conflict with any installed patch | * Check if there is any conflict with any installed patch | ||
| Start CMD as administrator | Start CMD as administrator | ||
| Navigate to the folder where you extracted the Windows Bundle Patch and run the command to check for any conflict from that folder | Navigate to the folder where you extracted the Windows Bundle Patch and run the command to check for any conflict from that folder | ||
| - | <cli type=dos> | + | <cli type=dos> |
| - | c: | + | <cli type=dos> |
| + | Oracle Interim Patch Installer version 12.2.0.1.41 | ||
| + | Copyright (c) 2024, Oracle Corporation. | ||
| + | |||
| + | PREREQ session | ||
| + | . | ||
| + | . | ||
| + | . | ||
| + | Prereq " | ||
| + | |||
| + | The details are: | ||
| + | Reason - | ||
| + | Superset Patch 35962832 has | ||
| + | Subset Patch 35681552 which has overlay patches [35648110] and these overlay patches conflict with Superset Patch | ||
| + | . | ||
| + | . | ||
| + | . | ||
| + | Patch : 35962832 | ||
| + | |||
| + | Conflict with 35648110 | ||
| + | Conflict details: | ||
| + | C: | ||
| + | C: | ||
| + | . | ||
| + | . | ||
| + | . | ||
| + | OPatch succeeded.</ | ||
| + | * Note the patch number that has conflict with the one that you want to apply and run the following command to rollback the conflicting patch | ||
| + | <cli type=dos> | ||
| + | Oracle Interim Patch Installer version 12.2.0.1.41 | ||
| + | Copyright (c) 2024, Oracle Corporation. | ||
| + | |||
| + | |||
| + | Oracle Home : C: | ||
| + | Central Inventory : C:\Program Files\Oracle\Inventory | ||
| + | | ||
| + | OPatch version | ||
| + | OUI version | ||
| + | Log file location : C: | ||
| + | |||
| + | |||
| + | Patches will be rolled back in the following order: | ||
| + | | ||
| + | The following patch(es) will be rolled back: 35648110 | ||
| + | |||
| + | Please shutdown Oracle instances running out of this ORACLE_HOME on the local system. | ||
| + | (Oracle Home = ' | ||
| + | |||
| + | Is the local system ready for patching? [y|n]</ | ||
| + | * Enter " | ||
| + | <cli type=dos> | ||
| + | |||
| + | Rolling back patch 35648110... | ||
| + | |||
| + | RollbackSession rolling back interim patch ' | ||
| + | |||
| + | Patching component oracle.rdbms, | ||
| + | |||
| + | Patching component oracle.javavm.server.core, | ||
| + | |||
| + | Patching component oracle.rdbms.dbscripts, | ||
| + | |||
| + | Patching component oracle.javavm.server, | ||
| + | |||
| + | Patching component oracle.javavm.client, | ||
| + | RollbackSession removing interim patch ' | ||
| + | Log file location: C: | ||
| + | |||
| + | OPatch succeeded.</ | ||
| + | * Check that the ORACLE_HOME variable is defined and that the PATH variable contains %ORACLE_HOME%\perl\bin | ||
| + | <cli type=dos> | ||
| + | C: | ||
| + | |||
| + | <cli type=dos> | ||
| + | C: | ||
| + | * If not present, type the following: | ||
| + | <cli type=dos> | ||
| + | <cli type=dos> | ||
| + | * Stop all Oracle Services from the services.msc console | ||
| + | * Navigate to the extracted | ||
| + | <cli type=dos> | ||
| + | |||
| + | <cli type=dos> | ||
| + | Oracle Interim Patch Installer version 12.2.0.1.41 | ||
| + | Copyright (c) 2024, Oracle Corporation. | ||
| + | |||
| + | |||
| + | Oracle Home : C: | ||
| + | Central Inventory : C:\Program Files\Oracle\Inventory | ||
| + | | ||
| + | OPatch version | ||
| + | OUI version | ||
| + | Log file location : C: | ||
| + | |||
| + | Verifying environment and performing prerequisite checks... | ||
| + | OPatch continues with these patches: | ||
| + | |||
| + | Do you want to proceed? [y|n]</ | ||
| + | * Type " | ||
| + | <cli type=dos> | ||
| + | All checks passed. | ||
| + | |||
| + | Please shutdown Oracle instances running out of this ORACLE_HOME on the local system. | ||
| + | (Oracle Home = ' | ||
| + | |||
| + | |||
| + | Is the local system ready for patching? [y|n]</ | ||
| + | * Type " | ||
| + | <cli type=dos> | ||
| + | Backing up files... | ||
| + | Applying interim | ||
| + | . | ||
| + | . | ||
| + | . | ||
| + | Patch 35962832 successfully applied. | ||
| + | Sub-set patch [35681552] has become inactive due to the application of a super-set patch [35962832]. | ||
| + | Please refer to Doc ID 2161861.1 for any possible further required actions. | ||
| + | Log file location: C: | ||
| + | |||
| + | OPatch succeeded.</ | ||
| + | * Start the Oracle services from the services.msc console | ||
| + | * Post installation datapatch, navigate to the Oracle installation | ||
| + | <cli type=dos> | ||
| + | |||
| + | <cli type=dos> | ||
| + | SQL Patching tool version 19.22.0.0.0 Production on Thu Feb 1 10:14:49 2024 | ||
| + | Copyright (c) 2012, 2024, Oracle. All rights reserved. | ||
| + | |||
| + | Log file for this invocation: C: | ||
| + | |||
| + | Connecting to database...OK | ||
| + | . | ||
| + | . | ||
| + | . | ||
| + | Validating logfiles...done | ||
| + | Patch 35648110 rollback: SUCCESS | ||
| + | logfilc: | ||
| + | Patch 35962832 apply: SUCCESS | ||
| + | logfilc: | ||
| + | SQL Patching tool complete on Thu Feb 1 10:18:00 2024</ | ||
| + | * Navigate to the rdbms\admin folder and recompile object using the following command: | ||
| + | <cli type=dos> | ||
| + | |||
| + | <cli type=dos> | ||
| + | |||
| + | SQL*Plus: Release 19.0.0.0.0 - Production on Thu Feb 1 10:19:07 2024 | ||
| + | Version 19.22.0.0.0 | ||
| + | |||
| + | Copyright (c) 1982, 2023, Oracle. | ||
| + | |||
| + | <cli type=dos> | ||
| + | Enter user-namc: | ||
| + | Enter password: | ||
| + | Connected.</ | ||
| + | <cli type=dos> | ||
| + | |||
| + | Session altered. | ||
| + | |||
| + | |||
| + | TIMESTAMP | ||
| + | -------------------------------------------------------------------------------- | ||
| + | COMP_TIMESTAMP UTLRP_BGN | ||
| + | |||
| + | DOC> | ||
| + | . | ||
| + | . | ||
| + | . | ||
| + | ERRORS DURING RECOMPILATION | ||
| + | --------------------------- | ||
| + | 0 | ||
| + | |||
| + | |||
| + | Function created. | ||
| + | |||
| + | |||
| + | PL/SQL procedure successfully completed. | ||
| + | |||
| + | |||
| + | Function dropped. | ||
| + | |||
| + | |||
| + | PL/SQL procedure successfully completed. | ||
| + | </ | ||
| + | <cli type=dos> | ||
| + | SQL> select username, | ||
| + | |||
| + | USERNAME | ||
| + | -------------------------------------------------------------------------------- | ||
| + | STATUS | ||
| + | -------- --------- | ||
| + | SYS | ||
| + | ACTIVE | ||
| + | . | ||
| + | . | ||
| + | . | ||
| + | 48 rows selected. | ||
| + | </ | ||
| + | <cli type=dos> | ||
| + | Disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production | ||
| + | Version 19.22.0.0.0</ | ||
| + | * Check that patch has been successfully installed | ||
| + | <cli type=dos> | ||
| + | |||
| + | <cli type=dos> | ||
| + | 35962832; | ||
| + | |||
| + | \\ | ||
| + | \\ | ||
| + | // | ||
| + | Note: Make sure that the Windows Database bundle patch has been successfully installed before proceeding with OJVM patch \\ | ||
| + | \\ | ||
| + | * Check that the ORACLE_HOME variable is defined and that the PATH variable contains %ORACLE_HOME%\perl\bin | ||
| + | <cli type=dos> | ||
| + | C: | ||
| + | |||
| + | <cli type=dos> | ||
| + | C: | ||
| + | * If not present, type the following: | ||
| + | <cli type=dos> | ||
| + | <cli type=dos> | ||
| + | * Navigate to the extracted patch folder and check for any conflict with other already installed patches: | ||
| + | <cli type=dos> | ||
| + | <cli type=dos> | ||
| + | Oracle Interim Patch Installer version 12.2.0.1.41 | ||
| + | Copyright (c) 2024, Oracle Corporation. | ||
| + | |||
| + | PREREQ session | ||
| + | |||
| + | Oracle Home : C: | ||
| + | Central Inventory : C:\Program Files\Oracle\Inventory | ||
| + | | ||
| + | OPatch version | ||
| + | OUI version | ||
| + | Log file location : C: | ||
| + | |||
| + | Invoking prereq " | ||
| + | |||
| + | Prereq " | ||
| + | |||
| + | OPatch succeeded. | ||
| + | </ | ||
| + | * Apply the patch: | ||
| + | <cli type=dos> | ||
| + | Oracle Interim Patch Installer version 12.2.0.1.41 | ||
| + | Copyright (c) 2024, Oracle Corporation. | ||
| + | |||
| + | |||
| + | Oracle Home : C: | ||
| + | Central Inventory : C:\Program Files\Oracle\Inventory | ||
| + | | ||
| + | OPatch version | ||
| + | OUI version | ||
| + | Log file location : C: | ||
| + | |||
| + | Verifying environment and performing prerequisite checks... | ||
| + | OPatch continues with these patches: | ||
| + | |||
| + | Do you want to proceed? [y|n]</ | ||
| + | * Confirm with " | ||
| + | <cli type=dos> | ||
| + | All checks passed. | ||
| + | |||
| + | Please shutdown Oracle instances running out of this ORACLE_HOME on the local system. | ||
| + | (Oracle Home = ' | ||
| + | |||
| + | |||
| + | Is the local system ready for patching? [y|n]</ | ||
| + | * Confirm with " | ||
| + | <cli type=dos> | ||
| + | Backing up files... | ||
| + | Applying interim patch ' | ||
| + | |||
| + | Patching component oracle.rdbms, | ||
| + | |||
| + | Patching component oracle.javavm.server.core, | ||
| + | |||
| + | Patching component oracle.rdbms.dbscripts, | ||
| + | |||
| + | Patching component oracle.javavm.server, | ||
| + | |||
| + | Patching component oracle.javavm.client, | ||
| + | Patch 35926646 successfully applied. | ||
| + | Log file location: C: | ||
| + | |||
| + | OPatch succeeded.</ | ||
| + | * Start all Oracle services | ||
| + | * Post installation startup for datapatch | ||
| + | <cli type=dos> | ||
| + | |||
| + | SQL*Plus: Release 19.0.0.0.0 - Production on Thu Feb 1 10:37:19 2024 | ||
| + | Version 19.22.0.0.0 | ||
| + | |||
| + | Copyright (c) 1982, 2023, Oracle. | ||
| + | </ | ||
| + | <cli type=dos> | ||
| + | Enter user-name: sys | ||
| + | Enter password: | ||
| + | Connected.</ | ||
| + | <cli type=dos> | ||
| + | Database closed. | ||
| + | Database dismounted. | ||
| + | ORACLE instance shut down.</ | ||
| + | <cli type=dos> | ||
| + | ORACLE instance started. | ||
| + | |||
| + | Total System Global Area 2768238136 bytes | ||
| + | Fixed Size 9078328 bytes | ||
| + | Variable Size 1308622848 bytes | ||
| + | Database Buffers | ||
| + | Redo Buffers | ||
| + | Database mounted. | ||
| + | Database opened.</ | ||
| + | <cli type=dos> | ||
| + | Disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production | ||
| + | Version 19.22.0.0.0</ | ||
| + | <cli type=dos> | ||
| + | |||
| + | <cli type=dos> | ||
| + | SQL Patching tool version 19.22.0.0.0 Production on Thu Feb 1 10:41:09 2024 | ||
| + | Copyright (c) 2012, 2024, Oracle. | ||
| + | |||
| + | Log file for this invocation: C: | ||
| + | |||
| + | Connecting to database...OK | ||
| + | . | ||
| + | . | ||
| + | . | ||
| + | Installing patches... | ||
| + | Patch installation complete. | ||
| + | |||
| + | Validating logfiles...done | ||
| + | Patch 35926646 apply: SUCCESS | ||
| + | logfile: C: | ||
| + | SQL Patching tool complete on Thu Feb 1 10:42:01 2024 | ||
| + | </ | ||
| + | <cli type=dos> | ||
| + | |||
| + | SQL*Plus: Release 19.0.0.0.0 - Production on Thu Feb 1 10:42:08 2024 | ||
| + | Version 19.22.0.0.0 | ||
| + | |||
| + | Copyright (c) 1982, 2023, Oracle. | ||
| + | </ | ||
| + | <cli type=dos> | ||
| + | Enter user-name: sys | ||
| + | Enter password: | ||
| + | Connected.</ | ||
| + | <cli type=dos> | ||
| + | Database closed. | ||
| + | Database dismounted. | ||
| + | ORACLE instance shut down.</ | ||
| + | <cli type=dos> | ||
| + | ORACLE instance started. | ||
| + | |||
| + | Total System Global Area 2768238136 bytes | ||
| + | Fixed Size 9078328 bytes | ||
| + | Variable Size 1308622848 bytes | ||
| + | Database Buffers | ||
| + | Redo Buffers | ||
| + | Database mounted. | ||
| + | Database opened.</ | ||
| + | <cli type=dos> | ||
| + | Disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production | ||
| + | Version 19.22.0.0.0</ | ||
| + | * Navigate to the rdbms\admin folder and recomplie object | ||
| + | <cli type=dos> | ||
| + | |||
| + | <cli type=dos> | ||
| + | |||
| + | SQL*Plus: Release 19.0.0.0.0 - Production on Thu Feb 1 10:44:32 2024 | ||
| + | Version 19.22.0.0.0 | ||
| + | |||
| + | Copyright (c) 1982, 2023, Oracle. | ||
| + | </ | ||
| + | <cli type=dos> | ||
| + | Enter user-name: sys | ||
| + | Enter password: | ||
| + | Connected.</ | ||
| + | <cli type=dos> | ||
| + | |||
| + | Session altered. | ||
| + | |||
| + | |||
| + | TIMESTAMP | ||
| + | -------------------------------------------------------------------------------- | ||
| + | COMP_TIMESTAMP UTLRP_BGN | ||
| + | |||
| + | DOC> | ||
| + | . | ||
| + | . | ||
| + | . | ||
| + | ERRORS DURING RECOMPILATION | ||
| + | --------------------------- | ||
| + | 0 | ||
| + | |||
| + | |||
| + | Function created. | ||
| + | |||
| + | |||
| + | PL/SQL procedure successfully completed. | ||
| + | |||
| + | |||
| + | Function dropped. | ||
| + | |||
| + | |||
| + | PL/SQL procedure successfully completed.</ | ||
| + | <cli type=dos> | ||
| + | no rows selected</ | ||
| + | * Check the active connections | ||
| + | * <cli type=dos> | ||
wiki/update_oracle_database_on_windows_server.1706171111.txt.gz · Last modified: by wagner.jer
