How to Migrate AIX to Linux Application Tier

AIX to Linux Application Tier Migration

Source: AIX Server MSWORA02

Target: Linux Server  MSWSLX02

Application: EBS 11.5.10 CU2

Source System:

  1. Clone the desired AIX instance from FUNC on MSWORA02 to a new AIX TEST instance on MSWORA02
  2. Verify the following:
    1. Database level is greater than 8.1.7.4
    2. AD mini-pack is 11i.AD.G or later: “sqlplus apps/apps @$AD_TOP/sql/adutconf.sql”
  3. Apply Oracle patch 3453499 to the new TEST Instance
  4. Log in as the APPLMGR user (testappl)
  5. Generate the manifest of customer-specific files : “$perl $AD_TOP/bin/adgenpsf.pl”
  6. Navigate to the URL: http://updates.oracle.com/PlatformMigration and upload the “$APPL_TOP/admin/$TWO_TASK/out/adgenpsf.txt” file.
  7. Copy the middle tier file system from the Source to the Target System:
    1. “#cd /oracle/testappl”
    2. “#tar cvf testappl.tar *”
    3. “#cd /oracle/testcomn”
    4. “#tar cvf testcomn.tar *”
    5. “#ftp testappl.tar <Target Temp directory>”
    6. “#fts testcomn.tar”

Target System:

  1. Verify the following:
    1. Source Applications system was created with Rapid Install version 11.5.9 or greater
    2. Perl is version 5.005 or greater: “#perl –version”
    3. Linux kernel is 2.6.9-5 or greater: “#uname –a”

Download the jdk 1.4.2-15 from Sun website. Install in “/usr/j2sdk1.4.2-15”

  1. Apply the following operating system patches if not already installed:
    1. Install libaio-0.3.105-2.i386.rpm:  “#up2date libaio”
    2. Install libaio-devel-0.3.105-2.i386.rmp: “%up2date libaio-devel”
    3. Install the xorg-x11-deprecated-libs-6.8.2-1.EL.13.i386.rpm: “#up2date xorg-x11-deprecated-libs”
    4. Install the xorg-x11-deprecated-libs-devel-6.8.2-1.EL.13.i386.rpm: “#up2date xorg-x11-deprecated-libs-devel”

Apply the rpm’s sent via the Oracle patch request: compat-oracle-rhe4-1.0-5.i386.rpm and compat-libcwait-2.1-1.i386.rpm

    1. “#rpm –ihv compat-oracle-rhe4-1.0-5.i386.rpm”
    2. “#rpm –ihv compat-libcwait-2.0-1.i386.rpm”

