You are on page 1of 3

steps for installing oracle and applying patch

1.set home for installing oracle.


2.run script runinstaller using ./runinstaller command.( scripts are present in
appora/app/oracle/stage/10204/databse)
3.change oracle_home in window..click next
4.after completion of oracle installation create env variable.
5.if database already exits we have to upgrade your database by applying a patc
h
Preparing for the upgrade to 10.2.0.4
------------------------------------------------------------------------
1.close all present process.(listener,emctl,database)
shutdown immediate
take backup of all files.save your home locations.
-----------------------------------------------------------------
2.Check which TIMEZONE version file you are currently using.
SQL> select version from v$timezone_file;
If this gives 4 then you may simply proceed with the upgrade even if you have TZ
data.
If this gives higher then 4, look at the meta link note: Note 553812.1
If this gives lower then 4, perform the following steps:
Download utltzpv4.sql and run it.
----------------------------------------------------------------------
3.Download Oracle Patchset 10.2.0.4 (6810189)
download patch from oracle products.
step1:
Go to http://metalink.oracle.com and click Login to MetaLink. Enter your O
racle MetaLink username
and password
step2:Select Patch from the menu and search for the patch 6810189
step3:Click Download
step4:Enter the following command to log into the database workstation as the or
acle user:
su - oracle
Step5: Save the patch to the $ORACLE_HOME directory.
----------------------------------------------------------------------
Installing the OPatch
Step 1 Enter the following command to log into the database workstation as the o
racle user:
su - oracle
Step 2 Enter the following commands to unzip p4898608_10203_GENERIC.zip into you
r Oracle home
directory:
cd $ORACLE_HOME
unzip p4898608_10203_GENERIC.zip
./runInstaller
step3:At the prompt asking if you want to replace all files, choose Replace All.
step4:To verify that you have the Opatch utility 10.2.0.4 installed, enter the f
ollowing command as the oracle
user:
$ORACLE_HOME/OPatch/opatch version
--------------------------------------------------------------------------------
----
login as root
# which dbhome
/usr/local/bin/dbhome
/*
this shows the location of dbhome, oraenv and coraenv files
rename them for 10.2.0.1 as the root.sh create new ones for
10.2.0.4
*/
# cd /usr/local/bin/
# mv dbhome dbhome_10201
# mv oraenv oraenv_10201
# mv coraenv coraenv_10201
/* Now execute the script suggested by the installer. */
# /u01/apps/oracle/product/10.2.0/db_1/root.sh
Running Oracle10 root.sh script...
When root.sh finishes successfully come back to installer and press ok.
Press exit and your ORACLE_HOME is patched with 10.2.0.4 patchset.
All your db's working under this ORACLE_HOME will become unusable unless
you upgrade your database to 10.2.04 as well.
--------------------------------------------------------------------------------
---------------------
cd $ORACLE_HOME/rdbms/admin
sqlplus / as sysdba
Upgrade the database from 10.2.0.1 to 10.2.0.4
2.startup upgrade
spool sari.log (spool all invalid objects)
SQL> @utlu102i.sql
The output from utlu102i.sql shows that every thing is fine, no changes are requ
ired and the database is ready for upgrade.
Lets start the upgrade process.
spool sar2.log
SQL> @catupgrd.sql
When the upgrade script catupgrd.sql finishes shutdown the database and open the
spool of the upgrade process and try to
find out if any thing failed.
If you see something failed try to fix it and re-run the upgrade process.
--------------------------------------------------------------------------------
----
The upgrade process may leave many objects invalid in the database.
Perform a normal startup and run the utlrp.sql script to recompile any invalid o
bjects.
sqlplus / as sysdba
startup
SQL> spool recompile.log
SQL> @utlrp.sql
5.after upgrading database update oracle_home in lsnrctl.ora and reload

You might also like