Apps

Published on May 2016 | Categories: Documents | Downloads: 34 | Comments: 0 | Views: 746
of 51
Download PDF   Embed   Report

Comments

Content

INTERVIEW QUESTIONS ====================== 1. If the patch fails for one of the prerequisite patches then how do address this issue ?. The patch information is stored in 2 tables in the database and appltop/admin/twotask/restrt/.rf9 files. table names : FND_INSTALL_PROCESSES AD_DEFFERED_JOBS So we have to take backup of these two tables and the .rf9 files. Apply the prerequisite patch with the appopriate option. This patch will drop the above mentioned tables. Restore the above tables and .rf9 files. Start the next patch and say yes for the question : do you want to continue from the previous session. 2. What issues you encountered while converting OFA To OATM ?. The tool FND_TOP/bin/fndtsmig.pl was asking for the sys pwd and it was not validating even the correct pwd given for sys. Then I have set the 07_DICTIONARY_ACCESSIBILTY=TRUE and bounced instance. This resolved the issue. ############################################################################ NOTES ========== Directories ----------APPL_TOP : Where the Apps files reside. (/m03/db1/appltop) COMMON_TOP : Where the common files resides (/m03/db1/commontop) 806 : Forms , Reports run time engine (/m02/db1/806) IAS : Webserver and Front-end connectivity enginge (/m02/db1/ias) Environment Variables ---------------------DB TIER ------[oracle@srvr33 bin]$ echo $ORACLE_HOME /m01/db2/rdbms APPS TIER ---------[applmgr@srvr33 db2]$ echo $APPL_TOP /m03/db2/appltop [applmgr@srvr33 db2]$ echo $COMMON_TOP

/m03/db2/commtop [applmgr@srvr33 appltop]$ echo $ORACLE_HOME /m02/db2/806 [applmgr@srvr33 appltop]$ echo $IAS_ORACLE_HOME /m02/db2/ias [applmgr@srvr33 appltop]$ echo $JAVA_TOP /m03/db2/commtop/java [applmgr@srvr33 appltop]$ echo $APPLCSF /m03/db2/commtop/admin [applmgr@srvr33 appltop]$ echo $AD_TOP /m03/db2/appltop/ad/11.5.0 [applmgr@srvr33 appltop]$ echo $FND_TOP /m03/db2/appltop/fnd/11.5.0 Apps Version ------------11.5.9 11.5.10.0 11.5.10.2 12.0.0.0 DB version ---------9.2.0.3 9.2.0.5 9.2.0.6 10g

Admin Scripts Location -----------------------Apps Tier --------/m03/db2/commtop/admin/scripts/db2_srvr33 ls -l awk '{print $9}' adalnctl.sh adautocfg.sh adcmctl.sh addisctl.sh adexecsql.pl adpreclone.pl adrepctl.sh adstpall.sh adstrtal.sh gsmstart.sh Db Tier ------/m01/db2/rdbms/appsutil/scripts/db2_srvr33 ls -l awk '{print $9}' adautocfg.sh adchknls.pl addbctl.sh addlnctl.sh adexecsql.pl adlsnodes.sh adpreclone.pl adstopdb.sql adstrtdb.sql

########################################################################### APPS AND DATABASE TIER CLONING ================================== 1. Manual Cloning (Hot & Cold) 2. Rapid Cloning 3 Refreshing DB only (Hot & Cold) 4. Rman Cloning ############################################################################# MANUAL CLONING =============== DB TIER ====== Existing db is db3 and cloned one is db4 STEPS ======= 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. Install the apps software and create the database. Create new directories for cloning the RDBMS and Database and APPS. Apply the patch for the interoperability for Listener. Apply patch to upgrade the OUI if you want to do rapid clone. Tar the RDBMS home copy the tar file and untar at the new location. Take backup of /etc/inventory.xml file. Set the environment by setting the variables to the new name db4. Run the env file. Relink the rdbms executables. Register the OH. Build the xml file. Run the autoconfig. Generate the backup control file to trace at the source db. Shut down the source db and listener. Copy the datafiles, ctl files, redo logs to db4 folder. Edit the pfile with the relavant changes. Edit the create control file script with the relavant changes. Run the create control file.

EXERCISE =========== 1. Install the apps software and create the database. [root@srvr33 ~]# cd /stage/1159/startCD/Disk1/rapidwiz ./rapidwiz 2. Create new directories for cloning the RDBMS and Database and APPS. [root@srvr33 [root@srvr33 [root@srvr33 [root@srvr33 [root@srvr33 [root@srvr33 [root@srvr33 [root@srvr33 ~]# ~]# ~]# ~]# ~]# ~]# ~]# ~]# mkdir mkdir mkdir mkdir chown chown chown chown -p -p -p -p -R -R -R -R /m01/db4/rdbms /prod/db4/oradata /m02/db4/{806,ias} /m03/db4/{appltop,commtop} oracle:dba /m01/db4 applmgr:dba /m02/db4 applmgr:dba /m03/db4 oracle:dba /prod/db4

[root@srvr33 ~]# chmod -R 777 /prod/db4 [root@srvr33 ~]# chmod -R 777 /m01/db4 [root@srvr33 ~]# chmod -R 777 /m02/db4 [root@srvr33 ~]# chmod -R 777 /m03/db4 [root@srvr33 ~]# ll /m03/db4 total 8 drwxrwxrwx 2 applmgr dba 4096 Jan 20 13:19 appltop drwxrwxrwx 2 applmgr dba 4096 Jan 20 13:19 commtop [root@srvr33 ~]# ll /m02/db4 total 8 drwxrwxrwx 2 applmgr dba 4096 Jan 20 13:18 806 drwxrwxrwx 2 applmgr dba 4096 Jan 20 13:18 ias [root@srvr33 ~]# ll /m01/db4 total 4 drwxrwxrwx 2 oracle dba 4096 Jan 20 13:13 rdbms [root@srvr33 ~]# ll /prod/db4 total 4 drwxrwxrwx 2 oracle dba 4096 Jan 20 13:15 oradata 3. Apply the patch for the interoperability for Listener. (Not Necessary,because already been applied in source database) Login as a applmgr user & run env file before applying a patch. [applmgr@srvr33 3830807]$ . /m03/db3/appltop/APPSdb3_srvr33.env ./patch.sh 4. Apply patch to upgrade the ADX.F & OUI if you want to do rapid clone. 5. Tar the RDBMS home cd /m01/db3/rdbms tar -cvf rdbmsdb3.tar * 6. copy the tar file and untar at the new location. cp /m01/db3/rdbms/rdbmsdb3.tar /m01/db4/rbdms/. cd /m01/db4/rbdms/ tar -xvf rdbmsdb3.tar 7. Take backup of /etc/inventory.xml file. cp /etc/oraInventory/ContentsXML/inventory.xml inventory.xml_bkp 8. Set the environment by setting the variables to the new name db4. cd /m01/db4/rbdms/ mv db3_srvr33.env db4_srvr33.env vi db4_srvr33.env Edit this file with db4 for all the occurances of db3 :%s/db3/db4/g 9. Run the env file. . /m01/db4/rdbms/db4_srvr33.env 10. Relink the rdbms executables. which relink /m01/db4/rdbms/bin/relink relink all 11. Register the OH. cd /m01/db4/rdbms/oui/bin ./runInstaller -attachHome ORACLE_HOME=/m01/db4/rdbms ORACLE_HOME_NAME=db4rdbms "INVENTORY_LOCATION=/etc/oraInventory" In case this above command fails modify the inventory.xml file with this entry <HOME NAME="rdbms_db4" LOC="/m01/db4/rdbms" TYPE="O" IDX="28"/>

12. Build the xml file. cd /m01/db4/rdbms/appsutil/ mv db3_srvr33.xml db4_srvr33.xml vi db4_srvr33.xml :%s/db3/db4/g :%s/1525/1558/g 13. Run the autoconfig. Enter the full path to the context file: /m01/db4/rdbms/appsutil/db4_srvr33.xml Enter the APPS user password: apps Using AutoConfig to configure the Database environment Loading ORACLE_HOME environment from /m01/db4/rdbms Using context: /m01/db4/rdbms/appsutil/db4_srvr33.xml Context Value Management will now update the context file Updating context file ... COMPLETED updating rdbms version in context file to db920 updating rdbms type to 32 bits in context file Configuring templates from ORACLE_HOME ... The logfile for this session is located at: /m01/db4/rdbms/appsutil/log/ db4_srvr33/01200257/adconfig.log Note: verify whether Tnsnames.ora & Listener.ora file updated with db4 or not 14. Generate the backup control file to trace at the source db. Alter database backup controlfile to trace; 15. 16. 17. 18. Shut Copy Edit Edit down the source db the datafiles, ctl the pfile with the the create control and listener. files, redo logs to db4 folder. relavant changes. file script with the relavant changes.

CREATE CONTROLFILE REUSE SET DATABASE "DB4" RESETLOGS NOARCHIVELOG MAXLOGFILES 16 MAXLOGMEMBERS 5 MAXDATAFILES 512 MAXINSTANCES 1 MAXLOGHISTORY 7260 LOGFILE GROUP 1 ( '/prod/db4/oradata/log01a.dbf', '/prod/db4/oradata/log01b.dbf' ) SIZE 10M, GROUP 2 ( '/prod/db4/oradata/log02a.dbf', '/prod/db4/oradata/log02b.dbf' ) SIZE 10M DATAFILE '/prod/db4/oradata/system01.dbf', ............................... '/prod/db4/oradata/system03.dbf', ALTER DATABASE OPEN RESETLOGS;

19. Run the create control file in startup nomount state @controlfile.sql 20. Add the Tempfiles to the database ALTER TABLESPACE TEMP ADD TEMPFILE '/prod/db4/oradata/temp01.dbf' SIZE 1048576000 REUSE AUTOEXTEND OFF; 21. Connect To The database update the Global_name SQL> select * from global_name; GLOBAL_NAME ------------------------------------DB3.US.ORACLE.COM SQL> alter database rename global_name to db4.bss.com; Database altered. SQL> select * from global_name; GLOBAL_NAME ---------------------------------------------------------------------DB4.BSS.COM SQL> conn apps/apps Connected. SQL> select RELEASE_NAME,APPLICATIONS_SYSTEM_NAME from fnd_product_groups; RELEASE_NAME APPLICATIONS_SYSTEM_NAME -----------------------------11.5.9 db3 Note:db3 get modified to db4 after running autoconfig in AppsTier. Change sys & system pwd if needed. Drop & recreate DBLINKS. Drop & recreate Directory Objects. Run The autoconfig in dbTier [oracle@srvr33 db4_srvr33]$ ./adautocfg.sh Enter the APPS user password: apps Using AutoConfig to configure the Database environment Loading ORACLE_HOME environment from /m01/db4/rdbms Using context: /m01/db4/rdbms/appsutil/db4_srvr33.xml Context Value Management will now update the context file Updating context file ... COMPLETED updating rdbms version in context file to db920 updating rdbms type to 32 bits in context file Configuring templates from ORACLE_HOME ... The logfile for this session is located at: /m01/db4/rdbms/appsutil/log/db4_ srvr33/01200438/adconfig.log APPS TIER ========== 1. Tar all the files in 806,ias,appltop,commtop. 2. Copy & UnTar the Tar file to respective Locations of Detination. 3. Relink the 806 Home a)Modify the Env file [applmgr@srvr33 806]$ mv db3_srvr33.env db4_srvr33.env

22. 23. 24. 25.

[applmgr@srvr33 806]$ vi db4_srvr33.env :%s/db3/db4/g [applmgr@srvr33 806]$ . db4_srvr33.env b)Relink the Make files [applmgr@srvr33 806]$ cd forms60/lib/ [applmgr@srvr33 lib]$ ls *mk cus_forms60w.mk env_forms60.mk ins_forms60w.mk [applmgr@srvr33 lib]$ make -f ins_forms60w.mk install [applmgr@srvr33 806]$ cd reports60/lib/ [applmgr@srvr33 lib]$ ls *mk cus_reports60w.mk env_reports60.mk ins_reports60w.mk [applmgr@srvr33 lib]$ make -f ins_reports60w.mk install [applmgr@srvr33 806]$ cd graphics60/lib/ [applmgr@srvr33 lib]$ ls *mk cus_graphics60d.mk cus_graphics60w.mk ins_graphics60d.mk ins_graphics60w.mk cus_graphics60r.mk env_graphics60.mk ins_graphics60r.mk [applmgr@srvr33 lib]$ make -f ins_graphics60w.mk install [applmgr@srvr33 806]$ cd procbuilder60/lib/ [applmgr@srvr33 lib]$ ls *mk cus_procbuilder.mk env_procbuilder.mk ins_procbuilder.mk [applmgr@srvr33 lib]$ make -f ins_procbuilder.mk install [applmgr@srvr33 806]$ cd network/lib/ [applmgr@srvr33 lib]$ ls *mk env_network.mk env_oemagent.mk ins_network.mk ins_oemagent.mk [applmgr@srvr33 lib]$ make -f ins_network.mk install c)Modify the Context_name folder & Listener,Tnsnames cd /m02/db4/806/network/admin [applmgr@srvr33 admin]$ mv db3_srvr33/ db4_srvr33 [applmgr@srvr33 admin]$ ls db4_srvr33/ listener.ora tnsnames.ora open both the files & modify :%s/db3/db4/g :%s/1630/1558/g 4. Relink the ias Home a)Modify the Env file [applmgr@srvr33 ias]$ mv db3_srvr33.env db4_srvr33.env [applmgr@srvr33 ias]$ vi db4_srvr33.env :%s/db3/db4/g [applmgr@srvr33 ias]$ . db4_srvr33.env [applmgr@srvr33 ias]$ cd network/lib/ [applmgr@srvr33 lib]$ ls *mk env_network.mk ins_cman.mk ins_nau.mk ins_net_server.mk env_oemagent.mk ins_names.mk ins_net_client.mk ins_oemagent.mk [applmgr@srvr33 lib]$ make -f ins_net_client.mk install Note:Update the below entry in inventory.xml <HOME NAME="APPS_ias" LOC="/m02/db4/ias" TYPE="O" IDX="29"/> 5. Modify the Env's & adovars.env,Xml files in Appltop [applmgr@srvr33 appltop]$ mv APPSdb3_srvr33.env APPSdb4_srvr33.env [applmgr@srvr33 appltop]$ vi APPSdb4_srvr33.env :%s/db3/db4/g [applmgr@srvr33 appltop]$ mv db3_srvr33.env db4_srvr33.env [applmgr@srvr33 appltop]$ vi db4_srvr33.env :%s/db3/db4/g [applmgr@srvr33 appltop]$ . APPSdb4_srvr33.env [applmgr@srvr33 appltop]$ cd admin/ [applmgr@srvr33 admin]$ ls adovars.env adovars.env [applmgr@srvr33 admin]$ vi adovars.env

:%s/db3/db4/g [applmgr@srvr33 appltop]$ . APPSdb4_srvr33.env [applmgr@srvr33 appltop]$ tnsping db4 TNS Ping Utility for Linux: Version 8.0.6.3.0 - Production on 21-JAN-2009 13:40:04 (c) Copyright 1997 Oracle Corporation. All rights reserved. Attempting to contact (ADDRESS=(PROTOCOL=tcp)(HOST=srvr33)(PORT=1558)) OK (20 msec) [applmgr@srvr33 admin]$ ls db3_srvr33.xml db3_srvr33.xml [applmgr@srvr33 admin]$ mv db3_srvr33.xml db4_srvr33.xml [applmgr@srvr33 admin]$ vi db4_srvr33.xml :%s/db3/db4/g Note:Modify the ports for reports,forms,web,dbport. db3 port no is 1525 db4 port no is 1558 The Diff is 33,add this 33 to reports,forms,web,dbport. Search the xml fie with the following keywords. /dbport,/reports_port,/forms_port,/web_port 6. Clean up the Application Object Library,because it contains previous database URLinformation like NODE_NAME,HOST,DOMAIN,SERVER_ADDRESS .. SQL>select * from fnd_nodes; It will display many rows,so to Clean that we have a procedure. SQL> desc fnd_conc_clone PROCEDURE SETUP_CLEAN PROCEDURE TARGET_CLEAN SQL> exec fnd_conc_clone.TARGET_CLEAN(); PL/SQL procedure successfully completed. commit; SQL> select * from fnd_nodes; no rows selected 7. Run Autoconfig Note:Never use adautocfg.sh from commontop to run Autoconfig,it will points out to source database. [applmgr@srvr33 admin]$ cd /appl_top/ad/11.5.0/bin [applmgr@srvr33 bin]$ ./adconfig.sh Enter the APPS user password: apps This will register target Application system name in to AOL refer fnd_nodes,fnd_product_groups. Set The Env [applmgr@srvr33 appltop]$ . APPSdb4_srvr33.env 8. Check Whether AOL contains new database name or not? SQL> select RELEASE_NAME,APPLICATIONS_SYSTEM_NAME from fnd_product_groups; RELEASE_NAME APPLICATIONS_SYSTEM_NAME -----------------------------11.5.9 db4 SQL> select node_name,server_id from fnd_nodes; NODE_NAME SERVER_ID ---------------------------------------------------------------------SRVR33 610C02BF14CEC951E040A8C021001DED39887971914708318863730225275302 ============================================================================

RAPID CLONING ============== PreRequisites for Different Versions ==================================== 1. 11.5.9 a) Apply Inter-Operability Patch for Listener Compatibility. b) Apply ADX.F patch to APPSTIER which will updates the Oracle App's file System with RAPID CLONE files. c) Run Autoconfig(If AD version is >=I it will automatically run autoconfig at the end.Otherwise we have to manually run.) d) Go to AD_TOP/bin Run perl admkappsutil.pl Then it will generate appsutil.zip file in appltop/admin/out directory Copy appsutil.zip file to ORACLE_HOME(DBTIER) & give write permisions e) Unzip the appsutil.zip & Run Autoconfig f) Check OUI versions of RDBMS & ias (2.2.0.19) 2. 11.5.10 a) Apply ADX.F patch to APPSTIER which will updates the Oracle App's file System with RAPID CLONE files. b) Go to AD_TOP/bin Run perl admkappsutil.pl Then it will generate appsutil.zip file in appltop/admin/out directory Copy appsutil.zip file to ORACLE_HOME(DBTIER) & give write permisions c) Unzip the appsutil.zip & Run Autoconfig d) Check OUI versions of RDBMS & ias (2.2.0.19) 3. 11.5.10.2 Directly go for Rapid Clone. Steps For RapidClone ==================== 11.5.9 ======= 1. Verify the OUI version of the source system. The required version is 2.2.0.19.0. Here the RDBMS will have a qualified version for rapidclone. But the ias will have a lower verison.So apply the patch for the ias oui. /m01/db3/rdbms/apploui/oui more oraparam.ini 2.2.0.16.0 <--- qualified version /m02/db3/ias/apploui/oui more oraparam.ini 2.1.0.17.0 From stage copy the required patch into ias directory and unzip. It will create a oui folder Login as applmgr. Run the env file . /m03/db3/appltop/APPSdb3_srvr33.env cd /m02/db3/ias/appsoui/setup perl OUIsetup.pl Apply Rapidclone patch ADX.F(3453499) (contd in same window so no need to run env again.) [applmgr@srvr33 ~]$cd /stage/Patches_for_upgrade/ ADX.f/3453499 [applmgr@srvr33 ~]$adpatch

2.

Then Run Autoconfig. Note:In 11.5.9 we have to run Autoconfig after ADX.F,because AD basic version is H. [applmgr@srvr33 ~]$cd /m03/db3/commtop/admin/scripts/context_name/ [applmgr@srvr33 ~]$./adautocfg.sh [applmgr@srvr33 ~]$ . /m03/db3/appltop/APPSdb3_srvr33.env [applmgr@srvr33 ~]$which admkappsutil.pl /m03/db3/appltop/ad/11.5.0/bin/admkappsutil.pl [applmgr@srvr33 ~]$cd $AD_TOP/bin [applmgr@srvr33 ~]$perl admkappsutil.pl This will create appsutil.zip in /m03/db3/appltop/admin/out/ Copy appsutil.zip to ORACLE_HOME(DBTIER). [oracle@srvr33 ~]$cd /m01/db3/rdbms [oracle@srvr33 ~]$cp /m03/db3/appltop/admin/out/appsutil.zip . [oracle@srvr33 ~]$chmod 777 appsutil.zip [oracle@srvr33 ~]$unzip -o appsutil.zip Run Autoconfig [oracle@srvr33 ~]$cd /appsutil/scripts/context_name/ [oracle@srvr33 ~]$./adautocfg.sh 3. Clone Both Tiers use Rapid clone to create template files for cloning on source system. It will create clone directory and required executables in source system. a)Prepare the source system database Tier [oracle@srvr33 ~]$ cd /m01/db3/rdbms/appsutil/scrripts/context_name/ [oracle@srvr33 ~]$ perl adpreclone.pl dbTier b)Prepare the source system App's Tier [applmgr@srvr33 ~]$cd /m03/db3/commtop/admin/scripts/context_name/ [applmgr@srvr33 ~]$ perl adpreclone.pl appsTier 4. Copy the Source System both Tiers to Target System Login as oracle user,copy TechStack & database to Target system Login as applmgr user,copy atTechStack & appltop to Target system Note:While copying the dbTier database & Listener should be DOWN. 5. Configuring the Target System(DB4) a)configure the Target System dbTier Note:Do not run any Env files,open new sessions for both the tiers [oracle@srvr33 ~]$cd /m01/db4/rdbms/appsutil/clone/bin [oracle@srvr33 ~]$ perl adcfgclone.pl dbTier It will recreate env,pfile,xml with Target system name.Then it will relink and register the Home in inventory.xml.This will also recreate controlfile,startup database & listener b)configure the Target System appsTier [applmgr@srvr33 ~]$cd /m03/db4/commtop/clone/bin [applmgr@srvr33 ~]$perl adcfgclone.pl appsTier This will recreate env,xml files in appltop & relink ,register ias home in inventory.xml & it will start all appsTier services. ============================================================================ REFRESH (DB TIER ONLY) ====================== DB3 is cloned to DB4. Since we have not applied any patches to the both the TE CHSTACKs and COMMON_TOP,APPL_TOP.

We are refreshing only the database using hot clone method and then configuring appltop and common top. We need to clone appltop and common top also to do this refresh. STEPS ===== Take backup of the /m03/db4/appltop/admin/db4_srvr33.xml file before starting the following process from db4 database. This is necessary because the db4_srvr33.xml is alredy configured with the dbport and paths when colned to db3 to db4. We will loose this file if you copy the co mmon top and appl top directories from db3 to db4. 1. Remove the database from db4 and remove appltop and commontop files from db4 folders. 2. Tar and untar commntop and appltop binaries from db3 to db4. 3. Put the db3 databse in archive log mode and then put all the tablespaces in backup mode. 4. Copy the data files and archive log files of db3 database to db4 folders. 5. Put the db3 database in end backup mode. 6. Create the control file and create the db4 database. 7. Recover the database db4 using the backup control file option. 8. At the end of the recovery session, apply the db3 online redo logs and complete the mediarecovery. 9. Add the temp file for the temp tablespace. 10. Clean up the Application Object Library,because it contains previous database URLinformation like NODE_NAME,HOST,DOMAIN,SERVER_ADDRESS .. SQL>select * from fnd_nodes; It will display many rows,so to Clean that we have a procedure. SQL> desc fnd_conc_clone PROCEDURE SETUP_CLEAN PROCEDURE TARGET_CLEAN SQL> exec fnd_conc_clone.TARGET_CLEAN(); PL/SQL procedure successfully completed. commit; SQL> select * from fnd_nodes; no rows selected 12. Restore the /m03/db4/appltop/admin/db4_srvr33.xml from the backup location to this folder 13. Run Autoconfig Note:Never use adautocfg.sh from commontop to run Autoconfig,it will point to source database. [applmgr@srvr33 admin]$ cd /appl_top/ad/11.5.0/bin [applmgr@srvr33 bin]$ ./adconfig.sh Enter the APPS user password: apps This will register target Application system name in to AOL refer fnd_nodes,fnd_product_groups. Set The Env [applmgr@srvr33 appltop]$ . APPSdb4_srvr33.env 14. Check Whether AOL contains new database name or not? SQL> select RELEASE_NAME,APPLICATIONS_SYSTEM_NAME from fnd_product_groups; RELEASE_NAME APPLICATIONS_SYSTEM_NAME ------------------------------

11.5.9 db4 SQL> select node_name,server_id from fnd_nodes; NODE_NAME SERVER_ID ------------------------------------------------------------This patch genera tes a report stating what ought to do and not.---------SRVR33 612415061A23A2A1E040A8C0210026F436496500723470128142398631643816 Note: Build the Context_name.xml file with a SCRIPT Run the adclonectx.pl file [applmgr@srvr33 bin]$ perl adclonectx.pl contextfile=/m03/db4/appltop /admin/db4_srvr33.xml Enter the values for the new APPL_TOP Context: Do you want the inputs to be validated (y/n) [n] ?: Does the target system have more than one application tier server node (y/n) [n] ?: Is the target system APPL_TOP divided into multiple mount points (y /n) [n] ?: Target system APPL_TOP mount point [/m03/db4/appltop]:/m03/db4 /appltop Target system COMMON_TOP directory [/m03/db4/commtop]:/m03/db4 /commtop Location of JDK 1.3.1 on the target system [/opt/21jdk1.3.1_20]: The new context file has to contain port numbers related to target system. Clone Context uses the same port pool mechanism as the Rapid Install Once you choose a port pool, Clone Context will validate the port availability. Enter the port pool number:[0-99] 44 Web Listener port is 8044 Complete port information available at /m03/db4/appltop/admin/out /db3_srvr33/portpool.lst New context path and file name [/m03/db4/appltop/admin/ db3_srvr33.xml]:/m03/db4/appltop/admin/db4_srvr33.xml Creating the new APPL_TOP Context file from : /m03/db4/appltop/ad/11.5.0/admin/template/adxmlctx.tmp The new APPL_TOP context file has been created : /m03/db4/appltop/admin/db4_srvr33.xml Log file located at /tmp/CloneContext_01220620.log ########################################################################## INSTALLATIONS ================ 1. Single Node 2. Multi Node

1. Distributed Appl Top. 2. Shared Appl Top(Appltop, Common Top). 3. Shared Apps Tier(806,ias,Appltop, Common Top). 1. Single Node =============== STEPS ======== 1. Create the required directories. [root@srvr33 [root@srvr33 [root@srvr33 [root@srvr33 [root@srvr33 [root@srvr33 [root@srvr33 [root@srvr33 [root@srvr33 [root@srvr33 [root@srvr33 [root@srvr33 ~]# ~]# ~]# ~]# ~]# ~]# ~]# ~]# ~]# ~]# ~]# ~]# mkdir mkdir mkdir mkdir chown chown chown chown chmod chmod chmod chmod -p -p -p -p -R -R -R -R -R -R -R -R /m01/db1/rdbms <---- ORACLE_HOME /m02/db1/{806,ias} <--- DEVELOPER,IAS /m03/db1/{appltop,commtop} /prod/db1/oradata oracle:dba /m01/db1 applmgr:dba /m02/db1 applmgr:dba /m03/db1 oracle:dba /prod/db1 777 /prod/db1 777 /m01/db1 777 /m02/db1 777 /m03/db1

2. Install the software. [root@srvr33 ~]# cd /stage/1159/startCD/Disk1/rapidwiz ./rapidwiz ---------------------------------------------------------------------------2. Multi Node =================== 1. Distributed Appl Top ( 11.5.9 onwards) ======================= STEPS ======= 1. Create the required directories. [root@srvr33 [root@srvr33 [root@srvr33 [root@srvr33 [root@srvr33 [root@srvr33 [root@srvr33 [root@srvr33 [root@srvr33 [root@srvr33 [root@srvr33 [root@srvr33 ~]# ~]# ~]# ~]# ~]# ~]# ~]# ~]# ~]# ~]# ~]# ~]# mkdir mkdir mkdir mkdir chown chown chown chown chmod chmod chmod chmod -p -p -p -p -R -R -R -R -R -R -R -R /m01/db1/rdbms <---- ORACLE_HOME /m02/db1/{806,ias} /m03/db1/distd/{appltop,commtop} /prod/db1/oradata oracle:dba /m01/db1 applmgr:dba /m02/db1 applmgr:dba /m03/db1 oracle:dba /prod/db1 777 /prod/db1 777 /m01/db1 777 /m02/db1 777 /m03/db1

[root@srvr34 ~]# mkdir -p /u01/db1/{806,ias} [root@srvr44 ~]# mkdir -p /u02/db1/distd/{appltop,commtop}

[root@srvr44 ~]# chown -R applmgr:dba /u02/db1 [root@srvr44 ~]# chmod -R 777 /u02/db1 2. Install the software follow the stadard procedure for the installation on srvr33. Copy the config file to srvr44, complete the installation using the config file. 3. Apply the interoperability patch 4. Apply ADX.F on the Admin server first followed by Autoconfig.Then apply Apply ADX.F on other nodes,and run Autoconfig on web_server node atlast. 5. Prepare both he servers for preclone a) Run preclone for dbTier on srvr33,Run preclone for appsTier on srvr33 srvr44. b) Run cfgclone for dbTier on srvr33,Run cfgclone for appsTier on srvr33 srvr44. 2. Shared Appl Top (11.5.10) ============================ STEPS ====== 1. Create the required directories. [root@srvr33 [root@srvr33 [root@srvr33 [root@srvr33 [root@srvr33 [root@srvr33 [root@srvr33 [root@srvr33 [root@srvr33 [root@srvr33 [root@srvr33 [root@srvr33 ~]# ~]# ~]# ~]# ~]# ~]# ~]# ~]# ~]# ~]# ~]# ~]# mkdir mkdir mkdir mkdir chown chown chown chown chmod chmod chmod chmod -p -p -p -p -R -R -R -R -R -R -R -R /m01/db1/rdbms <---- ORACLE_HOME /m02/db1/{806,ias} <--- DEVELOPER,IAS /m03/db1/shared/{appltop,commtop} /prod/db1/oradata oracle:dba /m01/db1 applmgr:dba /m02/db1 applmgr:dba /m03/db1 oracle:dba /prod/db1 777 /prod/db1 777 /m01/db1 777 /m02/db1 777 /m03/db1

[root@srvr44 ~]# mkdir -p /u02/db1/{806,ias} [root@srvr44 ~]# chown -R applmgr:dba /u02/db1 [root@srvr44 ~]# chmod -R 777 /u02/db1 NFS settings -------------Go to application > system settings > server setting > nfs Basic : select /m03 mountpoint and provide server name,read write

General Options : Sync write operations on request force sync of write operations immediately. User Access : Treat remote root user as loca root.

[root@srvr33 ~]# service nfs start The appltop and commn top directory /m03/db1/shared/{appltop,commtop} of srvr33 have to be mounted on srvr44 server so that the appltop and common top will be shared by both the servers.Create /m03 directory in srvr44. [root@srvr44 ~]#service nfs start mount -t nfs srvr33:/m03 /m03 -o nolock 2. Install the software follow the stadard procedure for the installation on srvr33. Copy the config file to srvr44, complete the installation using the config file. 3. Mount the /m03 directory on the srvr44 srvr44 : mount -t srvr33:/m03 /m03 -o nolock ########################################################################### UPGRADE 11.5.9 TO 11.5.10 =========================== 1. Install a fresh 11.5.9 instance if not available TEMPLATE ======== Pre Upgrade steps ----------------1. TUMS (Upgrade Manual Script) for maintainance. This patch generates a report stating what ought to do and not. 2. ADI.2 and ADX.F Patches to be applied 3. Rollup patch (TXK) OR Autoconfig. This patch generates a report stating what ought to do and not. 4. Techstack validation patch. 5. OFA to OATM (Oracle Apps Tablespace Model) -- optional If we are not moving to OATM , we have to add new tablespaces for new products and increase the size of the existing TS. 6. Inter-operability patch. Upgrade --------7. MP ( Maintainance Pack). Post upgrade steps -----------------8. Product Inter-operability patch 9. Compile Invalid Objects 10. STEPS ======== Apply Inter-Operability. Apply the patch for the interoperability for Listener. (Not Necessary,because already been applied in source database) Login as a applmgr user & run env file before applying a patch. [applmgr@srvr33 3830807]$ . /m03/db3/appltop/APPSdb3_srvr33.env ./patch.sh Pre Upgrade steps ----------------Connect as sysdba

select comp_name , version, status from dba_registry; conn apps/apps SQL> show parameter UTL_FILE_DIR; NAME TYPE VALUE ------------------------------------ -----------------------------------utl_file_dir string /usr/tmp, /m01/db4/rdbms/ appsutil/outbound/db4_srvr33 select * from fnd_product_groups; SQL> select patch_level from fnd_product_installations where patch_level like 2 '%AD%'; PATCH_LEVEL -----------11i.AD.H select patch_level,Status from fnd_product_installations; select status,count(*) from fnd_product_installations group by status; S COUNT(*) - ---------I 89 N 85 S 24 select count(*) from dba_tablespaces; COUNT(*) ---------380 Create directory ourdir as '/m01/db4/rdbms/appsutil/outbound/db4_srvr33'; connect as sysdba Grant read , write on directory ourdir to apps; 1. TUMS (Upgrade Manual Script) for maintainance. [applmgr@srvr33] cd /stage/Patches_for_Upgrade/tumspatch/4238286/ [applmgr@srvr33] . /m03/db4/appltp/APPSdb4_srvr33.env [applmgr@srvr33] adpatch Note:After applying this tums patch it will generate adtums.sql & generates the report tumsmp.html in OURDIR directory cd $AD_TOP/patch/115/sql/adtums.sql connect as sysdba sql> @adtums.sql 'OUTDIR'; PL/SQL procedure successfully completed. vi /m01/db4/rdbms/appsutil/outbound/db4_srvr33/tumsmp.html This file displays the versions of the products and the patches to be applied. You must apply the AD Minipack You must implement or update AutoConfig You must run the 11.5.10 technology stack validation utility You may choose to convert to the new tablespace model based on Database object type You must configure the database for new products and new tablespace requirements You may choose to prepare Marketing and Sales modules for update You must perform this Leads migration step You may choose to do this TCA contacts unmerge process now to reduce downtime You must upgrade Applications Desktop Integrator

You must unzip the American English Maintenance Pack zip file You must unzip and merge NLS Maintenance packs 2. ADI.2(u4337683.drv) and ADX.F(u3453499.drv) Patches to be applied eg : adpatch supply the driver here. Apply Rapidclone patch ADX.F(3453499) [applmgr@srvr33 ~]$cd /stage/Patches_for_upgrade/ ADX.f/3453499 [applmgr@srvr33 ~]$adpatch Then Run Autoconfig. Note:In 11.5.9 we have to run Autoconfig after ADX.F,because AD basic version is H. [applmgr@srvr33 ~]$cd /m03/db3/appltop/ad/11.5.0/bin/ [applmgr@srvr33 ~]$./adconfig.sh [applmgr@srvr33 ~]$ . /m03/db3/appltop/APPSdb3_srvr33.env [applmgr@srvr33 ~]$which admkappsutil.pl /m03/db3/appltop/ad/11.5.0/bin/admkappsutil.pl [applmgr@srvr33 ~]$cd $AD_TOP/bin [applmgr@srvr33 ~]$perl admkappsutil.pl This will create appsutil.zip in /m03/db3/appltop/admin/out/ Copy appsutil.zip to ORACLE_HOME(DBTIER). [oracle@srvr33 ~]$cd /m01/db3/rdbms [oracle@srvr33 ~]$cp /m03/db3/appltop/admin/out/appsutil.zip . [oracle@srvr33 ~]$chmod 777 appsutil.zip [oracle@srvr33 ~]$unzip -o appsutil.zip Then it will create appsoui directory Run Autoconfig [oracle@srvr33 ~]$cd rdbms/appsutil/scripts/context_name/ [oracle@srvr33 ~]$./adautocfg.sh connect /as sysdba SQL>@/m03/db4/appltop/admin/adgrants.sql APPLSYS This script will change the 07_dictionary_accesability to FALSE. This will be TRUE in 1159. 3. Rollup patch (TXK) OR Autoconfig. This patch includes the latest AutoConfig patches provided by Bug 4175764: ADX:11i.ADXE.1 FEB 2005 CUMULATIVE UPDATE cd /stage/Patches_for_upgrade/rollup_patch/4489303/ cd /fnd/patch/115/bin perl txktxkprepatchcheck.pl -script=ValidateRollup -outfile= $APPLTMP/txkValidateRollup.html -appspass=apps View the report a)Apply patch to ias(3072811) [applmgr@srvr33]#cd /stage/Patches_for_upgrade/rollup_patch/ ias_patch/ [applmgr@srvr33]# unzip -o p3072811_1022_LINUX.zip [applmgr@srvr33]# unzip -o patch.zip [applmgr@srvr33]# ./patch.sh install Down all Apps services. Note: Even Though http server is Down Patch is asking to stop http server.In this case start & stop all services again. b)[applmgr@srvr33]# . /m03/db4/appltop/APPSdb4_srvr33.env [applmgr@srvr33]# vi /m03/db4/appltop/admin/db4_srvr33.xml /oemcomm : remove #

/toplevel: remove # cd /stage/Patches_for_upgrade/rollup_patch/4489303/ cd /fnd/patch/115/bin perl txktxkprepatchcheck.pl -script=ValidRollup -outfile=$APPLTMP/ txkValidateRollup.html -appspwd=apps This will generates a report in commtop/temp/txkValidateRollup.html with STATUS ALLPASS. c) Now Apply Rollup Patch(4489303) Enable The maintenance mode. Run the AppsTier Env,use adadmin utility [applmgr@srvr33]#cd /stage/Patches_for_upgrade/rollup_patch/4489303 adpatch At the end it will run Autoconfig. [applmgr@srvr33]# Run The Env [applmgr@srvr33]# . /m03/db4/appltop/APPSdb4_srvr33.env [applmgr@srvr33 ~]$which admkappsutil.pl /m03/db3/appltop/ad/11.5.0/bin/admkappsutil.pl [applmgr@srvr33 ~]$cd $AD_TOP/bin [applmgr@srvr33 ~]$perl admkappsutil.pl This will create appsutil.zip in /m03/db3/appltop/admin/out/ Copy appsutil.zip to ORACLE_HOME(DBTIER). [oracle@srvr33 ~]$cd /m01/db3/rdbms [oracle@srvr33 ~]$cp /m03/db3/appltop/admin/out/appsutil.zip . [oracle@srvr33 ~]$chmod 777 appsutil.zip [oracle@srvr33 ~]$unzip -o appsutil.zip Then it will create appsoui directory Run Autoconfig [oracle@srvr33 ~]$cd rdbms/appsutil/scripts/context_name/ [oracle@srvr33 ~]$./adautocfg.sh 4. Techstack validation patch. DATABASE TIER ============= [applmgr@srvr33 ~]$ /stage/Patches_for_upgrade/techstack_patch [applmgr@srvr33 ~]$ cd 4318672 [applmgr@srvr33 ~]$ adpatch Update RDBMS ORACLE_HOME with AutoConfig files: ------------------------------------------------Update the RDBMS ORACLE_HOME file system with the AutoConfig files by performing the following steps: * On the Application Tier (as the APPLMGR user): o Log in to the APPL_TOP environment (source the environment file) o Create appsutil.zip file $ADPERLPRG $AD_TOP/bin/admkappsutil.pl (On Windows: %ADPERLPRG% %AD_TOP%\bin\admkappsutil.pl) o This will create appsutil.zip in $APPL_TOP/admin/out . * On the Database Tier (as the ORACLE user): o Copy or FTP the appsutil.zip file to the <RDBMS ORACLE_HOME> o cd <RDBMS ORACLE_HOME> unzip -o appsutil.zip Run AutoConfig. Run the Utility on Database Server Node: ----------------------------------------

[oracle@srvr33 bin]$ pwd /m01/db4/rdbms/appsutil/bin [oracle@srvr33 bin]$ . ../../db4_srvr33.env [oracle@srvr33 bin]$ perl TXKScript.pl -script=$ORACLE_HOME/appsutil/ bin/txkVal11510MP.pl -txktop=$ORACLE_HOME/appsutil -appspass=apps outfile=$ORACLE_HOME/appsutil/temp/txkVal11510MP_DB.html SQL> alter database datafile '/prod/db4/oradata/system01.dbf' resize 2000m; Database altered. SQL> alter database datafile '/prod/db4/oradata/system02.dbf' resize 2000m; Database altered. SQL> alter database datafile '/prod/db4/oradata/system03.dbf' resize 2000m; Database altered. SQL> alter database tempfile '/prod/db4/oradata/temp01.dbf' resize 1500m; Database altered. SQL> shut immediate Edit in pfile O7_DICTIONARY_ACCESSIBILITY = false _B_TREE_BITMAP_PLANS=false [oracle@srvr33]$ cd /stage/9208/Disk1 [oracle@srvr33]$ ./runInstaller for Opatch error : chmod -R 777 Opatch for dbsnmp error : ignore it. startup migrate @?/rdbms/admin/catpatch.sql @?/rdbms/admin/utilrp.sql shut immediate startup exit [oracle@srvr33 bin]$ lsnrctl start db4 [oracle@srvr33 bin]$ pwd /m01/db4/rdbms/appsutil/bin [oracle@srvr33 bin]$ . ../../db4_srvr33.env [oracle@srvr33 bin]$ perl TXKScript.pl -script=$ORACLE_HOME/appsutil/ bin/txkVal11510MP.pl -txktop=$ORACLE_HOME/appsutil -appspass=apps outfile=$ORACLE_HOME/appsutil/temp/txkVal11510MP_DB2.html The above report should show the status as ALLPASS for the db tier. APPS TIER ========== [applmgr@srvr33]$ cd /m03/db4/appltop/fnd/11.5.0/patch/115/bin [applmgr@srvr33]$ perl TXKScript.pl -script=$FND_TOP/patch/115/bin/txkVal11510MP .pl -txktop=$APPLTMP -appspass=apps -outfile=$APPLTMP/txkVal11510MP_DB2.html For 806 Home -----------[applmgr@srvr33]$ cd /stage/Patch_for_upgrade/tech_stack/ [applmgr@srvr33]$ cp p4183804.zip /m02/db4/806/. [applmgr@srvr33]$cd /m02/db4/806/ [applmgr@srvr33]$ unzip -o p4183804.zip [applmgr@srvr33 806]$ cd developer6i_patch17/ [applmgr@srvr33 developer6i_patch17]$ ./patch_install.sh

SQL> SQL> SQL> SQL> SQL> SQL>

Relink the 806 Home Relink the Make files [applmgr@srvr33 806]$ cd forms60/lib/ [applmgr@srvr33 lib]$ ls *mk cus_forms60w.mk env_forms60.mk ins_forms60w.mk [applmgr@srvr33 lib]$ make -f ins_forms60w.mk install [applmgr@srvr33 806]$ cd reports60/lib/ [applmgr@srvr33 lib]$ ls *mk cus_reports60w.mk env_reports60.mk ins_reports60w.mk [applmgr@srvr33 lib]$ make -f ins_reports60w.mk install Note:This relink will through an error because of bug4493729 [applmgr@srvr33 806]$ cd graphics60/lib/ [applmgr@srvr33 lib]$ ls *mk cus_graphics60d.mk cus_graphics60w.mk ins_graphics60d.mk ins_graphics60w.mk cus_graphics60r.mk env_graphics60.mk ins_graphics60r.mk [applmgr@srvr33 lib]$ make -f ins_graphics60w.mk install [applmgr@srvr33 806]$ cd procbuilder60/lib/ [applmgr@srvr33 lib]$ ls *mk cus_procbuilder.mk env_procbuilder.mk ins_procbuilder.mk [applmgr@srvr33 lib]$ make -f ins_procbuilder.mk install [applmgr@srvr33 806]$ cd network/lib/ [applmgr@srvr33 lib]$ ls *mk env_network.mk env_oemagent.mk ins_network.mk ins_oemagent.mk [applmgr@srvr33 lib]$ make -f ins_network.mk install Fixing The Bug: [applmgr@srvr33 lib]$ cd /stage/Patches_for_upgrade/techstack_patch/ [applmgr@srvr33 techstack_patch]$ cd bug4493729/ [applmgr@srvr33 bug4493729]$ ls patch.sh readme.txt [applmgr@srvr33 bug4493729]$ sh patch.sh [applmgr@srvr33 806]$ cd reports60/lib/ [applmgr@srvr33 lib]$ ls *mk cus_reports60w.mk env_reports60.mk ins_reports60w.mk [applmgr@srvr33 lib]$ make -f ins_reports60w.mk install For ias Home -----------[applmgr@srvr33 lib]$ cd /stage/Patches_for_upgrade/techstack_patch/ [applmgr@srvr33 techstack_patch]$ cd 2376472/ [applmgr@srvr33 2376472]$ unzip p2376472.zip Archive: p2376472.zip inflating: README.html inflating: lnx32_8174_patchset.tar [applmgr@srvr33 2376472]$ tar -xvf lnx32_8174_patchset.tar [applmgr@srvr33 2376472]$ cd /m02/db4/ias/ [applmgr@srvr33 ias]$ . db4_srvr33.env [applmgr@srvr33 ias]$ echo $ORACLE_HOME /m02/db4/ias [applmgr@srvr33 ias]$ cd bin/ [applmgr@srvr33 bin]$ ls runInstaller runInstaller [applmgr@srvr33 bin]$ ./runInstaller Give the Following path for Source File /stage/Patches_for_upgrade/techstack_patch/2376472/stage/products.jar [applmgr@srvr33 bin]$ cd /stage/Patches_for_upgrade/techstack_patch/ [applmgr@srvr33 techstack_patch]$ cd 3835781/ [applmgr@srvr33 3835781]$ unzip -o p3835781_102_LINUX.zip

[applmgr@srvr33 3835781]$ . /m02/db4/ias/db4_srvr33.env [applmgr@srvr33 3835781]$ ./patch.csh -m midtier -o /m02/db4/ias Welcome to mod_plsql/OWA Patch ============================== Patch Started at Thu Jan 29 19:09:21 IST 2009 Backup done for files to /m02/db4/ias/Apache/modplsql/prepatch ...Installing mod_plsql patch Successful copy to /m02/db4/ias/Apache/modplsql/* Patch Ended at Thu Jan 29 19:09:21 IST 2009 **Patch Completed Successfully **. Scan log /stage/Patches_for_upgrade/techstack_patch/3835781/patch.log for any er rors. [applmgr@srvr33 bin]$ . /m03/db4/appltop/APPSdb4_srvr33.env [applmgr@srvr33]$ cd /m03/db4/appltop/fnd/11.5.0/patch/115/bin [applmgr@srvr33]$ perl TXKScript.pl -script=$FND_TOP/patch/115/bin/txkVal11510MP .pl -txktop=$APPLTMP -appspass=apps -outfile=$APPLTMP/txkVal11510MP_DB2.html The above report should show the status as ALLPASS for the AppsTier Upgrading JAVA & Jinitiator --------------------------[applmgr@srvr33 ~]$ . /m03/db4/appltop/APPSdb4_srvr33.env [applmgr@srvr33 ~]$ cd /stage/Patches_for_upgrade/techstack_patch/ [applmgr@srvr33 techstack_patch]$ cd jinit/ jinitsw p4517707_11i_GENERIC.zip p5117525_11i_GENERIC.zip [applmgr@srvr33 jinit]$ cd jinitsw/ p5300474_131_GENERIC.zip [applmgr@srvr33 jinitsw]$ unzip -o p5300474_131_GENERIC.zip Archive: p5300474_131_GENERIC.zip inflating: readme.html inflating: jinit13126.exe [applmgr@srvr33 ~]$ cp jinit13126.exe /m03/db4/commtop/util/jinitiator/. Note:Here still it uses earlier jinitiator version,so after Inter-operability go to fnd/patch/115/bin Run ./jinit.sh 13126 Script which will update the new Jinitiator version. [applmgr@srvr33 ~]$ echo $FORMS60_WEB_CONFIG_FILE /m03/db4/commtop/html/bin/appsweb_db4_srvr33.cfg [applmgr@srvr33 ~]$ grep jinit /m03/db4/commtop/html/bin/appsweb_db4_srvr33.cfg jinit_ver_name=Version=1,1,8,16 jinit_mimetype=application/x-jinit-applet;version=1.1.8.16 jinit_classid=clsid:9b935470-ad4a-11d5-b63e-00c04faedb18 ; jinit - use the JInitiator plugin (default) plugin=jinit jinit_name=oajinit.exe jinit_url=/jinitiator/ jinit_download_page=/jinitiator/us/jinit_download.htm jinit_appletcache=on sun_plugin_url=http://srvr33.bss.com:8007/OA_HTML/oajinit.exe Apply Inter-Operability Patch ----------------------------[applmgr@srvr33 jinit]$ unzip -o p5117525_11i_GENERIC.zip [applmgr@srvr33 jinit]$ cd 5117525/ [applmgr@srvr33 5117525]$ adpatch [applmgr@srvr33 5117525]$ cd fnd/patch/115/bin/ [applmgr@srvr33 bin]$ ls appsweb.cmd appsweb.sh jinit.cmd jinit.sh L165329.log L165379.log [applmgr@srvr33 bin]$ ./jinit.sh 13126 Starting JInitiator Interoperability Upgrade Script...

Enter the complete path including the filename to the Application context file [ /m03/db4/appltop/admin/db4_srvr33.xml]: At the end it will Run AutoConfig [applmgr@srvr33 bin]$ . /m03/db4/appltop/APPSdb4_srvr33.env [applmgr@srvr33 bin]$ echo $FORMS60_WEB_CONFIG_FILE /m03/db4/commtop/html/bin/appsweb_db4_srvr33.cfg [applmgr@srvr33 bin]$ grep jinit /m03/db4/commtop/html/bin/appsweb_db4_srvr33.c fg jinit_ver_name=Version=1,3,1,26 jinit_mimetype=application/x-jinit-applet;version=1.3.1.26 Now XML uses new Jinitiator version 1.3 a)Update The Current View Snapshot using adadmin [applmgr@srvr33 ~]$ . /m03/db4/appltop/APPSdb4_srvr33.env [applmgr@srvr33 ~]$ adadmin 2. Maintain Applications Files menu 5. Maintain snapshot information 2. Update current view snapshot This will Create a Snapshot file /m03/db4/appltop/admin/db4/out/ snapdnld.txt b)Apply java Prereq's patches 2809327,2939083,2972148 Use Merge [applmgr@srvr33 bin]$ cd /stage/Patches_for_upgrade/ [applmgr@srvr33 Patches_for_upgrade]$ cd javapac/ [applmgr@srvr33 javapac]$ cd javapatch/ [applmgr@srvr33 javapatch]$ mkdir java_pre_b4m java_pre_afmer Copy p2939083_11i_GENERIC.zip,p2809327_11i_GENERIC.zip, p2972148_11i_GENERIC.zip to java_pre_b4m & unzip [applmgr@srvr33 java_pre_b4m]$ ls 2809327 2972148 p2939083_11i_GENERIC.zip 2939083 p2809327_11i_GENERIC.zip p2972148_11i_GENERIC.zip [applmgr@srvr33 javapatch]$ admrgpch /stage/Patches_for_upgrade/javapac/ javapatch/java_pre_b4m/ /stage/Patches_for_upgrade/javapac/javapatch/ java_pre_afmer/. [applmgr@srvr33 javapatch]$ cd java_pre_afmer/ 2809327_README.txt b2939083.ldt f2939083.ldt j2972148.zip 2939083_README.txt b2972148.ldt f2972148.ldt 2972148_README.txt backup fnd b2809327.ldt cjava_pre_afmer.drv j2809327.zip [applmgr@srvr33 javapatch]$ adpatch Provide cjava_pre_afmer.drv c)Apply Product Inter-Operability Patches using Merge [applmgr@srvr33 bin]$ cd /stage/Patches_for_upgrade/ [applmgr@srvr33 Patches_for_upgrade]$ cd javapac/ [applmgr@srvr33 javapac]$ cd javapatch/ [applmgr@srvr33 javapatch]$ mkdir java_InterOp_b4m java_InterOp_afmer Unzip 3199598 3503919 3695147 to java_InterOp_b4m [applmgr@srvr33 javapatch]$ cd java_intero_b4m 3199598 3503919 3695147 [applmgr@srvr33 javapatch]$ admrgpch /stage/Patches_for_upgrade/javapac/ javapatch/java_InterOp_b4m/ /stage/Patches_for_upgrade/javapac/javapatch/ java_InterOp_afmer/. [applmgr@srvr33 javapatch]$ cd java_intero_afm/ 3199598_README.html ad b3695147.ldt fnd ipd 3199598_README.txt ak backup icx j3503919.zip 3503919_README.html as cs ieb j3695147.zip 3503919_README.txt ast f3199598.ldt ieo jcopy

3695147_README.html b3199598.ldt f3503919.ldt ieu jtf 3695147_README.txt b3503919.ldt f3695147.ldt iex u_merged.drv [applmgr@srvr33 javapatch]$ adpatch Provide u_merged.drv Note:If any worker is Failed,Find out the missing prereq patch & apply otherwise skip it by using adctrl option 8. d)Now Apply BIS Patch 38494718(Business Intelligence) only if you use Discover Server,Apply TXK -I we have already applied & version is L. e)[applmgr@srvr33 javapatch]$ cd 3239047/(J2SE Inter-Oper Patch) [applmgr@srvr33 3239047]$ ls *drv c3239047.drv d3239047.drv g3239047.drv [applmgr@srvr33 3239047]$ adpatch Apply C,D,G [applmgr@srvr33 javapatch]$ cd 3975013/(AD) [applmgr@srvr33 3975013]$ ls ad backup j3975013.zip README.html u3975013.drv b3975013.ldt f3975013.ldt marker1.txt README.txt [applmgr@srvr33 3975013]$ adpatch Provide u3975013.drv Java ---[applmgr@srvr33 db4_srvr33]$ echo $ADJVAPRG /m03/db4/commtop/util/jre/1.1.8/bin/jre [applmgr@srvr33 db4_srvr33]$ echo $AFJVAPRG /opt/21jdk1.3.1_20/bin/java [applmgr@srvr33 db4_srvr33]$ cd /m03/db4/commtop/util/ [applmgr@srvr33 util]$ mkdir java1.4 Copy j2sdk1.4.2_04 files to this directory [applmgr@srvr33 bin]$ cd /m03/db4/appltop/fnd/11.5.0/patch/115/bin/ [applmgr@srvr33 bin]$ ./txkJdkM.sh Using Application context file /m03/db4/appltop/admin/db4_srvr33.xml... Sourcing /m03/db4/appltop/db4_srvr33.env APPL_TOP environment file..... Enter the full path for the JDK installation: /m03/db4/commtop/util/java1.4 .... You will have to run AutoConfig to finish the new JDK migration Do you want to run AutoConfig now (y/n) [y] : User response: txkJdkM.sh completed [applmgr@srvr33 bin]$ echo $AFJVAPRG /m03/db4/commtop/util/java1.4/bin/java [applmgr@srvr33 bin]$ echo $ADJVAPRG /m03/db4/commtop/util/java1.4/bin/java [applmgr@srvr33 bin]$ cd $AD_TOP/bin [applmgr@srvr33 bin]$ perl adjava adjava adjavamig.pl [applmgr@srvr33 bin]$ perl adjavamig.pl java=/m03/db4/commtop/util/java1.4 Enter the full file path to the Context file: /m03/db4/appltop/admin/db4_srvr33. xml Post Migration Steps 1. Run Autoconfig 2. Source the environment before running AD utilities The logfile for this session is located at:

/m03/db4/appltop/admin/db4_srvr33/01311933/adjavamig.log Run AutoConfig [applmgr@srvr33 bin]$ ./adconfig.sh Enter the full path to the Context file: /m03/db4/appltop/admin/db4_srvr33.xm Enter the APPS user password:apps Apply Tablespace patch ---------------------cd /stage/Patches_for_upgrade/tablespacePatch/3180164 cd ad/patch/115/sql conn apps/apps @adgnofa.sql ALL [applmgr@srvr33 sql]$ vi adcrtbsp.sql :%s#?/dbf/#/prod/db4/oradata# [applmgr@srvr33 sql]$ sqlplus SQL*Plus: Release 8.0.6.0.0 - Production on Sat Jan 31 20:04:04 2009 (c) Copyright 1999 Oracle Corporation. All rights reserved. Enter user-name: system/manager Connected to: Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production With the Partitioning, OLAP and Oracle Data Mining options JServer Release 9.2.0.8.0 - Production SQL> @adruncts.sql Attention: This script requires 3270 MB of available disk space on the database server node. Please ensure that this much disk space is available before running this script. Do you want to run the script:yes Maintenance Patch ----------------[applmgr@srvr33 bin]$ cd /prod/mp/ [applmgr@srvr33 mp]$ ls 3480000 p3480000_11i_LINUX_2of4.zip p3480000_11i_LINUX_4of 4.zip p3480000_11i_LINUX_1of4.zip p3480000_11i_LINUX_3of4.zip [applmgr@srvr33 mp]$ cd 3480000/ [applmgr@srvr33 mp]$ adpatch provide u3480000.drv 5. OFA to OATM (Oracle Apps Tablespace Model) -- optional If we are not moving to OATM , we have to add new tablespaces for new products and increase the size of the existing TS. 6. Inter-operability patch. Upgrade --------7. MP ( Maintainance Pack). Post upgrade steps -----------------8. Product Inter-operability patch 9. Compile Invalid Objects ############################################################################# ADADMIN: [applmgr@srvr33 appltop]$ . APPSdb4_srvr33.env [applmgr@srvr33 appltop]$ adadmin

AD Administration Main Menu -------------------------------------------------1. 2. 3. 4. 5. 6. Generate Applications Files menu Maintain Applications Files menu Compile/Reload Applications Database Entities menu Maintain Applications Database Entities menu Change Maintenance Mode Exit AD Administration

Enter your choice [6] : 1 Generate Applications Files ---------------------------------------1. 2. 3. 4. 5. 6. Generate message files Generate form files Generate report files Generate graphics files Generate product JAR files Return to Main Menu

Enter your choice [6] : 2 Maintain Applications Files ---------------------------------------1. 2. 3. 4. 5. 6. 7. Relink Applications programs Create Applications environment file Copy files to destinations Convert character set Maintain snapshot information Check for missing files Return to Main Menu

Enter your choice [6] : 3 Compile/Reload Applications Database Entities --------------------------------------------------1. 2. Compile APPS schema Compile menu information

3. 4. 5.

Compile flexfields Reload JAR files to database Return to Main Menu

Enter your choice [6] : 4 Maintain Applications Database Entities --------------------------------------------------1. 2. 3. 4. 5. 6. 7. Validate APPS schema Re-create grants and synonyms for APPS schema Maintain multi-lingual tables Check DUAL table Convert to Multiple Reporting Currencies Convert to Multi-Org Return to Main Menu

Enter your choice [6] : 5 Change Maintenance Mode ---------------------------------------Maintenance Mode is currently: [Enabled]. Maintenance mode should normally be enabled Oracle Applications and disabled when users to the system. See the Oracle Applications Utilities manual for more information about Please select an option: 1. 2. 3. Enable Maintenance Mode Disable Maintenance Mode Return to Main Menu when patching are logged on Maintenance maintenance mode.

-----------------------------------------------------------------------------ADC TRL: [applmgr@srvr33 appltop]$ . APPSdb4_srvr33.env [applmgr@srvr33 appltop]$ adctrl AD Controller Menu --------------------------------------------------1. 2. Show worker status Tell worker to restart a failed job

3. 4. 5. 6.

Tell worker to quit Tell manager that a worker failed its job Tell manager that a worker acknowledges quit Restart a worker on the current machine

7. Exit ############################################################################# UNIX SYSTEM SETUP ==================== 1. Install linux 4.6 ( Free ware from www.oracle.com/linux). 2. Create group dba. groupadd -g dba 3. Create users & pwd for oracle, applmgr with dba group assigned. useradd -u 500 -g dba -d /home/oracle oracle useradd -u 501 -g dba -d /home/applmgr applmgr As root [root@srvr33 ~]# passwd applmgr Changing password for user applmgr. New UNIX password: BAD PASSWORD: it is based on a dictionary Retype new UNIX password: passwd: all authentication tokens updated [root@srvr33 ~]# passwd oracle Changing password for user oracle. New UNIX password: BAD PASSWORD: it is based on a dictionary Retype new UNIX password: passwd: all authentication tokens updated

word successfully.

word successfully.

4. Set the kernel parameters required for oracle. /etc/sysctl.conf kernel.core_uses_pid = 1 kernel.shmmax=2147483648 kernel.sem=250 32000 100 128 fs.file-max=65536 net.ipv4.ip_local_port_range=1024 65000 kernel.hostname=srvr33 net.core.rmem_default=262144 net.core.wmem_default=262144 net.core.rmem_max=262144 net.core.wmem_max=26214 5. Set the file limit /etc/security/limits.conf oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 655536 applmgr soft nproc 2047 applmgr hard nproc 16384 applmgr soft nofile 1024 applmgr hard nofile 655536 6. Load the additional rpms required for oracle

rpm -ivh compat-libcwait-2.1-1.i386.rpm rpm -ivh compat-oracle-rhel4-1.0-5.i386.rpm 7. Export parameter in bash_profile for root,oracle,applmgr export LD_ASSUME_KERNEL=2.4.19 ############################################################################# ORACLE FLEXIBLE ARCHITECTURE (OFA) T0 ORACLE APPLICATIONS TABLESPACE MODEL (OATM) =========================================== 1. Install 1159 instance,Apply InterOperability Listener Patch(806) 2. Apply AD_I_2,Rollup Patches (OPTIONAL) Apply ADX.F Patch 3. Run Autoconfig 4. Run appsutil.pl, copy the appsutil.zip to db tier & give 777 Permissions and run autoconfig in the db tier 5. Apply OATM patch. cd /stage/Patches_for_upgrade/oatm/3381489 [applmgr@srvr33 3381489]$ ls -l *.drv -rwxrwxrwx 1 applmgr dba 151056 Apr 21 2004 c3381489.drv -rwxrwxrwx 1 applmgr dba 63496 Apr 21 2004 d3381489.drv -rwxrwxrwx 1 applmgr dba 17837 Apr 21 2004 g3381489.drv [applmgr@srvr33 3381489]$ adpatch c3381489.drv d3381489.drv g3381489.drv 6. As oracle user create a directory to hold new tablespaces. mkdir /prod/db1/oradata/oatm 7. As applmgr Run $FNT_TOP/bin/fndtsmig.pl scirpt. This will launch a menu driven application. [applmgr@srvr33 oatm]$ . /m03/db1/appltop/APPSdb1_srvr33.env [applmgr@srvr33 oatm]$ perl /m03/db1/appltop/fnd/11.5.0/bin/fndtsmig.pl +=======================================================================+ Copyright (c) 2003 Oracle Corporation Redwood Shores, California, USA All rights reserved. +=======================================================================+ Welcome to the Oracle Applications Tablespace Migration Utility +=======================================================================+ Enter your FND_TOP[/m03/db1/appltop/fnd/11.5.0]: Enter the Database Connect String: db1 Enter the password for your 'SYSTEM' ORACLE schema: Successfully connected to database db1 using SYSTEM user.

Enter the password for your 'SYS' ORACLE schema: Successfully connected to database db1 using SYS user. Enter the ORACLE Application Object Library Schema name[APPS]: Enter the password for APPS: Successfully connected to database db1 using APPS user. Enter the APPLSYS Schema name[APPLSYS]: Determining if APPS has the required privileges APPS does not have the required privileges. These will be granted before continuing with the migration. Creating the required packages... Oracle Applications Tablespace Migration Utility Main Menu 1. 2. 3. 4. 5. 6. 7. Migration Sizing Reports Create New Tablespaces Generate Migration Commands Execute Migration Commands Run Migration Status Reports Run Post Migration Steps Run Customization Steps [N]ext

[Q]uit

Please enter your option - 1 Migration Sizing Reports These reports are provided to help you gauge the space requirements for the new Tablespaces. Additionally, they will also help you determine the type of migration approach that best suits your needs 1. Generate a Report with the list of all the Oracle Application product schemas that can be migrated 2. Calculate total space required by each new tablespace to migrate all Oracle Application product schemas (relevant for a complete migration) 3. Calculate total space required by each new tablespace to migrate each Oracle Application product schema (relevant for a schema-by-schema migration) 4. Calculate total space required by each Oracle Applications schema, with details for each object 5. Display Sizing Exception report [Q]uit [B]ack [N]ext Please enter your option - 2 Sizing Program has never been run. Enter the Extent Allocation type A(utoallocate) or U(niform Extent Size)[U]: U Enter Uniform Extent Size for the Tablespaces in KBytes[128]: Executing the Sizing program for all schemas. This may take upto 20min. Please wait... Recommended

Estimated space space in KB existing Tablespace required in KB (20% Buffer) objects in KB -------------------------------------- --------------- --------------APPS_TS_ARCHIVE 600,320 720,384 373,760 APPS_TS_INTERFACE 527,872 633,447 381,440 APPS_TS_MEDIA 349,312 419,175 456,680 APPS_TS_NOLOGGING 38,784 46,541 24,120 APPS_TS_QUEUES 52,992 63,591 20,680 APPS_TS_SEED 1,511,936 1,814,324 1,619,920 APPS_TS_SUMMARY 498,816 598,580 271,600 APPS_TS_TX_DATA 1,605,120 1,926,144 1,250,760 APPS_TS_TX_IDX 3,456,000 4,147,200 2,671,440 ---------------- --------------- --------Total(in KB): 8,641,152 10,369,386 7,070,400 Please enter your option - B Please enter your option - 2 Create New Tablespaces 1. Generate new tablespace creation script 2. Create new tablespaces [Q]uit [B]ack [N]ext

Please enter your option - 1 Enter the Extent Allocation type A(utoallocate) or U(niform Extent Size)[U]: Enter Uniform Extent Size for the Tablespaces in KBytes[128]: ***************************************************************** The utility will append a sequence number to the tablespace name and a .dbf extension to generate the datafile names. Datafile size should not be greater than OS file size limit. Please edit the generated script to change the file name/size ***************************************************************** Enter Enter Enter Enter Enter Enter Enter Enter Enter Enter Enter Enter Enter Enter Enter Enter Enter Enter Enter the the the the the the the the the the the the the the the the the the the absolute path for the datafiles directory: /prod/db1/oatmdata Number of Datafiles for Transaction data tablespace[1]: Datafile Size for Transaction data tablespace (MB): 2048 Number of Datafiles for Transaction index tablespace[1]: 3 Datafile Size for Transaction index tablespace (MB): 1600 Number of Datafiles for Reference(SEED) tablespace[1]: 1 Datafile Size for Reference tablespace (MB): 2048 Number of Datafiles for Interface tablespace[1]: 1 Datafile Size for Interface tablespace (MB): 700 Number of Datafiles for Summary tablespace[1]: 1 Datafile Size for Summary tablespace (MB): 700 Number of Datafiles for Nologging tablespace[1]: 1 Datafile Size for Nologging tablespace (MB): 60 Number of Datafiles for Archive tablespace[1]: 1 Datafile Size for Archive tablespace (MB): 800 Number of Datafiles for Queue tablespace[1]: 1 Datafile Size for Queue tablespace (MB): 80 Number of Datafiles for Media tablespace[1]: 1 Datafile Size for Media tablespace (MB): 500

Tablespace creation script /prod/db1/oatm/crtts.sql created

Press Return key to continue... Please enter your option - 2 Creating Tablespaces. Please wait... Connected. Tablespace created. Please enter your option - 3 Generate Migration Commands Generation of Migration commands including disable/enable commands for triggers, constraints, policies, stop/start for queues. 1. Invalid Indexes Report. Please correct/drop these before generating migration commands 2. Generate migration commands for all schemas 3. Generate migration commands for a list of schemas [Q]uit [B]ack [N]ext

Please enter your option - 2 Generating Migration commands for all schemas. This may take upto 30min. Please wait... Command generation successful. Please check the log /prod/db1/oatm/fndgmcmd02041 75723.log Press Return key to continue... Oracle Applications Tablespace Migration Utility Main Menu 1. 2. 3. 4. 5. 6. 7. Migration Sizing Reports Create New Tablespaces Generate Migration Commands Execute Migration Commands Run Migration Status Reports Run Post Migration Steps Run Customization Steps [N]ext

[Q]uit

Please enter your option - 4 Execute Migration Commands Execution of Migration commands including disable commands for triggers constraints, stop/start for queues. PLEASE TAKE A COMPLETE BACKUP OF THE DATABASE BEFORE MIGRATION 1. Migrate all Schemas 2. Migrate a list of Schemas [Q]uit [B]ack [N]ext

Please enter your option - 1 Are you sure you want to migrate all schemas[N]: Y Enter the maximum number of parallel processes[2]: Starting the Migration process for all schemas. Please wait... Migration processes for tables with LONG and LONG RAW columns started. Please mo nitor the log file /prod/db1/oatm/fndmlong0204181315.log for errors Sequential migration process started. Please monitor the log file /prod/db1/oatm /fndemseq0204181316.log for errors Parallel migration processes started. Please monitor the log file /prod/db1/oatm /fndemcmd0204181316.log for errors Press Return key to continue... Please enter your option - 5 Run Migration Status Reports 1. Run migration progress report 2. Run migration error report [Q]uit [B]ack [N]ext

Please enter your option - Run both options Please enter your option - 6 Run Post Migration Steps 1. Run audit report 2. Enable constraints/triggers/policies & start queues 3. Resize old tablespaces Note: Please complete refresh all the Materialized Views in Oracle Applications before using the system. [Q]uit [B]ack

Please enter your option - Run all the options one after one. Please enter your option - 7 Customization 1. 2. 3. 4. Register new tablespace - tablespace type Change name of the existing tablespace Register object classification Change object classification

[Q]uit [B]ack Please enter your option - Run all the options one after one. #############################################################################

DISTRIBUTED APPLTOP TO SHARED APPLTOP [MERGE APPLTOP] -----------------------------------------------------Note: 11.5.9 Distributed Appltop 11.5.10 Shared Appltop 11.5.10.2 Shared Application Tier STEPS ====== 1. Create the directories. Rdbms, Admin, Ccm on srvr33. Web and Forms server on srvr77. [root@srvr33 [root@srvr33 [root@srvr33 [root@srvr33 [root@srvr33 [root@srvr33 [root@srvr33 [root@srvr33 [root@srvr33 [root@srvr33 [root@srvr33 [root@srvr33 [root@srvr77 [root@srvr77 [root@srvr77 [root@srvr77 [root@srvr77 [root@srvr77 ~]# ~]# ~]# ~]# ~]# ~]# ~]# ~]# ~]# ~]# ~]# ~]# ~]# ~]# ~]# ~]# ~]# ~]# mkdir mkdir mkdir mkdir chown chown chown chown chmod chmod chmod chmod mkdir mkdir chown chown chmod chmod -p -p -p -p -R -R -R -R -R -R -R -R -p -p -R -R -R -R /m01/db2/rdbms /prod/db2/oradata /m02/db2/{806,ias} /m03/db2/{appltop,commtop} oracle:dba /m01/db2 applmgr:dba /m02/db2 applmgr:dba /m03/db2 oracle:dba /prod/db2 777 /prod/db2 777 /m01/db2 777 /m02/db2 777 /m03/db2 /u02/db2/{806,ias} /u03/db2/{appltop,commtop} applmgr:dba /u02/db2 applmgr:dba /u03/db2 777 /u02/db2 777 /u03/db2

2. Install 11.5.10.0 on srvr33 and srvr77 ( Refer Multinode Install). 3. verify whether Single-Node or Multi-Node & Appltop's Location. conn apps/apps SQL>select node_name,support_cp,support_forms,support_web,support_admin ,status,host from fnd_nodes; NODE_NAME S S S S S ------------------------------ - - - - HOST -----------------------------------------------------------------AUTHENTICATION N N N N N SRVR33 Y N N Y Y srvr33 SRVR77 N Y Y N Y srvr77 SQL>desc fnd_appl_tops SQL>select node_id,name,path from fnd_appl_tops; PATH -----------------NAME -----------------/m03/db2/appltop srvr33

/u03/db2/appltop srvr77 4. Apply Application Tier Patches verify that these minimum s/w levels are met.If necessary,update to the required level by applying the appropriate Patch. shut the services. /m03/db2/commtop/admin/scripts/db2_srvr33 [root@srvr33 db2_srvr33]# ll ./adstpall.sh apps/apps AD Mini-Pack 1.1 or higher is required . Now Applying ADX ADX.F , AD_I_2. ADX.F ----[applmgr@srvr33 [applmgr@srvr33 [applmgr@srvr33 [applmgr@srvr33 [applmgr@srvr77 [applmgr@srvr77 [applmgr@srvr77 [applmgr@srvr77

~]# ~]# ~]# ~]# ~]# ~]# ~]# ~]#

cd /m03/db2/appltop . APPSdb2_srvr33.env cd /stage/Patches_for_upgrade/ADX.F/3453499 adpatch cd /u03/db2/appltop . APPSdb2_srvr77.env cd /stage/Patches_for_upgrade/ADX.F/3453499 adpatch

ADI2 ---Note: Apply the Patch in Admin Node First & last on web-node. Enable Maintenance Mode [applmgr@srvr33 ~]# cd /m03/db2/appltop [applmgr@srvr33 ~]# . APPSdb2_srvr33.env [applmgr@srvr33 ~]# cd /stage/Patches_for_upgrade/AD_I_2/4377683 [applmgr@srvr33 ~]# adpatch [applmgr@srvr77 [applmgr@srvr77 [applmgr@srvr77 [applmgr@srvr77 ~]# ~]# ~]# ~]# cd /u03/db2/appltop . APPSdb2_srvr77.env cd /stage/Patches_for_upgrade/AD_I_2/4377683 adpatch

Disable Maintenance Mode. [applmgr@srvr33 ~]$ . /m03/db2/appltop/APPSdb2_srvr33.env [applmgr@srvr33 ~]$which admkappsutil.pl /m03/db2/appltop/ad/11.5.0/bin/admkappsutil.pl [applmgr@srvr33 ~]$cd $AD_TOP/bin [applmgr@srvr33 ~]$perl admkappsutil.pl This will create appsutil.zip in /m03/db2/appltop/admin/out/ Copy appsutil.zip to ORACLE_HOME(DBTIER). [oracle@srvr33 ~]$cd /m01/db2/rdbms [oracle@srvr33 ~]$cp /m03/db2/appltop/admin/out/appsutil.zip . [oracle@srvr33 ~]$chmod 777 appsutil.zip [oracle@srvr33 ~]$unzip -o appsutil.zip Then it will create appsoui directory Run Autoconfig [oracle@srvr33 ~]$cd rdbms/appsutil/scripts/context_name/ [oracle@srvr33 ~]$./adautocfg.sh

5. Maintain Snapshot Information Log in to each Application Tier node as the applmgr user Run Maintain Snapshot task in AD Administration tool [applmgr@srvr33 ~]# cd /m03/db2/appltop [applmgr@srvr33 ~]# . APPSdb2_srvr33.env [applmgr@srvr33 ~]# adadmin 2.Maintain Applications Files menu 5.Maintain snapshot information 2.Update current view snapshot LOCATION:"/m03/db2/appltop/admin/db2/out/snapshot.txt" [applmgr@srvr77 ~]# cd /u03/db2/appltop [applmgr@srvr77 ~]# . APPSdb2_srvr77.env [applmgr@srvr77 ~]# adadmin 2.Maintain Applications Files menu 5.Maintain snapshot information 2.Update current view snapshot 6. Merging Existing Appltops a)Prepare the Primary Node application tier for Merging. Choose WEB-Node as Primary Node(srvr77). Log in as a applmgr user [applmgr@srvr77 ~]# cd /u03/db2/commtop/admin/scripts/db2_srvr77 [applmgr@srvr77 ~]# perl adpreclone.pl appsTier merge Running adgenhfver.pl with command... perl /u03/db2/appltop/ad/11.5.0/bin/adgenhfver.pl isPrimary=y applsysusr=APPLSYS tempdir=/u03/db2/commtop/temp Please enter the APPS User [APPS]: apps Please enter the APPS password: apps This is the merge Primary node: PLATFORM: linux Current APPL_TOP: srvr77 APPL_TOPs belonging to db2, that can be merged with srvr77: srvr33(ADMIN, CONCURRENT_PROCESSING) Do you want to include srvr33 in the merge ? [y]: y Generating the high version files manifest. This will take some time, please wait... sqlplus -s apps/apps @/u03/db2/appltop/ad/11.5.0/patch/115/sql/admsnlst.sql db2 srvr77 srvr33,srvr77 APPLSYS /u03/db2/appltop/admin/db2/out/hfilever_appl_top.tx t Y Manifest located in: /u03/db2/appltop/admin/db2/out/hfilever_appl_top.txt You can now go ahead and run the preparation on the subsequent node(s) while thi s process completes. Running Rapid Clone with command... perl /u03/db2/appltop/ad/11.5.0/bin/adclone.pl java=/u02/db2/ias/appsoui

/jre/1.3.1 mode=stage stage=/u03/db2/commtop/clone component=appsTier method=CUS TOM appctx=/u03/db2/appltop/admin/db2_srvr77.xml merge showProgress Beginning application tier Stage - Sat Feb 7 14:01:20 2009 Log file located at /u03/db2/appltop/admin/db2_srvr77/log/StageAppsTier_02070201 .log Completed Merge APPL_TOP preparation for current Node... Sat Feb 7 14:46:07 2009 Log in as a applmgr user to ecah of secondary nodes being merged [applmgr@srvr33 ~]# cd /m03/db2/commtop/admin/scripts/db2_srvr33 [applmgr@srvr33 ~]# perl adpreclone.pl appltop merge Running adgenhfver.pl with command... perl /m03/db2/appltop/ad/11.5.0/bin/adgenhfver.pl isPrimary=n applsysus r=APPLSYS tempdir=/m03/db2/commtop/temp Please enter the APPS User [APPS]: apps Please enter the APPS password: apps Current APPL_TOP: srvr33 This is a subsequent node to be merged into the primary node. Downloading the high version files manifest from the database... Found the manifest for merging srvr33,srvr77 using srvr77 as the Primary node. sqlplus -s apps/apps @/m03/db2/appltop/ad/11.5.0/patch/115/sql/admsnlst.sql db2 srvr33 srvr33,srvr77 APPLSYS /m03/db2/appltop/admin/db2/out/hfilever_appl_top.tx t N Manifest located in: /m03/db2/appltop/admin/db2/out/hfilever_appl_top.txt Running Rapid Clone with command... perl /m03/db2/appltop/ad/11.5.0/bin/adclone.pl java=/m02/db2/ias/appsoui /jre/1.3.1 mode=stage stage=/m03/db2/commtop/clone component=appltop method=CUST OM appctx=/m03/db2/appltop/admin/db2_srvr33.xml merge showProgress Beginning appltop Merge - Sat Feb 7 14:09:02 2009 Log file located at /m03/db2/appltop/admin/db2_srvr33/log/MergeApplTop_02070209. log Completed Merge APPL_TOP preparation for current Node... Sat Feb 7 15:16:15 2009 b)Copy required files to Primary Node(WEB-NODE) for merging. [applmgr@srvr33 ~]# cd $COMMON_TOP/clone/appl [applmgr@srvr33 ~]# scp -rp srvr33 srvr77:/u03/db2/commtop/clone/appl/. c)Log in to Primary Node,Take new Sessions & dont Run ENV [applmgr@srvr77 ~]# cd /u03/db2/commtop/clone/bin [applmgr@srvr77 ~]# perl adcfgclone.pl appsTier Enter the APPS password [APPS]: apps First Creating a new context file for the cloned system. The program is going to ask you for information about the new system: Provide the values required for creation of the new APPL_TOP Context file.

Do you want to use a virtual hostname for the target node (y/n) [n] ?: Target system database SID [db2]: Target system database server node [srvr33]: Target system database domain name [bss.com]: Does the target system have more than one application tier server node (y/n) [y] ?:n Is the target system APPL_TOP divided into multiple mount points (y/n) [n] ?: Target system APPL_TOP mount point [/u03/db2/appltop]: Target system COMMON_TOP directory [/u03/db2/commtop]: Target system 8.0.6 ORACLE_HOME directory [/u02/db2/806]: Target system iAS ORACLE_HOME directory [/u02/db2/ias]: Do you want to preserve the Display set to srvr33:0.0 (y/n) [y] ?: Enter the Database listener port [1571]: Database port is 1571 Do you want the middle-tier services on the target system to have the same port values as the source system (y/n) [y] ?: Web Listener port is 8050 Complete port information available at /u03/db2/appltop/admin/out/db2_srvr77/por tpool.lst UTL_FILE_DIR on database tier consists of the following directories. 1. /usr/tmp 2. /m01/db2/rdbms/appsutil/outbound/db2_srvr33 Choose a value which will be set as APPLPTMP value on the target node [1]: Backing up /u03/db2/appltop/admin/db2_srvr77.xml to /u03/db2/appltop/admin/db2_s rvr77.xml.bak Creating the new APPL_TOP Context file from : /u03/db2/appltop/ad/11.5.0/admin/template/adxmlctx.tmp The new APPL_TOP context file has been created : /u03/db2/appltop/admin/db2_srvr77.xml Log file located at /u03/db2/commtop/clone/bin/CloneContext_02070321.log Running Rapid Clone with command: perl /u03/db2/commtop/clone/bin/adclone.pl java=/u03/db2/commtop/clone/b in/../jre mode=apply stage=/u03/db2/commtop/clone/bin/.. component=appsTier meth od=CUSTOM appctxtg=/u03/db2/appltop/admin/db2_srvr77.xml merge showProgress cont extValidated=true Beginning application tier Apply - Sat Feb 7 15:25:47 2009 Log file located at /u03/db2/appltop/admin/db2_srvr77/log/ApplyAppsTier_02070325 .log Completed Apply...

Sat Feb 7 16:09:32 2009 Beginning APPSIAS_db2 registration to central inventory... ORACLE_HOME NAME : APPSIAS_db2 ORACLE_HOME PATH : /u02/db2/ias Using Inventory location in /etc/oraInst.loc Log file located at /etc/oraInventory/logs/OracleHomeCloner_02070409.log RC-00123: Warning: ORACLE_HOME APPSIAS_db2 already exists inside the inventory Executing merge appl top for JRI merge merge jri files with command : JRI log file located at, /u03/db2/appltop/admin/db2/out/jri_logfile.txt JRI report file located at, /u03/db2/appltop/admin/db2/out/jri_report.txt Copying master archive from /u03/db2/commtop/clone/bin/../appl/srvr33/java/* to /u03/db2/commtop/java Completed copying master archive to /u03/db2/commtop/java Starting application Services for db2: Running: /u03/db2/commtop/admin/scripts/db2_srvr77/adstrtal.sh APPS/<appspwd> You are running adstrtal.sh version 115.16 Executing service control script: /u03/db2/commtop/admin/scripts/db2_srvr77/ 7. Finishing tasks [applmgr@srvr77 ~]# cd /u03/db2/appltop [applmgr@srvr77 ~]# . APPSdb2_srvr77.env [applmgr@srvr77 ~]# adadmin Run the following tasks in adadmin tool for all the products * Generate JAR Files 1.Generate Applications Files menu 5.Generate product JAR files * Generate Message files 1.Generate Applications Files menu 1.Generate message files * Relink Executables 2.Maintain Applications Files menu 1.Relink Applications programs * Check for missed Files 2.Maintain Applications Files menu 6.Check for missing files Copy from srvr33 to srvr77 Missing files or directories needed in Application Object Library ---------------------------------------------------------------/u03/db2/appltop/fnd/11.5.0/lib/fdcpspn.o /u03/db2/appltop/au/11.5.0/perl/FND/CP.pm /u03/db2/appltop/au/11.5.0/perl/FND/CP/Logfile.pm /u03/db2/appltop/au/11.5.0/perl/FND/CP/ReqContext.pm Missing files or directories needed in Purchasing ---------------------------------------------------------------/u03/db2/appltop/po/11.5.0/bin/POCIRM /u03/db2/appltop/po/11.5.0/lib/pocis.o Missing files or directories needed in Bills of Material

---------------------------------------------------------------/u03/db2/appltop/bom/11.5.0/lib/cmllcw.o 8. Mount /u03[appltop,commtop] on srvr33 give applmgr:dba permissions to /u03 9. Generate xml file in srvr55 [applmgr@srvr33 ]$ cd /u03/db2/appltop/admin/ [applmgr@srvr33 ]$ ls db2_srvr77.xml [applmgr@srvr33 ]$ cd /u03/db2/appltop/ad/115/bin [applmgr@srvr33 ]$ perl adpreclone.pl sharedappltop contextfile=/u03/db2/appl top/admin/db2_srvr77.xml Provide the values required for creation of the new APPL_TOP Context file. Do you want to use a virtual hostname for the target node (y/n) [n] ?: Do you want to add admin server node (y/n) [y] ?: Do you want to add concurrent processing server node (y/n) [y] ?: Do you want to add forms server node (y/n) [y] ?: Do you want to add web server node (y/n) [y] ?: Target system 8.0.6 ORACLE_HOME directory [/u02/db2/806]:/m02/db2/806 Target system iAS ORACLE_HOME directory [/u02/db2/ias]:/m02/db2/ias Do you want to preserve the Display set to srvr77:0.0 (y/n) [y] ?: Database port is 1571 Do you want the middle-tier services on the target system to have the same port values as the source system (y/n) [y] ?: Web Listener port is 8050 Complete port information available at /u03/db2/appltop/admin/out/db2_srvr33/por tpool.lst APPS password is required to validate database connection using database port 15 71 Enter APPS Password [APPS]: UTL_FILE_DIR on database tier consists of the following directories. 1. /usr/tmp 2. /m01/db2/rdbms/appsutil/outbound/db2_srvr33 Choose a value which will be set as APPLPTMP value on the target node [1]: Creating the new APPL_TOP Context file from : /u03/db2/appltop/ad/11.5.0/admin/template/adxmlctx.tmp The new APPL_TOP context file has been created : /u03/db2/appltop/admin/db2_srvr33.xml Log file located at /u03/db2/appltop/admin/db2/out/CloneContext_02070528.log 10. Run AutoConfig on srvr33 [applmgr@srvr33 ]$ cd /u03/db2/appltop/ad/11.5.0/bin [applmgr@srvr33 bin]$ ./adconfig.sh Enter the full path to the Context file: /u03/db2/appltop/admin/ db2_srvr33.xml Enter the APPS user password:apps

[applmgr@srvr33 ]$ [applmgr@srvr33 ]$ APPSdb2_srvr33.env APPSdb2_srvr77.env

cd /u03/db2/appltop ls *.env APPSORA.env db2_srvr33.env db2.env db2_srvr77.env

############################################################################# CONVERTING AN MERGED APPLTOP TO SHARED APPS TIER (APPLTOP, COMMONTOP, 806, IAS) Note: Mount /u02(apTechstack ie 806,ias) on srvr33 in order to convert to SHARED APPS TIER. [applmgr@srvr33 ~]$ chmod -R 777 /u02/db2 1. Create config Directory in /u03 where appltop & commtop located. [applmgr@srvr33 ~]$ cd /u03/db2 [applmgr@srvr33 ~]$ mkdir config [applmgr@srvr33 ~]$ cd config [applmgr@srvr33 ~]$ mkdir srvr33 srvr77 [applmgr@srvr33 db2]$ chmod -R 777 config/ 2. Log in as applmgr user in srvr77 [applmgr@srvr77 ~]$ cd /u03/db2/appltop/ [applmgr@srvr77 appltop]$ ls *.env APPSdb2_srvr33.env APPSORA.env db2_srvr33.env APPSdb2_srvr77.env db2.env db2_srvr77.env [applmgr@srvr77 appltop]$ . APPSdb2_srvr77.env [applmgr@srvr77 appltop]$ cd /u03/db2/appltop/fnd/11.5.0/patch/115/bin/ [applmgr@srvr77 bin]$ ls txkSOHM.pl txkSOHM.pl [applmgr@srvr77 bin]$ perl txkSOHM.pl Absolute path of Application's Context XML file : /u03/db2/appltop/admin/db2_ srvr77.xml Type of Instance [primary/secondary] : primary Absolute path of 8.0.6 Shared Oracle Home : /u02/db2/806 Absolute path of iAS Shared Oracle Home : /u02/db2/ias Absolute path of config top : /u03/db2/config/srvr77 Oracle Application apps schema password : apps *** USER FEEDBACK *** Absolute path of Application's Context XML file dmin/db2_srvr77.xml Type of Instance [primary/secondary] Absolute path of Shared Oracle Home top Absolute path of 8.0.6 Shared Oracle Home Absolute path of iAS Shared Oracle Home Absolute path of config top vr77 Run AutoConfig [y/n] Oracle Application apps schema password Absolute path of the log file dmin/log/db2_srvr77/txkSetSOHM.log Prompt for confirmation [y/n] : /u03/db2/appltop/a : : : : : primary /u02/db2/806 /u02/db2/ias /u03/db2/config/sr

: y : apps : /u03/db2/commtop/a : n

Application's Context file Saved as : /u03/db2/appltop/admin/db2_srvr77.xml.SOH Creating Creating Creating Creating Creating directory directory directory directory directory /u03/db2/config/srvr77/8.0.6 ... /u03/db2/config/srvr77/iAS ... /u03/db2/config/srvr77/iAS/Apache/Apache/logs ... /u03/db2/config/srvr77/iAS/Apache/Jserv/logs/jvm ... /u03/db2/config/srvr77/iAS/Apache/Apache/htdocs/discwb4/apple

t ... Context Variable: s_confighome_top Present value : New value : /u03/db2/config/srvr77

**** Searching Applications Context file for substitutions of: /u03/db2/config/srvr77/8.0.6 /u03/db2/config/srvr77/iAS Context Variable: s_weboh_tnsadmin Present value : /u02/db2/ias/network/admin/db2_srvr77 New value : /u03/db2/config/srvr77/iAS/network/admin/db2_srvr77 Context Variable: s_tools_tnsadmin Present value : /u02/db2/806/network/admin/db2_srvr77 New value : /u03/db2/config/srvr77/8.0.6/network/admin/db2_srvr77 Context Variable: s_web_pid_file Present value : /u02/db2/ias/Apache/Apache/logs/httpd.pid New value : /u03/db2/config/srvr77/iAS/Apache/Apache/logs/httpd.pid Context Variable: s_web_ssl_directory Present value : /u02/db2/ias/Apache/Apache/conf New value : /u03/db2/config/srvr77/iAS/Apache/Apache/conf Context Variable: s_web_ssl_keyfile Present value : /u02/db2/ias/Apache/Apache/conf/ssl.key/server.key New value : /u03/db2/config/srvr77/iAS/Apache/Apache/conf/ssl.key/server.k ey Context Variable: s_web_ssl_certfile Present value : /u02/db2/ias/Apache/Apache/conf/ssl.crt/server.crt New value : /u03/db2/config/srvr77/iAS/Apache/Apache/conf/ssl.crt/server.c rt Context Variable: s_web_ssl_certchainfile Present value : /u02/db2/ias/Apache/Apache/conf/ssl.crt/ca-bundle.crt New value : /u03/db2/config/srvr77/iAS/Apache/Apache/conf/ssl.crt/ca-bundl e.crt Context Variable: s_jserv_secret_key Present value : /u02/db2/ias/Apache/Jserv/conf/jserv.secret.key New value : /u03/db2/config/srvr77/iAS/Apache/Jserv/conf/jserv.secret.key Context Variable: s_frmWalletDir Present value : /u02/db2/806/forms60/wallet New value : /u03/db2/config/srvr77/8.0.6/forms60/wallet Context Variable: s_forms60_wallet Present value : /u02/db2/806/forms60/wallet New value : /u03/db2/config/srvr77/8.0.6/forms60/wallet Context Variable: s_ifile Present value : /u02/db2/806/network/admin/db2_srvr77/db2_srvr77_ifile.ora New value : /u03/db2/config/srvr77/8.0.6/network/admin/db2_srvr77/db2_srvr

77_ifile.ora Context Variable: s_ias_ifile Present value : /u02/db2/ias/network/admin/db2_srvr77/db2_srvr77_ifile.ora New value : /u03/db2/config/srvr77/iAS/network/admin/db2_srvr77/db2_srvr77 _ifile.ora Context Variable: s_listener_ifile Present value : /u02/db2/806/network/admin/db2_srvr77/db2_srvr77_listener_ifil e.ora New value : /u03/db2/config/srvr77/8.0.6/network/admin/db2_srvr77/db2_srvr 77_listener_ifile.ora Context Variable: s_iASconfig_home Present value : /u02/db2/ias New value : /u03/db2/config/srvr77/iAS Context Variable: s_806config_home Present value : /u02/db2/806 New value : /u03/db2/config/srvr77/8.0.6 *** RUNNING AUTOCONFIG *** AutoConfig completed successfully. The log file for this session is located at: /u03/db2/commtop/admin/log/db2_srvr 77/txkSetSOHM_ac.log AutoConfig successfully completed AutoConfig log : /u03/db2/commtop/admin/log/db2_srvr77/txkSetSOHM_ac.log txkSOHM.pl successfully completed 3. Login as a applmgr user in srvr33 [applmgr@srvr33 ~]$ cd /u03/db2/appltop/ [applmgr@srvr33 appltop]$ ls *.env APPSdb2_srvr33.env APPSORA.env db2_srvr33.env APPSdb2_srvr77.env db2.env db2_srvr77.env [applmgr@srvr33 appltop]$ . APPSdb2_srvr33.env [applmgr@srvr33 appltop]$ cd /u03/db2/appltop/fnd/11.5.0/patch/115/bin/ [applmgr@srvr33 bin]$ ls txkSOHM.pl txkSOHM.pl [applmgr@srvr33 bin]$ perl txkSOHM.pl Absolute path of Application's Context XML file : /u03/db2/appltop/admin/ db2_srvr33.xml Type of Instance [primary/secondary] : secondary Absolute path of 8.0.6 Shared Oracle Home : /u02/db2/806 Absolute path of iAS Shared Oracle Home : /u02/db2/ias Absolute path of config top : /u03/db2/config/srvr33 Oracle Application apps schema password : apps *** USER FEEDBACK *** Absolute path of Application's Context XML file : /u03/db2/appltop/a dmin/db2_srvr33.xml Type of Instance [primary/secondary] : secondary Absolute path of Shared Oracle Home top : Absolute path of 8.0.6 Shared Oracle Home : /u02/db2/806 Absolute path of iAS Shared Oracle Home : /u02/db2/ias Absolute path of config top : /u03/db2/config/sr vr33 Run AutoConfig [y/n] : y Oracle Application apps schema password : apps Absolute path of the log file : /u03/db2/commtop/a dmin/log/db2_srvr33/txkSetSOHM.log

Prompt for confirmation [y/n]

: n

Application's Context file Saved as : /u03/db2/appltop/admin/db2_srvr33.xml.SOH Creating directory /u03/db2/config/srvr33/8.0.6 ... Creating directory /u03/db2/config/srvr33/iAS ... Creating directory /u03/db2/config/srvr33/iAS/Apache/Apache/logs ... Creating directory /u03/db2/config/srvr33/iAS/Apache/Jserv/logs/jvm ... Creating directory /u03/db2/config/srvr33/iAS/Apache/Apache/htdocs/discwb4/apple t ... Context Variable: s_confighome_top Present value : New value : /u03/db2/config/srvr33

**** Searching Applications Context file for substitutions of: /u03/db2/config/srvr33/8.0.6 /u03/db2/config/srvr33/iAS Context Variable: s_weboh_tnsadmin Present value : /m02/db2/ias/network/admin/db2_srvr33 New value : /u03/db2/config/srvr33/iAS/network/admin/db2_srvr33 Context Variable: s_tools_tnsadmin Present value : /m02/db2/806/network/admin/db2_srvr33 New value : /u03/db2/config/srvr33/8.0.6/network/admin/db2_srvr33 Context Variable: s_web_pid_file Present value : /m02/db2/ias/Apache/Apache/logs/httpd.pid New value : /u03/db2/config/srvr33/iAS/Apache/Apache/logs/httpd.pid Context Variable: s_web_ssl_directory Present value : /m02/db2/ias/Apache/Apache/conf New value : /u03/db2/config/srvr33/iAS/Apache/Apache/conf Context Variable: s_web_ssl_keyfile Present value : /m02/db2/ias/Apache/Apache/conf/ssl.key/server.key New value : /u03/db2/config/srvr33/iAS/Apache/Apache/conf/ssl.key/server.k ey Context Variable: s_web_ssl_certfile Present value : /m02/db2/ias/Apache/Apache/conf/ssl.crt/server.crt New value : /u03/db2/config/srvr33/iAS/Apache/Apache/conf/ssl.crt/server.c rt Context Variable: s_web_ssl_certchainfile Present value : /m02/db2/ias/Apache/Apache/conf/ssl.crt/ca-bundle.crt New value : /u03/db2/config/srvr33/iAS/Apache/Apache/conf/ssl.crt/ca-bundl e.crt Context Variable: Present value : New value : Context Variable: Present value : New value : s_jserv_secret_key /m02/db2/ias/Apache/Jserv/conf/jserv.secret.key /u03/db2/config/srvr33/iAS/Apache/Jserv/conf/jserv.secret.key s_frmWalletDir /m02/db2/806/forms60/wallet /u03/db2/config/srvr33/8.0.6/forms60/wallet

Context Variable: s_forms60_wallet Present value : /m02/db2/806/forms60/wallet New value : /u03/db2/config/srvr33/8.0.6/forms60/wallet Context Variable: s_ifile Present value : /m02/db2/806/network/admin/db2_srvr33/db2_srvr33_ifile.ora New value : /u03/db2/config/srvr33/8.0.6/network/admin/db2_srvr33/db2_srvr 33_ifile.ora Context Variable: s_ias_ifile Present value : /m02/db2/ias/network/admin/db2_srvr33/db2_srvr33_ifile.ora New value : /u03/db2/config/srvr33/iAS/network/admin/db2_srvr33/db2_srvr33 _ifile.ora Context Variable: s_listener_ifile Present value : /m02/db2/806/network/admin/db2_srvr33/db2_srvr33_listener_ifil e.ora New value : /u03/db2/config/srvr33/8.0.6/network/admin/db2_srvr33/db2_srvr 33_listener_ifile.ora Context Variable: s_iASconfig_home Present value : /m02/db2/ias New value : /u03/db2/config/srvr33/iAS Context Variable: s_806config_home Present value : /m02/db2/806 New value : /u03/db2/config/srvr33/8.0.6

**** Searching Applications Context file for substitutions of: /u02/db2/806 /u02/db2/ias Context Variable: s_conc_java_ldlib" osd="UNIX Present value : /m02/db2/ias/lib:/m02/db2/806/network/jre11/lib/i686/native_th reads:/m02/db2/806/network/jre11/lib/linux/native_threads:/u03/db2/appltop/cz/11 .5.0/bin:${LD_LIBRARY_PATH:=} New value : /m02/db2/ias/lib:/u02/db2/806/network/jre11/lib/i686/native_th reads:/u02/db2/806/network/jre11/lib/linux/native_threads:/u03/db2/appltop/cz/11 .5.0/bin:${LD_LIBRARY_PATH:=} Context Variable: s_conc_java_ldlib" osd="UNIX Present value : /m02/db2/ias/lib:/m02/db2/806/network/jre11/lib/i686/native_th reads:/m02/db2/806/network/jre11/lib/linux/native_threads:/u03/db2/appltop/cz/11 .5.0/bin:${LD_LIBRARY_PATH:=} New value : /u02/db2/ias/lib:/m02/db2/806/network/jre11/lib/i686/native_th reads:/m02/db2/806/network/jre11/lib/linux/native_threads:/u03/db2/appltop/cz/11 .5.0/bin:${LD_LIBRARY_PATH:=} Context Variable: s_disco_jretop" osd="Linux Present value : /m02/db2/806/jre1183o New value : /u02/db2/806/jre1183o Context Variable: s_lock_pid_dir Present value : /m02/db2/ias/Apache/Apache/logs New value : /u02/db2/ias/Apache/Apache/logs

Context Variable: s_websrv_wallet_file Present value : /m02/db2/ias/Apache/Apache/conf New value : /u02/db2/ias/Apache/Apache/conf Context Variable: s_core_dest Present value : /m02/db2/ias/Apache/Apache/logs New value : /u02/db2/ias/Apache/Apache/logs Context Variable: s_func_comp_loc Present value : /m02/db2/ias/Apache/Jserv/servlets New value : /u02/db2/ias/Apache/Jserv/servlets Context Variable: s_tools_home_file" osd="unix Present value : /m02/db2/806/db2_srvr33.env New value : /u02/db2/806/db2_srvr33.env Context Variable: s_tools_oh Present value : /m02/db2/806 New value : /u02/db2/806 Context Variable: s_tools_path" osd="Linux Present value : /m02/db2/806/bin:/usr/bin:/usr/sbin:/u03/db2/commtop/util/java /1.4/j2sdk1.4.2_04/bin:$PATH New value : /u02/db2/806/bin:/usr/bin:/usr/sbin:/u03/db2/commtop/util/java /1.4/j2sdk1.4.2_04/bin:$PATH Context Variable: s_tools_ldlib" osd="Linux Present value : /m02/db2/806/lib:/usr/X11R6/lib:/usr/openwin/lib New value : /u02/db2/806/lib:/usr/X11R6/lib:/usr/openwin/lib Context Variable: s_tools_oranls" osd="unix Present value : /m02/db2/806/ocommon/nls/admin/data New value : /u02/db2/806/ocommon/nls/admin/data Context Variable: s_tools_locpref Present value : /m02/db2/806/tools/admin New value : /u02/db2/806/tools/admin Context Variable: s_web_home_file" osd="unix Present value : /m02/db2/ias/db2_srvr33.env New value : /u02/db2/ias/db2_srvr33.env Context Variable: s_weboh_oh Present value : /m02/db2/ias New value : /u02/db2/ias Context Variable: s_tp Present value : /m02/db2/ias New value : /u02/db2/ias Context Variable: s_weboh_path" osd="Linux Present value : /m02/db2/ias/bin:/usr/bin:/usr/sbin:/m02/db2/ias/Apache/jdk/bi n:$PATH New value : /u02/db2/ias/bin:/usr/bin:/usr/sbin:/u02/db2/ias/Apache/jdk/bi n:$PATH Context Variable: s_weboh_java Present value : /m02/db2/ias/Apache/jdk New value : /u02/db2/ias/Apache/jdk

Context Variable: s_weboh_ldlib" osd="Linux Present value : /m02/db2/ias/lib:/usr/X11R6/lib New value : /u02/db2/ias/lib:/usr/X11R6/lib Context Variable: s_weboh_oranls" osd="unix Present value : /m02/db2/ias/ocommon/nls/admin/data New value : /u02/db2/ias/ocommon/nls/admin/data Context Variable: s_weboh_locpref Present value : /m02/db2/ias/tools/admin New value : /u02/db2/ias/tools/admin Context Variable: s_wv_gateway_cfg Present value : /m02/db2/ias/Apache/modplsql/cfg/wdbsvr.app New value : /u02/db2/ias/Apache/modplsql/cfg/wdbsvr.app Context Variable: s_adovar_classpath" osd="unix Present value : /u03/db2/commtop/util/java/1.4/j2sdk1.4.2_04/lib/dt.jar:/u03/d b2/commtop/util/java/1.4/j2sdk1.4.2_04/lib/tools.jar:/u03/db2/commtop/util/java/ 1.4/j2sdk1.4.2_04/jre/lib/rt.jar:/u03/db2/commtop/util/java/1.4/j2sdk1.4.2_04/jr e/lib/charsets.jar:/u03/db2/commtop/java/appsborg2.zip:/u03/db2/commtop/java/app s.zip:/m02/db2/806/forms60/java:/u03/db2/commtop/java New value : /u03/db2/commtop/util/java/1.4/j2sdk1.4.2_04/lib/dt.jar:/u03/d b2/commtop/util/java/1.4/j2sdk1.4.2_04/lib/tools.jar:/u03/db2/commtop/util/java/ 1.4/j2sdk1.4.2_04/jre/lib/rt.jar:/u03/db2/commtop/util/java/1.4/j2sdk1.4.2_04/jr e/lib/charsets.jar:/u03/db2/commtop/java/appsborg2.zip:/u03/db2/commtop/java/app s.zip:/u02/db2/806/forms60/java:/u03/db2/commtop/java Context Variable: s_adovar_afclasspath" osd="unix Present value : /u03/db2/commtop/util/java/1.4/j2sdk1.4.2_04/lib/dt.jar:/u03/d b2/commtop/util/java/1.4/j2sdk1.4.2_04/lib/tools.jar:/u03/db2/commtop/util/java/ 1.4/j2sdk1.4.2_04/jre/lib/rt.jar:/u03/db2/commtop/util/java/1.4/j2sdk1.4.2_04/jr e/lib/charsets.jar:/u03/db2/commtop/java/appsborg2.zip:/u03/db2/commtop/java/app s.zip:/m02/db2/806/forms60/java:/u03/db2/commtop/java New value : /u03/db2/commtop/util/java/1.4/j2sdk1.4.2_04/lib/dt.jar:/u03/d b2/commtop/util/java/1.4/j2sdk1.4.2_04/lib/tools.jar:/u03/db2/commtop/util/java/ 1.4/j2sdk1.4.2_04/jre/lib/rt.jar:/u03/db2/commtop/util/java/1.4/j2sdk1.4.2_04/jr e/lib/charsets.jar:/u03/db2/commtop/java/appsborg2.zip:/u03/db2/commtop/java/app s.zip:/u02/db2/806/forms60/java:/u03/db2/commtop/java Context Variable: s_adovar_ldlib" osd="Linux Present value : /m02/db2/806/network/jre11/lib/i686/native_threads:/m02/db2/80 6/network/jre11/lib/linux/native_threads:/u03/db2/appltop/cz/11.5.0/bin:${LD_LIB RARY_PATH:=} New value : /u02/db2/806/network/jre11/lib/i686/native_threads:/u02/db2/80 6/network/jre11/lib/linux/native_threads:/u03/db2/appltop/cz/11.5.0/bin:${LD_LIB RARY_PATH:=} Context Variable: s_adperlprg" osd="unix Present value : /m02/db2/ias/Apache/perl/bin/perl New value : /u02/db2/ias/Apache/perl/bin/perl Context Variable: s_perl5lib" osd="unix Present value : /m02/db2/ias/Apache/perl/lib/5.00503:/m02/db2/ias/Apache/perl/ lib/site_perl/5.005:/u03/db2/appltop/au/11.5.0/perl New value : /u02/db2/ias/Apache/perl/lib/5.00503:/u02/db2/ias/Apache/perl/ lib/site_perl/5.005:/u03/db2/appltop/au/11.5.0/perl *** RUNNING AUTOCONFIG *** AutoConfig could not successfully execute the following scripts: Directory: /u03/db2/commtop/admin/install/db2_srvr33

admk80ln.sh

INSTE8_PRF

1

############################################################################# UPGRADING ORACLE APPS FROM 11.5.10.2.0 TO 12.0.0.0.0 (R12) ----------------------------------------------------------STEPS ===== 1. Create an instance of 115102. 2. Start the DB/Listener. 3. Apply the Inter-Operability Patch(4653225) For this apply the pre-req patches, Rollup level L (4489303) ADX.F (3453499) 4. SQL> select * from ad_bugs where bug_number='4489303'; no rows SQL> select * from ad_bugs where bug_number='3453499'; no rows Enable maintainance mode [applmgr@srvr33]# cd /stage/Patches_for_upgrade/rollup [applmgr@srvr33]# cd 4489303/fnd/patch115/bin [applmgr@srvr33]# perl txktxkprepatchcheck.pl -script=ValidateRollup outfile=$APPLTMP/txkValidateRollup.html -appspass=apps ALL PASS [applmgr@srvr33]# cd 4489303 [applmgr@srvr33]# adpatch Provide u4489303.drv 5. [applmgr@srvr33]# cd /ADX.F/3453499 [applmgr@srvr33]# adpatch provide driver u3453499.drv 6. Apply inter-operability pathch ( 4653225) for 10gR2 [applmgr@srvr33]# cd /stage/Patches_for_upgrade/4653225 [applmgr@srvr33]# adpatch provide the driver u4653225.drv. Note:open this driver file & remove adconfig.cmd if it throws any error. 7. Create a directory for installing 10g rdbms. [oracle@srvr33]# mkdir -p /m01/db3/10grdbms [root@srvr33]# chown -R oracle:dba /m01/db3/ [root@srvr33]# chmod -R 777 /m01/db3/ [oracle@srvr33]#cd /stage/10gRDBMS/Disk1 [oracle@srvr33]# ./runInstaller [oracle@srvr33]#cd /stage/10gPatchset [oracle@srvr33]# ./runInstaller 8. Install the 10.2.0.1 rdbms into the above 10grdbms directory. Install companion CD into the above direcroty.Apply 10.2.0.4 Patchset into the above directory. 9. Upgrade the database to 10g. Start a new session login as oracle

[oracle@srvr33]# cd /m01/db3/10grdbms/bin [oracle@srvr33]# dbua select the advance button select the existing db of 9.2.0.6 version to be upgraded. The upgrade process will take about 8 Hrs. 10.We will not have the env, xml and network related files in the new oracle rdbms home. so copy them from the old home to the new home locations. 1. copy the xml file and edit with the relavant paths. 2. copy the env file and edit with the relavant paths. 3. create directories for dump & network files [oracle@srvr33]# mkdir -p /m01/db3/10grdbms/admin/db3_srvr33/ {bdump,udump,cdump} [oracle@srvr33]# chmod -R 777 /m01/db3/10grdbms/admin/db3_srvr33 [oracle@srvr33]# mkdir -p /m01/db3/10grdbms/network/admin/db3_srvr33/ [oracle@srvr33 db3_srvr33]$ pwd /m01/db3/rdbms10g/network/admin/db3_srvr33 [oracle@srvr33 db3_srvr33]$ cp /m01/db3/rdbms/network/admin/db3_srvr33/ *.ora . [oracle@srvr33 db3_srvr33]$ ls listener_ifile.ora listener.ora sqlnet_ifile.ora tnsnames.ora [oracle@srvr33 db3_srvr33]$ vi listener.ora :%s/rdbms/rdbms10g/g [oracle@srvr33 db3_srvr33]$ vi tnsnames.ora :%s/rdbms/rdbms10g/g [applmgr@srvr33 ~]$ . /m03/db3/appltop/APPSdb3_srvr33.env [applmgr@srvr33 ~]$which admkappsutil.pl /m03/db3/appltop/ad/11.5.0/bin/admkappsutil.pl [applmgr@srvr33 ~]$cd $AD_TOP/bin [applmgr@srvr33 ~]$perl admkappsutil.pl This will create appsutil.zip in /m03/db3/appltop/admin/out/ Copy appsutil.zip to ORACLE_HOME(DBTIER). [oracle@srvr33 ~]$cd /m01/db3/rdbms [oracle@srvr33 ~]$cp /m03/db3/appltop/admin/out/appsutil.zip . [oracle@srvr33 ~]$chmod 777 appsutil.zip [oracle@srvr33 ~]$unzip -o appsutil.zip Run Autoconfig [oracle@srvr33 ~]$cd /appsutil/scripts/context_name/ [oracle@srvr33 ~]$./adautocfg.sh [oracle@srvr33]# cd /m01/db3/10grdbms [oracle@srvr33]# . db3_srvr33.env SQL> startup nomount ORACLE instance started. Total System Global Area 608174080 bytes Fixed Size 1268872 bytes Variable Size 427819896 bytes Database Buffers 167772160 bytes Redo Buffers 11313152 bytes SQL> alter database mount; Database altered.

SQL> alter database open; Database altered. SQL> select * from v$version; BANNER ---------------------------------------------------------------Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Prod PL/SQL Release 10.2.0.4.0 - Production CORE 10.2.0.4.0 Production TNS for Linux: Version 10.2.0.4.0 - Production NLSRTL Version 10.2.0.4.0 - Production SQL> show parameter bdump SQL> show parameter back NAME -----------------------------------background_core_dump background_dump_dest TYPE VALUE -------------------------------string partial string /m01/db3/rdbms/admin/db3_srvr3 3/bdump backup_tape_io_slaves boolean FALSE db_flashback_retention_target integer 1440 fast_start_parallel_rollback string LOW rollback_segments string transactions_per_rollback_segment integer 5 SQL> select count(*) from dba_objects where status='INVALID'; COUNT(*) ---------181 SQL> @?/rdbms/admin/utlrp 12.Create directories for installing R12 apps Remove File from appltop & commtop. [root@srvr33]# mkdir -p /m02/db3{10gdev,10gas} [applmgr@srvr33]# cd /m03/db3/appltop [applmgr@srvr33]# rm -rf * [applmgr@srvr33]# cd /m03/db3/commtop [applmgr@srvr33]# rm -rf * [root@srvr33]# mkdir -p /m03/db3/{insttop} [root@srvr33]# mkdir -p /m01/db3/r12 -- This directory is only for installing the rdbms along with the apps. Will not be used as we have already installed and patched rdbms in 10grdbms directory above. [root@srvr33]# chmod -R 777 /m01/db3 /m03/db3 [root@srvr33]# chmod -R 777 /m02/db3 /m03/db3 [root@srvr33]# chmod -R 777 /m03/db3 /m03/db3 13. Install R12 Software. [root@srvr33]# cd /stage/r12/startCD/Disk1/rapidwiz [root@srvr33]# ./rapidwiz Choose upgrade option

-With this option it will not create DB Choose decline option Choose Create upgrade File System Give the same listener port number here Give the insttop,appltop,commontop paths here The isnstallation process will take about 2 Hrs. 14. Upgrade the product groups and AD product by applying patches in the subsequent steps. Run the R12 env file . /m01/db3/10grdbms/db3_srvr33.env SQL> conn apps/apps SQL> select release_name from fnd_product_groups; RELEASE_NAME -------------------------------------------------11.5.10.2 cd $AU SQL> select patch_level from fnd_patch_installations where patch_level like '%AD%'; 11i.AD.I.2 <-- should become R12.AD.I.2 15. Run he sql scripts before applying the patches. As sysdba cd $AD_Top/patch/115/sql SQL> @adgrants.sql APPLSYS cd $APPL_TOP/admin SQL> @adgncons.sql apps apps This script generates a script called adcrtbps.sql. Edit this file with the relavant paths. This scripts creates 2 new tablespaces required. SQL> @adcrtbps.sql SQL> select * from fnd_product_groups; 12.0.0.0 15. Up grade the AD products. We are getting error with respect to IZU product when applying the following patch. To fix this, remove izu entries form $APPL_TOP/admin/topfile.txt.

[applmgr@srvr33]# cd /stage/r12patches/4502962 [applmgr@srvr33]# adpatch provide driver u4502962.drv At this stage the AD products get upgraded. SQL> select patch_level from fnd_patch_installations where patch_level like '%AD%'; R12.AD.I.2 16. Upgrade the AOL with the following patch.

#############################################################################

Sponsor Documents

Or use your account on DocShare.tips

Hide

Forgot your password?

Or register your new account on DocShare.tips

Hide

Lost your password? Please enter your email address. You will receive a link to create a new password.

Back to log-in

Close