11
Oracle 10g Upgradation          NAME : SURESH.V PLATFORM : ORACLE ENTERPRISE LINUX 5.x 64bit VERSION : 10.2.0.1.0 to 10.2.0.5.0 DATE : 02.07.2010 1 ORAFACT ORACLE 10G ORACLE 10G UPGRADATION UPGRADATION 

10g_Upgradation

Embed Size (px)

DESCRIPTION

Upgradation From oracle database 10g to database 11g

Citation preview

Page 1: 10g_Upgradation

Oracle  10g Upgradation                    

NAME : SURESH.VPLATFORM : ORACLE ENTERPRISE LINUX 5.x 64bitVERSION : 10.2.0.1.0 to 10.2.0.5.0DATE : 02.07.2010

1 ORAFACT

ORACLE 10G ORACLE 10G UPGRADATION UPGRADATION 

Page 2: 10g_Upgradation

Oracle  10g Upgradation                    

Table of Contents1. Oracle 10g Upgradation.........................................................................................................................3

1.1 Server Configuration.......................................................................................................................31.2 Oracle Software Upgradation..........................................................................................................3

1.21 Oracle Universal Installer.........................................................................................................41.22 Running script in root user.......................................................................................................7

1.3 Oracle Database Upgradation..........................................................................................................81.31 Setting Environment Variable...................................................................................................81.32 Checking Components Version.................................................................................................81.33 Upgrading Database Components............................................................................................91.34 Checking INVALID Objects...................................................................................................111.35 Recompiling INVALID Objects.............................................................................................11

2 ORAFACT

Page 3: 10g_Upgradation

Oracle  10g Upgradation                    

1. Oracle 10g Upgradation

1.1 Server Configuration

Operating System : Oracle Enterprise Linux 5.5 x86_64RAM : 8GBHard Disk : 1TBSwap : 10GBServer Name : of80.orafact.comIP Address : 192.168.1.80

1.2 Oracle Software Upgradation

Software downloaded from http://connect.orafact.com(p8202632_10205_Linux-x86-64.zip)[root@of80 ~]# cd /stage/suresh/10.2.0.5/

[root@of80 ~]# unzip p8202632_10205_Linux-x86-64.zip

Unzip the zip file, Disk1 will be extracted.

Disk1 p8202632_10205_Linux-x86-64.zip README.htm

[suresh@of80 10.2.0.5]$ cd Disk1install patch_note.htm response runInstaller stage

Run the runInstaller to start the installation.

[suresh@of80 Disk1]$ ./runInstaller Starting Oracle Universal Installer...Checking installer requirements...C

Checking operating system version: must be redhat-3, SuSE-9, SuSE-10, redhat-4, redhat-5, redhat-6, UnitedLinux-1.0, asianux-1, asianux-2, asianux-3, enterprise-4, enterprise-5 or SuSE-11

...... Passed.

All installer requirements met.A

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2010-07-02_02-57-09PM. Please wait ...

[suresh@of80 Disk1]$ Oracle Universal Installer, Version 10.2.0.5.0 ProductionCopyright (C) 1999, 2010, Oracle. All rights reserved.

3 ORAFACT

Page 4: 10g_Upgradation

Oracle  10g Upgradation                    

1.21 Oracle Universal Installer

Welcome Screen Click Next

Specify Home Directory and Click Next

4 ORAFACT

Page 5: 10g_Upgradation

Oracle  10g Upgradation                    

Specify Email ID for Product and Initiate Configuration Manager and Click Next

Click Install to Install Patch set

5 ORAFACT

Page 6: 10g_Upgradation

Oracle  10g Upgradation                    

Installation Ongoing........

Oracle Configuration Manager will be Configured.

6 ORAFACT

Page 7: 10g_Upgradation

Oracle  10g Upgradation                    

Run the Script as root user and Click OK then Click Exit

1.22 Running script in root user

[root@of80 ~]# /d01/oracle/product/10.2.0/db_1/root.shRunning Oracle 10g root.sh script...R

The following environment variables are set as: ORACLE_OWNER= suresh ORACLE_HOME= /d01/oracle/product/10.2.0/db_1Enter the full pathname of the local bin directory: [/usr/local/bin]: The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y Copying dbhome to /usr/local/bin ...The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y Copying oraenv to /usr/local/bin ...The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y Copying coraenv to /usr/local/bin ...

Entries will be added to the /etc/oratab file as needed byDatabase Configuration Assistant when a database is createdFinished running generic part of root.sh script.Now product-specific root actions will be performed.

Software Upgradation Completed Successfully.

7 ORAFACT

Page 8: 10g_Upgradation

Oracle  10g Upgradation                    

1.3 Oracle Database Upgradation

1.31 Setting Environment Variable

Set environment variable to startup the database.

[suresh@of80 ~]$ . moon.env [suresh@of80 ~]$ sqlplus '/as sysdba's

SQL*Plus: Release 10.2.0.5.0 - Production on Fri Jul 2 15:05:35 2010

Copyright (c) 1982, 2010, Oracle. All Rights Reserved.C

Connected to an idle instance.C

Startup the database in upgrade phase.

SQL> startup upgrade ORACLE instance started.O

