【ORACLE】oracle打补丁


-- 备份旧的opatch
cd $ORACLE_HOME/
mv OPatch  OPatch_20180323_old

-- 上传补丁工具和补丁包到oraclehome目录下,解压
unzip p6880880_112000_Linux-x86-64.zip
unzip p23054359_112040_Linux-x86-64.zip
unzip p23274134_112040_Linux-x86-64.zip
-- 添加环境变量
vim /home/oracle/.bash_profile
export PATH=$ORACLE_HOME/OPatch:$PATH

-- 查看版本
opatch version

-- 查看opatch位置
which opatch
---------------------------------------------------------


cd /u01/app/oracle/product/11.2.0/db_1/23274134/23054319/custom/server/23054319
opatch apply

-- 提示需要输入MOS邮箱和密码,后面的选项填NONE
bravetofaceit3707@outlook.com

---------------------------------------------

unzip p23054359_112040_<platform>.zip
cd 23054359
opatch apply


------------------------------------
-- 查看数据库打了哪些psu
opatch lsinventory


-- 注册到数据库
cd $ORACLE_HOME/rdbms/admin
sqlplus /nolog
SQL> CONNECT / AS SYSDBA
SQL> STARTUP
SQL> @catbundle.sql psu apply
执行成功后,查看:
SQL> select * from dba_registry_history;
posted @ 2018-04-08 17:13  __初  阅读(341)  评论(0编辑  收藏  举报