Get pre-cheks for DB’s like registry, invalid, opatch info,etc
[root@srchost 19000LGR1]# mv OPatch OPatch_BK
[root@srchost 19000LGR1]# ls -ld OPatch_BK/
drwxr-x--- 15 oracle oinstall 4096 Dec 23 2024 OPatch_BK/
The user is root. OPatch cannot continue if the user is root.
-rwxr-x--- 1 root root 50894 Oct 7 15:11 /u01/app/grid/product/19000LGR1/OPatch/opatch
-rwxr-x--- 1 oracle oinstall 50894 Oct 7 15:11 /u01/app/grid/product/19000LGR1/OPatch/opatch
[oracle@srchost 19000LDB1]$ mv OPatch OPatch_BK
[oracle@srchost 19000LDB1]$ unzip /u01/app/patch/PSU/p6880880_190000_Linux-x86-64.zip
OPatch Version: 12.2.0.1.48
[oracle@srchost PSU]$ cd /u01/app/rdbms/product/19000LDB1
[oracle@srchost 19000LDB1]$ cd OPatch
[oracle@srchost OPatch]$ ./opatch version
OPatch Version: 12.2.0.1.45
Download patch from to the server and create/update the below file to check if enough free space is available in the Grid home
/u01/app/patch/PSU/37257886/36758186
/u01/app/patch/PSU/37257886/37260974
/u01/app/patch/PSU/37257886/37266638
/u01/app/patch/PSU/37257886/37268031
/u01/app/patch/PSU/37257886/37461387
/u01/app/patch/PSU/37257886/37260974
/u01/app/patch/PSU/37257886/37268031
Oracle Interim Patch Installer version 12.2.0.1.39
Copyright (c) 2025, Oracle Corporation. All rights reserved.
Central Inventory : /u01/app/oraInventory
from : /u01/app/rdbms/product/19000LDB1/oraInst.loc
OPatch version : 12.2.0.1.39
OUI version : 12.2.0.7.0
Log file location : /u01/app/rdbms/product/19000LDB1/cfgtoollogs/opatch/opatch2025-06-04_15-45-34PM_1.log
Oracle Interim Patch Installer version 12.2.0.1.39
Copyright (c) 2025, Oracle Corporation. All rights reserved.
Central Inventory : /u01/app/oraInventory
from : /u01/app/grid/product/19000LGR1/oraInst.loc
OPatch version : 12.2.0.1.39
OUI version : 12.2.0.7.0
Log file location : /u01/app/grid/product/19000LGR1/cfgtoollogs/opatch/opatch2025-06-04_15-44-37PM_1.log
[oracle@srchost 37257886]$
Oracle Interim Patch Installer version 12.2.0.1.39
Copyright (c) 2025, Oracle Corporation. All rights reserved.
Central Inventory : /u01/app/oraInventory
from : /u01/app/grid/product/19000LGR1/oraInst.loc
OPatch version : 12.2.0.1.39
OUI version : 12.2.0.7.0
Log file location : /u01/app/grid/product/19000LGR1/cfgtoollogs/opatch/opatch2025-06-04_15-04-54PM_1.log
Oracle Interim Patch Installer version 12.2.0.1.39
Copyright (c) 2025, Oracle Corporation. All rights reserved.
Central Inventory : /u01/app/oraInventory
from : /u01/app/grid/product/19000LGR1/oraInst.loc
OPatch version : 12.2.0.1.39
OUI version : 12.2.0.7.0
Log file location : /u01/app/grid/product/19000LGR1/cfgtoollogs/opatch/opatch2025-06-04_15-07-01PM_1.log
Oracle Interim Patch Installer version 12.2.0.1.39
Copyright (c) 2025, Oracle Corporation. All rights reserved.
Central Inventory : /u01/app/oraInventory
from : /u01/app/grid/product/19000LGR1/oraInst.loc
OPatch version : 12.2.0.1.39
OUI version : 12.2.0.7.0
Log file location : /u01/app/grid/product/19000LGR1/cfgtoollogs/opatch/opatch2025-06-04_15-08-25PM_1.log
Oracle Interim Patch Installer version 12.2.0.1.39
Copyright (c) 2025, Oracle Corporation. All rights reserved.
Central Inventory : /u01/app/oraInventory
from : /u01/app/rdbms/product/19000LDB1/oraInst.loc
OPatch version : 12.2.0.1.39
OUI version : 12.2.0.7.0
Log file location : /u01/app/rdbms/product/19000LDB1/cfgtoollogs/opatch/opatch2025-06-04_15-08-00PM_1.log
Oracle Interim Patch Installer version 12.2.0.1.39
Copyright (c) 2025, Oracle Corporation. All rights reserved.
Central Inventory : /u01/app/oraInventory
from : /u01/app/rdbms/product/19000LDB1/oraInst.loc
OPatch version : 12.2.0.1.39
OUI version : 12.2.0.7.0
Log file location : /u01/app/rdbms/product/19000LDB1/cfgtoollogs/opatch/opatch2025-06-04_15-08-36PM_1.log
How to Perform ORACLE_HOME Backup? (Doc ID 565017.1)
inventory_loc=/u01/app/oraInventory
inst_group=oinstall
root 6 2 0 2023 ? 00:00:00 [netns]
oracle 35889 1 0 2023 ? 00:24:33 /u01/app/grid/product/19000LGR1/bin/tnslsnr LISTENER -no_crs_notify -inherit
oracle 4177635 3979331 0 17:36 pts/2 00:00:00 grep --color=auto tns
[oracle@srchost 37257886]$
total 3.6G
drwxr-xr-x 2 oracle oinstall 4.0K Mar 10 15:28 OPATCH
-rwxrwxr-x 1 oracle oinstall 3.6G May 30 13:03 jan_2025.tar
drwxr-xr-x 3 oracle oinstall 4.0K Jun 4 14:04 PSU
-rw-r--r-- 1 oracle oinstall 185 Jun 4 15:39 patch_list_gihome.txt
-rw-r--r-- 1 oracle oinstall 74 Jun 4 15:44 patch_list_dbhome.txt
-rw-r--r-- 1 oracle oinstall 1.4M Jun 5 07:01 Backup_OraInv.tar.gz
root 6 2 0 2023 ? 00:00:00 [netns]
oracle 35889 1 0 2023 ? 00:24:35 /u01/app/grid/product/19000LGR1/bin/tnslsnr LISTENER -no_crs_notify -inherit
oracle 690789 3997984 0 07:17 pts/3 00:00:00 grep --color=auto tns
ORACLE_SID = [root] ? +ASM
The Oracle base has been set to /u01/app/oracle
[root@srchost ~]# lsnrctl status
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 19.0.0.0.0 - Production
Start Date 18-SEP-2023 15:18:22
Uptime 128 days 13 hr. 31 min. 31 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/grid/product/19000LGR1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/srchost/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=srchost.domain.com)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Services Summary...
Service "+ASM" has 1 instance(s).
Instance "+ASM", status READY, has 1 handler(s) for this service...
Service "+ASM_DATA" has 1 instance(s).
Instance "+ASM", status READY, has 1 handler(s) for this service...
Service "+ASM_DATA02" has 1 instance(s).
Instance "+ASM", status READY, has 1 handler(s) for this service...
Service "+ASM_FRA01" has 1 instance(s).
Instance "+ASM", status READY, has 1 handler(s) for this service...
The command completed successfully
The command completed successfully
[1] 699293
[1] 687831
The id for this session is IY25
Patch applicability verified successfully on home /u01/app/rdbms/product/19000LDB1
Patch validation checks successfully completed on home /u01/app/rdbms/product/19000LDB1
No sqlpatch prereq operations are required on the local node for this home
No step execution required.........
Patch applicability verified successfully on home /u01/app/grid/product/19000LGR1
Patch validation checks successfully completed on home /u01/app/grid/product/19000LGR1
Successfully prepared home /u01/app/rdbms/product/19000LDB1 to bring down database service
Database service successfully brought down on home /u01/app/rdbms/product/19000LDB1
Prepatch operation log file location: /u01/app/oracle/crsdata/srchost/crsconfig/hapatch_2025-06-05_10-40-49AM.log
CRS service brought down successfully on home /u01/app/grid/product/19000LGR1
Binary patch applied successfully on home /u01/app/rdbms/product/19000LDB1
Successfully executed rootadd_rdbms.sh on home /u01/app/rdbms/product/19000LDB1
Binary patch applied successfully on home /u01/app/grid/product/19000LGR1
Successfully executed rootadd_rdbms.sh on home /u01/app/grid/product/19000LGR1
Postpatch operation log file location: /u01/app/oracle/crsdata/srchost/crsconfig/hapatch_2025-06-05_11-10-29AM.log
CRS service started successfully on home /u01/app/grid/product/19000LGR1
Database service successfully started on home /u01/app/rdbms/product/19000LDB1
No step execution required.........
No SQL patch operations are required on local node for this home
SIDB Home:/u01/app/rdbms/product/19000LDB1
Version:19.0.0.0.0
Summary:
Reason: This patch is not applicable to this specified target type - "oracle_database"
Reason: This patch is not applicable to this specified target type - "oracle_database"
Reason: This patch is not applicable to this specified target type - "oracle_database"
Log: /u01/app/rdbms/product/19000LDB1/cfgtoollogs/opatchauto/core/opatch/opatch2025-06-05_10-46-49AM_1.log
Log: /u01/app/rdbms/product/19000LDB1/cfgtoollogs/opatchauto/core/opatch/opatch2025-06-05_10-46-49AM_1.log
SIHA Home:/u01/app/grid/product/19000LGR1
Version:19.0.0.0.0
Summary:
Log: /u01/app/grid/product/19000LGR1/cfgtoollogs/opatchauto/core/opatch/opatch2025-06-05_10-58-04AM_1.log
Log: /u01/app/grid/product/19000LGR1/cfgtoollogs/opatchauto/core/opatch/opatch2025-06-05_10-58-04AM_1.log
Log: /u01/app/grid/product/19000LGR1/cfgtoollogs/opatchauto/core/opatch/opatch2025-06-05_10-58-04AM_1.log
Log: /u01/app/grid/product/19000LGR1/cfgtoollogs/opatchauto/core/opatch/opatch2025-06-05_10-58-04AM_1.log
Log: /u01/app/grid/product/19000LGR1/cfgtoollogs/opatchauto/core/opatch/opatch2025-06-05_10-58-04AM_1.log
To apply. the SQL changes, bring up the database instance and run the command manually from any one node (run as oracle).
Refer to the readme to get the correct steps for applying the sql changes.
To apply. the SQL changes, bring up the database instance and run the command manually from any one node (run as oracle).
Refer to the readme to get the correct steps for applying the sql changes.
Time taken to complete the session 34 minutes, 54 seconds
[root@srchost dump]#
ARU platform description:: Linux x86-64
Patch description: "OCW RELEASE UPDATE 19.26.0.0.0 (37268031)"
Patch description: "Database Release Update : 19.26.0.0.250121 (37260974)"
Patch description: "OJVM RELEASE UPDATE: 19.18.0.0.230117 (34786990)"
ARU platform description:: Linux x86-64
Patch description: "OCW RELEASE UPDATE 19.26.0.0.0 (37268031)"
Patch description: "Database Release Update : 19.26.0.0.250121 (37260974)"
Patch description: "OJVM RELEASE UPDATE: 19.18.0.0.230117 (34786990)"
[oracle@srchost 37257886]$
The id for this session is 5N3E
Patch applicability verified successfully on home /u01/app/rdbms/product/19000LDB1
Patch validation checks successfully completed on home /u01/app/rdbms/product/19000LDB1
No sqlpatch prereq operations are required on the local node for this home
No step execution required.........
Patch applicability verified successfully on home /u01/app/grid/product/19000LGR1
Patch validation checks successfully completed on home /u01/app/grid/product/19000LGR1
Successfully prepared home /u01/app/rdbms/product/19000LDB1 to bring down database service
Database service successfully brought down on home /u01/app/rdbms/product/19000LDB1
Prepatch operation log file location: /u01/app/oracle/crsdata/srchost/crsconfig/hapatch_2025-11-24_03-37-31AM.log
CRS service brought down successfully on home /u01/app/grid/product/19000LGR1
No step execution required.........
Binary patch applied successfully on home /u01/app/rdbms/product/19000LDB1
Successfully executed rootadd_rdbms.sh on home /u01/app/rdbms/product/19000LDB1
No step execution required.........
Binary patch applied successfully on home /u01/app/grid/product/19000LGR1
Successfully executed rootadd_rdbms.sh on home /u01/app/grid/product/19000LGR1
Postpatch operation log file location: /u01/app/oracle/crsdata/srchost/crsconfig/hapatch_2025-11-24_03-51-53AM.log
CRS service started successfully on home /u01/app/grid/product/19000LGR1
Database service successfully started on home /u01/app/rdbms/product/19000LDB1
No step execution required.........
No SQL patch operations are required on local node for this home
SIDB Home:/u01/app/rdbms/product/19000LDB1
Version:19.0.0.0.0
Summary:
Log: /u01/app/rdbms/product/19000LDB1/cfgtoollogs/opatchauto/core/opatch/opatch2025-11-24_03-43-26AM_1.log
SIHA Home:/u01/app/grid/product/19000LGR1
Version:19.0.0.0.0
Summary:
Log: /u01/app/grid/product/19000LGR1/cfgtoollogs/opatchauto/core/opatch/opatch2025-11-24_03-47-58AM_1.log
To apply. the SQL changes, bring up the database instance and run the command manually from any one node (run as oracle).
Refer to the readme to get the correct steps for applying the sql changes.
To apply. the SQL changes, bring up the database instance and run the command manually from any one node (run as oracle).
Refer to the readme to get the correct steps for applying the sql changes.
Time taken to complete the session 19 minutes, 49 seconds
[root@srchost PSU]#
37847857;OJVM RELEASE UPDATE: 19.28.0.0.250715 (37847857)
37962946;OCW RELEASE UPDATE 19.28.0.0.0 (37962946)
37960098;Database Release Update : 19.28.0.0.250715 (37960098)
OPatch succeeded.
[oracle@srchost OPatch]$ /u01/app/grid/product/19000LGR1/OPatch/opatch lspatches
37847857;OJVM RELEASE UPDATE: 19.28.0.0.250715 (37847857)
37962946;OCW RELEASE UPDATE 19.28.0.0.0 (37962946)
37960098;Database Release Update : 19.28.0.0.250715 (37960098)
OPatch succeeded.
[oracle@srchost OPatch]$
• Startup all PDBS
• Run datapatch
Version 19.26.0.0.0
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.26.0.0.0
col ACTION_TIME for a32
col description for a66
34765931 RU SUCCESS 18-JUL-23 02.09.35.333465 PM DATABASE RELEASE UPDATE : 19.18.0.0.230117 (REL-JAN230131) (34765931)
Disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.26.0.0.0
[oracle@srchost
CB]$ /u01/app/rdbms/product/19000LDB1/OPatch/datapatch -verbose
SQL Patching tool version 19.26.0.0.0 Production on Thu Jun 5 11:21:57 2025
Copyright (c)
2012, 2025, Oracle. All rights reserved.
Log file for this
invocation:
/u01/app/oracle/cfgtoollogs/sqlpatch/sqlpatch_920293_2025_06_05_11_21_57/sqlpatch_invocation.log
Connecting to
database...OK
Gathering
database info...done
Note: Datapatch
will only apply or rollback SQL fixes for PDBs
that are in an
open state, no patches will be applied to closed PDBs.
Please refer to
Note: Datapatch: Database 12c Post Patch SQL Automation
(Doc ID
1585822.1)
Warning: PDB PDB1
is in mode MOUNTED and will be skipped.
Warning: PDB PDB2
is in mode MOUNTED and will be skipped.
Bootstrapping
registry and package to current versions...done
Determining
current state...done
Current state of
interim SQL patches:
Interim patch
34786990 (OJVM RELEASE UPDATE: 19.18.0.0.230117 (34786990)):
Binary registry:
Installed
PDB CDB$ROOT:
Applied successfully on 18-JUL-23 02.09.35.338328 PM
----- Trimmed output
--------------
Current state of
release update SQL patches:
Binary registry:
19.26.0.0.0
Release_Update 250118124854: Installed
PDB CDB$ROOT:
Applied
19.18.0.0.0 Release_Update 230127005551 successfully on 18-JUL-23
02.09.35.333465 PM
PDB PDB$SEED:
Applied
19.18.0.0.0 Release_Update 230127005551 successfully on 18-JUL-23
02.23.53.576581 PM
----- Trimmed output --------------
Adding patches to installation queue and performing prereq checks...done
Installation
queue:
For the following
PDBs: CDB$ROOT PDB$SEED PDB1 PDB2
No interim
patches need to be rolled back
Patch 37260974
(Database Release Update : 19.26.0.0.250121 (37260974)):
Apply from
19.18.0.0.0 Release_Update 230127005551 to 19.26.0.0.0 Release_Update
250118124854
No interim
patches need to be applied
Installing
patches...
Patch
installation complete. Total patches installed: 7
Validating
logfiles...done
Patch 37260974
apply (pdb CDB$ROOT): SUCCESS
logfile:
/u01/app/oracle/cfgtoollogs/sqlpatch/37260974/26040769/37260974_apply_ORADB001_CDBROOT_2025Jun05_11_23_55.log
(no errors)
Patch 37260974
apply (pdb PDB$SEED): SUCCESS
logfile:
/u01/app/oracle/cfgtoollogs/sqlpatch/37260974/26040769/37260974_apply_ORADB001_PDBSEED_2025Jun05_11_28_07.log
(no errors)
Patch 37260974
apply (pdb PLUG1): SUCCESS
logfile:
--------- Trimmed Output ------------
SQL Patching tool complete on Thu Jun 5 11:31:42 2025
oracle 2967215 1 0 03:52 ? 00:00:00 asm_pmon_+ASM
root 2970762 65033 0 03:55 pts/1 00:00:00 grep --color=auto pmon
2 PDB$SEED READ ONLY NO
• When you open PDB , PDB opens with warning and in Restricted mode with PDB violations like below (still can run datapatch)
0 comments:
Post a Comment