Total System Global Area 2432696320 bytesFixed Size 2098208 bytesVariable Size 520096736 bytesDatabase Buffers 1895825408 bytesRedo Buffers 14675968 bytes

Database mounted.Database opened.

1.32 Checking Components Version

Check the database components version.

SQL> select COMP_NAME,VERSION,STATUS from dba_registry;s

COMP_NAME VERSION STATUS--------------------------------- -------------- ----------------Oracle Database Catalog Views 10.2.0.1.0 VALIDOracle Database Packages and Types 10.2.0.1.0 VALIDOracle Workspace Manager 10.2.0.1.0 VALIDJServer JAVA Virtual Machine 10.2.0.1.0 VALIDOracle XDK 10.2.0.1.0 VALIDOracle Database Java Packages 10.2.0.1.0 VALIDOracle Expression Filter 10.2.0.1.0 VALIDOracle Data Mining 10.2.0.1.0 VALID

8 ORAFACT

Page 9: 10g_Upgradation

Oracle  10g Upgradation                    

Oracle Text 10.2.0.1.0 VALIDOracle XML Database 10.2.0.1.0 VALIDOracle Rule Manager 10.2.0.1.0 VALIDOracle interMedia 10.2.0.1.0 VALIDOLAP Analytic Workspace 10.2.0.1.0 VALIDOracle OLAP API 10.2.0.1.0 VALIDOLAP Catalog 10.2.0.1.0 VALIDSpatial 10.2.0.1.0 VALIDOracle Enterprise Manager 10.2.0.1.0 VALID

1.33 Upgrading Database Components

To upgrade the database components run 'catupgrd.sql' script from $ORACLE_HOME/rdbms/admin

SQL> @$ORACLE_HOME/rdbms/admin/catupgrd.sql;******Grant succeeded.G

View created.V

Synonym created.S

Package body created.

PL/SQL procedure successfully completed.***************TIMESTAMP--------------------------------------------------------------------------------COMP_TIMESTAMP UPGRD_END 2010-07-02 15:26:52

Total Upgrade Time: 00:13:41DOC>#######################################################################DOC>#######################################################################DOC>DOC> The above PL/SQL lists the SERVER components in the upgradedDOC> database, along with their current version and status.DOC>DOC> Please review the status and version columns and look forDOC> any errors in the spool log file. If there are errors in the spoolDOC> file, or any components are not VALID or not the current version,DOC> consult the Oracle Database Upgrade Guide for troubleshootingDOC> recommendations.DOC>DOC> Next shutdown immediate, restart for normal operation, and thenDOC> run utlrp.sql to recompile any invalid application objects.

9 ORAFACT

Page 10: 10g_Upgradation

Oracle  10g Upgradation                    

DOC>DOC>#######################################################################DOC>#######################################################################

Verify the database components version after upgrade the database.

SQL> select COMP_NAME,VERSION,STATUS from dba_registry;s

COMP_NAME VERSION STATUS--------------------------------- -------------- ----------------Oracle Database Catalog Views 10.2.0.5.0 VALIDOracle Database Packages and Types 10.2.0.5.0 VALIDOracle Workspace Manager 10.2.0.5.0 VALIDJServer JAVA Virtual Machine 10.2.0.5.0 VALIDOracle XDK 10.2.0.5.0 VALIDOracle Database Java Packages 10.2.0.5.0 VALIDOracle Expression Filter 10.2.0.5.0 VALIDOracle Data Mining 10.2.0.5.0 VALIDOracle Text 10.2.0.5.0 VALIDOracle XML Database 10.2.0.5.0 VALIDOracle Rule Manager 10.2.0.5.0 VALIDOracle interMedia 10.2.0.5.0 VALIDOLAP Analytic Workspace 10.2.0.5.0 VALIDOracle OLAP API 10.2.0.5.0 VALIDOLAP Catalog 10.2.0.5.0 VALIDSpatial 10.2.0.5.0 VALIDOracle Enterprise Manager 10.2.0.5.0 VALID

Shutdown normally and startup the database in open phase.

SQL> shutdown immediateDatabase closed.Database dismounted.ORACLE instance shut down.

SQL> startupORACLE instance started.O

Total System Global Area 2432696320 bytesFixed Size 2098208 bytesVariable Size 553651168 bytesDatabase Buffers 1862270976 bytesRedo Buffers 14675968 bytesDatabase mounted.Database opened.

10 ORAFACT

Page 11: 10g_Upgradation

Oracle  10g Upgradation                    

1.34 Checking INVALID Objects

Check the database objects status. We have to recompile if INVALID.

SQL> select count(*) from dba_objects where status='INVALID';s

COUNT(*)---------- 362

There are 362 INVALID database objects available.

1.35 Recompiling INVALID Objects

To recompile those objects run the script 'utlrp.sql' from $ORACLE_HOME/rdbms/admin

SQL> @$ORACLE_HOME/rdbms/admin/utlrp.sql;

SQL> select count(*) from dba_objects where status='INVALID';ss

COUNT(*)---------- 0

There is no INVALID database objects.

The database upgradation completed successfully.

********************************** End of Document *********************************

11 ORAFACT