0% found this document useful (0 votes)
39 views

Database - 11g DB Patches

The document describes applying several patches to an Oracle database. It runs OPatch to update to a newer version. Then it applies individual patches 20760997, 21068553, and 14373728 which involve running OPatch, running SQL scripts, and upgrading the catalog. It rolls back some previous patches before applying the new ones.

Uploaded by

Asif Ghazi
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views

Database - 11g DB Patches

The document describes applying several patches to an Oracle database. It runs OPatch to update to a newer version. Then it applies individual patches 20760997, 21068553, and 14373728 which involve running OPatch, running SQL scripts, and upgrading the catalog. It rolls back some previous patches before applying the new ones.

Uploaded by

Asif Ghazi
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

. /erp/u02/oracle/PROD/db/tech_st/11.2.3/NEWTEST_erptest.

env
export PATH=$ORACLE_HOME/OPatch:$PATH
opatch version
Invoking OPatch 11.2.0.1.7

OPatch Version: 11.2.0.1.7

cd $ORACLE_HOME
mv OPatch/ OPatch_ORG

cd /erp/patches/DB/
unzip 01_p6880880_112000_Linux-x86-64.zip
mv OPatch $ORACLE_HOME/

opatch version
OPatch Version: 11.2.0.3.21

OPatch succeeded.

Patch 20760997 - Database Patch Set Update 11.2.0.3.15 (Includes CPUJul2015)

unzip 02_p20760997_112030_Linux-x86-64.zip
cd 20760997
opatch prereq CheckConflictAgainstOHWithDetail -ph ./

opatch rollback -id 12834800 14013094


opatch rollback -id 12942119 12942119
opatch rollback -id 13004894 13004894

opatch prereq CheckConflictAgainstOHWithDetail -ph ./

opatch apply

cd $ORACLE_HOME/rdbms/admin
sqlplus "/as sysdba"
startup
@catbundle.sql psu apply
quit

cd $ORACLE_HOME/rdbms/admin
sqlplus "/as sysdba"
@utlrp.sql
shutdown immediate

unzip p13004894_112037_Linux-x86-64.zip
cd 13004894/
opatch apply

unzip p12942119_112038_Linux-x86-64.zip
cd 12942119/
opatch apply

unzip p12834800_1120315_Linux-x86-64.zip
cd 12834800/
opatch apply

/*
USD_p14013094_1120315_Generic.zip
cd 14013094/
opatch apply
sqlplus "/as sysdba"
startup
@?/sqlpatch/14013094/postinstall.sql
shutdown immediate
*/

Patch 21068553 - Oracle JavaVM Component 11.2.0.3.4 Database PSU (Jul2015)

unzip 03_p21068553_112030_Linux-x86-64.zip
cd 21068553
opatch prereq CheckConflictAgainstOHWithDetail -ph ./
opatch apply

cd $ORACLE_HOME/sqlpatch/21068553
sqlplus "/as sysdba"
startup upgrade
@postinstall.sql
shutdown immediate
startup
quit

cd $ORACLE_HOME/rdbms/admin
sqlplus "/as sysdba"
@utlrp.sql
shutdown immediate
quit

unzip p14373728_1120315_Linux-x86-64.zip
cd 14373728/
opatch prereq CheckConflictAgainstOHWithDetail -ph ./
opatch apply

sqlplus "/as sysdba"


startup
@?/sqlpatch/14373728/postinstall.sql
select dbms_stats.get_stats_history_retention from dual;
select dbms_stats.get_stats_history_availability from dual;
select min(SAVTIME), max(SAVTIME) from WRI$_OPTSTAT_HISTHEAD_HISTORY;
exec dbms_stats.alter_stats_history_retention(30);
shutdown immediate
quit

$ rman catalog username/password@alias


RMAN> UPGRADE CATALOG;

You might also like