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/02/01 11:12] – 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 | ||
| - | **//Notc:\source//** Windows patches release date might be delayed of other patches. You can find real release dates on the following link: [[https:// | + | **//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 pagc: | Once patches numbers are noted you can download from the support pagc: | ||
| 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-namc: | Enter user-namc: | ||
| Enter password: | Enter password: | ||
| Connected | Connected | ||
| - | SQL> set line 2000 | + | <cli type=dos> |
| - | SQL> select owner, object_type, | + | <cli type=dos> |
| - | no rows selected | + | no rows selected</ |
| - | SQL> exit</ | + | <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 | Oracle Interim Patch Installer version 12.2.0.1.41 | ||
| Copyright (c) 2024, Oracle Corporation. | Copyright (c) 2024, Oracle Corporation. | ||
| Line 39: | Line 39: | ||
| Prereq " | Prereq " | ||
| - | The details | + | The details |
| Reason - | Reason - | ||
| Superset Patch 35962832 has | Superset Patch 35962832 has | ||
| Line 100: | Line 100: | ||
| * Check that the ORACLE_HOME variable is defined and that the PATH variable contains %ORACLE_HOME%\perl\bin | * Check that the ORACLE_HOME variable is defined and that the PATH variable contains %ORACLE_HOME%\perl\bin | ||
| <cli type=dos> | <cli type=dos> | ||
| - | C: | + | C: |
| - | c: | + | <cli type=dos> |
| C: | C: | ||
| * If not present, type the following: | * If not present, type the following: | ||
| - | <cli type=dos> | + | <cli type=dos> |
| - | set PATH=%ORACLE_HOME%\perl\bin; | + | <cli type=dos> |
| * Stop all Oracle Services from the services.msc console | * Stop all Oracle Services from the services.msc console | ||
| * Navigate to the extracted patch folder and run following command: | * Navigate to the extracted patch folder and run following command: | ||
| - | <cli type=dos> | + | <cli type=dos> |
| - | c: | + | <cli type=dos> |
| Oracle Interim Patch Installer version 12.2.0.1.41 | Oracle Interim Patch Installer version 12.2.0.1.41 | ||
| Copyright (c) 2024, Oracle Corporation. | Copyright (c) 2024, Oracle Corporation. | ||
| Line 151: | Line 151: | ||
| * Start the Oracle services from the services.msc console | * Start the Oracle services from the services.msc console | ||
| * Post installation datapatch, navigate to the Oracle installation folder and type the followig command: | * Post installation datapatch, navigate to the Oracle installation folder and type the followig command: | ||
| - | <cli type=dos> | + | <cli type=dos> |
| - | C: | + | <cli type=dos> |
| SQL Patching tool version 19.22.0.0.0 Production on Thu Feb 1 10:14:49 2024 | SQL Patching tool version 19.22.0.0.0 Production on Thu Feb 1 10:14:49 2024 | ||
| Copyright (c) 2012, 2024, Oracle. | Copyright (c) 2012, 2024, Oracle. | ||
| Line 170: | Line 170: | ||
| SQL Patching tool complete on Thu Feb 1 10:18:00 2024</ | 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: | * Navigate to the rdbms\admin folder and recompile object using the following command: | ||
| - | <cli type=dos> | + | <cli type=dos> |
| - | C: | + | <cli type=dos> |
| SQL*Plus: Release 19.0.0.0.0 - Production on Thu Feb 1 10:19:07 2024 | SQL*Plus: Release 19.0.0.0.0 - Production on Thu Feb 1 10:19:07 2024 | ||
| Version 19.22.0.0.0 | Version 19.22.0.0.0 | ||
| - | Copyright (c) 1982, 2023, Oracle. | + | Copyright (c) 1982, 2023, Oracle. |
| - | SQL> connect as sysdba | + | <cli type=dos> |
| Enter user-namc: | Enter user-namc: | ||
| Enter password: | Enter password: | ||
| - | Connected. | + | Connected.</ |
| - | SQL> @.\utlrp.sql | + | <cli type=dos> |
| Session altered. | Session altered. | ||
| Line 212: | Line 212: | ||
| PL/SQL procedure successfully completed. | PL/SQL procedure successfully completed. | ||
| </ | </ | ||
| + | <cli type=dos> | ||
| SQL> select username, | SQL> select username, | ||
| Line 225: | Line 225: | ||
| . | . | ||
| 48 rows selected. | 48 rows selected. | ||
| - | + | </ | |
| - | SQL> exit | + | <cli type=dos> |
| Disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production | Disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production | ||
| Version 19.22.0.0.0</ | Version 19.22.0.0.0</ | ||
| * Check that patch has been successfully installed | * Check that patch has been successfully installed | ||
| - | <cli type=dos> | + | <cli type=dos> |
| - | C: | + | <cli type=dos> |
| 35962832; | 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.1706785975.txt.gz · Last modified: by wagner.jer
