[root@breen ~]# cd /u01 [root@breen u01]# mkdir -m 775 oraInventory [root@breen u01]# chgrp dba oraInventory [root@breen u01]# chown oravis oraInventory [root@breen u01]# echo "inventory_loc=/u01/oraInventory" > /etc/oraInst.loc [root@breen u01]# chmod g+w /etc/oraInst.loc [root@breen u01]# chgrp dba /etc/oraInst.loc [/plain]
/mnt/stage, and my database and software are going on /u01:[plain gutter="0"][root@breen u01]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_breen-lv_root 20G 2.3G 17G 12% / tmpfs 3.0G 0 3.0G 0% /dev/shm /dev/sda1 485M 55M 405M 12% /boot /dev/mapper/vg_breen-lv_u01 287G 191M 272G 1% /u01 /dev/sdd1 79G 184M 75G 1% /mnt/stage 192.168.56.1:/Users/jpiwowar/R12.2.2 465G 383G 82G 83% /mnt/zips [root@breen u01]# mkdir -p oracle/VIS [root@breen u01]# chmod -R 775 . [root@breen u01]# chgrp -R dba . [root@breen u01]# cd /mnt/stage [root@breen u01]# mkdir Stage122[/plain]
[plain gutter="0" highlight="4,28,114-125"][root@breen stage]# pwd /mnt/stage [root@breen stage]# cd Stage122/ [root@breen Stage122]# unzip -q '/mnt/zips/V35215-01*.zip' -d . [root@breen Stage122]# cd startCD/Disk1/rapidwiz/bin/ [root@breen bin]# ./buildStage.sh Rapid Install Platform Menu------------------------------------------------------ 1. Oracle Solaris SPARC (64-bit) 2. Linux x86-64 3. IBM AIX on Power Systems (64-bit) 4. HP-UX Itanium 5. Exit Menu Enter your choice [5]: 2 /mnt/stage/Stage122/startCD/Disk1/rapidwiz/bin/../jre/Linux_x64/1.6.0/bin/java -classpath /mnt/stage/Stage122/startCD/Disk1/rapidwiz/bin/../jlib/emocmutl.jar:/mnt/stage/Stage122/startCD/Disk1/rapidwiz/bin/../jlib/ewt-3_4_22.jar:/mnt/stage/Stage122/startCD/Disk1/rapidwiz/bin/../jlib/share-1_1_18.jar:/mnt/stage/Stage122/startCD/Disk1/rapidwiz/bin/../jlib/jnls.jar:/mnt/stage/Stage122/startCD/Disk1/rapidwiz/bin/../jlib/ACC.JAR:/mnt/stage/Stage122/startCD/Disk1/rapidwiz/bin/../jlib/netcfg.jar:/mnt/stage/Stage122/startCD/Disk1/rapidwiz/bin/../jlib/ojdbc14.jar:/mnt/stage/Stage122/startCD/Disk1/rapidwiz/bin/../jlib/OraInstaller.jar:/mnt/stage/Stage122/startCD/Disk1/rapidwiz/bin/../jlib/java oracle.apps.ad.rapidwiz.util.StageBuilder /mnt/stage/Stage122/startCD/Disk1/rapidwiz/bin Please enter the directory containing the zipped installation media: /mnt/zips Unzipping V29764-01.zip Unzipping V29856-01.zip Unzipping V35215-01_1of3.zip Unzipping V35215-01_2of3.zip Unzipping V35215-01_3of3.zip Unzipping V35230-01_1of2.zip Unzipping V35230-01_2of2.zip Unzipping V35231-01_1of5.zip Unzipping V35231-01_2of5.zip Unzipping V35231-01_3of5.zip Unzipping V35231-01_4of5.zip Unzipping V35231-01_5of5.zip Unzipping V35802-01.zip Unzipping V35803-01_1of3.zip Unzipping V35803-01_2of3.zip Unzipping V35803-01_3of3.zip Unzipping V35804-01_1of2.zip Unzipping V35804-01_2of2.zip Unzipping V35807-01.zip Unzipping V35808-01.zip Unzipping V35809-01.zip Unzipping V35810-01.zip Unzipping V35811-01.zip Unzipping V35812-01.zip Unzipping V35813-01.zip Unzipping V37515-01_1of6.zip Unzipping V37515-01_2of6.zip Unzipping V37515-01_3of6.zip Unzipping V37515-01_4of6.zip Unzipping V37515-01_5of6.zip Unzipping V37515-01_6of6.zip Unzipping V39571-01.zip Unzipping V39615-01.zip Applying one-off patches All files have been unzipped. Stage area is complete. Done Unzipping shiphome ... StageBuilder will now stage the tech patches for Linux_x64... Copying one-off patches to shiphome /mnt/stage/Stage122/startCD/Disk1/rapidwiz/bin/../unzip/Linux_x64/unzip -o /mnt/stage/Stage122/startCD/Disk1/rapidwiz/bin/../Xpatches/Linux_x64.zip -d /mnt/stage/Stage122/startCD/Disk1/rapidwiz/bin/../../../../TechPatches Archive: /mnt/stage/Stage122/startCD/Disk1/rapidwiz/bin/../Xpatches/Linux_x64.zip extracting: /mnt/stage/Stage122/startCD/Disk1/rapidwiz/bin/../../../../TechPatches/DB/16303726/p16303726_112030_Linux-x86-64.zip extracting: /mnt/stage/Stage122/startCD/Disk1/rapidwiz/bin/../../../../TechPatches/DB/14123213/p14123213_112030_Linux-x86-64.zip extracting: /mnt/stage/Stage122/startCD/Disk1/rapidwiz/bin/../../../../TechPatches/DB/13923995/p13923995_112030_Linux-x86-64.zip extracting: /mnt/stage/Stage122/startCD/Disk1/rapidwiz/bin/../../../../TechPatches/DB/14751895/p14751895_112030_Linux-x86-64.zip extracting: /mnt/stage/Stage122/startCD/Disk1/rapidwiz/bin/../../../../TechPatches/DB/16163946/p16163946_112030_Linux-x86-64.zip extracting: /mnt/stage/Stage122/startCD/Disk1/rapidwiz/bin/../../../../TechPatches/DB/14207902/p14207902_112030_Linux-x86-64.zip extracting: /mnt/stage/Stage122/startCD/Disk1/rapidwiz/bin/../../../../TechPatches/DB/15967134/p15967134_112030_Linux-x86-64.zip extracting: /mnt/stage/Stage122/startCD/Disk1/rapidwiz/bin/../../../../TechPatches/DB/16438289/p16438289_112030_Linux-x86-64.zip extracting: /mnt/stage/Stage122/startCD/Disk1/rapidwiz/bin/../../../../TechPatches/DB/13931044/p13931044_112030_Linux-x86-64.zip extracting: /mnt/stage/Stage122/startCD/Disk1/rapidwiz/bin/../../../../TechPatches/DB/16342486/p16342486_112030_Linux-x86-64.zip extracting: /mnt/stage/Stage122/startCD/Disk1/rapidwiz/bin/../../../../TechPatches/DB/14398795/p14398795_112030_Linux-x86-64.zip extracting: /mnt/stage/Stage122/startCD/Disk1/rapidwiz/bin/../../../../TechPatches/DB/12951696/p12951696_112030_Generic.zip extracting: /mnt/stage/Stage122/startCD/Disk1/rapidwiz/bin/../../../../TechPatches/DB/12942119/p12942119_112030_Linux-x86-64.zip extracting: /mnt/stage/Stage122/startCD/Disk1/rapidwiz/bin/../../../../TechPatches/DB/14698700/p14698700_112030_Generic.zip extracting: /mnt/stage/Stage122/startCD/Disk1/rapidwiz/bin/../../../../TechPatches/DB/16587934/p16587934_112030_Linux-x86-64.zip extracting: /mnt/stage/Stage122/startCD/Disk1/rapidwiz/bin/../../../../TechPatches/DB/16105745/p16105745_112030_Generic.zip extracting: /mnt/stage/Stage122/startCD/Disk1/rapidwiz/bin/../../../../TechPatches/DB/16040940/p16040940_112030_Linux-x86-64.zip extracting: /mnt/stage/Stage122/startCD/Disk1/rapidwiz/bin/../../../../TechPatches/MiddleTier/13583235/p13583235_1036_Generic.zip extracting: /mnt/stage/Stage122/startCD/Disk1/rapidwiz/bin/../../../../TechPatches/MiddleTier/14825718/p14825718_10123_LINUX.zip extracting: /mnt/stage/Stage122/startCD/Disk1/rapidwiz/bin/../../../../TechPatches/MiddleTier/14353879/p14353879_10123_LINUX.zip extracting: /mnt/stage/Stage122/startCD/Disk1/rapidwiz/bin/../../../../TechPatches/MiddleTier/14614795/p14614795_101231_LINUX.zip extracting: /mnt/stage/Stage122/startCD/Disk1/rapidwiz/bin/../../../../TechPatches/MiddleTier/16209520/p16209520_10123_GENERIC.zip extracting: /mnt/stage/Stage122/startCD/Disk1/rapidwiz/bin/../../../../TechPatches/MiddleTier/16275529/p16275529_10105_LINUX.zip extracting: /mnt/stage/Stage122/startCD/Disk1/rapidwiz/bin/../../../../TechPatches/MiddleTier/14597598/p14597598_1036_Generic.zip extracting: /mnt/stage/Stage122/startCD/Disk1/rapidwiz/bin/../../../../TechPatches/MiddleTier/14577216/p14577216_101231_Generic.zip extracting: /mnt/stage/Stage122/startCD/Disk1/rapidwiz/bin/../../../../TechPatches/MiddleTier/16784403/p16784403_101232_LINUX.zip extracting: /mnt/stage/Stage122/startCD/Disk1/rapidwiz/bin/../../../../TechPatches/MiddleTier/14386347/p14386347_111160_Generic.zip extracting: /mnt/stage/Stage122/startCD/Disk1/rapidwiz/bin/../../../../TechPatches/MiddleTier/16199894/p16199894_111160_Generic.zip extracting: /mnt/stage/Stage122/startCD/Disk1/rapidwiz/bin/../../../../TechPatches/MiddleTier/14374587/p14374587_10123_GENERIC.zip extracting: /mnt/stage/Stage122/startCD/Disk1/rapidwiz/bin/../../../../TechPatches/MiddleTier/10152652/p10152652_10123_LINUX.zip extracting: /mnt/stage/Stage122/startCD/Disk1/rapidwiz/bin/../../../../TechPatches/MiddleTier/11669923/p11669923_10123_GENERIC.zip Done Copying additional patches Verifying stage area... Directory /mnt/stage/Stage122/TechInstallMedia is valid Directory /mnt/stage/Stage122/TechPatches/DB is valid Directory /mnt/stage/Stage122/TechPatches/MiddleTier is valid Directory /mnt/stage/Stage122/EBSInstallMedia/AppDB is valid Directory /mnt/stage/Stage122/EBSInstallMedia/Apps is valid Directory /mnt/stage/Stage122/EBSInstallMedia/AS10.1.2 is valid Directory /mnt/stage/Stage122/TechInstallMedia/database is valid Directory /mnt/stage/Stage122/TechInstallMedia/ohs11116 is valid Directory /mnt/stage/Stage122/TechInstallMedia/wls1036_generic is valid Stage area verified. Press enter to continue...[/plain]
[plain gutter="0" highlight="8"][root@breen stage]# cd Stage122/startCD/Disk1/rapidwiz/template/ [root@breen template]# cp restore-single2.sql restore-single2.sql.orig [root@breen template]# vi restore-single2.sql [root@breen template]# cat restore-single2.sql --lines snipped for brevity-- set linesize 300 spool %s_db_oh%/appsutil/out/%s_contextname%%/%restore-single2.rman select 'configure device type DISK parallelism 1;' from dual; select 'catalog start with ''INSTALL'' NOPROMPT;' from dual; select 'RUN { ' from dual; select 'set newname for datafile '||file#||' to '||'''%s_dbhome1%/'||substr(NAME,instr(NAME,'%/%',-1)+1,length(NAME))||''';' from v$datafile; --lines snipped for brevity-- [root@breen template]# diff restore-single2.sql restore-single2.sql.orig 17d16 < select 'configure device type DISK parallelism 1;' from dual;[/plain]
[plain gutter="0" highlight="11"][root@breen ~]# vncserver :1New 'breen.local.org:1 (root)' desktop is breen.local.org:1 Starting applications specified in /root/.vnc/xstartup Log file is /root/.vnc/breen.local.org:1.log [root@breen ~]# export DISPLAY=:1 [root@breen ~]# xhost + access control disabled, clients can connect from any host [root@breen ~]# /mnt/stage/Stage122/startCD/Disk1/rapidwiz/rapidwiz Rapid Install Wizard is validating your file system...... CMDDIR=/mnt/stage/Stage122/startCD/Disk1/rapidwiz Rapid Install Wizard will now launch the Java Interface.....[/plain]
[plain gutter="0" highlight="7"][root@breen u01]# Configuration file written to: /u01/oracle/VIS/fs1/inst/apps/VIS_breen/conf_VIS.txt Configuration file written to: /u01/oracle/VIS/fs2/inst/apps/VIS_breen/conf_VIS.txt Configuration file written to: /u01/oracle/VIS/11.2.0/appsutil/conf_VIS.txt Database logfile - /u01/oracle/VIS/11.2.0/appsutil/log/VIS_breen/10051848.log[/plain]
The following post-install steps are split between Notes 1320300.1 and 1330701.1. There's patching involved, which is pretty exciting, because you get to use the online patching tool (adop) right away (yay)! They're hot patches, though, so it's not a full, true online patch cycle yet (boo). That comes when it's time to update to EBS 12.2.2 (yay)! I'm presenting these steps in the order that I executed them, which in retrospect might not have been the most efficient, but it didn't break anything. A few post-install steps are given as pre-requisites for the 12.2.2 upgrade, so in the interest of keeping this post short (hah!) I'm leaving them until a later blog post. Since some of the steps required everything but the WLS admin server to be down, and one of the steps requires a database bounce, I just stopped all apps services before working on these steps:
[plain gutter="0"][root@breen template]# sudo su - applvis [applvis@breen ~]$. /u01/oracle/VIS/EBSapps.env run E-Business Suite Environment Information ---------------------------------------- RUN File System : /u01/oracle/VIS/fs1/EBSapps/appl PATCH File System : /u01/oracle/VIS/fs2/EBSapps/appl Non-Editioned File System : /u01/oracle/VIS/fs_ne DB Host: breen.local.org Service/SID: VIS [applvis@breen ~]$ export PATH=$PATH:$ADMIN_SCRIPTS_HOME [applvis@breen ~]$ adstpall.sh[/plain]
You'll need to supply the WLS admin password in addtion to the APPS username and password when running adstpall.sh. Get used to that. When reviewing my adop output below, please don't jump to any conclusions about "normal" patch timing. Remember, this output is generated on a severly underpowered system, and all of these steps were run before I figured out that my VM needed an extra 2GB of RAM. :-)
[plain gutter="0"][applvis@breen other_patches]$ getOraPatch 'https://updates.oracle.com/Orion/Services/download/p12415211_10105_LINUX.zip?aru=13727149&patch_file=p12415211_10105_LINUX.zip' Oracle Support Userid: **** Oracle Support Password: 2013-09-27 01:17:42 URL:https://aru-akam.oracle.com/adcarurepos/vol/patch22/PLATFORM/CORE/LINUX/R80101050/p12415211_10105_LINUX.zip?FilePath=/adcarurepos/vol/patch22/PLATFORM/CORE/LINUX/R80101050/p12415211_10105_LINUX.zip&File=p12415211_10105_LINUX.zip¶ms=bk42aDg3bEszbXAwb0RORUM2ampZZzphcnU9MTM3MjcxNDkmZW1haWw9cGl3b3dhckBweXRoaWFuLmNvbSZmaWxlX2lkPTQyNjI3MzE0JnBhdGNoX2ZpbGU9cDEyNDE1MjExXzEwMTA1X0xJTlVYLnppcCZ1c2VyaWQ9by1waXdvd2FyQHB5dGhpYW4uY29tJnNpemU9MTc3OTkmY29udGV4dD1BQDEwK0hAYWFydXZtdHAwNC5vcmFjbGUuY29tK1BAJmRvd25sb2FkX2lkPTg5ODY4NDYy&AuthParam=1380337651_3587efa97fc97049e42d12077c59cbfa [17799/17799] -> "p12415211_10105_LINUX.zip" [1] Completed with status: 0 [applvis@breen other_patches]$ unzip -tq p12415211_10105_LINUX.zip No errors detected in compressed data of p12415211_10105_LINUX.zip. [applvis@breen other_patches]$ unzip -q p12415211_10105_LINUX.zip [applvis@breen other_patches]$ cd /u01/oracle/VIS/fs1/EBSapps/10.1.2/lib/ [applvis@breen lib]$ cp -p -R stubs stubsORIG [applvis@breen lib]$ cd stubs [applvis@breen stubs]$ cp /mnt/stage/other_patches/12415211/files/lib/stubs/libgcc_s-2.3.2-stub.so . [applvis@breen stubs]$ ln -sf libgcc_s-2.3.2-stub.so libgcc_s.so.1 [applvis@breen stubs]$ ln -sf libgcc_s.so.1 libgcc_s.so [applvis@breen stubs]$ $ORACLE_HOME/appsutil/clone/adlnktools.sh adlnktools.sh started at Fri Sep 27 01:34:32 PDT 2013 Log file located at /u01/oracle/VIS/fs1/inst/apps/VIS_breen/logs/ora/10.1.2/install/make_09270134.logadlnktools.sh completed sucessfully [applvis@breen stubs]$ grep -i err /u01/oracle/VIS/fs1/inst/apps/VIS_breen/logs/ora/10.1.2/install/make_09270134.log [applvis@breen stubs]$ grep -i warn /u01/oracle/VIS/fs1/inst/apps/VIS_breen/logs/ora/10.1.2/install/make_09270134.log [applvis@breen stubs]$ grep -i fail /u01/oracle/VIS/fs1/inst/apps/VIS_breen/logs/ora/10.1.2/install/make_09270134.log[/plain]
[plain gutter="0"]***** W A R N I N G ***** ADMIN SERVER is down. Cannot proceed further... Please start the ADMIN SERVER.adop exiting with status = 3 (Fail)[/plain] I staged the patches in the default expected directory in the non-editioned filesystem, but you can specify a patchtop if you prefer. [plain gutter="0"][applvis@breen other_patches]$ unzip -tq p17064510_R12.TXK.C_R12_GENERIC.zip No errors detected in compressed data of p17064510_R12.TXK.C_R12_GENERIC.zip. [applvis@breen other_patches]$ unzip -q p17064510_R12.TXK.C_R12_GENERIC.zip -d $APPL_TOP_NE/../patch [applvis@breen other_patches]$ adop phase=apply patches=17064510 hotpatch=yes Enter the APPS password: Enter the SYSTEM password: Enter the WLSADMIN password: Please wait. Validating credentials... Enter the RUN file system context file name [/u01/oracle/VIS/fs1/inst/apps/VIS_breen/appl/admin/VIS_breen.xml]: [STATEMENT] [END 2013/09/27 02:47:18] Performing verification of parameters [STATEMENT] [START 2013/09/27 02:47:19] Checking for the required ENV setup [STATEMENT] [END 2013/09/27 02:47:19] Checking for the required ENV setup ************* Start of session ************* version: 12.2.0 started at: Fri Sep 27 2013 02:47:19 APPL_TOP is set to /u01/oracle/VIS/fs1/EBSapps/appl [STATEMENT] [START 2013/09/27 02:47:20] Determining admin node [STATEMENT] [END 2013/09/27 02:47:22] Determining admin node [STATEMENT] Recommended Worker Count: 2 Max Allowed Workers: 10 [STATEMENT] [START 2013/09/27 02:47:26] Acquiring lock on sessions table [STATEMENT] [END 2013/09/27 02:47:28] Acquiring lock on sessions table [STATEMENT] [START 2013/09/27 02:47:28] Checking for any pending sessions [STATEMENT] [START 2013/09/27 02:47:33] Staging the current session [STATEMENT] [START 2013/09/27 02:47:38] Checking if node "breen" is abandoned [STATEMENT] [END 2013/09/27 02:47:40] Checking if node "breen" is abandoned [STATEMENT] [END 2013/09/27 02:47:42] Staging the current session [STATEMENT] [START 2013/09/27 02:47:44] Unlocking sessions table [STATEMENT] [END 2013/09/27 02:47:45] Unlocking sessions table [STATEMENT] [START 2013/09/27 02:47:45] adzdoptl.pl run [STATEMENT] Session ID: 2 [STATEMENT]
Phase: apply [STATEMENT] Log file: /u01/oracle/VIS/fs_ne/EBSapps/log/adop/2/adop_20130927_024700.log [STATEMENT] [START 2013/09/27 02:47:55] Invoking admerge [STATEMENT] [END 2013/09/27 02:47:56] Invoking admerge [STATEMENT] [START 2013/09/27 02:47:56] apply phase [STATEMENT] APPLY Phase START TIME: 27-09-2013 02:47:58 [STATEMENT] [START 2013/09/27 02:48:00] Performing Check for Logon Trigger existence and enablement [STATEMENT] [END 2013/09/27 02:48:08] Performing Check for Logon Trigger existence and enablement [STATEMENT] [Start 2013/09/27 02:48:13] ADOP::DefaultsFileUtil::substituteDefaultsFileTokensForPatchApplTop [STATEMENT] Reading defaults file /u01/oracle/VIS/fs1/EBSapps/appl/admin/VIS/adalldefaults.txt [STATEMENT] Substituting tokens ... [STATEMENT] Regenerating defaults file ... [STATEMENT] [End 2013/09/27 02:48:13] ADOP::DefaultsFileUtil::substituteDefaultsFileTokensForPatchApplTop [STATEMENT] Calling: adpatch workers=2 options=hotpatch flags=autoskip console=no interactive=no defaultsfile=/u01/oracle/VIS/fs1/EBSapps/appl/admin/VIS/adalldefaults.txt patchtop=/u01/oracle/VIS/fs_ne/EBSapps/patch/17064510 driver=u17064510.drv logfile=u17064510.log [STATEMENT] ADPATCH Log directory: /u01/oracle/VIS/fs_ne/EBSapps/log/adop/2/apply_20130927_024700/VIS_breen/17064510/log [STATEMENT] Running: adpatch workers=2 options=hotpatch flags=autoskip console=no interactive=no defaultsfile=/u01/oracle/VIS/fs1/EBSapps/appl/admin/VIS/adalldefaults.txt patchtop=/u01/oracle/VIS/fs_ne/EBSapps/patch/17064510 driver=u17064510.drv logfile=u17064510.log stdin=yes Successfully created out directory [STATEMENT] [START 2013/09/27 03:33:22] Running finalize since in hotpatch mode [STATEMENT] [START 2013/09/27 04:02:21] Compiling Invalid Objects as part of Finalize [STAT]
Ready to optimize your Oracle Database for the future?