ccr dbs javavm md OPatch_bak(旧的OPatch目录) plsql root.sh.old.1 uix
cdata demo jdbc mesg opmn precomp root.sh.old.2 wwg
cfgtoollogs diagnostics jdk mgw oracore racg slax xdk
clone has jlib network oraInst.loc rdbms sqlj
config hs jre nls ord relnotes sqlnet.log
crs install ldap oc4j oui rh55_prod sqlplus
//接下来,尝试重启虚拟机,再次使用oracle家目录下路径执行,此时没有报错
//问题解决方式:重启虚拟机
[oracle@rh55 9352164]$ /home/oracle/OPatch/opatch apply
//接下来根据提示,默认操作即可,选项处均选择“y”
3、数据库字典升级
[oracle@rh55 OPatch]$ sqlplus '/as sysdba'
SQL*Plus: Release 10.2.0.4.0 - Production on FriMay 16 12:29:54 2014
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to an idle instance.
SQL> startup //启库
ORACLE instance started.
Total System Global Area 729808896 bytes
Fixed Size 1269640 bytes
Variable Size 146800760 bytes
Database Buffers 578813952 bytes
Redo Buffers 2924544 bytes
Database mounted.
Database opened.
SQL> @ /rdbms/admin/catbundle.sql psu apply //执行脚本
SQL> @ /rdbms/admin/utlrp.sql //执行脚本,定义一下是否有无效的对象
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup upgrade; //以upgrade状态启动数据库
ORACLE instance started.
Total System Global Area 729808896 bytes
Fixed Size 1269640 bytes
Variable Size 146800760 bytes
Database Buffers 578813952 bytes
Redo Buffers 2924544 bytes
Database mounted.
Database opened.
SQL> @$ORACLE_HOME/cpu/view_recompile/recompile_precheck_jan2008cpu.sql
或SQL> @?/cpu/view_recompile/recompile_precheck_jan2008cpu.sql
//重新编译CPU的相关视图
//为了完成在2008年1月第一次发布CPU补丁时的后续工作
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup upgrade;
ORACLE instance started.
Total System Global Area 729808896 bytes
Fixed Size 1269640 bytes
Variable Size 146800760 bytes
Database Buffers 578813952 bytes
Redo Buffers 2924544 bytes
Database mounted.
Database opened.
SQL> @$ORACLE_HOME/cpu/view_recompile/view_recompile_jan2008cpu.sql
//执行第二个脚本
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
至此,PSU的升级已经结束了。
4、验证升级是否成功
SQL> startup
ORACLE instance started.
Total System Global Area 729808896 bytes
Fixed Size 1269640 bytes
Variable Size 146800760 bytes
Database Buffers 578813952 bytes
Redo Buffers 2924544 bytes
Database mounted.
Database opened.
系统下做一个验证:
[oracle@rh55 9352164]$ /home/oracle/OPatch/opatch lsinventory-bugs_fixed | grep -i 'DATABASE PSU' //PSU升级完成后检验一下
//验证得知,oracle版本已经由10.2.0.4.0升级为10.2.0.4.4
//一般一个季度会发布一个升级包,如上图,2009年7月、2009年10月、2010年1月、2010年4月分别推出了一个升级包
数据库下做一个简单的验证:
SQL> col COMMENTS for a40
SQL> select action,comments from registry$history;
***********************************************声明************************************************
原创作品,出自 “深蓝的blog” 博客,欢迎转载,转载时请务必注明出处(http://blog.csdn.net/huangyanlong)。
表述有错误之处,请您留言或邮件(hyldba@163.com)指明,不胜感激。
提醒:点击目录,更有助于您的查看。
*****************************************************************************************************