Documente Academic
Documente Profesional
Documente Cultură
1.Login in ADL0905
2.adl0905:/home/oracle> cd /u03/app/oracle/backup
3.adl0905:/u03/app/oracle/backup> unzip p6880880_102000_SOLARIS64.zip
4.adl0905:/u03/app/oracle/backup> ls -ltr
drwxr-xr-x 7 oracle dba
1024 Nov 3 18:21 OPatch
-rw-r--r-- 1 oracle dba
28674793 Dec 17 14:49 p6880880_102000_SOLARIS64.zip
5.adl0905:/u03/app/oracle/backup> . oraenv
ORACLE_SID = [MITXHLPD] ? BSMXWBPD
6.adl0905:/u03/app/oracle/backup> cd $ORACLE_HOME
7.adl0905:/u03/app/oracle/product/10.2.0> ./OPatch/opatch version
It will show you current OPatch version.
8.adl0905:/u03/app/oracle/product/10.2.0> cp -r /u03/app/oracle/backup/OPatch .
9.adl0905:/u03/app/oracle/product/10.2.0> ./OPatch/opatch version
It will show your updated OPatch version.
10.OPatch applied successfully. Now, continue with patching.
PATCHING
SECTION-I :Oracle Database Patch Set 10.2.0.4.4
1.adl0905:/home/oracle> cd /u03/app/oracle/backup
2.adl0905:/u03/app/oracle/backup> unzip p9352164_10204_Solaris-64.zip
3.adl0905:/u03/app/oracle/backup> cd 9352164
4.One-off Patch Conflict Detection and Resolution:
opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir ./9352164 [not sure about this step.]
5.adl0905:/u03/app/oracle/backup/9352164>./$ORACLE_HOME/OPatch/opatch apply
6.adl0905:/u03/app/oracle/backup/9352164>sh psu_root.sh [involve UNIX Team to execute this script with root
privilege]
7.Loading Modified SQL Files into the Database:
adl0905:/u03/app/oracle/backup/9352164>cd $ORACLE_HOME/rdbms/admin
adl0905:/u03/app/oracle/product/10.2.0/rdbms/admin>. oraenv
ORACLE_SID = [MITXHLPD] ? BSMXWBPD
adl0905:/u03/app/oracle/product/10.2.0/rdbms/admin> sqlplus '/as sysdba'
SQL>startup
SQL>@catbundle.sql psu apply
SQL>@utlrp.sql
SQL>exit
adl0905:/u03/app/oracle/product/10.2.0/rdbms/admin>cd $ORACLE_HOME/cfgtoollogs/catbundle
Check the following log files for errors.
catbundle_PSU_BPIXWBPD_APPLY_<TIMESTAMP>.log
catbundle_PSU_BPIXWBPD_GENERATE_<TIMESTAMP>.log
Follow the same steps for BPIXWBPD.
8.Recompiling Views in the Database:
Run the pre-check script, which reports the maximum number of views and objects that may be recompiled:
adl0905:/u03/app/oracle/product/10.2.0/rdbms/admin> cd $ORACLE_HOME/cpu/view_recompile
adl0905:/u03/app/oracle/product/10.2.0/cpu/view_recompile>. oraenv
ORACLE_SID = [MITXHLPD] ? BSMXWBPD
adl0905:/u03/app/oracle/product/10.2.0/cpu/view_recompile> sqlplus '/as sysdba'
SQL>@recompile_precheck_jan2008cpu.sql --It will help you to determine whether view recompilation should be
done now or later.
SQL>shutdown immediate
SQL>startup upgrade
SQL>@view_recompile_jan2008cpu.sql --view recompilation script
SQL>shutdown immediate
SQL>startup
SQL>exit
If you want to check whether view recompilation has already been performed for the database,
execute the following statement:
SELECT * FROM registry$history where ID = '6452863';
If the view recompilation has been performed, this statement returns one or more rows. If the view
recompilation has not been performed, this statement returns no rows.