11.2.0.4.0升级到11.2.0.4.8
使用新版的Opatch替换原有的Opatch在$ORACLE_HOME里
- $ cd $ORACLE_HOME
- $ tar zvcf OPatch.tar.bak OPatch
- $ rm -rf OPatch
上传新的Opatch到$ORACLE_HOME里
在变量文件PATH处增加Opatch路径,并让变量文件生效
- $ cd ~
- $ vi .bash_profile
- export PATH=$ORACLE_HOME/bin:$PATH:$ORACLE_HOME/OPatch
- $ source .bash_profile
- $ opatch version
- OPatch Version: 11.2.0.3.12
- OPatch succeeded.
- $ lsnrctl stop
- SQL> shutdown immediate
- $ cd 21352635
- $ opatch apply
更新数据字典和编译无效对象
- $ sqlplus / as sysdba
- SQL> startup
- SQL> @?/rdbms/admin/catbundle.sql psu apply
- SQL> @?/rdbms/admin/utlrp.sql
查看记录
SQL> select version, id, bundle_series, comments from dba_registry_history;