1.patch list
2.opatch 升级
根据文档要求下载工具,安装在RAC+DG 中
3.在DG(single instance)端安装RU27105253
*如果DG端为RAC结构,则直接patch27100009即可
(1).添加环境变量
export PATH=$PATH:/usr/ccs/bin
(2).One-off Patch Conflict Detection
- $unzip p27105253_122010_Linux-x86-64.zip
- $cd 27105253/
- $ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -ph ./
- Oracle Interim Patch Installer version 12.2.0.1.12
- Copyright (c) 2018, Oracle Corporation. All rights reserved.
- PREREQ session
- Oracle Home : /oracle/app/oracle/product/12.2.0.1/db_1
- Central Inventory : /oracle/app/oraInventory
- from : /oracle/app/oracle/product/12.2.0.1/db_1/oraInst.loc
- OPatch version : 12.2.0.1.12
- OUI version : 12.2.0.1.4
- Log file location : /oracle/app/oracle/product/12.2.0.1/db_1/cfgtoollogs/opatch/opatch2018-02-12_15-10-29PM_1.log
- Invoking prereq "checkconflictagainstohwithdetail"
- Prereq "checkConflictAgainstOHWithDetail" passed.
- OPatch succeeded.
*如果存在冲突,请参考文档Database Patch Conflict Resolution (文档 ID 1321267.1)或联系ORACLE SURPORT
(3).patch 安装
a.disable redo transportation at primary db
alter system set log_archive_dest_state_2=defer scope=both sid='*';
b.shutdown物理备库和listener
- SQL> shutdown immediate
- Database closed.
- Database dismounted.
- ORACLE instance shut down.
- $lsnrctl stop
c.opatch apply
- [oracle@racdg:/tmp/wwj/27105253]$$ORACLE_HOME/OPatch/opatch apply
- Oracle Interim Patch Installer version 12.2.0.1.12
- Copyright (c) 2018, Oracle Corporation. All rights reserved.
-
- Oracle Home : /oracle/app/oracle/product/12.2.0.1/db_1
- Central Inventory : /oracle/app/oraInventory
- from : /oracle/app/oracle/product/12.2.0.1/db_1/oraInst.loc
- OPatch version : 12.2.0.1.12
- OUI version : 12.2.0.1.4
- Log file location : /oracle/app/oracle/product/12.2.0.1/db_1/cfgtoollogs/opatch/opatch2018-02-12_16-09-50PM_1.log
- Verifying environment and performing prerequisite checks...
- OPatch continues with these patches: 27105253
- Do you want to proceed? [y|n]
- y
- User Responded with: Y
- All checks passed.
- Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
- (Oracle Home = '/oracle/app/oracle/product/12.2.0.1/db_1')
-
- Is the local system ready for patching? [y|n]
- y
- User Responded with: Y
- Backing up files...
- Applying interim patch '27105253' to OH '/oracle/app/oracle/product/12.2.0.1/db_1'
- ApplySession: Optional component(s) [ oracle.has.crs, 12.2.0.1.0 ] , [ oracle.ons.daemon, 12.2.0.1.0 ] , [ oracle.network.cman, 12.2.0.1.0 ] not present in the Oracle Home or a higher version is found.
- Patching component oracle.network.rsf, 12.2.0.1.0...
- Patching component oracle.rdbms.deconfig, 12.2.0.1.0...
- Patching component oracle.tfa, 12.2.0.1.0...
- Patching component oracle.rdbms, 12.2.0.1.0...
- Patching component oracle.rdbms.util, 12.2.0.1.0...
- Patching component oracle.rdbms.dbscripts, 12.2.0.1.0...
- Patching component oracle.xdk.parser.java, 12.2.0.1.0...
- Patching component oracle.has.deconfig, 12.2.0.1.0...
- Patching component oracle.xdk.rsf, 12.2.0.1.0...
- Patching component oracle.ctx.rsf, 12.2.0.1.0...
- Patching component oracle.rdbms.rman, 12.2.0.1.0...
- Patching component oracle.rdbms.dv, 12.2.0.1.0...
- Patching component oracle.rdbms.oci, 12.2.0.1.0...
- Patching component oracle.rdbms.crs, 12.2.0.1.0...
- Patching component oracle.precomp.common, 12.2.0.1.0...
- Patching component oracle.oracore.rsf, 12.2.0.1.0...
- Patching component oracle.ctx, 12.2.0.1.0...
- Patching component oracle.xdk, 12.2.0.1.0...
- Patching component oracle.nlsrtl.rsf, 12.2.0.1.0...
- Patching component oracle.rdbms.rsf, 12.2.0.1.0...
- Patching component oracle.ons, 12.2.0.1.0...
- Patching component oracle.rdbms.lbac, 12.2.0.1.0...
- Patching component oracle.precomp.lang, 12.2.0.1.0...
- Patching component oracle.rdbms.rsf.ic, 12.2.0.1.0...
- Patching component oracle.sdo, 12.2.0.1.0...
- Patch 27105253 successfully applied.
- Log file location: /oracle/app/oracle/product/12.2.0.1/db_1/cfgtoollogs/opatch/opatch2018-02-12_16-09-50PM_1.log
- OPatch succeeded.
d.打开listener和standby db至mount状态
- $lsnrctl start
- SQL> startup mount
- SQL> alter database recover managed standby database using current logfile disconnect;
e.验证standby db patch结果
- Convert the standby database into a snapshot standby
<1>.stop redo apply
alter database recover managed standby database cancel;
<2>.Ensure that the database is mounted, but not open
<3>.Ensure that a fast recovery area has been configured. It is not necessary for flashback database to be enabled.
alter system set db_recovery_file_dest_size=6g scope=both;
alter system set db_recovery_file_dest='/arch/flash_area' scope=both;
<4>.perform the conversion
ALTER DATABASE CONVERT TO SNAPSHOT STANDBY;
- Perform any required SQL installation steps for the patch on the snapshot standby.
<1>.读写方式打开DB
ALTER DATABASE OPEN READ WRITE;
<2>. Loading Modified SQL Files into the Database
- $./datapatch -verbose
- SQL Patching tool version 12.2.0.1.0 Production on Tue Feb 13 09:14:52 2018
- Copyright (c) 2012, 2017, Oracle. All rights reserved.
- Log file for this invocation: /oracle/app/oracle/cfgtoollogs/sqlpatch/sqlpatch_62762_2018_02_13_09_14_52/sqlpatch_invocation.log
- Connecting to database...OK
- Bootstrapping registry and package to current versions...done
- Determining current state...done
- Current state of SQL patches:
- Bundle series DBRU:
- ID 180116 in the binary registry and not installed in the SQL registry
- Adding patches to installation queue and performing prereq checks...
- Installation queue:
- Nothing to roll back
- The following patches will be applied:
- 27105253 (DATABASE RELEASE UPDATE 12.2.0.1.180116)
- Installing patches...
- Patch installation complete. Total patches installed: 1
- Validating logfiles...
- Patch 27105253 apply: SUCCESS
- logfile: /oracle/app/oracle/cfgtoollogs/sqlpatch/27105253/21862470/27105253_apply_RACDB12C_2018Feb13_09_15_25.log (no errors)
- SQL Patching tool complete on Tue Feb 13 09:19:39 2018
<3>.验证
select * from dba_registry_sqlpatch;
select * from dba_registry_history;
<4>.Use Oracle Real Application Testing to evaluate stability and performance of the new software using real application workload.
- Converting a Snapshot Standby Database into a Physical Standby Database
<1>.Ensure that the database is mounted, but not open.
<2>.转换回PHYSICAL STANDBY
ALTER DATABASE CONVERT TO PHYSICAL STANDBY;
<3>.验证
select OPEN_MODE,PROTECTION_MODE,ACTIVATION#,DATABASE_ROLE,SWITCHOVER#,SWITCHOVER_STATUS FROM V$DATABASE;
role=PHYSICAL STANDBY
SQL> select * from dba_registry_sqlpatch;
no rows selected
4.在PRIMARY(rac)端安装RU27100009
(1).Patch Installation Prerequisites
a.check the consistency of inventory information for GI home and each database home to be patched
$ /OPatch/opatch lsinventory -detail -oh
* grid用户和oracle用户都要运行,结果OPatch succeeded,将输出结果进行保存
b.unzip patch
创建NFS共享目录/patch_share,将patch unzip至共享目录
c.Run OPatch Conflict Check
- For Grid Infrastructure Home, as grid user:
- [grid@rac1:/home/grid]$$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /patch_share/27100009/27105253
- Oracle Interim Patch Installer version 12.2.0.1.12
- Copyright (c) 2018, Oracle Corporation. All rights reserved.
- PREREQ session
- Oracle Home : /oracle/app/12.2.0.1/grid
- Central Inventory : /oracle/app/oraInventory
- from : /oracle/app/12.2.0.1/grid/oraInst.loc
- OPatch version : 12.2.0.1.12
- OUI version : 12.2.0.1.4
- Log file location : /oracle/app/12.2.0.1/grid/cfgtoollogs/opatch/opatch2018-02-13_15-24-27PM_1.log
- Invoking prereq "checkconflictagainstohwithdetail"
- Prereq "checkConflictAgainstOHWithDetail" passed.
- OPatch succeeded.
- [grid@rac1:/home/grid]$$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /patch_share/27100009/27335416
- Oracle Interim Patch Installer version 12.2.0.1.12
- Copyright (c) 2018, Oracle Corporation. All rights reserved.
- PREREQ session
- Oracle Home : /oracle/app/12.2.0.1/grid
- Central Inventory : /oracle/app/oraInventory
- from : /oracle/app/12.2.0.1/grid/oraInst.loc
- OPatch version : 12.2.0.1.12
- OUI version : 12.2.0.1.4
- Log file location : /oracle/app/12.2.0.1/grid/cfgtoollogs/opatch/opatch2018-02-13_15-24-48PM_1.log
- Invoking prereq "checkconflictagainstohwithdetail"
- Prereq "checkConflictAgainstOHWithDetail" passed.
- OPatch succeeded.
- [grid@rac1:/home/grid]$$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /patch_share/27100009/27128906
- Oracle Interim Patch Installer version 12.2.0.1.12
- Copyright (c) 2018, Oracle Corporation. All rights reserved.
- PREREQ session
- Oracle Home : /oracle/app/12.2.0.1/grid
- Central Inventory : /oracle/app/oraInventory
- from : /oracle/app/12.2.0.1/grid/oraInst.loc
- OPatch version : 12.2.0.1.12
- OUI version : 12.2.0.1.4
- Log file location : /oracle/app/12.2.0.1/grid/cfgtoollogs/opatch/opatch2018-02-13_15-25-02PM_1.log
- Invoking prereq "checkconflictagainstohwithdetail"
- Prereq "checkConflictAgainstOHWithDetail" passed.
- OPatch succeeded.
- [grid@rac1:/home/grid]$$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /patch_share/27100009/26839277
- Oracle Interim Patch Installer version 12.2.0.1.12
- Copyright (c) 2018, Oracle Corporation. All rights reserved.
- PREREQ session
- Oracle Home : /oracle/app/12.2.0.1/grid
- Central Inventory : /oracle/app/oraInventory
- from : /oracle/app/12.2.0.1/grid/oraInst.loc
- OPatch version : 12.2.0.1.12
- OUI version : 12.2.0.1.4
- Log file location : /oracle/app/12.2.0.1/grid/cfgtoollogs/opatch/opatch2018-02-13_15-25-16PM_1.log
- Invoking prereq "checkconflictagainstohwithdetail"
- Prereq "checkConflictAgainstOHWithDetail" passed.
- OPatch succeeded.
- [grid@rac1:/home/grid]$$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /patch_share/27100009/27144050
- Oracle Interim Patch Installer version 12.2.0.1.12
- Copyright (c) 2018, Oracle Corporation. All rights reserved.
- PREREQ session
- Oracle Home : /oracle/app/12.2.0.1/grid
- Central Inventory : /oracle/app/oraInventory
- from : /oracle/app/12.2.0.1/grid/oraInst.loc
- OPatch version : 12.2.0.1.12
- OUI version : 12.2.0.1.4
- Log file location : /oracle/app/12.2.0.1/grid/cfgtoollogs/opatch/opatch2018-02-13_15-25-30PM_1.log
- Invoking prereq "checkconflictagainstohwithdetail"
- Prereq "checkConflictAgainstOHWithDetail" passed.
- OPatch succeeded.
- For Database home, as home user:
- [oracle@rac1:/home/oracle]$$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /patch_share/27100009/27105253
- Oracle Interim Patch Installer version 12.2.0.1.12
- Copyright (c) 2018, Oracle Corporation. All rights reserved.
- PREREQ session
- Oracle Home : /oracle/app/oracle/product/12.2.0.1/db_1
- Central Inventory : /oracle/app/oraInventory
- from : /oracle/app/oracle/product/12.2.0.1/db_1/oraInst.loc
- OPatch version : 12.2.0.1.12
- OUI version : 12.2.0.1.4
- Log file location : /oracle/app/oracle/product/12.2.0.1/db_1/cfgtoollogs/opatch/opatch2018-02-13_15-29-40PM_1.log
- Invoking prereq "checkconflictagainstohwithdetail"
- Prereq "checkConflictAgainstOHWithDetail" passed.
- OPatch succeeded.
- [oracle@rac1:/home/oracle]$$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /patch_share/27100009/27335416
- Oracle Interim Patch Installer version 12.2.0.1.12
- Copyright (c) 2018, Oracle Corporation. All rights reserved.
- PREREQ session
- Oracle Home : /oracle/app/oracle/product/12.2.0.1/db_1
- Central Inventory : /oracle/app/oraInventory
- from : /oracle/app/oracle/product/12.2.0.1/db_1/oraInst.loc
- OPatch version : 12.2.0.1.12
- OUI version : 12.2.0.1.4
- Log file location : /oracle/app/oracle/product/12.2.0.1/db_1/cfgtoollogs/opatch/opatch2018-02-13_15-29-54PM_1.log
- Invoking prereq "checkconflictagainstohwithdetail"
- Prereq "checkConflictAgainstOHWithDetail" passed.
- OPatch succeeded.
d.Run OPatch SystemSpace Check
- For Grid Infrastructure Home, as home user:
- vi /tmp/patch_list_gihome.txt
- /patch_share/27100009/27144050
- /patch_share/27100009/26839277
- /patch_share/27100009/27128906
- /patch_share/27100009/27335416
- /patch_share/27100009/27105253
- [grid@rac1:/home/grid]$$ORACLE_HOME/OPatch/opatch prereq CheckSystemSpace -phBaseFile /tmp/patch_list_gihome.txt
- Oracle Interim Patch Installer version 12.2.0.1.12
- Copyright (c) 2018, Oracle Corporation. All rights reserved.
- PREREQ session
- Oracle Home : /oracle/app/12.2.0.1/grid
- Central Inventory : /oracle/app/oraInventory
- from : /oracle/app/12.2.0.1/grid/oraInst.loc
- OPatch version : 12.2.0.1.12
- OUI version : 12.2.0.1.4
- Log file location : /oracle/app/12.2.0.1/grid/cfgtoollogs/opatch/opatch2018-02-13_15-40-21PM_1.log
- Invoking prereq "checksystemspace"
- Prereq "checkSystemSpace" passed.
- OPatch succeeded.
- For Database home, as home user:
- vi /tmp/patch_list_dbhome.txt
- /patch_share/27100009/27335416
- /patch_share/27100009/27105253
- [oracle@rac1:/home/oracle]$$ORACLE_HOME/OPatch/opatch prereq CheckSystemSpace -phBaseFile /tmp/patch_list_dbhome.txt
- Oracle Interim Patch Installer version 12.2.0.1.12
- Copyright (c) 2018, Oracle Corporation. All rights reserved.
- PREREQ session
- Oracle Home : /oracle/app/oracle/product/12.2.0.1/db_1
- Central Inventory : /oracle/app/oraInventory
- from : /oracle/app/oracle/product/12.2.0.1/db_1/oraInst.loc
- OPatch version : 12.2.0.1.12
- OUI version : 12.2.0.1.4
- Log file location : /oracle/app/oracle/product/12.2.0.1/db_1/cfgtoollogs/opatch/opatch2018-02-13_15-45-46PM_1.log
- Invoking prereq "checksystemspace"
- Prereq "checkSystemSpace" passed.
- OPatch succeeded.
(2).opatchauto(所有node执行相同步骤)
* rolling patch 时DG端保持ADG模式,non-rolling patch时DG端保持mount状态并开启MRP。
本次采用non-rolling patch,先关闭database
a.patch GI
- <1>.# export PATH=$PATH:/oracle/app/12.2.0.1/grid/OPatch
- <2>.
- [root@rac1 patch_share]# opatchauto apply /patch_share/27100009 -oh /oracle/app/12.2.0.1/grid
- OPatchauto session is initiated at Tue Feb 13 16:28:59 2018
- System initialization log file is /oracle/app/12.2.0.1/grid/cfgtoollogs/opatchautodb/systemconfig2018-02-13_04-29-14PM.log.
- Session log file is /oracle/app/12.2.0.1/grid/cfgtoollogs/opatchauto/opatchauto2018-02-13_04-30-19PM.log
- The id for this session is LEAJ
- Executing OPatch prereq operations to verify patch applicability on home /oracle/app/12.2.0.1/grid
- Patch applicability verified successfully on home /oracle/app/12.2.0.1/grid
-
- Bringing down CRS service on home /oracle/app/12.2.0.1/grid
- Prepatch operation log file location: /oracle/app/grid/crsdata/rac1/crsconfig/crspatch_rac1_2018-02-13_04-33-09PM.log
- CRS service brought down successfully on home /oracle/app/12.2.0.1/grid
-
- Start applying binary patch on home /oracle/app/12.2.0.1/grid
- Binary patch applied successfully on home /oracle/app/12.2.0.1/grid
-
- Starting CRS service on home /oracle/app/12.2.0.1/grid
- Postpatch operation log file location: /oracle/app/grid/crsdata/rac1/crsconfig/crspatch_rac1_2018-02-13_04-52-32PM.log
- CRS service started successfully on home /oracle/app/12.2.0.1/grid
- OPatchAuto successful.
- --------------------------------Summary--------------------------------
- Patching is completed successfully. Please find the summary as follows:
- Host:rac1
- CRS Home:/oracle/app/12.2.0.1/grid
- Summary:
- ==Following patches were SUCCESSFULLY applied:
- Patch: /patch_share/27100009/26839277
- Log: /oracle/app/12.2.0.1/grid/cfgtoollogs/opatchauto/core/opatch/opatch2018-02-13_16-35-36PM_1.log
- Patch: /patch_share/27100009/27105253
- Log: /oracle/app/12.2.0.1/grid/cfgtoollogs/opatchauto/core/opatch/opatch2018-02-13_16-35-36PM_1.log
- Patch: /patch_share/27100009/27128906
- Log: /oracle/app/12.2.0.1/grid/cfgtoollogs/opatchauto/core/opatch/opatch2018-02-13_16-35-36PM_1.log
- Patch: /patch_share/27100009/27144050
- Log: /oracle/app/12.2.0.1/grid/cfgtoollogs/opatchauto/core/opatch/opatch2018-02-13_16-35-36PM_1.log
- Patch: /patch_share/27100009/27335416
- Log: /oracle/app/12.2.0.1/grid/cfgtoollogs/opatchauto/core/opatch/opatch2018-02-13_16-35-36PM_1.log
-
- OPatchauto session completed at Tue Feb 13 16:58:24 2018
- Time taken to complete the session 29 minutes, 26 seconds
b.patch DB_HOME
- # /oracle/app/oracle/product/12.2.0.1/db_1/OPatch/opatchauto apply /patch_share/27100009 -oh /oracle/app/oracle/product/12.2.0.1/db_1
- [root@rac1 ~]# /oracle/app/oracle/product/12.2.0.1/db_1/OPatch/opatchauto apply /patch_share/27100009 -oh /oracle/app/oracle/product/12.2.0.1/db_1
- OPatchauto session is initiated at Wed Feb 14 16:17:57 2018
- System initialization log file is /oracle/app/oracle/product/12.2.0.1/db_1/cfgtoollogs/opatchautodb/systemconfig2018-02-14_04-18-11PM.log.
- Session log file is /oracle/app/oracle/product/12.2.0.1/db_1/cfgtoollogs/opatchauto/opatchauto2018-02-14_04-18-51PM.log
- The id for this session is JAYC
- Executing OPatch prereq operations to verify patch applicability on home /oracle/app/oracle/product/12.2.0.1/db_1
- Patch applicability verified successfully on home /oracle/app/oracle/product/12.2.0.1/db_1
-
- Verifying SQL patch applicability on home /oracle/app/oracle/product/12.2.0.1/db_1
- SQL patch applicability verified successfully on home /oracle/app/oracle/product/12.2.0.1/db_1
-
- Preparing to bring down database service on home /oracle/app/oracle/product/12.2.0.1/db_1
- Successfully prepared home /oracle/app/oracle/product/12.2.0.1/db_1 to bring down database service
-
- Bringing down database service on home /oracle/app/oracle/product/12.2.0.1/db_1
- Database service successfully brought down on home /oracle/app/oracle/product/12.2.0.1/db_1
-
- Performing prepatch operation on home /oracle/app/oracle/product/12.2.0.1/db_1
- Perpatch operation completed successfully on home /oracle/app/oracle/product/12.2.0.1/db_1
-
- Start applying binary patch on home /oracle/app/oracle/product/12.2.0.1/db_1
- Binary patch applied successfully on home /oracle/app/oracle/product/12.2.0.1/db_1
-
- Performing postpatch operation on home /oracle/app/oracle/product/12.2.0.1/db_1
- Postpatch operation completed successfully on home /oracle/app/oracle/product/12.2.0.1/db_1
-
- Starting database service on home /oracle/app/oracle/product/12.2.0.1/db_1
- Database service successfully started on home /oracle/app/oracle/product/12.2.0.1/db_1
-
- Preparing home /oracle/app/oracle/product/12.2.0.1/db_1 after database service restarted
- No step execution required.........
- Prepared home /oracle/app/oracle/product/12.2.0.1/db_1 successfully after database service restarted
-
- Trying to apply SQL patch on home /oracle/app/oracle/product/12.2.0.1/db_1
- SQL patch applied successfully on home /oracle/app/oracle/product/12.2.0.1/db_1
- OPatchAuto successful.
- --------------------------------Summary--------------------------------
- Patching is completed successfully. Please find the summary as follows:
- Host:rac1
- RAC Home:/oracle/app/oracle/product/12.2.0.1/db_1
- Summary:
- ==Following patches were SKIPPED:
- Patch: /patch_share/27100009/27128906
- Reason: This patch is not applicable to this specified target type - "rac_database"
- Patch: /patch_share/27100009/26839277
- Reason: This patch is not applicable to this specified target type - "rac_database"
- Patch: /patch_share/27100009/27144050
- Reason: This patch is not applicable to this specified target type - "rac_database"
-
- ==Following patches were SUCCESSFULLY applied:
- Patch: /patch_share/27100009/27105253
- Log: /oracle/app/oracle/product/12.2.0.1/db_1/cfgtoollogs/opatchauto/core/opatch/opatch2018-02-14_16-19-45PM_1.log
- Patch: /patch_share/27100009/27335416
- Log: /oracle/app/oracle/product/12.2.0.1/db_1/cfgtoollogs/opatchauto/core/opatch/opatch2018-02-14_16-19-45PM_1.log
-
- Patching session reported following warning(s):
- _________________________________________________
- [WARNING] The database instance 'racdb12c1' from '/oracle/app/oracle/product/12.2.0.1/db_1', in host'rac1' is not running. SQL changes, if any, will not be applied.
- 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.
-
-
- OPatchauto session completed at Wed Feb 14 16:23:41 2018
- Time taken to complete the session 5 minutes, 46 seconds
c.在其他节点重复a,b步骤
d.Apply SQL change
<1>.启动instance
srvctl start database -d db_name
<2>.在任一node上运行 datapatch
- $ cd OPatch
- $./datapatch -verbose
- SQL Patching tool version 12.2.0.1.0 Production on Thu Feb 15 13:03:03 2018
- Copyright (c) 2012, 2017, Oracle. All rights reserved.
- Log file for this invocation: /oracle/app/oracle/cfgtoollogs/sqlpatch/sqlpatch_84965_2018_02_15_13_03_04/sqlpatch_invocation.log
- Connecting to database...OK
- Bootstrapping registry and package to current versions...done
- Determining current state...done
- Current state of SQL patches:
- Bundle series DBRU:
- ID 180116 in the binary registry and not installed in the SQL registry
- Adding patches to installation queue and performing prereq checks...
- Installation queue:
- Nothing to roll back
- The following patches will be applied:
- 27105253 (DATABASE RELEASE UPDATE 12.2.0.1.180116)
- Installing patches...
- Patch installation complete. Total patches installed: 1
- Validating logfiles...
- Patch 27105253 apply: SUCCESS
- logfile: /oracle/app/oracle/cfgtoollogs/sqlpatch/27105253/21862470/27105253_apply_RACDB12C_2018Feb15_13_04_32.log (no errors)
- SQL Patching tool complete on Thu Feb 15 13:08:45 2018
<3>.确认状态
确认primar和STD APPLY is "SUCCESS"
select * from dba_registry_sqlpatch;APPLY is "SUCCESS"
e.编译无效对象
$cd $ORACLE_HOME/rdbms/admin
SQL> CONNECT / AS SYSDBA
SQL> @utlrp.sql
相关参考文档:
RU readme
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=249151180273701&id=1265700.1&_afrWindowMode=0&_adf.ctrl-state=5ay3io5k_63
https://docs.oracle.com/en/database/oracle/oracle-database/12.2/sbydb/managing-oracle-data-guard-physical-standby-databases.html#GUID-36B87563-A971-43B4-8320-52BBA27EE749
https://updates.oracle.com/Orion/Services/download?type=readme&aru=21862470#GUID-578016F3-4DA5-461A-A3E8-E0D75974361E
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/15412087/viewspace-2151094/,如需转载,请注明出处,否则将追究法律责任。