PSU过程11.2.0.4.250415
opatch版本: 11.2.0.3.49 or later
1.2.1.2 Validation of Oracle Inventory
$ <ORACLE_HOME>/OPatch/opatch lsinventory -detail -oh <ORACLE_HOME>su - grid
/u01/app/11.2.0/grid/OPatch/opatch lsinventory -detail -oh /u01/app/11.2.0/gridsu - oracle
/u01/app/oracle/product/11.2.0/db_1/OPatch/opatch lsinventory -detail -oh /u01/app/oracle/product/11.2.0/db_1/
-- opatch auto 打补丁
# opatch auto <UNZIPPED_PATCH_LOCATION>/37712346 su - root
/u01/app/11.2.0/grid/OPatch/opatch auto /psu/37712346
-- 应用SQL
cd $ORACLE_HOME/rdbms/admin
sqlplus /nolog
SQL> CONNECT / AS SYSDBA
SQL> STARTUP
SQL> @catbundle.sql psu apply
SQL> QUIT
-- log
--节点1 log
[root@o11gr21 psu]# cd 37712346/
[root@o11gr21 37712346]# /u01/app/11.2.0/grid/OPatch/opatch auto /psu/37712346
Executing /u01/app/11.2.0/grid/perl/bin/perl /u01/app/11.2.0/grid/OPatch/crs/patch11203.pl -patchdir /psu -patchn 37712346 -paramfile /u01/app/11.2.0/grid/crs/install/crsconfig_paramsThis is the main log file: /u01/app/11.2.0/grid/cfgtoollogs/opatchauto2025-11-10_13-43-36.logThis file will show your detected configuration and all the steps that opatchauto attempted to do on your system:
/u01/app/11.2.0/grid/cfgtoollogs/opatchauto2025-11-10_13-43-36.report.log2025-11-10 13:43:36: Starting Clusterware Patch Setup
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_paramsUnable to determine if /u01/app/oracle/product/11.2.0/db_1 is shared oracle home
Enter 'yes' if this is not a shared home or if the prerequiste actions are performed to patch this shared home (yes/no):YesUnable to determine if /u01/app/11.2.0/grid is shared oracle home
Enter 'yes' if this is not a shared home or if the prerequiste actions are performed to patch this shared home (yes/no):yesStopping RAC /u01/app/oracle/product/11.2.0/db_1 ...
Stopped RAC /u01/app/oracle/product/11.2.0/db_1 successfullypatch /psu/37712346/36614298/custom/server/36614298 apply successful for home /u01/app/oracle/product/11.2.0/db_1
patch /psu/37712346/37608089 apply successful for home /u01/app/oracle/product/11.2.0/db_1 Stopping CRS...
Stopped CRS successfullypatch /psu/37712346/36614298 apply successful for home /u01/app/11.2.0/grid
patch /psu/37712346/37608089 apply successful for home /u01/app/11.2.0/grid
patch /psu/37712346/33112794 apply successful for home /u01/app/11.2.0/grid Starting CRS...
Installing Trace File Analyzer
CRS-4123: Oracle High Availability Services has been started.Starting RAC /u01/app/oracle/product/11.2.0/db_1 ...
Started RAC /u01/app/oracle/product/11.2.0/db_1 successfullyopatch auto succeeded.
[root@o11gr21 37712346]#
--节点2 log
[root@o11gr22 psu]# /u01/app/11.2.0/grid/OPatch/opatch auto /psu/37712346
Executing /u01/app/11.2.0/grid/perl/bin/perl /u01/app/11.2.0/grid/OPatch/crs/patch11203.pl -patchdir /psu -patchn 37712346 -paramfile /u01/app/11.2.0/grid/crs/install/crsconfig_paramsThis is the main log file: /u01/app/11.2.0/grid/cfgtoollogs/opatchauto2025-11-10_14-04-52.logThis file will show your detected configuration and all the steps that opatchauto attempted to do on your system:
/u01/app/11.2.0/grid/cfgtoollogs/opatchauto2025-11-10_14-04-52.report.log2025-11-10 14:04:52: Starting Clusterware Patch Setup
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_paramsUnable to determine if /u01/app/oracle/product/11.2.0/db_1 is shared oracle home
Enter 'yes' if this is not a shared home or if the prerequiste actions are performed to patch this shared home (yes/no):yesUnable to determine if /u01/app/11.2.0/grid is shared oracle home
Enter 'yes' if this is not a shared home or if the prerequiste actions are performed to patch this shared home (yes/no):yesStopping RAC /u01/app/oracle/product/11.2.0/db_1 ...
Stopped RAC /u01/app/oracle/product/11.2.0/db_1 successfullypatch /psu/37712346/36614298/custom/server/36614298 apply successful for home /u01/app/oracle/product/11.2.0/db_1
patch /psu/37712346/37608089 apply successful for home /u01/app/oracle/product/11.2.0/db_1 Stopping CRS...
Stopped CRS successfullypatch /psu/37712346/36614298 apply successful for home /u01/app/11.2.0/grid
patch /psu/37712346/37608089 apply successful for home /u01/app/11.2.0/grid
patch /psu/37712346/33112794 apply successful for home /u01/app/11.2.0/grid Starting CRS...
Installing Trace File Analyzer
CRS-4123: Oracle High Availability Services has been started.Starting RAC /u01/app/oracle/product/11.2.0/db_1 ...
Started RAC /u01/app/oracle/product/11.2.0/db_1 successfullyopatch auto succeeded.
[root@o11gr22 psu]#
-- apply SQL
cd $ORACLE_HOME/rdbms/admin
sqlplus /nolog
SQL> CONNECT / AS SYSDBA
SQL> STARTUP
SQL> @catbundle.sql psu apply
SQL> QUIT
-- 查看补丁版本
[grid@o11gr21 OPatch]$ ./opatch lspatches
33112794;ACFS PATCH SET UPDATE 11.2.0.4.210720 (33112794)
37608089;Database Patch Set Update : 11.2.0.4.250415 (37608089)
36614298;OCW PATCH SET UPDATE 11.2.0.4.240716 (36614298)OPatch succeeded.
[grid@o11gr21 OPatch]$ [oracle@o11gr21 OPatch]$ ./opatch lspatches
37608089;Database Patch Set Update : 11.2.0.4.250415 (37608089)
36614298;OCW PATCH SET UPDATE 11.2.0.4.240716 (36614298)OPatch succeeded.
[oracle@o11gr21 OPatch]$ [grid@o11gr22 OPatch]$ ./opatch lspatches
33112794;ACFS PATCH SET UPDATE 11.2.0.4.210720 (33112794)
37608089;Database Patch Set Update : 11.2.0.4.250415 (37608089)
36614298;OCW PATCH SET UPDATE 11.2.0.4.240716 (36614298)OPatch succeeded.
[grid@o11gr22 OPatch]$ [oracle@o11gr22 OPatch]$ ./opatch lspatches
37608089;Database Patch Set Update : 11.2.0.4.250415 (37608089)
36614298;OCW PATCH SET UPDATE 11.2.0.4.240716 (36614298)OPatch succeeded.
[oracle@o11gr22 OPatch]$ SQL> select action_time,version,comments from dba_registry_history;ACTION_TIME VERSION COMMENTS
-------------------------------------------------- -------------------- --------------------------------------------------
24-AUG-13 12.03.45.119862 PM 11.2.0.4 Patchset 11.2.0.2.0
11-DEC-21 09.19.00.302000 PM 11.2.0.4 Patchset 11.2.0.2.0
11-DEC-21 09.32.55.283364 PM 11.2.0.4 Patchset 11.2.0.2.0
10-NOV-25 02.24.15.874333 PM 11.2.0.4 PSU 11.2.0.4.2504154 rows selected.SQL> END