Create the application user and group for the system:

    1. “#groupadd –g500 mdba”
    2. “#useradd –d /home/applmigd –g mdba”
  1. Create the new APPL_TOP on the target system:
    1. “#mkdir /oracle/migdappl”
    2. “#mkdir /oracle/migdcomn”
  2. Move the APPL_TOP source files to the appropriate directory:
    1. “#cp /tmp/testappl.tar   /oracle/migdappl
    2. “#cp /tmp/testcomn.tar /oracle/migdcomn”
    3. “#cd /oracle/migdappl”
    4. “#tar xvf testappl.tar”
    5. “cd /oracle/migdbcomn”
    6. “#tar xvf testcomn.tar”
    7. “#rm /oracle/migdappl/testappl.tar /oracle/migdcomn/testcomn.tar”
    8. “#chown –R migdappl:mdba /oracle/migdappl /oracle/midgcomn”
  3. Remove the unwanted directories and files:
    1. “#cd /oracle/migdcomn”
    2. “#rm –rf admin temp portal rgf”
    3. “#mv clone clone.old”
    4. “#rm /oracle/migdappl/admin/appltop.cer”
  4. Change to the newly created applmigd user: “#su – applmigd”
  5. Run the Clone Context Tool to assign new mount points on the target system:
    1. “$cd /oracle/migdappl/ad/11.5.0/bin”
    2. “$perl adclonectx.pl migrate java=/usr/j2sdk1.4.2_15 contextfile=/oracle/migdappl/admin/TEST_mswora03.xml”
    3. Output
  1. Do you want to use a virtual hostname for the target node (y/n) [n] ?:n
  2. Does the target system have more than one application tier server node (y/n) [n]
  3. Is the target system APPL_TOP divided into multiple mount points (y/n) [n] ?:n
  4. Target system APPL_TOP mount point [/oracle/migdappl]:
  5. Target system COMMON_TOP directory [/oracle2/testcomn]:/oracle/migdcomn
  6. Do you want to preserve the Display set to mswora03:0.0 (y/n) [y] ?:n
  7. Target system Display [mswslx08:0.0]:
  8. Location of the JDK on the target system [/usr/java14]:/usr/j2dsk1.4.2_15/bin
  9. Target system JRE_TOP [/usr/java14]:/usr/j2sdk1.4.2_15/jre
  10. Enter the Database listener port [1521]:1524
  11. Enter APPS Password [APPS]:apps
  12. UTL_FILE_DIR on database tier consists of the following directories.
  13. 1. /usr/tmp
  14. 2. /usr/tmp
  15. 3. /oracle2/testdb/10.2.0/appsutil/outbound/TEST_mswora03
  16. 4. /usr/tmp
  17. Choose a value which will be set as APPLPTMP value on the target node [1]:1
  18. 8.0.6 ORACLE_HOME = “/oracle/migdora/8.0.6”
  19. iAS ORACLE_HOME = “/oracle/migdora/iAS”
  20. Apps OS User = applmigd
  21. Apps OS Group = mdba
  1. Create the /etc/oraInst.loc file which contains the location for the oratab file. (permissions 666)
  2. Create Directory /etc/oraInventory (permission 777)
  3. run /tmp/runIntaller.sh as root
  4. At the Windows prompt type: “xhost +”
  5. Install the middle tier technology stack
    1. Open Metalink Note 146468.1
    2. Open a terminal window on mswslx08 as root and type “xhost +”
    3. Change user to applmigd
    4. Run the rapidwiz as “/oracle/R11-Linux/startCD/Disk1/rapidwiz/rapidwiz – techstack”
    5. Choose the “9iAS 1.0.2.2.” option
    6. Choose the file “/oracle/applmigd/admin/TEST_mswslx08.xml”
    7. Create the following directories:

Create temporary environment variable file for target instance:

    1. /oracle/migdora/8.0.6/SID_HOSTNAME.env (see template)
    2. /oracle/migdappl/admin/advors.env (see template)
  1. Apply Linux interobaility patches from to the Oracle
    1. Patch 3830807
    2. Patch 3170128 — NOT NEEDED!!!!
    3. Patch 3846086
  1. Change ORACLE_HOME to IAS_HOME for this patch (/oracle/migdora/8.0.6/SID_HOSTNAME.env)
  2. “#su – applmigr”
  3. “#cd /oracle/applmigd”
  4. “#. ./APPS.env”
  5. “#adadmin”
  6. Select option 6 à Maintenance mode; then exit
  7. “#cd /oracle/R11-Linux/patches/4139957”
  8. “#adpatch”
  9. Follow the on screen instructions to apply the patch
  1. Change directory to the AD_TOP/bin and run the following:
    1. ./adconfig.sh run=INSTE8_SETUP contextfile=TEST_mswslx08.xml
  2. Download custom patch from Oracle website (http://updates.oracle.com/PlatformMigration)
    1. Unzip files
    2. Change directory into the one created by the unzip command
    3. Run the following command: “./adpatch options=noprereq
    4. When prompted to continue even with linking errors, select ‘yes’
  3. Verify the current techstack level of the Application Server is at least “iAS 1.0.2.2.2”
    1. /oracle/testora/iAS/Apache/Apache/bin/httpd –v
  4. Apply the patch 4139957
    1. Switch to maintenance mode:
  1. Regenerate the file system object
    1. “# cd /oracle/applmigd”
    2. “#. ./APPS.env”
    3. “#cd $AD_TOP/patch/115/bin/adgensgn.sh <apps user>/<apps password>”
Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: