Professional Documents
Culture Documents
info
Upgrade database to 10g from 9i for Oracle Application 11.5.10.2 System Overview
Version 11.5.10.2 Oracle Applications Vision Instance OS: Redhat Linux 4 update 5 Type: Single Node instance Applications OS User: applmgrupd Installed directory: /d01/oracle/singlenode Database 9i OS User : oracleupd (same user for 9i and 10g) 9i Database Home = /d01/oracle/singlenode/testdb/9.2.0 10g Database Home = /d01/oracle/singlenode/testdb/10.2.0 Instance SID: TEST Host: linux1 Issues and solutions are covered at the end of this document.
Task To Upgrade database from 9.2.0.6 to 10.2.0.3 for Oracle Applications 11.5.10.2
Let us split this activity into 3 steps 1> Pre Upgrade 2> Upgrade 3> Post Upgrade Pre Upgrade Steps a> Apply the patches - 5478710, 4676589, 4653225 b> Create a new home for Oracle 10g c> Install Oracle Database 10g. (Software Only). d> Install the companion CD. e> Install 10.2.0.3 patch set f> Create nls/data/9idata directory g> Install 10g Listener Upgrade Steps a> Use manual steps or dbua to upgrade the db from 9.2.0.6 to 10.2.0.3. Manual upgrade is preferred in the industry Post Upgrade Steps a> On the application tier generate appsutil.zip file b> Copy the appsutil.zip file generated on application tier to the database tier inside 10g Oracle Home c> create a context file on database tier d> run autoconfig
5478710 - TXK (FND & ADX) AUTOCONFIG ROLLUP PATCH O (December 2006) 4676589 - ATG Roll up 4 4653225 - 11.5.10 INTEROP PATCH FOR 10GR2 Optional Step - If your Developer patch set level is earlier then patch set 17, you should apply the latest certified patch. Check - OracleMetalink Note:125767.1
To know the version Navigate to help -> About Oracle Applications in any forms session window. Look for: Oracle Forms Version : 6.0.8.XX.X 6.0.8.24.x -> patchset 15 6.0.8.25.x -> patchset 16 6.0.8.26.x -> patchset 17 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 adadmin defaultsfile=$APPL_TOP/admin/$TWO_TASK/adalldefaults1.txt logfile=adadmin.log menu_option=ENABLE_MAINT_MODE workers=4 export PATCH_TOP=/home/applmgr/patches Download the patches to /home/applmgr/patches and unzip them adpatch defaultsfile=$APPL_TOP/admin/$TWO_TASK/adalldefaults1.txt logfile=u5478710.log patchtop=$PATCH_TOP/5478710 driver=u5478710.drv workers=8 # Takes 20 minutes # After applying the patch su - applmgrupd $ADPERLPRG $AD_TOP/bin/admkappsutil.pl
3>
-- Takes longtime because compiles all the object (utlrp.sql) 10 minutes su - applmgrupd cd patch_top unzip p4653225_11i_LINUX.zip -- Apply the patch in non interactive mode export PATCH_TOP=/home/applmgr/patches adpatch defaultsfile=$APPL_TOP/admin/$TWO_TASK/adalldefaults1.txt logfile=u4653225.log patchtop=$PATCH_TOP/4653225 driver=u4653225.drv workers=8
b> Create a new home for Oracle 10g su oracleupd mkdir p /d01/oracle/singlenode/testdb/10.2.0 c> Install Oracle Database 10g. (Software Only). # To enable graphics for oracleupd user su - root vi /etc/X11/gdm/gdm.conf DisallowTCP=false init 6 # 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 Make the below changes in sysctl.conf vi /etc/sysctl.conf
Name and Path like in database installation Name: OraDB10g_home Path: /d01/oracle/singlenode/testdb/10.2.0 Click on Install
Note:371885.1 Ora-12705: Cannot Access Nls Data Files Or Invalid Environment Specified Ora-127
export ORA_NLS10=$ORACLE_HOME/nls/data/9idata g) Install 10g Listener a. Stop 9i listener and create 10g listener su - oracleupd lsnrctl stop TEST export ORACLE_HOME=/d01/oracle/singlenode/testdb/10.2.0 export ORA_NLS10=$ORACLE_HOME/nls/data/9idata cd $ORACLE_HOME/bin ./netca
cd $ORACLE_HOME cp -R /d01/oracle/singlenode/visdb/9.2.0/admin/ .
# Make the below changes in initTEST.ora #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
# Shutdown all the middle tier process on application tier, if they are started # Shutdown the 9i listener and 9i database. # Please do take a backup of database before running manual update or dbua # At this point in time all the services are down only 10 listener is up
g) Once the context file is created on db tier, run autoconfig. cd $ORACLE_HOME/appsutil/bin ./adconfig.sh contextfile=/d01/oracle/singlenode/testdb/10.2.0/appsutil/TEST_linux1.x ml appspass=apps AutoConfig completed successfully. The log file for this session is located at: /d01/oracle/singlenode/testdb/10.2.0/appsutil/log/TEST_linux1/12130604/ adconfig.log See problems and solutions at the end
Stop the application and database and take a cold backup -- Database / application - backup -- su - oracle cd /d01/oracle/singlenode nohup tar -cvzf /d01/oracle/singlenode/visdb_10203.tar.gz visdb & nohup tar -cvzf /d01/oracle/singlenode/visdata_10203.tar.gz visdata & -- su - applmgr cd /d01/oracle/singlenode nohup tar -cvzf /d01/oracle/singlenode/visora.tar.gz visora & nohup tar -cvzf /d01/oracle/singlenode/viscomn.tar.gz viscomn & nohup tar -cvzf /d01/oracle/singlenode/visappl.tar.gz visappl & -- start the application adadmin menu_option=DISABLE_MAINT_MODE workers=16 defaultsfile=$APPL_TOP/admin/$TWO_TASK/adalldefaults.txt logfile=adadmin_DISABLE_MAINT_MODE.log cd $COMMON_TOP/admin/scripts/VIS_linux1 sh adstrtal.sh apps/apps
ATTENTION: All workers either have failed or are waiting: FAILED: file afcmgr.odf Solution: adctrl Enter 1 Worker -----------1 2 3 4 Control Code -------Run Run Run Run Context ---------------------AutoPatch AutoPatch AutoPatch AutoPatch R115 R115 R115 R115 Filename -------------------afcmgr.odf Status ------Wait FAILED Wait Wait on worker 2.
Go the below directory cd $APPL_TOP/admin/VIS/log vi adwork002.log Found the below problem. CREATE INDEX APPLSYS.FND_CONCURRENT_REQUESTS_N10 ON APPLSYS.FND_CONCURRENT_REQUESTS (CD_ID) LOGGING PCTFREE 10 INITRANS 11 MAXTRANS 255 COMPUTE STATISTICS TABLESPACE APPS_TS_TX_IDX AD Worker error: The following ORACLE error: ORA-00054: resource busy and acquire with NOWAIT specified Ran the below script as system user select s.sid SID, s.serial# SRL, s.username userName, s.osuser, ob1.name Table_name, decode(loc.lmode,1,'NULL', 2,'RowShare', 3,'RowExcl', 4,'Share', 5,'ShareRowExcl', 6,'Exclusive','None') lockmode, nvl(s.terminal,s.machine) terminal, decode(s.lockwait,null,'NO','YES') Wstat from v$session s, v$lock loc, sys.obj$ ob1 where s.sid = loc.sid and loc.id1 = ob1.obj# and table_name ='FND_CONCURRENT_REQUESTS' and username='APPS'
2) Next step is to create a context file on database tier. Run the below commands with appropriate values. This will generate context file on database tier. cd $ORACLE_HOME/appsutil/bin perl adbldxml.pl tier=db appsuser=apps appspasswd=apps ----------------------------------Error -------------------------------------Enter Hostname of Database server: linux1.com Enter Port of Database server: 1521 Enter SID of Database server: VIS Could not Connect to the Database : Io exception: The Network Adapter could not establish the connection Could not Connect to the Database with the above parameters, Please answer the Questions below Solution check whether 10g listener is up or not -- In the second attempt I got a different error Starting context file generation for db tier.. Using JVM from /d01/oracle/visdb/10.2.0/jre/1.4.2/bin/java to execute java programs.. The log file for this adbldxml session is located at: /d01/oracle/visdb/10.2.0/appsutil/log/adbldxml_12130539.log AC-20010: Error: File - listener.ora could not be found at the location: /d01/oracle/visdb/10.2.0/network/admin/VIS_linux1/listener.ora indicated by TNS_ADMIN. Context file can not be generated. In the third attempt I got the below error perl adbldxml.pl tier=db appsuser=apps appspasswd=apps
Could not Connect to the Database : ORA-01034: ORACLE not available ORA-27101: shared memory realm does not exist Linux Error: 2: No such file or directory solution http://newgendba.blogspot.com/2009/02/error-while-runningadbldxmlpl-after.html show parameter local_listener; alter system set local_listener='(ADDRESS =(PROTOCOL=TCP)(HOST=linux1.com)( PORT=1521)(SID=VIS))'; alter system register; Solution - created the listener 3) Once the context file is created on db tier, run autoconfig. cd $ORACLE_HOME/appsutil/bin ./adconfig.sh contextfile=/d01/oracle/visdb/10.2.0/appsutil/VIS_linux1.xml appspass=apps
Follow Metalink note 216205.1 - Database Initialization Parameters for Oracle Applications 11i.