Upgrade DB 9206 10203
Upgrade DB 9206 10203
Upgrade DB 9206 10203
Kishore
http:/www.appsdba.info
System Overview
Version 11.5.10.2
Oracle Applications Vision Instance
OS: Redhat Linux update 5
Type: Single Node instance
Applications OS User: applmgrupd
Installed directory: /d01/oracle/singlenode
Database 9i OS User : oracleupd
9i Database Home = /d01/oracle/singlenode/testdb/9.2.0
10g Database Home = /d01/oracle/singlenode/testdb/10.2.0
Upgrade Steps
a> Use dbua to upgrade the db from 9.2.0.6 to 10.2.0.3
Note - If your Developer patch set level is earlier then patch set 17, you should apply the latest
certified patch. Check - OracleMetalink Note:125767.1
Navigate to help -> About Oracle Applications in any forms session window.
Look for: Oracle Forms Version : 6.0.8.XX.X
1> Apply patch 5478710 - TXK (FND & ADX) AUTOCONFIG ROLLUP PATCH O
(December 2006)
su - applmgrupd
cd patch_top
unzip 5478710
cd 5478710
cd fnd/patch/115/bin
./txkprepatchcheck.pl -script=ValidateRollup -
outfile=$APPLTMP/txkValidateRollup.html -appspass=apps
adpatch
Please enter the name of your AutoPatch driver file: u5478710.drv
# Takes 20 minutes
su - applmgrupd
$ADPERLPRG $AD_TOP/bin/admkappsutil.pl
su - applmgrupd
cd patch_top
unzip 4676589
cd 4676589
adpatch
u4676589.drv
su - applmgrupd
cd patch_top
unzip p4653225_11i_LINUX.zip
cd 4653225
-- Apply the patch in non interactive mode
adpatch workers=4
defaultsfile=$APPL_TOP/admin/$TWO_TASK/adalldefaults.txt
logfile=4653225.log patchtop=$PATCH_TOP/4653225 driver=u4653225.drv
# connect as root
xhost localhost
# connect as oracleupd
su - oracleupd
export ORACLE_HOME=/d01/oracle/singlenode/testdb/10.2.0
export DISPLAY=localhost:0.0
Home Details:
Name: OraDB10g_home
Path: /d01/oracle/singlenode/testdb/10.2.0
Author – A.Kishore
http:/www.appsdba.info
Author – A.Kishore
http:/www.appsdba.info
Author – A.Kishore
http:/www.appsdba.info
As root user
/d01/oracle/singlenode/testdb/10.2.0/root.sh
Author – A.Kishore
http:/www.appsdba.info
su - oracleupd
export ORACLE_HOME=/d01/oracle/singlenode/testdb/10.2.0
export ORACLE_SID=TEST
Click on Install
Author – A.Kishore
http:/www.appsdba.info
Author – A.Kishore
http:/www.appsdba.info
Run root.sh
/d01/oracle/singlenode/testdb/10.2.0/root.sh
Exit Installation
export ORACLE_HOME=/d01/oracle/singlenode/testdb/10.2.0
perl $ORACLE_HOME/nls/data/old/cr9idata.pl
Author – A.Kishore
http:/www.appsdba.info
$ cd $ORACLE_HOME/nls/data/9idata
$ cp $ORACLE_HOME/nls/data/*.nlb .
$ cp $ORACLE_HOME/nls/data/old/*.nlb .
cd $ORACLE_HOME/nls/data/9idata
ls – check whether files exist
export ORACLE_HOME=/d01/oracle/singlenode/testdb/10.2.0
export ORA_NLS10=$ORACLE_HOME/nls/data/9idata
cd $ORACLE_HOME/bin
./netca
Author – A.Kishore
http:/www.appsdba.info
Author – A.Kishore
http:/www.appsdba.info
# connect to 9i database
cp /d01/oracle/singlenode/testdb/10.2.0/rdbms/admin/utlu102i.sql /tmp
cd /tmp
sqlplus "/as sysdba"
spool info.log
@utlu102i.sql
spool off
cp /d01/oracle/singlenode/testdb/9.2.0/initTEST.ora
/d01/oracle/singlenode/testdb/10.2.0/initTEST.ora
# Shutdown all the middle tier process on application tier, if they are started
# At this point in time all the services are down only 10 listener is up
#optimizer_max_permutations
#row_locking
#undo_suppress_errors
#max_enabled_roles
#enqueue_resources
#sql_trace
streams_pool_size=50331648
large_pool_size = 8388608
session_max_open_files=20
optimizer_features_enable=10.2.0.3
compatible=10.2.0
Author – A.Kishore
http:/www.appsdba.info
Follow Metalink note 216205.1 - Database Initialization Parameters for Oracle Applications 11i.
export ORACLE_SID=TEST
PATH=$PATH:$ORACLE_HOME/bin
cd $ORACLE_HOME/bin
dbua &
TEST:/d01/oracle/singlenode/testdb/9.2.0:N
Author – A.Kishore
http:/www.appsdba.info
Author – A.Kishore
http:/www.appsdba.info
Author – A.Kishore
http:/www.appsdba.info
Author – A.Kishore
http:/www.appsdba.info
Author – A.Kishore
http:/www.appsdba.info
Author – A.Kishore
http:/www.appsdba.info
Author – A.Kishore
http:/www.appsdba.info
a) Copy the .env file present in 9i Oracle Home to 10g oracle home.
cp /d01/oracle/singlenode/testdb/9.2.0/TEST_linux1.env
/d01/oracle/singlenode/testdb/10.2.0
cd /d01/oracle/singlenode/testdb/10.2.0
@/d01/oracle/singlenode/testdb/10.2.0/rdbms/admin/utlrp.sql
perl /d01/oracle/singlenode/testappl/ad/11.5.0/bin/admkappsutil.pl
cp /d01/oracle/singlenode/testappl/admin/out/appsutil.zip .
unzip appsutil.zip
cd $ORACLE_HOME/appsutil/bin
perl adbldxml.pl tier=db appsuser=apps appspasswd=apps
cd $ORACLE_HOME/appsutil/bin
./adconfig.sh
contextfile=/d01/oracle/singlenode/testdb/10.2.0/appsutil/TEST_linux1.x
ml appspass=apps
Solution:
adctrl
Enter 1
Control
Worker Code Context Filename Status
------ -------- ---------------------- -------------------- -------
-------
1 Run AutoPatch R115 Wait
2 Run AutoPatch R115 afcmgr.odf FAILED
3 Run AutoPatch R115 Wait
4 Run AutoPatch R115 Wait
AD Worker error:
The following ORACLE error:
adctrl
2. Tell worker to restart a failed job
cd $ORACLE_HOME/appsutil/bin
perl adbldxml.pl tier=db appsuser=apps appspasswd=apps
-----------------------------------
Error
--------------------------------------
Enter Hostname of Database server: linux1.com
Could not Connect to the Database with the above parameters, Please
answer the Questions below
cd $ORACLE_HOME/appsutil/bin
./adconfig.sh
contextfile=/d01/oracle/visdb/10.2.0/appsutil/VIS_linux1.xml
appspass=apps
got error -
ERROR:
ORA-12705: Cannot access NLS data files or invalid environment
specified
cd /d01/oracle/visdb/10.2.0/nls/data/9idata/
[oracle@linux1 9idata]$ ls
[oracle@linux1 9idata]$ perl $ORACLE_HOME/nls/data/old/cr9idata.pl
Directory /d01/oracle/visdb/10.2.0/nls/data/9idata already exist.
Overwriting...
Copying files to /d01/oracle/visdb/10.2.0/nls/data/9idata...
Copy finished.
Please reset environment variable ORA_NLS10 to
/d01/oracle/visdb/10.2.0/nls/data/9idata!
[oracle@linux1 9idata]$ cd /d01/oracle/visdb/10.2.0/nls/data/9idata/
[oracle@linux1 9idata]$ ls
lx00001.nlb lx1000c.nlb lx1004e6.nlb lx20052.nlb lx200e6.nlb
lx20348.nlb lx30024.nlb
export ORA_NLS10=/d01/oracle/visdb/10.2.0/nls/data/9idata
cd $ORACLE_HOME/appsutil/bin
./adconfig.sh
contextfile=/d01/oracle/visdb/10.2.0/appsutil/VIS_linux1.xml
appspass=apps
Appendix A