Professional Documents
Culture Documents
7) in Oracle
Application 11i
Step 2: Stop the Oracle Application services , and Shutdown the Database and Db Listener.
cd /t01/clone/others/patches/upgrd_db11g/database_11g/database$
$ Vi oraInst.loc
Inventory_loc = /B01/oracle/test11gdb/oraInventory
Inst_group = dba
Install ** Software Only **** …… Finish … The Oracle 11g base verion 11.1.0.6 will installed
Step 5: Install the Oracle Database 11g Examples ( formerly Companion )
$ cd /t01/clone/others/patches/upgrd_db11g/11g_Example_cd_companion/examples
$ ./runInstaller
**** next … next … some of the products like /ctx/sample directory will create. ---- finsh
------------------------------------------------------------------------------------------------------------------------------
$ cd /t01/clone/others/patches/upgrd_db11g/11gPatchset/Disk1
--------- next … next …. Next… the patchset will installed i.e 11.1.0.7
$ORACLE_HOME/nl/data/old/cr9idata.pl -----created
$Oracle_home/nls/data/9idata directory.
Step 8 . Apply additional 11.1.0.7 RDBMS Patches. As per the 452783.1 Metalink ID
9743057.
Opatch utility for apply Database patches.
export ORACLE_HOME=/B01/oracle/test11gdb/11.1.0/product/11.1.0/db_1
export ORACLE_SID=TESTNW
export TNS_ADMIN=/B01/oracle/test11gdb/11.1.0/product/11.1.0/db_1/network/admin/
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/bin/OPatch:$PATH
export ORACLE_BASE=/B01/oracle/test11gdb/11.1.0
bash-3.00$
opatch rollback -id <Patch Number> -- roll back the applied patch
Note:
For Oracle Universal Installer version 10.2.0.2.0 and above, you will have the following
scripts in Oracle home to recover from Oracle home inventory corruption:
/B01/oracle/test11gdb/11.1.0/product/11.1.0/db_1/oui/bin
And run $sh attachHome.sh -------- for new Oracle_home add in New inventory
===================================================================================
Step 9 : For Database Upgradation – Run Pre –Upgrade tool Process. Run utlu111i.sql from Old _
Oracle Home (10g)
/tmp Directory.
b). Stop all the services/ Tns listener / any other in the Instance.
Sql> @/tmp/utilu11i.sql
$./netca
Note : ** Give As per the OLD Listener … Same Lisener name : TESTNW … Same Port : 1571
Source the New Database Home . and SID ,Path … New Listener should be up.
$ cd ORACLE_HOME/bin
$./dbua
chose … Database Don’t Move.
Next… next… password : DBSNMP..SYSMAN -> pitti ……………….. FINISH.
------------- OR ----------------
SQL> SHUTDOWN
SQL> @?/rdbms/admin/catupgrd.sql
SQL> SPOOL OFF
SQL> STARTUP