Está en la página 1de 11

 Oracle 10g Upgradation            

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 Upgradation            

Table of Contents
1. Oracle 10g Upgradation.........................................................................................................................3
1.1 Server Configuration.......................................................................................................................3
1.2 Oracle Software Upgradation..........................................................................................................3
1.21 Oracle Universal Installer.........................................................................................................4
1.22 Running script in root user.......................................................................................................7
1.3 Oracle Database Upgradation..........................................................................................................8
1.31 Setting Environment Variable...................................................................................................8
1.32 Checking Components Version.................................................................................................8
1.33 Upgrading Database Components............................................................................................9
1.34 Checking INVALID Objects...................................................................................................11
1.35 Recompiling INVALID Objects.............................................................................................11

2 ORAFACT
 Oracle 10g Upgradation            

1. Oracle 10g Upgradation

1.1 Server Configuration

Operating System : Oracle Enterprise Linux 5.5 x86_64


RAM : 8GB
Hard Disk : 1TB
Swap : 10GB
Server Name : of80.orafact.com
IP 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 Disk1


install 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 Production


Copyright (C) 1999, 2010, Oracle. All rights reserved.

3 ORAFACT
 Oracle 10g Upgradation            

1.21 Oracle Universal Installer

Welcome Screen Click Next

Specify Home Directory and Click Next

4 ORAFACT
 Oracle 10g Upgradation            

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

Click Install to Install Patch set

5 ORAFACT
 Oracle 10g Upgradation            

Installation Ongoing........

Oracle Configuration Manager will be Configured.

6 ORAFACT
 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.sh
Running 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_1
Enter 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 by


Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.

Software Upgradation Completed Successfully.

7 ORAFACT
 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 ~]$ ssqlplus '/as sysdba'

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 bytes


Fixed Size 2098208 bytes
Variable Size 520096736 bytes
Database Buffers 1895825408 bytes
Redo Buffers 14675968 bytes

Database mounted.
Database opened.

1.32 Checking Components Version


Check the database components version.

SQL> sselect COMP_NAME,VERSION,STATUS from dba_registry;

COMP_NAME VERSION STATUS


--------------------------------- -------------- ----------------
Oracle Database Catalog Views 10.2.0.1.0 VALID
Oracle Database Packages and Types 10.2.0.1.0 VALID
Oracle Workspace Manager 10.2.0.1.0 VALID
JServer JAVA Virtual Machine 10.2.0.1.0 VALID
Oracle XDK 10.2.0.1.0 VALID
Oracle Database Java Packages 10.2.0.1.0 VALID
Oracle Expression Filter 10.2.0.1.0 VALID
Oracle Data Mining 10.2.0.1.0 VALID

8 ORAFACT
 Oracle 10g Upgradation            

Oracle Text 10.2.0.1.0 VALID


Oracle XML Database 10.2.0.1.0 VALID
Oracle Rule Manager 10.2.0.1.0 VALID
Oracle interMedia 10.2.0.1.0 VALID
OLAP Analytic Workspace 10.2.0.1.0 VALID
Oracle OLAP API 10.2.0.1.0 VALID
OLAP Catalog 10.2.0.1.0 VALID
Spatial 10.2.0.1.0 VALID
Oracle 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:41


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

9 ORAFACT
 Oracle 10g Upgradation            

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

Verify the database components version after upgrade the database.

SQL> sselect COMP_NAME,VERSION,STATUS from dba_registry;

COMP_NAME VERSION STATUS


--------------------------------- -------------- ----------------
Oracle Database Catalog Views 10.2.0.5.0 VALID
Oracle Database Packages and Types 10.2.0.5.0 VALID
Oracle Workspace Manager 10.2.0.5.0 VALID
JServer JAVA Virtual Machine 10.2.0.5.0 VALID
Oracle XDK 10.2.0.5.0 VALID
Oracle Database Java Packages 10.2.0.5.0 VALID
Oracle Expression Filter 10.2.0.5.0 VALID
Oracle Data Mining 10.2.0.5.0 VALID
Oracle Text 10.2.0.5.0 VALID
Oracle XML Database 10.2.0.5.0 VALID
Oracle Rule Manager 10.2.0.5.0 VALID
Oracle interMedia 10.2.0.5.0 VALID
OLAP Analytic Workspace 10.2.0.5.0 VALID
Oracle OLAP API 10.2.0.5.0 VALID
OLAP Catalog 10.2.0.5.0 VALID
Spatial 10.2.0.5.0 VALID
Oracle Enterprise Manager 10.2.0.5.0 VALID

Shutdown normally and startup the database in open phase.

SQL> shutdown immediate


Database closed.
Database dismounted.
ORACLE instance shut down.

SQL> startup
ORACLE instance started.
O

Total System Global Area 2432696320 bytes


Fixed Size 2098208 bytes
Variable Size 553651168 bytes
Database Buffers 1862270976 bytes
Redo Buffers 14675968 bytes
Database mounted.
Database opened.

10 ORAFACT
 Oracle 10g Upgradation            

1.34 Checking INVALID Objects


Check the database objects status. We have to recompile if INVALID.
SQL> sselect count(*) from dba_objects where status='INVALID';

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> sselect count(*) from dba_objects where status='INVALID';

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

There is no INVALID database objects.

The database upgradation completed successfully.

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

11 ORAFACT

También podría gustarte