Oracle集群管理实战-11.2RAC+20200714版本补丁

1 更新psu ,在每个节点执行即可。

--AS ORACLE
srvctl stop home -o $ORACLE_HOME -s /home/oracle/123.txt -n wxrac02

--AS ROOT

cd $GI_HOME/crs/install
./rootcrs.pl -unlock

--as grid
opatch napply  -oh $ORACLE_HOME -local /home/grid/psu/31305209/29509309
opatch napply  -oh $ORACLE_HOME -local /home/grid/psu/31305209/29938455 -ocmrf /u01/11.2.0/OPatch/ocm/bin/ocm.rsp 
opatch napply  -oh $ORACLE_HOME -local /home/grid/psu/31305209/31103343 -ocmrf /u01/11.2.0/OPatch/ocm/bin/ocm.rsp 

--as oracle

cd /home/oracle/31305209/29938455/custom/server/29938455/custom/scripts/
./prepatch.sh -dbhome $ORACLE_HOME
opatch napply  -oh $ORACLE_HOME -local /home/oracle/31305209/29938455/custom/server/29938455 -ocmrf /u01/oracle/product/11.2.0.4/db_1/OPatch/ocm/bin/ocm.rsp  --ocw
opatch napply  -oh $ORACLE_HOME -local /home/oracle/31305209/31103343   --psu
./postpatch.sh -dbhome $ORACLE_HOME

As root

./$GI_HOME/rdbms/install/rootadd_rdbms.sh ---之后再执行post报错无权限。 在unlock一次

./$GI_HOME/crs/install/rootcrs.pl –patch

Using configuration parameter file: ./crsconfig_params

Installing Trace File Analyzer

CRS-4123: Oracle High Availability Services has been started. /* 提示表示成功 */

-- as root
cd GI_HOME/rdbms/install
./rootadd_rdbms.sh 
cd GI_HOME/crs/install
./rootcrs.pl -patch

--as oracle
sqlplus / as sysdba
startup
@?/rdbms/admin/catbundle.sql psu apply
srvctl stop home -o $ORACLE_HOME -s /home/oracle/123.txt -n wxrac02
srvctl start home -o $ORACLE_HOME -s /home/oracle/123.txt -n wxrac02


JVM 

alter system set cluster_database=false scope=spfile;
srvctl stop home -o $ORACLE_HOME -s /home/oracle/123.txt -n wxrac02
unzip p3211.....zip
cd 3211..
opatch apply
sqlplus / as sysdba
startup upgrade
@?/sqlpatch//postinstall.sql;

alter system set cluster_database=TRUE scope=spfile;

shutdown immediate

srvctl start  home -o $ORACLE_HOME -s /home/oracle/123.txt -n wxrac02

你可能感兴趣的:(ORACLE数据库升级,PSU,jvm,RU补丁,ORACLE数据库RAC管理,oracle,数据库,database)