p32579057_122010_Linux-x86-64.zip
p6880880_122010_Linux-x86-64.zip
本文主要介绍docker安装下补丁升级操作,补丁文件可官网下载
docker exec -it oracle /bin/bash
cd /opt/oracle/
mkdir pach_ora
docker cp p32579057_122010_Linux-x86-64.zip oracledb:/opt/oracle/pach_ora
docker cp p6880880_122010_Linux-x86-64.zip oracledb:/opt/oracle/pach_ora
docker cp actions.xml oracledb:/opt/oracle/pach_ora
docker exec -it oracledb /bin/bash
cd /opt/oracle/pach_ora
unzip p32579057_122010_Linux-x86-64.zip && unzip p6880880_122010_Linux-x86-64.zip
cd /opt/oracle/pach_ora
mv actions.xml /opt/oracle/pach_ora/32579057/32540149/32507738/etc/config/
chown -R oracle:oinstall actions.xml
shutdown immediate;
lsnrctl stop
cd $ORACLE_HOME
mv OPatch/ OPatch_bk
cp -R /opt/oracle/pach_ora/OPatch/ ./
cd OPatch
./opatch prereq CheckConflictAgainstOHWithDetail -ph /opt/oracle/pach_ora/32579057/32473172/
./opatch prereq CheckConflictAgainstOHWithDetail -ph /opt/oracle/pach_ora/32579057/32540149/26839277/
./opatch prereq CheckConflictAgainstOHWithDetail -ph /opt/oracle/pach_ora/32579057/32540149/31802727/
./opatch prereq CheckConflictAgainstOHWithDetail -ph /opt/oracle/pach_ora/32579057/32540149/32231681/
./opatch prereq CheckConflictAgainstOHWithDetail -ph /opt/oracle/pach_ora/32579057/32540149/32507738/
./opatch prereq CheckConflictAgainstOHWithDetail -ph /opt/oracle/pach_ora/32579057/32540149/32542421/
./opatch apply /opt/oracle/pach_ora/32579057/32473172/(成功)
./opatch apply /opt/oracle/pach_ora/32579057/32540149/26839277/(有警告)
./opatch apply /opt/oracle/pach_ora/32579057/32540149/31802727/(成功)
./opatch apply /opt/oracle/pach_ora/32579057/32540149/32231681/(有警告)
./opatch apply /opt/oracle/pach_ora/32579057/32540149/32507738/(有一个报错)
./opatch apply /opt/oracle/pach_ora/32579057/32540149/32542421/(有警告)
./opatch lsinventory
sqlplus / as sysdba
Startup
@?/rdbms/admin/dbmsrman.sql
@?/rdbms/admin/prvtrmns.plb
cd $ORACLE_HOME/OPatch
./datapatch -verbose
select * from dba_registry_history;
select * from dba_registry_sqlpatch;
select PATCH_ID, PATCH_UID,VERSION,ACTION, STATUS,ACTION_TIME,DESCRIPTION from dba_registry_sqlpatch;