Sie sind auf Seite 1von 20

Upgrade Database from 11.2.0.1 to 11.2.0.

3
(IDM Dev Database)
1. Take Full backup

2. Install 11.2.0.3 into separate ORACLE_HOME

Author Ulaganathan Muthiah

Upgrade Database from 11.2.0.1 to 11.2.0.3


(IDM Dev Database)

Author Ulaganathan Muthiah

Upgrade Database from 11.2.0.1 to 11.2.0.3


(IDM Dev Database)

Author Ulaganathan Muthiah

Upgrade Database from 11.2.0.1 to 11.2.0.3


(IDM Dev Database)

Author Ulaganathan Muthiah

Upgrade Database from 11.2.0.1 to 11.2.0.3


(IDM Dev Database)

Author Ulaganathan Muthiah

Upgrade Database from 11.2.0.1 to 11.2.0.3


(IDM Dev Database)

Author Ulaganathan Muthiah

Upgrade Database from 11.2.0.1 to 11.2.0.3


(IDM Dev Database)

Author Ulaganathan Muthiah

Upgrade Database from 11.2.0.1 to 11.2.0.3


(IDM Dev Database)

Author Ulaganathan Muthiah

Upgrade Database from 11.2.0.1 to 11.2.0.3


(IDM Dev Database)

Author Ulaganathan Muthiah

Upgrade Database from 11.2.0.1 to 11.2.0.3


(IDM Dev Database)

10

Author Ulaganathan Muthiah

Upgrade Database from 11.2.0.1 to 11.2.0.3


(IDM Dev Database)

11

Author Ulaganathan Muthiah

Upgrade Database from 11.2.0.1 to 11.2.0.3


(IDM Dev Database)

3. Run Pre-upgrade scripts


After Installing 11.2.0.3 , Go to 11.2.0.1 database and run :
Connect as sys
SQL> spool pre_upgrade.log
SQL> @ORACLE_HOME/rdbms/admin/utlu112i.sql
SQL> spool off

To check Data Dictionary


Connect as sys
SQL> EXECUTE dbms_stats.gather_dictionary_stats;

To Fix invalid Object in the database :


connect as sys
SQL> @$ORACLE_HOME/rdbms/admin/utlrp.sql

12

Author Ulaganathan Muthiah

Upgrade Database from 11.2.0.1 to 11.2.0.3


(IDM Dev Database)

4. Create pfile from spfile

13

Author Ulaganathan Muthiah

Upgrade Database from 11.2.0.1 to 11.2.0.3


(IDM Dev Database)

5. Configure the 11.2.0.1 database environment for 11.2.0.3 Upgrade


Copy the following Files to New Home 11.2.0.3 :
Spfile/Pfile/init.ora
orapwd
tnsname.ora
Listener.ora
OC4J Home (ORACLE_HOME/oc4j/j2ee/OC4J_DBConsole_) Only if you have enterprise manager

14

Author Ulaganathan Muthiah

Upgrade Database from 11.2.0.1 to 11.2.0.3


(IDM Dev Database)

6. Installation will start, wait till its completion.


Set The environment to 11.2.0.3 by editing .bash_profile
export ORACLE_HOME=/data/apps/oracle/app/product/11.2.0/dbhome_1/dbs
export ORACLE_SID=exuat
Note : Replace the Path , LD_Library_Path to new Home .
7. Edit adudit,diag destinatiuon as per new home in the init file
8. Upgrade 11.2.0.1 database to 11.2.0.2
sqlplus / as sysdba
spool upgrade.log
startup upgrade
set echo on
@?/rdbms/admin/catupgrd.sql;
spool off
shutdown immediate

15

Author Ulaganathan Muthiah

Upgrade Database from 11.2.0.1 to 11.2.0.3


(IDM Dev Database)

16

Author Ulaganathan Muthiah

Upgrade Database from 11.2.0.1 to 11.2.0.3


(IDM Dev Database)

9. Run Post upgrade script


sqlplus / as sysdba
@/opt/app/oracle/product/11.2.0.2/rdbms/admin/catuppst.sql;
select comp_name,version,status from dba_registry;
select owner,count(*) from dba_objects where status != VALID group by owner;

17

Author Ulaganathan Muthiah

Upgrade Database from 11.2.0.1 to 11.2.0.3


(IDM Dev Database)

@/opt/app/oracle/product/11.2.0.2/rdbms/admin/utlrp.sql;

10. Change the compatibility parameter


Change the compatible parameter and restart the database.
alter system set compatible=11.2.0.3.0' scope=spfile;
shutdown immediate;
startup;

18

Author Ulaganathan Muthiah

Upgrade Database from 11.2.0.1 to 11.2.0.3


(IDM Dev Database)

11. Make Sure the listener has been started from the new home not the old one .

19

Author Ulaganathan Muthiah

Upgrade Database from 11.2.0.1 to 11.2.0.3


(IDM Dev Database)

20

Author Ulaganathan Muthiah

Das könnte Ihnen auch gefallen