facebook twitter youtube facebook facebook facebook

E-Mail : info@askmlabs.com

Phone : +1.215.353.8306

Latest Post
Showing posts with label clone. Show all posts
Showing posts with label clone. Show all posts

RAC : Clone Flex Cluster To Extend Cluster By Adding Hub and Lead Nodes

Written By askMLabs on Saturday, March 15, 2014 | 11:57 PM


In this article , we will see how to clone RAC environment to extend the existing cluster. Clone can also be used to prepare a new cluster environment. But in this article, we are going to see extending the existing using clone method. A cluster can also be extended using addnode method. But cloning is a different method to extend the cluster.

Environment Details :
RAC Version Cluster Type
12c  12.1.0.1.0
Flex Cluster
Hub Nodes
rac12cnode1/2
Leaf Nodes
No
DB Running on
All Hub Nodes
Task
Clone cluster to extend from 2 node to 4 node

[grid@rac12cnode1 ~]$ olsnodes -s -t
rac12cnode1     Active  Unpinned
rac12cnode2     Active  Unpinned
[grid@rac12cnode1 ~]$ crsctl get cluster mode status
Cluster is running in "flex" mode
[grid@rac12cnode1 ~]$ asmcmd showclustermode
ASM cluster : Flex mode enabled
[grid@rac12cnode1 ~]$ crsctl get node role config -all
Node 'rac12cnode1' configured role is 'hub'
Node 'rac12cnode2' configured role is 'hub'
[grid@rac12cnode1 ~]$


Step By Step : 

  1. 1. Prepare the new cluster nodes 
  2. 2. Prepare the existing cluster nodes
  3. 3. Deploy the Grid Infrastructure to new cluster nodes
  4. 4. Run clone.pl on all the cluster nodes.
  5. 5. Run orainstRoot.sh script on all target cluster nodes.
  6. 6. Execute addnode.sh in silent mode to add hub node and leaf node
  7. 7. Copy config files from source system to all target cluster nodes
  8. 8. Run root.sh on all the target nodes to configure cluster.
  9. 9. Verify the cloned cluster with cluvfy
1. Prepare the new cluster nodes:
Our task is to add two nodes to the existing flex cluster in clone method. We need to first prepare the nodes which are to be added to the cluster.

I have the following points from documentation, but you can also follow my other articles/videos on rac to prepare nodes for cluster addition.
On each destination node, perform the following preinstallation steps:
  1. Specify the kernel parameters
  2. Configure block devices for Oracle Clusterware devices
  3. Ensure that you have set the block device permissions correctly
  4. Use short, nondomain-qualified names for all of the names in the /etc/hosts file
  5. Test whether the interconnect interfaces are reachable using the ping command
  6. Verify that the VIP addresses are not active at the start of the cloning process by using the ping command (the ping command of the VIP address must fail)
  7. On AIX systems, and on Solaris x86-64-bit systems running vendor clusterware, if you add a node to the cluster, then you must run the rootpre.sh script (located at the mount point it you install Oracle Clusterware from a DVD or in the directory where you unzip the tar file if you download the software) on the node before you add the node to the cluster
  8. Run CVU to verify your hardware and operating system environment
Complete all above steps , so that the nodes are ready for adding / clone to cluster node.

Verify if the nodes are ready to add to the cluster using the following commands 
[grid@rac12cnode1 ~]$ nslookup rac12cnode3
Server:         192.168.1.51
Address:        192.168.1.51#53
Name:   rac12cnode3.localdomain
Address: 192.168.1.133
[grid@rac12cnode1 ~]$ nslookup rac12cnode4
Server:         192.168.1.51
Address:        192.168.1.51#53
Name:   rac12cnode4.localdomain
Address: 192.168.1.134
[grid@rac12cnode1 ~]$ clear
[grid@rac12cnode1 ~]$ cluvfy stage -pre nodeadd -n rac12cnode3,rac12cnode4 -fixup -verbose
Performing pre-checks for node addition......
2. Prepare the existing cluster nodes:
In this step, we need to create a copy of the existing oracle grid infrastructure home and remove the unnecessary files from the copied home. You can perform this step while the clusterware is up and running.
Create an exclusion list to be excluded while creating the tar backup.
[root@rac12cnode1 askm]# cat excl_list.txt
/u01/app/12.1.0/grid/rac12cnode1
/u01/app/12.1.0/grid/log/host_name
/u01/app/12.1.0/grid/gpnp/host_name
/u01/app/12.1.0/grid/crs/init/*
/u01/app/12.1.0/grid/cdata/*
/u01/app/12.1.0/grid/crf/*
/u01/app/12.1.0/grid/network/admin/*.ora
/u01/app/12.1.0/grid/root.sh*
*.ouibak
*.ouibak1
[root@rac12cnode1 askm]#
Create compressed copy of the oracle grid infrastructure home using tar utility. Execute the following command on any existing node in the cluster : 
[root@rac12cnode1 12.1.0]# tar -czf gridHome.tar.gz -X /tmp/askm/excl_list.txt /u01/app/12.1.0/grid
tar: Removing leading `/' from member names
tar: /u01/app/12.1.0/grid/log/rac12cnode1/gipcd/gipcd.log: file changed as we read it
tar: /u01/app/12.1.0/grid/log/rac12cnode1/agent/crsd/oraagent_grid/oraagent_grid.log: file changed as we read it
tar: /u01/app/12.1.0/grid/log/rac12cnode1/ctssd/octssd.log: file changed as we read it
tar: /u01/app/12.1.0/grid/log/rac12cnode1/cssd/ocssd.log: file changed as we read it
tar: /u01/app/12.1.0/grid/rdbms/audit: file changed as we read it
[root@rac12cnode1 12.1.0]# ls -lrt
total 3100700
drwxr-xr-x. 74 root oinstall       4096 Mar 13 03:41 grid
-rw-r--r--.  1 root root     3172006616 Mar 14 04:53 gridHome.tar.gz
[root@rac12cnode1 12.1.0]#

3. Deploy the Grid Infrastructure to new cluster nodes:
Now copy the compressed backup of the oracle grid infrastructure home created in step 2 above to all the target nodes ie rac12cnode3/4.
[root@rac12cnode1 12.1.0]# ls -lrt
total 3100700
drwxr-xr-x. 74 root oinstall       4096 Mar 13 03:41 grid
-rw-r--r--.  1 root root     3172006616 Mar 14 04:53 gridHome.tar.gz
[root@rac12cnode1 12.1.0]# scp gridHome.tar.gz root@rac12cnode3:/u01/app/12.1.0
root@rac12cnode3's password:
gridHome.tar.gz                                                                            100% 3025MB   9.7MB/s   05:12
[root@rac12cnode1 12.1.0]# ls -lrt gridHome.tar.gz
-rw-r--r--. 1 root root 3172006616 Mar 14 04:53 gridHome.tar.gz
[root@rac12cnode1 12.1.0]# du -sh gridHome.tar.gz
3.0G    gridHome.tar.gz
[root@rac12cnode1 12.1.0]# scp gridHome.tar.gz root@rac12cnode4:/u01/app/12.1.0
root@rac12cnode4's password:
gridHome.tar.gz                                                                            100% 3025MB   9.3MB/s   05:25
[root@rac12cnode1 12.1.0]#

Extract the compressed backup to node 3 and node 4.
[root@rac12cnode4 ~]# cd /u01/app/12.1.0/
[root@rac12cnode4 12.1.0]# ls
[root@rac12cnode4 12.1.0]# ls -lrt
total 3100696
-rw-r--r--. 1 root root 3172006616 Mar 14 06:33 gridHome.tar.gz
[root@rac12cnode4 12.1.0]# du -sh *
3.0G    gridHome.tar.gz
[root@rac12cnode4 12.1.0]# tar xvzf gridHome.tar.gz -C /
..
..
[root@rac12cnode4 12.1.0]#
[root@rac12cnode3 ~]# cd /u01/app/12.1.0/
[root@rac12cnode3 12.1.0]# ls -lrt
total 3100696
-rw-r--r--. 1 root root 3172006616 Mar 14 05:16 gridHome.tar.gz
[root@rac12cnode3 12.1.0]# tar xvzf gridHome.tar.gz -C /
..
..
[root@rac12cnode3 12.1.0]#
NOTE : Review the copied homes on target nodes , If you still have any files need to be deleted from the copied home on nodes 3 and 4.
I have created following shell script to delete any unwanted files from the new homes created on node 3 and 4.
[root@rac12cnode3 log]# cat /tmp/askm/file_delete.sh
cd /u01/app/12.1.0/grid/
rm -rf /u01/app/12.1.0/grid/log/rac12cnode1
rm -rf /u01/app/12.1.0/grid/gpnp/rac12cnode1
find gpnp -type f -exec rm -f {} \;
rm -rf /u01/app/12.1.0/grid/cfgtoollogs/*
rm -rf /u01/app/12.1.0/grid/crs/init/*
rm -rf /u01/app/12.1.0/grid/cdata/*
rm -rf /u01/app/12.1.0/grid/crf/*
rm -rf /u01/app/12.1.0/grid/network/admin/*.ora
rm -rf /u01/app/12.1.0/grid/crs/install/crsconfig_params
find . -name '*.ouibak' -exec rm {} \;
find . -name '*.ouibak.1' -exec rm {} \;
rm -rf /u01/app/12.1.0/grid/root.sh*
rm -rf /u01/app/12.1.0/grid/rdbms/audit/*
rm -rf /u01/app/12.1.0/grid/rdbms/log/*
rm -rf /u01/app/12.1.0/grid/inventory/backup/*
[root@rac12cnode3 log]#
Now execute the file  /tmp/askm/file_delete.sh  on nodes 3 and 4.

4. Run clone.pl on all the cluster nodes.
Run the clone.pl script located in the Grid_home/clone/bin directory on Node 3 and Node 4.
On Node 3:(HUB Node ):
[grid@rac12cnode3 ~]$ cd $ORACLE_HOME/clone/bin
[grid@rac12cnode3 bin]$ perl clone.pl ORACLE_HOME=/u01/app/12.1.0/grid ORACLE_HOME_NAME=OraGrid12c ORACLE_BASE=/u01/app/grid "'CLUSTER_NODES={rac12cnode1, rac12cnode2,rac12cnode3,rac12cnode4}'" "'LOCAL_NODE=rac12cnode3'" CRS=TRUE INVENTORY_LOCATION=/u01/app/oraInventory
./runInstaller -clone -waitForCompletion  "ORACLE_HOME=/u01/app/12.1.0/grid" "ORACLE_HOME_NAME=OraGrid12c" "ORACLE_BASE=/u01/app/grid" "'CLUSTER_NODES={rac12cnode1, rac12cnode2,rac12cnode3,rac12cnode4}'" "'LOCAL_NODE=rac12cnode3'" "CRS=TRUE" "INVENTORY_LOCATION=/u01/app/oraInventory" -silent -paramFile /u01/app/12.1.0/grid/clone/clone_oraparam.ini
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 500 MB.   Actual 7237 MB    Passed
Checking swap space: must be greater than 500 MB.   Actual 2042 MB    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2014-03-14_08-10-41AM. Please wait ...You can find the log of this install session at:
 /u01/app/oraInventory/logs/cloneActions2014-03-14_08-10-41AM.log
..................................................   5% Done.
..................................................   10% Done.
..................................................   15% Done.
..................................................   20% Done.
..................................................   25% Done.
..................................................   30% Done.
..................................................   35% Done.
..................................................   40% Done.
..................................................   45% Done.
..................................................   50% Done.
..................................................   55% Done.
..................................................   60% Done.
..................................................   65% Done.
..................................................   70% Done.
..................................................   75% Done.
..................................................   80% Done.
..................................................   85% Done.
..................................................   90% Done.
..................................................   95% Done.
Copy files in progress.
Copy files successful.
Link binaries in progress.
Link binaries successful.
Setup files in progress.
Setup files successful.
Setup Inventory in progress.
Setup Inventory successful.
Finish Setup successful.
The cloning of OraGrid12c was successful.
Please check '/u01/app/oraInventory/logs/cloneActions2014-03-14_08-10-41AM.log' for more details.
As a root user, execute the following script(s):
        1. /u01/app/12.1.0/grid/root.sh

..................................................   100% Done.
[grid@rac12cnode3 bin]$

On Node 4: (Leaf Node)
[grid@rac12cnode4 ~]$ cd /u01/app/12.1.0/grid/clone/bin
[grid@rac12cnode4 bin]$ pwd
/u01/app/12.1.0/grid/clone/bin
[grid@rac12cnode4 bin]$ perl clone.pl ORACLE_HOME=/u01/app/12.1.0/grid ORACLE_HOME_NAME=OraGrid12c ORACLE_BASE=/u01/app/grid "'CLUSTER_NODES={rac12cnode1, rac12cnode2,rac12cnode3,rac12cnode4}'" "'LOCAL_NODE=rac12cnode4'" CRS=TRUE INVENTORY_LOCATION=/u01/app/oraInventory
./runInstaller -clone -waitForCompletion  "ORACLE_HOME=/u01/app/12.1.0/grid" "ORACLE_HOME_NAME=OraGrid12c" "ORACLE_BASE=/u01/app/grid" "'CLUSTER_NODES={rac12cnode1, rac12cnode2,rac12cnode3,rac12cnode4}'" "'LOCAL_NODE=rac12cnode4'" "CRS=TRUE" "INVENTORY_LOCATION=/u01/app/oraInventory" -silent -paramFile /u01/app/12.1.0/grid/clone/clone_oraparam.ini
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 500 MB.   Actual 7239 MB    Passed
Checking swap space: must be greater than 500 MB.   Actual 2041 MB    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2014-03-14_08-15-13AM. Please wait ...You can find the log of this install session at:
 /u01/app/oraInventory/logs/cloneActions2014-03-14_08-15-13AM.log
..................................................   5% Done.
..................................................   10% Done.
..................................................   15% Done.
..................................................   20% Done.
..................................................   25% Done.
..................................................   30% Done.
..................................................   35% Done.
..................................................   40% Done.
..................................................   45% Done.
..................................................   50% Done.
..................................................   55% Done.
..................................................   60% Done.
..................................................   65% Done.
..................................................   70% Done.
..................................................   75% Done.
..................................................   80% Done.
..................................................   85% Done.
..................................................   90% Done.
..................................................   95% Done.
Copy files in progress.
Copy files successful.
Link binaries in progress.
Link binaries successful.
Setup files in progress.
Setup files successful.
Setup Inventory in progress.
Setup Inventory successful.
Finish Setup successful.
The cloning of OraGrid12c was successful.
Please check '/u01/app/oraInventory/logs/cloneActions2014-03-14_08-15-13AM.log' for more details.
As a root user, execute the following script(s):
        1. /u01/app/12.1.0/grid/root.sh

..................................................   100% Done.
[grid@rac12cnode4 bin]$

IMP IMP : Please don't run root.sh at this point of time. 

5. Run orainstRoot.sh script on all target cluster nodes:(as root user)
This script populates the /etc/oraInst.loc directory with the location of the central inventory.
[root@rac12cnode3 ~]# /u01/app/oraInventory/orainstRoot.sh
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
[root@rac12cnode3 ~]# 
[root@rac12cnode4 oraInventory]# /u01/app/oraInventory/orainstRoot.sh
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
[root@rac12cnode4 oraInventory]#
6. Execute addnode.sh in silent mode to add hub node and leaf node:
Run the addnode.sh script from $GRID_HOME/addnode/
[grid@rac12cnode1 addnode]$ ./addnode.sh -silent -noCopy ORACLE_HOME=/u01/app/12.1.0/grid "CLUSTER_NEW_NODES={rac12cnode3,rac12cnode4}" "CLUSTER_NEW_VIRTUAL_HOSTNAMES={rac12cnode3-vip}" "CLUSTER_NEW_NODE_ROLES={HUB,LEAF}"
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 120 MB.   Actual 7444 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 407 MB    Passed
[WARNING] [INS-13014] Target environment does not meet some optional requirements.
   CAUSE: Some of the optional prerequisites are not met. See logs for details. /u01/app/oraInventory/logs/addNodeActions2014-03-15_11-16-57AM.log
   ACTION: Identify the list of failed prerequisite checks from the log: /u01/app/oraInventory/logs/addNodeActions2014-03-15_11-16-57AM.log. Then either from the log file or from installation manual find the appropriate configuration to meet the prerequisites and fix it manually.
Prepare Configuration in progress.
Prepare Configuration successful.
..................................................   40% Done.
As a root user, execute the following script(s):
        1. /u01/app/12.1.0/grid/root.sh
Execute /u01/app/12.1.0/grid/root.sh on the following nodes:
[rac12cnode3, rac12cnode4]
The scripts can be executed in parallel on all the nodes. If there are any policy managed databases managed by cluster, proceed with the addnode procedure without executing the root.sh script. Ensure that root.sh script is executed after all the policy managed databases managed by clusterware are extended to the new nodes.
..................................................   60% Done.
Update Inventory in progress.
..................................................   100% Done.
Update Inventory successful.
Successfully Setup Software.
[grid@rac12cnode1 addnode]$ 
In the preceding syntax example, Node 4 is designated as a Leaf Node and does not require that a VIP be included.

7. Copy config files from source system to all target cluster nodes:
Copy the following files from Node 1, on which you ran addnode.sh, to Node3 and Node4.
Grid_home/crs/install/crsconfig_addparams
Grid_home/crs/install/crsconfig_params
Grid_home/gpnp
[root@rac12cnode1 grid]# scp /u01/app/12.1.0/grid/crs/install/crsconfig_addparams /u01/app/12.1.0/grid/crs/install/crsconfig_params /u01/app/12.1.0/grid/gpnp.tar.gz 192.168.1.133:/tmp/askm
root@192.168.1.133's password:
crsconfig_addparams                                                                        100% 1089     1.1KB/s   00:00
crsconfig_params                                                                           100% 5509     5.4KB/s   00:00
gpnp.tar.gz                                                                                100%   90KB  90.1KB/s   00:00
[root@rac12cnode1 grid]# scp /u01/app/12.1.0/grid/crs/install/crsconfig_addparams /u01/app/12.1.0/grid/crs/install/crsconfig_params /u01/app/12.1.0/grid/gpnp.tar.gz 192.168.1.134:/tmp/askm
root@192.168.1.134's password:
crsconfig_addparams                                                                        100% 1089     1.1KB/s   00:00
crsconfig_params                                                                           100% 5509     5.4KB/s   00:00
gpnp.tar.gz                                                                                100%   90KB  90.1KB/s   00:00
[root@rac12cnode1 grid]# 
[root@rac12cnode4 ~]# mv /u01/app/12.1.0/grid/crs/install/crsconfig_addparams /u01/app/12.1.0/grid/crs/install/crsconfig_addparams_bak
[root@rac12cnode4 ~]# mv /u01/app/12.1.0/grid/crs/install/crsconfig_params /u01/app/12.1.0/grid/crs/install/crsconfig_params_bak
[root@rac12cnode4 ~]# mv /tmp/askm/crsconfig_addparams /u01/app/12.1.0/grid/crs/install/crsconfig_addparams
[root@rac12cnode4 ~]# mv /tmp/askm/crsconfig_params /u01/app/12.1.0/grid/crs/install/crsconfig_params
[root@rac12cnode4 ~]# chown grid:oinstall /u01/app/12.1.0/grid/crs/install/crsconfig_addparams
[root@rac12cnode4 ~]# chown grid:oinstall /u01/app/12.1.0/grid/crs/install/crsconfig_params
[root@rac12cnode4 ~]# cd /u01/app/12.1.0/grid
[root@rac12cnode4 grid]# mv gpnp gpnp_bak
[root@rac12cnode4 grid]# pwd
/u01/app/12.1.0/grid
[root@rac12cnode4 grid]# tar xzf /tmp/askm/gpnp.tar.gz
[root@rac12cnode4 grid]# ls -ld gpnp
drwxr-x---. 8 grid oinstall 4096 Mar  7 09:06 gpnp
[root@rac12cnode4 grid]#

Complete the this step on node 3 and node 4.

8. Run root.sh on all the target nodes to configure cluster:
On Node 3 and Node 4, run the Grid_home/root.sh script.
[root@rac12cnode3 grid]# ./root.sh
Check /u01/app/12.1.0/grid/install/root_rac12cnode3_2014-03-15_11-55-20.log for the output of root script
[root@rac12cnode3 grid]# cat /u01/app/12.1.0/grid/install/root_rac12cnode3_2014-03-15_11-55-20.log
Performing root user operation for Oracle 12c
The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /u01/app/12.1.0/grid
   Copying dbhome to /usr/local/bin ...
   Copying oraenv to /usr/local/bin ...
   Copying coraenv to /usr/local/bin ...

Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
To configure Grid Infrastructure for a Stand-Alone Server run the following command as the root user:
/u01/app/12.1.0/grid/perl/bin/perl -I/u01/app/12.1.0/grid/perl/lib -I/u01/app/12.1.0/grid/crs/install /u01/app/12.1.0/grid/crs/install/roothas.pl

To configure Grid Infrastructure for a Cluster execute the following command as grid user:
/u01/app/12.1.0/grid/crs/config/config.sh
This command launches the Grid Infrastructure Configuration Wizard. The wizard also supports silent operation, and the parameters can be passed through the response file that is available in the installation media.

[root@rac12cnode3 grid]#
If you get this output after executing the root.sh , then your cluster is not configured correctly. You need to modify the script "/u01/app/12.1.0/grid/crs/config/rootconfig.sh" to uncomment the some part of the script. Please refer to my video if you need more details on this part. 
[root@rac12cnode4 ~]# diff /u01/app/12.1.0/grid/crs/config/rootconfig.sh /u01/app/12.1.0/grid/crs/config/rootconfig.sh_bak_askm
33,37c33,37
< if [ "$ADDNODE" = "true" ]; then
<   SW_ONLY=false
<   HA_CONFIG=false
< fi
---
> #if [ "$ADDNODE" = "true" ]; then
> #  SW_ONLY=false
> #  HA_CONFIG=false
> #fi
[root@rac12cnode4 ~]# 
Now run the root.sh again. This time it will execute successfully and configures the cluster.
[root@rac12cnode3 grid]# ./root.sh
Check /u01/app/12.1.0/grid/install/root_rac12cnode3_2014-03-15_11-57-18.log for the output of root script
[root@rac12cnode3 grid]#
[root@rac12cnode4 grid]# ./root.sh
Check /u01/app/12.1.0/grid/install/root_rac12cnode4_2014-03-15_12-24-46.log for the output of root script
[root@rac12cnode4 grid]#
The output for above executions for confirmation that they configured clusterware correctly ....
[root@rac12cnode3 ~]# tail -f /u01/app/12.1.0/grid/install/root_rac12cnode3_2014-03-15_11-57-18.log
    ORACLE_HOME=  /u01/app/12.1.0/grid
   Copying dbhome to /usr/local/bin ...
   Copying oraenv to /usr/local/bin ...
   Copying coraenv to /usr/local/bin ...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Relinking oracle with rac_on option
Using configuration parameter file: /u01/app/12.1.0/grid/crs/install/crsconfig_params
OLR initialization - successful
2014/03/15 11:59:52 CLSRSC-330: Adding Clusterware entries to file 'oracle-ohasd.conf'
CRS-4133: Oracle High Availability Services has been stopped.
CRS-4123: Oracle High Availability Services has been started.
CRS-4133: Oracle High Availability Services has been stopped.
CRS-4123: Oracle High Availability Services has been started.
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'rac12cnode3'
CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'rac12cnode3'
CRS-2677: Stop of 'ora.drivers.acfs' on 'rac12cnode3' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'rac12cnode3' has completed
CRS-4133: Oracle High Availability Services has been stopped.
CRS-4123: Starting Oracle High Availability Services-managed resources
CRS-2672: Attempting to start 'ora.mdnsd' on 'rac12cnode3'
CRS-2672: Attempting to start 'ora.evmd' on 'rac12cnode3'
CRS-2676: Start of 'ora.mdnsd' on 'rac12cnode3' succeeded
CRS-2676: Start of 'ora.evmd' on 'rac12cnode3' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'rac12cnode3'
CRS-2676: Start of 'ora.gpnpd' on 'rac12cnode3' succeeded
CRS-2672: Attempting to start 'ora.gipcd' on 'rac12cnode3'
CRS-2676: Start of 'ora.gipcd' on 'rac12cnode3' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac12cnode3'
CRS-2676: Start of 'ora.cssdmonitor' on 'rac12cnode3' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'rac12cnode3'
CRS-2672: Attempting to start 'ora.diskmon' on 'rac12cnode3'
CRS-2676: Start of 'ora.diskmon' on 'rac12cnode3' succeeded
CRS-2789: Cannot stop resource 'ora.diskmon' as it is not running on server 'rac12cnode3'
CRS-2676: Start of 'ora.cssd' on 'rac12cnode3' succeeded
CRS-2672: Attempting to start 'ora.cluster_interconnect.haip' on 'rac12cnode3'
CRS-2672: Attempting to start 'ora.ctssd' on 'rac12cnode3'
CRS-2676: Start of 'ora.ctssd' on 'rac12cnode3' succeeded
CRS-2676: Start of 'ora.cluster_interconnect.haip' on 'rac12cnode3' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'rac12cnode3'
CRS-2676: Start of 'ora.asm' on 'rac12cnode3' succeeded
CRS-2672: Attempting to start 'ora.storage' on 'rac12cnode3'
CRS-2676: Start of 'ora.storage' on 'rac12cnode3' succeeded
CRS-2672: Attempting to start 'ora.crsd' on 'rac12cnode3'
CRS-2676: Start of 'ora.crsd' on 'rac12cnode3' succeeded
CRS-6017: Processing resource auto-start for servers: rac12cnode3
CRS-2672: Attempting to start 'ora.ASMNET1LSNR_ASM.lsnr' on 'rac12cnode3'
CRS-2672: Attempting to start 'ora.ons' on 'rac12cnode3'
CRS-2676: Start of 'ora.ons' on 'rac12cnode3' succeeded
CRS-2676: Start of 'ora.ASMNET1LSNR_ASM.lsnr' on 'rac12cnode3' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'rac12cnode3'
CRS-2676: Start of 'ora.asm' on 'rac12cnode3' succeeded
CRS-2664: Resource 'ora.DATA.dg' is already running on 'rac12cnode1'
CRS-2664: Resource 'ora.proxy_advm' is already running on 'rac12cnode1'
CRS-2664: Resource 'ora.proxy_advm' is already running on 'rac12cnode2'
CRS-2664: Resource 'ora.DATA.dg' is already running on 'rac12cnode2'
CRS-2664: Resource 'ora.proxy_advm' is already running on 'rac12cnode1'
CRS-2664: Resource 'ora.proxy_advm' is already running on 'rac12cnode2'
CRS-6016: Resource auto-start has completed for server rac12cnode3
CRS-2672: Attempting to start 'ora.proxy_advm' on 'rac12cnode3'
CRS-6024: Completed start of Oracle Cluster Ready Services-managed resources
CRS-4123: Oracle High Availability Services has been started.
2014/03/15 12:10:16 CLSRSC-343: Successfully started Oracle clusterware stack
clscfg: EXISTING configuration version 5 detected.
clscfg: version 5 is 12c Release 1.
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
2014/03/15 12:11:15 CLSRSC-325: Configure Oracle Grid Infrastructure for a Cluster ... succeeded
[root@rac12cnode3 ~]#
[root@rac12cnode4 ~]# tail -f /u01/app/12.1.0/grid/install/root_rac12cnode4_2014-03-15_12-24-46.log
   Copying oraenv to /usr/local/bin ...
   Copying coraenv to /usr/local/bin ...

Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Relinking oracle with rac_on option
Using configuration parameter file: /u01/app/12.1.0/grid/crs/install/crsconfig_params
OLR initialization - successful
2014/03/15 12:27:14 CLSRSC-330: Adding Clusterware entries to file 'oracle-ohasd.conf'
CRS-4133: Oracle High Availability Services has been stopped.
CRS-4123: Oracle High Availability Services has been started.
CRS-4133: Oracle High Availability Services has been stopped.
CRS-4123: Oracle High Availability Services has been started.
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'rac12cnode4'
CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'rac12cnode4'
CRS-2677: Stop of 'ora.drivers.acfs' on 'rac12cnode4' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'rac12cnode4' has completed
CRS-4133: Oracle High Availability Services has been stopped.
CRS-4123: Starting Oracle High Availability Services-managed resources
CRS-2672: Attempting to start 'ora.mdnsd' on 'rac12cnode4'
CRS-2672: Attempting to start 'ora.evmd' on 'rac12cnode4'
CRS-2676: Start of 'ora.evmd' on 'rac12cnode4' succeeded
CRS-2676: Start of 'ora.mdnsd' on 'rac12cnode4' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'rac12cnode4'
CRS-2676: Start of 'ora.gpnpd' on 'rac12cnode4' succeeded
CRS-2672: Attempting to start 'ora.gipcd' on 'rac12cnode4'
CRS-2676: Start of 'ora.gipcd' on 'rac12cnode4' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac12cnode4'
CRS-2676: Start of 'ora.cssdmonitor' on 'rac12cnode4' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'rac12cnode4'
CRS-2672: Attempting to start 'ora.diskmon' on 'rac12cnode4'
CRS-2676: Start of 'ora.diskmon' on 'rac12cnode4' succeeded
CRS-2789: Cannot stop resource 'ora.diskmon' as it is not running on server 'rac12cnode4'
CRS-2676: Start of 'ora.cssd' on 'rac12cnode4' succeeded
CRS-2672: Attempting to start 'ora.cluster_interconnect.haip' on 'rac12cnode4'
CRS-2672: Attempting to start 'ora.ctssd' on 'rac12cnode4'
CRS-2676: Start of 'ora.cluster_interconnect.haip' on 'rac12cnode4' succeeded
CRS-2676: Start of 'ora.ctssd' on 'rac12cnode4' succeeded
CRS-2672: Attempting to start 'ora.storage' on 'rac12cnode4'
CRS-2676: Start of 'ora.storage' on 'rac12cnode4' succeeded
CRS-2672: Attempting to start 'ora.crsd' on 'rac12cnode4'
CRS-2676: Start of 'ora.crsd' on 'rac12cnode4' succeeded
CRS-6017: Processing resource auto-start for servers: rac12cnode4
CRS-6016: Resource auto-start has completed for server rac12cnode4
CRS-6024: Completed start of Oracle Cluster Ready Services-managed resources
CRS-4123: Oracle High Availability Services has been started.
2014/03/15 12:31:56 CLSRSC-343: Successfully started Oracle clusterware stack
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
2014/03/15 12:32:05 CLSRSC-325: Configure Oracle Grid Infrastructure for a Cluster ... succeeded
[root@rac12cnode4 ~]#

9. Verify the cloned cluster with cluvfy:
[root@rac12cnode1 grid]# su - grid
[grid@rac12cnode1 ~]$ olsnodes -s -t
rac12cnode1     Active  Unpinned
rac12cnode2     Active  Unpinned
rac12cnode3     Active  Unpinned
rac12cnode4     Active  Unpinned
[grid@rac12cnode1 ~]$ crsctl get cluster mode status
Cluster is running in "flex" mode
[grid@rac12cnode1 ~]$ srvctl config gns
GNS is enabled.
[grid@rac12cnode1 ~]$ crsctl get node role config
Node 'rac12cnode1' configured role is 'hub'
[grid@rac12cnode1 ~]$ asmcmd showclustermode
ASM cluster : Flex mode enabled
[grid@rac12cnode1 ~]$ srvctl status asm -detail
ASM is running on rac12cnode1,rac12cnode2,rac12cnode3
ASM is enabled.
[grid@rac12cnode1 ~]$ crsctl get node role config -all
Node 'rac12cnode1' configured role is 'hub'
Node 'rac12cnode2' configured role is 'hub'
Node 'rac12cnode3' configured role is 'hub'
Node 'rac12cnode4' configured role is 'leaf'
[grid@rac12cnode1 ~]$ clear
[grid@rac12cnode1 ~]$ cluvfy stage -post nodeadd -n rac12cnode3,rac12cnode4 -verbose
...
....
Post-check for node addition was successful.
[grid@rac12cnode1 ~]$ 

Hope this helps
SRI

E-Business Suite R12.2.3 Cloning

Written By askMLabs on Sunday, February 23, 2014 | 5:13 AM

In this article , i am going to present the cloning procedure on E-business suite R12.2.3 environment. The main procedure to clone an e-business suite environment in R12.2.3 is same except to clone the patch file system in target clone environment.
I collected session log and am presenting it for reference to see the prompts while cloning.

  1. A. Environment
  2. B. Prepare the source system 
    1. 1. Prepare the source system database tier for cloning
    2. 2. Prepare the Source System Application Tier for cloning
  3. C. Copy the Source System to the Target System
    1. 1. Copy the Database Node file system
    2. 2. Copy the Application Tier file system from the Source "Run Edition File System" to the Target "Run Edition File System"
  4. D. Configure the Target System
    1. 1. Configure the Target System database server
    2. 2. Configure the Target System Application Tier server nodes
    3. 3. Run adpreclone.pl on the "Run Edition File System" in the Target System. (NEW in R12.2)
    4. 4. Copy Oracle E-Business Suite application directories from the "Run Edition File System" to the "Patch Edition File System" in the Target System. (NEW in R12.2)
    5. 5. Configure Patch file system on target appsTier (NEW in R12.2)
  5. E. Finishing Tasks

A.Environment

Source
Target
Database Name
VISDB
CLONE
Database Node
ebiz1222db01.askmlabs.com
ebiz1223db01.askmlabs.com
Application Node
ebiz1222ap01.askmlabs.com
ebiz1223ap01.askmlabs.com
Run File system
/u01/install/fs1
/u01/install/fs1
Patch File System
/u01/install/fs2
/u01/install/fs2
As we have dual file system in R12.2, we need to first clone run file system from source to target. Then patch file system on target environment is created from the run file system cloned from the source environment. The diagramatic representation is given below. This picture is taken from Oracle E-business suite documentation.

B.1 Prepare the source system database tier for cloning :
Log on to the Source System as the ORACLE user, and run the following commands:
$ cd <RDBMS ORACLE_HOME>/appsutil/scripts/<CONTEXT_NAME>
$ perl adpreclone.pl dbTier
B.2 Prepare the Source System Application Tier for cloning:
Log on to the "Run Edition File System" in the Source System as the APPLMGR
user, and run the following commands on the node that contains an
APPL_TOP:
$ cd <INST_TOP>/admin/scripts
$ perl adpreclone.pl appsTier
C.1 Copy the Database Node file system
There  are various procedures to clone database from source to target. You can use hotbackup of the source database , you can also use RMAN duplication from active database option. But in this article, i am using simple and easy method of cold backup to copy the source database to target database.

Log on to the Source System Database node as the ORACLE user, and then:
Perform a normal shutdown of the Source System database
[root@ebiz1222db01 ~]# su - oracle
[oracle@ebiz1222db01 ~]$ . /u01/install/11.2.0/VISDB_ebiz1222db01.env
[oracle@ebiz1222db01 ~]$ sqlplus '/as sysdba'
SQL*Plus: Release 11.2.0.3.0 Production on Sun Feb 23 02:16:16 2014
Copyright (c) 1982, 2011, Oracle.  All rights reserved.

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> shut immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> 
Copy the database (.dbf) files from the Source System to the Target System
[oracle@ebiz1222db01 data]$ pwd
/u01/install/data
[oracle@ebiz1222db01 data]$ ls
apps_ts_interface.dbf      ctx1.dbf              omo1.dbf        summary5.dbf  sys8.dbf      system20.dbf   tx_data18.dbf  tx_data3.dbf  tx_idx15.dbf  tx_idx6.dbf
archive                    dcm.dbf               opmtr01.dbf     summary6.dbf  sys9.dbf      temp0001.dbf   tx_data19.dbf  tx_data4.dbf  tx_idx16.dbf  tx_idx7.dbf
archive1.dbf               dm_olaptrain_arc.dbf  owb1.dbf        summary7.dbf  sysaux01.dbf  temp01.dbf     tx_data1.dbf   tx_data5.dbf  tx_idx17.dbf  tx_idx8.dbf
a_ref03.dbf                log1.dbf              owb2.dbf        sys10.dbf     sysaux02.dbf  temp02.dbf     tx_data20.dbf  tx_data6.dbf  tx_idx18.dbf  tx_idx9.dbf
a_ref04.dbf                log2.dbf              queues1.dbf     sys11.dbf     system12.dbf  tx_data10.dbf  tx_data21.dbf  tx_data7.dbf  tx_idx19.dbf  undotbs001.dbf
a_ref05.dbf                log3.dbf              queues2.dbf     sys1.dbf      system13.dbf  tx_data11.dbf  tx_data22.dbf  tx_data8.dbf  tx_idx1.dbf   undotbs002.dbf
cntrl01.dbf                media1.dbf            reference1.dbf  sys2.dbf      system14.dbf  tx_data12.dbf  tx_data23.dbf  tx_data9.dbf  tx_idx20.dbf  undotbs003.dbf
cntrl02.dbf                media2.dbf            reference2.dbf  sys3.dbf      system15.dbf  tx_data13.dbf  tx_data24.dbf  tx_idx10.dbf  tx_idx21.dbf  xdb01.dbf
cntrl03.dbf                media3.dbf            summary1.dbf    sys4.dbf      system16.dbf  tx_data14.dbf  tx_data25.dbf  tx_idx11.dbf  tx_idx2.dbf
controlfile_VS1222B71.ctl  nologging1.dbf        summary2.dbf    sys5.dbf      system17.dbf  tx_data15.dbf  tx_data26.dbf  tx_idx12.dbf  tx_idx3.dbf
controlfile_VS1222B72.ctl  nologging3.dbf        summary3.dbf    sys6.dbf      system18.dbf  tx_data16.dbf  tx_data27.dbf  tx_idx13.dbf  tx_idx4.dbf
controlfile_VS1222B73.ctl  odm.dbf               summary4.dbf    sys7.dbf      system19.dbf  tx_data17.dbf  tx_data2.dbf   tx_idx14.dbf  tx_idx5.dbf
[oracle@ebiz1222db01 data]$ scp * oracle@ebiz1223db01:/u01/install/data
Copy the Source System database ORACLE_HOME to the Target System
[oracle@ebiz1222db01 install]$ cd /u01/install
[oracle@ebiz1222db01 install]$ tar czf db1120.tar.gz 11.2.0/
[oracle@ebiz1222db01 install]$ pwd
/u01/install
[oracle@ebiz1222db01 install]$ ls -lrt
total 3652404
drwxr-xr-x  3 oracle oracle       4096 Sep  5 04:44 data
drwxr-xr-x 82 oracle oracle       4096 Jan 30 08:46 11.2.0
drwxrwx---  4 oracle oracle       4096 Jan 30 08:49 oraInventory
-rw-rw-r--  1 oracle oracle 3736392676 Feb  4 03:30 db1120.tar.gz
[oracle@ebiz1222db01 install]$
[oracle@ebiz1222db01 install]$ scp db1120.tar.gz oracle@ebiz1223db01:/u01/install/
Start the Source Applications system database and Application Tier
processes

C.2 Copy the Application Tier file system from the Source "Run Edition File System" to the Target "Run Edition File System"

Log on to "Run Edition File System" in the Source System Application Tier
nodes as the APPLMGR user.
[applmgr@ebiz1222ap01 ~]$ cd /u01/install
[applmgr@ebiz1222ap01 install]$ ls
adctrl.log  EBSapps.env  fs1  fs2  fs_ne  oraInventory  scripts  sqlnet.log  webgate
[applmgr@ebiz1222ap01 install]$ . ./EBSapps.env
  E-Business Suite Environment Information
  ----------------------------------------
  RUN File System : /u01/install/fs1/EBSapps/appl
  PATCH File System : /u01/install/fs2/EBSapps/appl
  Non-Editioned File System : /u01/install/fs_ne
  DB Host: ebiz1222db01.localdomain.com  Service/SID: VISDB
  E-Business Suite Environment Setting
  ------------------------------------
  - Enter [R/r] for sourcing Run File System Environment file, or
  - Enter [P/p] for sourcing Patch File System Environment file, or
  - Enter anything else to exit
  Would you like to set the E-Business Suite environment [R/P]:R
  Sourcing the RUN File System ...
[applmgr@ebiz1222ap01 install]$ echo $FILE_EDITION
run
[applmgr@ebiz1222ap01 install]$ echo $RUN_BASE
/u01/install/fs1
[applmgr@ebiz1222ap01 install]$ echo $PATCH_BASE
/u01/install/fs2
[applmgr@ebiz1222ap01 install]$ cd $RUN_BASE
[applmgr@ebiz1222ap01 fs1]$ ls
EBSapps  FMW_Home  inst
[applmgr@ebiz1222ap01 fs1]$ cd EBSapps/
[applmgr@ebiz1222ap01 EBSapps]$ ls
10.1.2  appl  comn
[applmgr@ebiz1222ap01 EBSapps]$ cd ..
[applmgr@ebiz1222ap01 fs1]$ tar cvf EBSapps.tar.gz EBSapps/
[applmgr@ebiz1222ap01 fs1]$ scp EBSapps.tar.gz applmgr@ebiz1223ap01:/u01/install/fs1
D.1 Configure the Target System database server
Log on to the Target System as the ORACLE user and enter the following commands:
$ cd <RDBMS ORACLE_HOME>/appsutil/clone/bin
$ perl adcfgclone.pl dbTier
[oracle@ebiz1223db install]$ tar xzf db1120.tar.gz
[oracle@ebiz1223db install]$ cd 11.2.0/
[oracle@ebiz1223db 11.2.0]$ ls
admin         ccr          crs     deinstall    hs             jdbc  log      odbc         oui      rdbms           slax          temp                    wwg
apex          cdata        csmig   demo         ide            jdev  md       olap         owb      relnotes        sqldeveloper  timingframework         xdk
appsutil      cfgtoollogs  css     diagnostics  install        jdk   mesg     OPatch       owm      root.sh         sqlj          ucp
appsutil.old  checkpoints  ctx     dv           instantclient  jlib  mgw      opmn         perl     root.sh.old     sqlpatch      uix
appsutil.zip  clone        cv      emcli        inventory      jpub  network  oracore      plsql    root.sh.old.1   sqlplus       usm
assistants    config       dbs     EMStage      j2ee           ldap  nls      oraInst.loc  precomp  root.sh.ouibak  srvm          utl
bin           cpu          dc_ocm  has          javavm         lib   oc4j     ord          racg     scheduler       sysman        VISDB_ebiz1222db01.env
[oracle@ebiz1223db 11.2.0]$ cd clone
[oracle@ebiz1223db clone]$ ls
bin  clonehome.xml  clonehome.xsd  config  excludefiles.xml  excludefiles.xsd  toplevelcomps.xml  toplevelcomps.xsd
[oracle@ebiz1223db clone]$ cd ../appsutil
[oracle@ebiz1223db appsutil]$ ls
autobuild  clone            driver  install  jre  media  outbound  scripts  temp      VISDB_ebiz1222db01.xml  VISION_ebs.xml       VISION_ebs.xml.bak
bin        clone_04FEB2014  html    java     log  out    perl      sql      template  VISION_db.xml           VISION_ebs.xml0.bak
[oracle@ebiz1223db appsutil]$ cd clone
[oracle@ebiz1223db clone]$ ls
bin  context  data  dbts  html  jlib  jre  oui
[oracle@ebiz1223db clone]$ cd bin
[oracle@ebiz1223db bin]$ ls
adcfgclone.pl  adchkutl.sh  adclonectx.pl  adclone.pl
[oracle@ebiz1223db bin]$
[oracle@ebiz1223db bin]$ perl adcfgclone.pl dbTier
                     Copyright (c) 2011 Oracle Corporation
                        Redwood Shores, California, USA
                        Oracle E-Business Suite Rapid Clone
                                 Version 12.2
                      adcfgclone Version 120.63.12020000.22
Enter the APPS password :
Running:
/u01/install/11.2.0/appsutil/clone/bin/../jre/bin/java -Xmx600M -cp /u01/install/11.2.0/appsutil/clone/jlib/java:/u01/install/11.2.0/appsutil/clone/jlib/xmlparserv2.jar:/u01/install/11.2.0/appsutil/clone/jlib/ojdbc5.jar:/u01/install/11.2.0/appsutil/clone/jlib/obfuscatepassword.jar:/u01/install/11.2.0/appsutil/clone/jlib/ojmisc.jar:/u01/install/11.2.0/appsutil/clone/jlib/java:/u01/install/11.2.0/appsutil/clone/jlib/emCfg.jar oracle.apps.ad.context.CloneContext -e /u01/install/11.2.0/appsutil/clone/bin/../context/db/CTXORIG.xml -validate -pairsfile /tmp/adpairsfile_2588.lst -stage /u01/install/11.2.0/appsutil/clone  2> /tmp/adcfgclone_2588.err; echo $? > /tmp/adcfgclone_2588.res
Log file located at /u01/install/11.2.0/appsutil/clone/bin/CloneContext_0210070912.log
Provide the values required for creation of the new Database Context file.
Target System Hostname (virtual or normal) [ebiz1223db] :
Target Instance is RAC (y/n) [n] :
Target System Database SID : CLONE
Target System Base Directory : /u01/install
Target System utl_file_dir Directory List : /tmp
Number of DATA_TOP's on the Target System [1] :
Target System DATA_TOP Directory 1 [/u01/install/data] :
Target System RDBMS ORACLE_HOME Directory [/u01/install/11.2.0] :
Do you want to preserve the Display [localhost:5.0] (y/n)  : y
Do you want the target system to have the same port values as the source system (y/n) [y] ? : y
RC-50220: Warning: Database Port: 1521 is not free. Unable to preserve the port settings from source system.
Target System Port Pool [0-99] : 0
Checking the port pool 0
RC-50221: Warning: Port Pool 0 is not free. Please check logfile /u01/install/11.2.0/appsutil/clone/bin/CloneContext_0210070912.log for conflicts.
Target System Port Pool [0-99] : 1
Checking the port pool 1
done: Port Pool 1 is free
Report file located at /u01/install/11.2.0/appsutil/temp/portpool.lst
Complete port information available at /u01/install/11.2.0/appsutil/temp/portpool.lst
Creating the new Database Context file from :
  /u01/install/11.2.0/appsutil/clone/context/db/adxdbctx.tmp
The new database context file has been created :
  /u01/install/11.2.0/appsutil/CLONE_ebiz1223db.xml
Log file located at /u01/install/11.2.0/appsutil/clone/bin/CloneContext_0210070912.log
Check Clone Context logfile /u01/install/11.2.0/appsutil/clone/bin/CloneContext_0210070912.log for details.

One or more listeners are currently running in your Target ORACLE_HOME.
Please make sure there are no processes running before proceeding.
Continue? (y/n) [n]) : y
Running Rapid Clone with command:
Running:
perl /u01/install/11.2.0/appsutil/clone/bin/adclone.pl java=/u01/install/11.2.0/appsutil/clone/bin/../jre mode=apply stage=/u01/install/11.2.0/appsutil/clone component=dbTier method=CUSTOM dbctxtg=/u01/install/11.2.0/appsutil/CLONE_ebiz1223db.xml showProgress contextValidated=true

Beginning database tier Apply - Mon Feb 10 07:11:22 2014
/u01/install/11.2.0/appsutil/clone/bin/../jre/bin/java -Xmx600M -DCONTEXT_VALIDATED=true -Doracle.installer.oui_loc=/u01/install/11.2.0/oui -classpath /u01/install/11.2.0/appsutil/clone/jlib/xmlparserv2.jar:/u01/install/11.2.0/appsutil/clone/jlib/ojdbc6.jar:/u01/install/11.2.0/appsutil/clone/jlib/java:/u01/install/11.2.0/appsutil/clone/jlib/oui/OraInstaller.jar:/u01/install/11.2.0/appsutil/clone/jlib/oui/ewt3.jar:/u01/install/11.2.0/appsutil/clone/jlib/oui/share.jar:/u01/install/11.2.0/appsutil/clone/jlib/oui/srvm.jar:/u01/install/11.2.0/appsutil/clone/jlib/ojmisc.jar   oracle.apps.ad.clone.ApplyDBTier -e /u01/install/11.2.0/appsutil/CLONE_ebiz1223db.xml -stage /u01/install/11.2.0/appsutil/clone   -showProgress
APPS Password : Log file located at /u01/install/11.2.0/appsutil/log/CLONE_ebiz1223db/ApplyDBTier_02100711.log
  \     15% completed
Completed Apply...
Mon Feb 10 07:27:21 2014
Starting database listener for CLONE:
Running:
/u01/install/11.2.0/appsutil/scripts/CLONE_ebiz1223db/addlnctl.sh start CLONE
Logfile: /u01/install/11.2.0/appsutil/log/CLONE_ebiz1223db/addlnctl.txt
You are running addlnctl.sh version 120.4

Starting listener process CLONE ...

Listener CLONE has already been started.

addlnctl.sh: exiting with status 0
addlnctl.sh: check the logfile /u01/install/11.2.0/appsutil/log/CLONE_ebiz1223db/addlnctl.txt for more information ...
[oracle@ebiz1223db bin]$ ps ucx
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
oracle    2469  0.0  0.0  66092  1444 pts/0    S    06:37   0:00 bash
oracle    2716  0.0  0.0  66092  1232 pts/1    S+   07:10   0:00 bash
oracle    9052  0.0  0.3  87816 13736 ?        Ss   07:17   0:00 tnslsnr
oracle    9747  0.0  0.5 2336600 20776 ?       Ss   07:22   0:00 oracle
oracle    9749  0.0  0.4 2334312 16664 ?       Ss   07:22   0:00 oracle
oracle    9751  0.0  0.4 2334312 16560 ?       Ss   07:22   0:00 oracle
oracle    9755  0.0  0.4 2334312 16504 ?       Ss   07:22   0:00 oracle
oracle    9757  0.0  0.4 2334312 16424 ?       Ss   07:22   0:00 oracle
oracle    9759  0.0  0.6 2334824 26852 ?       Ss   07:22   0:00 oracle
oracle    9761  0.0  0.5 2335848 22224 ?       Ss   07:22   0:00 oracle
oracle    9763  0.0  3.5 2334312 141796 ?      Ss   07:22   0:00 oracle
oracle    9765  0.0  1.3 2340836 53324 ?       Ss   07:22   0:00 oracle
oracle    9767  0.0  0.7 2349864 29076 ?       Ss   07:22   0:00 oracle
oracle    9769  0.0  0.6 2334824 24672 ?       Ss   07:22   0:00 oracle
oracle    9771  3.8  8.0 2341104 326872 ?      Ss   07:22   0:34 oracle
oracle    9773  0.0  0.5 2334824 23736 ?       Ss   07:22   0:00 oracle
oracle    9775  0.1  2.6 2340280 106544 ?      Ss   07:22   0:01 oracle
oracle    9777  0.0  0.6 2335544 27068 ?       Ss   07:22   0:00 oracle
oracle    9790  0.0  0.5 2334312 20856 ?       Ss   07:23   0:00 oracle
oracle    9795  0.0  0.8 2335880 33824 ?       Ss   07:23   0:00 oracle
oracle    9797  0.0  1.4 2339032 58388 ?       Ss   07:23   0:00 oracle
oracle    9799  0.0  0.6 2334820 25748 ?       Ss   07:23   0:00 oracle
oracle    9801  0.0  0.4 2334308 19452 ?       Ss   07:23   0:00 oracle
oracle    9830  0.0  1.1 2345072 46532 ?       Ss   07:23   0:00 oracle
oracle    9924  0.0  0.4 2334312 16944 ?       Ss   07:26   0:00 oracle
oracle    9991  0.0  0.6 2334828 24256 ?       Ss   07:26   0:00 oracle
oracle   10549  0.0  0.4 2334308 16240 ?       Ss   07:31   0:00 oracle
oracle   10558  0.0  0.0  65652  1028 pts/0    R+   07:37   0:00 ps
[oracle@ebiz1223db bin]$ exit
logout
s[root@ebiz1223db install]# su - oracle
[oracle@ebiz1223db ~]$ cd /u01/install/11.2.0/
[oracle@ebiz1223db 11.2.0]$ ls
admin         ccr                   cpu    dc_ocm       has            javavm  lib      oc4j         ord      racg           root.sh.old.3     sqlpatch         uix
apex          cdata                 crs    deinstall    hs             jdbc    log      odbc         oui      rdbms          root.sh.ouibak    sqlplus          usm
appsutil      cfgtoollogs           csmig  demo         ide            jdev    md       olap         owb      relnotes       root.sh.ouibak.1  srvm             utl
appsutil.old  checkpoints           css    diagnostics  install        jdk     mesg     OPatch       owm      root.sh        scheduler         sysman           wwg
appsutil.zip  clone                 ctx    dv           instantclient  jlib    mgw      opmn         perl     root.sh.old    slax              temp             xdk
assistants    CLONE_ebiz1223db.env  cv     emcli        inventory      jpub    network  oracore      plsql    root.sh.old.1  sqldeveloper      timingframework
bin           config                dbs    EMStage      j2ee           ldap    nls      oraInst.loc  precomp  root.sh.old.2  sqlj              ucp
[oracle@ebiz1223db 11.2.0]$ . ./CLONE_ebiz1223db.env
[oracle@ebiz1223db 11.2.0]$ ls
admin         ccr                   cpu    dc_ocm       has            javavm  lib      oc4j         ord      racg           root.sh.old.3     sqlpatch         uix
apex          cdata                 crs    deinstall    hs             jdbc    log      odbc         oui      rdbms          root.sh.ouibak    sqlplus          usm
appsutil      cfgtoollogs           csmig  demo         ide            jdev    md       olap         owb      relnotes       root.sh.ouibak.1  srvm             utl
appsutil.old  checkpoints           css    diagnostics  install        jdk     mesg     OPatch       owm      root.sh        scheduler         sysman           wwg
appsutil.zip  clone                 ctx    dv           instantclient  jlib    mgw      opmn         perl     root.sh.old    slax              temp             xdk
assistants    CLONE_ebiz1223db.env  cv     emcli        inventory      jpub    network  oracore      plsql    root.sh.old.1  sqldeveloper      timingframework
bin           config                dbs    EMStage      j2ee           ldap    nls      oraInst.loc  precomp  root.sh.old.2  sqlj              ucp
[oracle@ebiz1223db 11.2.0]$ sqlplus '/as sysdba'
SQL*Plus: Release 11.2.0.3.0 Production on Mon Feb 10 07:37:51 2014
Copyright (c) 1982, 2011, Oracle.  All rights reserved.

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select instance_name,status from v$instance;INSTANCE_NAME    STATUS
---------------- ------------
CLONE            OPEN
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@ebiz1223db 11.2.0]$ lsnrctl status CLONE
LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 10-FEB-2014 07:38:13
Copyright (c) 1991, 2011, Oracle.  All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ebiz1223db.askmlabs.com)(PORT=1522)))
STATUS of the LISTENER
------------------------
Alias                     CLONE
Version                   TNSLSNR for Linux: Version 11.2.0.3.0 - Production
Start Date                10-FEB-2014 07:17:38
Uptime                    0 days 0 hr. 20 min. 34 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/install/11.2.0/network/admin/CLONE_ebiz1223db/listener.ora
Listener Log File         /u01/install/11.2.0/admin/CLONE_ebiz1223db/diag/tnslsnr/ebiz1223db/clone/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ebiz1223db.askmlabs.com)(PORT=1522)))
Services Summary...
Service "CLONE" has 2 instance(s).
  Instance "CLONE", status UNKNOWN, has 1 handler(s) for this service...
  Instance "CLONE", status READY, has 1 handler(s) for this service...
Service "ebs_patch" has 1 instance(s).
  Instance "CLONE", status READY, has 1 handler(s) for this service...
The command completed successfully
[oracle@ebiz1223db 11.2.0]$ sqlplus '/as sysdba'
SQL*Plus: Release 11.2.0.3.0 Production on Mon Feb 10 07:38:31 2014
Copyright (c) 1982, 2011, Oracle.  All rights reserved.

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select created from v$database;CREATED
------------------
10-FEB-14
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@ebiz1223db 11.2.0]$ hostname
ebiz1223db.askmlabs.com
[oracle@ebiz1223db 11.2.0]$

D.2 Configure the Target System Application Tier server nodes
Log on to the "Run Edition File System" in the Target System as the APPLMGR user and enter the following commands:
$ cd <COMMON_TOP>/clone/bin
$ perl adcfgclone.pl appsTier
[applmgr@ebiz1223ap01 fs1]$ tar xzf EBSapps.tar.gz
[applmgr@ebiz1223ap01 fs1]$ pwd
/u01/install/fs1
[applmgr@ebiz1223ap01 fs1]$ ls
EBSapps
[applmgr@ebiz1223ap01 fs1]$ cd EBSapps/
[applmgr@ebiz1223ap01 EBSapps]$ cd comn/clone/bin
[applmgr@ebiz1223ap01 bin]$ perl adcfgclone.pl appsTier
                     Copyright (c) 2011 Oracle Corporation
                        Redwood Shores, California, USA
                        Oracle E-Business Suite Rapid Clone
                                 Version 12.2
                      adcfgclone Version 120.63.12020000.26
Enter the APPS password :
Running:
/u01/install/fs1/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -classpath /u01/clone/jlib/ojmisc.jar:/u01/install/fs1/EBSapps/comn/clone/jlib/java:/u01/instal/u01/install/fs1/EBSapps/comn/clone/bin/../FMW/tempinfoApps.txt
Enter the Weblogic AdminServer password :
Running:
/u01/install/fs1/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -classpath /u01/clone/jlib/ojmisc.jar:/u01/install/fs1/EBSapps/comn/clone/jlib/java:/u01/instal/fs1/EBSapps/comn/clone/bin/../FMW/tempinfo.txt
Running:
/u01/install/fs1/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -classpath /u01/clone/jlib/ojmisc.jar:/u01/install/fs1/EBSapps/comn/clone/jlib/java:/u01/instal/fs1/EBSapps/comn/clone/bin/../FMW/EBSDataSource

Do you want to add a node (yes/no) [no] :

Running:
/u01/install/fs1/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -cp /u01/install/fs1/EBSapps/comn/clone/jlib/java:/u01/install/fs1/EBSapps/comn/clone/jlib/xmlparserv2.jar:/u01/install/fs1/EBSapps/comn/clone/jlib/ojdbc5.jar:/u01/install/fs1/EBSapps/comn/clone/jlib/obfuscatepassword.jar:/u01/install/fs1/EBSapps/comn/clone/jlib/ojmisc.jar:/u01/install/fs1/EBSapps/comn/clone/jlib/java:/u01/install/fs1/EBSapps/comn/clone/jlib/emCfg.jar oracle.apps.ad.context.CloneContext -e /u01/install/fs1/EBSapps/comn/clone/bin/../context/apps/CTXORIG.xml -validate -pairsfile /tmp/adpairsfile_29136.lst -stage /u01/install/fs1/EBSapps/comn/clone  2> /tmp/adcfgclone_29136.err; echo $? > /tmp/adcfgclone_29136.res
Log file located at /u01/install/fs1/EBSapps/comn/clone/bin/CloneContext_0210074038.log
Target System File Edition type [run] :
Provide the values required for creation of the new APPL_TOP Context file.
Target System Hostname (virtual or normal) [ebiz1223ap01] :
Target System Database SID : CLONE
Target System Database Server Node [ebiz1223ap01] : ebiz1223db
Target System Database Domain Name [askmlabs.com] :
Target System Base Directory : /u01/install
Target System Base Directory set to /u01/install
Target System Current File System Base set to /u01/install/fs1
Target System Other File System Base set to /u01/install/fs2
Target System Fusion Middleware Home set to /u01/install/fs1/FMW_Home
Target System Web Oracle Home set to /u01/install/fs1/FMW_Home/webtier
Target System Appl TOP set to /u01/install/fs1/EBSapps/appl
Target System COMMON TOP set to /u01/install/fs1/EBSapps/comn
Target System Instance Home Directory [/u01/install] :
Target System Instance Top set to /u01/install/fs1/inst/apps/CLONE_ebiz1223ap01
Do you want to preserve the Display [localhost:5.0] (y/n)  : y
Target System Root Service [enabled] :
Target System Web Administration [enabled] :
Target System Web Entry Point Services [enabled] :
Target System Web Application Services [enabled] :
Target System Batch Processing Services [enabled] :
Target System Other Services [disabled] :
Do you want the target system to have the same port values as the source system (y/n) [y] ? : y
Complete port information available at /u01/install/fs1/EBSapps/comn/clone/bin/out/CLONE_ebiz1223ap01/portpool.lst
RC-40201: Unable to connect to Database CLONE.
Enter the Database listener port [1521] :
RC-40201: Unable to connect to Database CLONE.
Enter the Database listener port [1521] : 1522
UTL_FILE_DIR on database tier consists of the following directories.
1. /usr/tmp
2. /tmp
3. /u01/install/11.2.0/appsutil/outbound/CLONE_ebiz1223db
4. /usr/tmp
Choose a value which will be set as APPLPTMP value on the target node [1] : 2
Creating the new APPL_TOP Context file from :
  /u01/install/fs1/EBSapps/comn/clone/context/apps/adxmlctx.tmp
The new APPL_TOP context file has been created :
  /u01/install/fs1/inst/apps/CLONE_ebiz1223ap01/appl/admin/CLONE_ebiz1223ap01.xml
Log file located at /u01/install/fs1/EBSapps/comn/clone/bin/CloneContext_0210074038.log
Check Clone Context logfile /u01/install/fs1/EBSapps/comn/clone/bin/CloneContext_0210074038.log for details.
Running Rapid Clone with command:
Running:
perl /u01/install/fs1/EBSapps/comn/clone/bin/adclone.pl java=/u01/install/fs1/EBSapps/comn/clone/bin/../jre mode=apply stage=/u01/install/fs1/EBSapps/comn/clone component=appsTier method=CUSTOM appctxtg=/u01/install/fs1/inst/apps/CLONE_ebiz1223ap01/appl/admin/CLONE_ebiz1223ap01.xml showProgress contextValidated=true


FMW Pre-requisite check log file location : /u01/install/fs1/EBSapps/comn/clone/FMW/logs/prereqcheck.log
Running: /u01/install/fs1/EBSapps/comn/clone/FMW/t2pjdk/bin/java -classpath /u01/install/fs1/EBSapps/comn/clone/prereq/webtier/Scripts/ext/jlib/engine.jar:/u01/install/fs1/EBSapps/comn/clone/prereq/webtier/oui/jlib/OraPrereq.jar:/u01/install/fs1/EBSapps/comn/clone/prereq/webtier/oui/jlib/OraPrereqChecks.jar:/u01/install/fs1/EBSapps/comn/clone/prereq/webtier/oui/jlib/OraInstaller.jar:/u01/install/fs1/EBSapps/comn/clone/prereq/webtier/oui/jlib/OraInstallerNet.jar:/u01/install/fs1/EBSapps/comn/clone/prereq/webtier/oui/jlib/srvm.jar:/u01/install/fs1/EBSapps/comn/clone/prereq/webtier/Scripts/ext/jlib/ojdl.jar:/u01/install/fs1/EBSapps/comn/clone/prereq/webtier/Scripts/ext/jlib/ojdl2.jar:/u01/install/fs1/EBSapps/comn/clone/prereq/webtier/Scripts/ext/jlib/ojdl-log4j.jar:/u01/install/fs1/EBSapps/comn/clone/prereq/webtier/oui/jlib/xmlparserv2.jar:/u01/install/fs1/EBSapps/comn/clone/prereq/webtier/oui/jlib/share.jar:/u01/install/fs1/EBSapps/comn/clone/jlib/java oracle.apps.ad.clone.util.FMWOracleHomePreReqCheck -prereqCheckFMW -e /u01/install/fs1/inst/apps/CLONE_ebiz1223ap01/appl/admin/CLONE_ebiz1223ap01.xml -stage /u01/install/fs1/EBSapps/comn/clone -log /u01/install/fs1/EBSapps/comn/clone/FMW/logs/prereqcheck.log
Beginning application tier Apply - Mon Feb 10 07:43:15 2014
/u01/install/fs1/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -DCONTEXT_VALIDATED=true -Doracle.installer.oui_loc=/oui -classpath /u01/install/fs1/EBSapps/comn/clone/jlib/xmlparserv2.jar:/u01/install/fs1/EBSapps/comn/clone/jlib/ojdbc6.jar:/u01/install/fs1/EBSapps/comn/clone/jlib/java:/u01/install/fs1/EBSapps/comn/clone/jlib/oui/OraInstaller.jar:/u01/install/fs1/EBSapps/comn/clone/jlib/oui/ewt3.jar:/u01/install/fs1/EBSapps/comn/clone/jlib/oui/share.jar:/u01/install/fs1/FMW_Home/webtier/../Oracle_EBS-app1/oui/jlib/srvm.jar:/u01/install/fs1/EBSapps/comn/clone/jlib/ojmisc.jar:/u01/install/fs1/FMW_Home/wlserver_10.3/server/lib/weblogic.jar:/u01/install/fs1/EBSapps/comn/clone/jlib/obfuscatepassword.jar  oracle.apps.ad.clone.ApplyAppsTier -e /u01/install/fs1/inst/apps/CLONE_ebiz1223ap01/appl/admin/CLONE_ebiz1223ap01.xml -stage /u01/install/fs1/EBSapps/comn/clone    -showProgress -nopromptmsg
Log file located at /u01/install/fs1/inst/apps/CLONE_ebiz1223ap01/admin/log/clone/ApplyAppsTier_02100743.log
  /    100% completed
Completed Apply...
Mon Feb 10 08:14:54 2014

 Executing command: /u01/install/fs1/EBSapps/10.1.2/bin/sqlplus @/u01/install/fs1/EBSapps/appl/ad/12.0.0/patch/115/sql/truncate_ad_nodes_config_status.sql

Do you want to startup the Application Services for CLONE? (y/n) [n] : y
Starting application Services for CLONE:
Running:
/u01/install/fs1/inst/apps/CLONE_ebiz1223ap01/admin/scripts/adstrtal.sh -nopromptmsg
You are running adstrtal.sh version 120.24.12020000.8

adstrtal.sh: Database connection could not be established. Either the database is down or the APPS credentials supplied are wrong.
USAGE:  adstrtal.sh <appsusername/appspassword> [-nothreading]
        adstrtal.sh <applications_username/applications_password> -secureapps
        adstrtal.sh -nodbchk

adstrtal.sh: exiting with status 1
[applmgr@ebiz1223ap01 bin]$


It did not start the services, though i gave option to start services. So i started services manually using the following command.

[root@ebiz1223ap01 install]# su - applmgr
[applmgr@ebiz1223ap01 ~]$ cd /u01/install
[applmgr@ebiz1223ap01 install]$ ls
EBSapps.env  EBSapps.tar.gz  fs1  fs2  fs_ne  oraInventory
[applmgr@ebiz1223ap01 install]$ . ./EBSapps.env
  E-Business Suite Environment Information
  ----------------------------------------
  RUN File System : /u01/install/fs1/EBSapps/appl
  PATCH File System : /u01/install/fs2/EBSapps/appl
  Non-Editioned File System : /u01/install/fs_ne
  DB Host: ebiz1223db.askmlabs.com  Service/SID: CLONE
  E-Business Suite Environment Setting
  ------------------------------------
  - Enter [R/r] for sourcing Run File System Environment file, or
  - Enter [P/p] for sourcing Patch File System Environment file, or
  - Enter anything else to exit
  Would you like to set the E-Business Suite environment [R/P]:R
  Sourcing the RUN File System ...
[applmgr@ebiz1223ap01 install]$ which adstrtal.sh
/u01/install/fs1/inst/apps/CLONE_ebiz1223ap01/admin/scripts/adstrtal.sh
[applmgr@ebiz1223ap01 install]$ adstrtal.sh apps/apps
....
....
[applmgr@ebiz1223ap01 install]$ ps ucx
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
applmgr     300  0.0  0.0  21148  6580 ?        S    08:56   0:00 CYQLIB
applmgr     301  0.0  0.0  21460  6656 ?        S    08:56   0:00 INCTM
applmgr     302  0.0  0.0  20356  6588 ?        S    08:56   0:00 RCVOLTM
applmgr     303  0.0  0.0  20688  6588 ?        S    08:56   0:00 POXCON
applmgr     304  0.0  0.0  19564  6664 ?        S    08:56   0:00 FFTM
applmgr     305  1.5  1.1 1164908 93600 ?       Sl   08:56   0:17 java
applmgr     307  1.6  1.3 491840 107776 ?       Sl   08:56   0:18 java
applmgr     315  1.7  1.3 496540 105448 ?       Sl   08:56   0:19 java
applmgr     319  2.8  1.4 494616 118652 ?       Sl   08:56   0:31 java
applmgr     325  1.7  1.3 493268 106628 ?       Sl   08:56   0:19 java
applmgr     326  0.0  0.0  19828  6996 ?        S    08:56   0:00 FNDCRM
applmgr     327  0.0  0.0  19252  6756 ?        S    08:56   0:00 FNDLIBR
applmgr     328  0.0  0.1  20364  8328 ?        S    08:56   0:00 FNDLIBR
applmgr     334  0.0  0.0  20372  7764 ?        S    08:56   0:00 FNDLIBR
applmgr     335  0.0  0.0  19248  6500 ?        S    08:56   0:00 FNDLIBR
applmgr     336  0.0  0.0  21276  6652 ?        S    08:56   0:00 MRCLIB
applmgr     339  0.0  0.0  21164  6676 ?        S    08:56   0:00 INVLIBR
applmgr     340  0.0  0.0  19292  6660 ?        S    08:56   0:00 PALIBR
applmgr     396 12.6 12.2 2263240 989980 ?      Ssl  08:56   2:17 java
applmgr     676  0.0  0.1  85952 10292 pts/0    S    08:58   0:00 perl
applmgr     749  1.8  2.0 351212 162876 pts/0   Sl   08:58   0:18 java
applmgr    2092 11.7 11.1 2178580 898744 ?      Ssl  08:58   1:53 java
applmgr    2095 16.0 11.9 2310320 959976 ?      Ssl  08:58   2:35 java
applmgr    2097  9.2  9.5 815512 772464 ?       Ssl  08:58   1:29 java
applmgr    2127 12.4 11.4 2215888 923508 ?      Ssl  08:58   2:00 java
applmgr    2527  0.0  0.0  65676  1064 pts/0    R+   09:15   0:00 ps
applmgr   22019  0.0  0.0  17316  1128 ?        Ss   07:56   0:00 opmn
applmgr   22021  0.0  0.0 160048  3944 ?        Sl   07:56   0:00 opmn
applmgr   31348  0.0  0.0  66352  1660 pts/0    S    08:31   0:00 bash
applmgr   31845  0.0  0.1  68048  8456 ?        Ss   08:55   0:00 opmn
applmgr   31846  0.0  0.2 151460 16388 ?        Sl   08:55   0:01 opmn
applmgr   31941  0.0  0.2 131404 20920 ?        S    08:55   0:00 httpd.worker
applmgr   32137  2.8  1.0 4525224 85084 pts/0   Sl   08:56   0:32 java
applmgr   32155  0.0  0.0  27472  1312 ?        S    08:56   0:00 odl_rotatelogs
applmgr   32156  0.0  0.0  27472  1176 ?        S    08:56   0:00 odl_rotatelogs
applmgr   32157  0.0  0.0  27404  1164 ?        S    08:56   0:00 rotatelogs
applmgr   32158  0.0  0.0  27404  1168 ?        S    08:56   0:00 rotatelogs
applmgr   32159  0.0  0.0  27472  1172 ?        S    08:56   0:00 odl_rotatelogs
applmgr   32160  0.0  0.2 197068 18540 ?        Sl   08:56   0:00 httpd.worker
applmgr   32194  0.0  0.2 352696 19288 ?        Sl   08:56   0:00 httpd.worker
applmgr   32249  0.0  0.2 352696 19388 ?        Sl   08:56   0:00 httpd.worker
applmgr   32385  0.0  0.0  17192  4236 ?        Ss   08:56   0:00 tnslsnr
applmgr   32576  0.0  0.0  64020  1404 pts/0    S    08:56   0:00 sh
applmgr   32581  0.0  0.0  20440  8032 pts/0    S    08:56   0:00 FNDLIBR
applmgr   32713  0.0  0.0  19400  6992 ?        Ss   08:56   0:00 FNDSM
applmgr   32767  0.0  0.0  20356  6596 ?        S    08:56   0:00 RCVOLTM
[applmgr@ebiz1223ap01 install]$ grep -i s_login $CONTEXT_FILE
         <login_page oa_var="s_login_page">http://ebiz1223ap01.askmlabs.com:8000/OA_HTML/AppsLogin</login_page>
[applmgr@ebiz1223ap01 install]$
D.3 Run adpreclone.pl on the "Run Edition File System" in the Target System.  (NEW in R12.2)
[applmgr@ebiz1223ap01 install]$ cd /u01/install/fs1/EBSapps/comn/
[applmgr@ebiz1223ap01 comn]$ mv clone clone_10FEB2014
[applmgr@ebiz1223ap01 comn]$ mkdir clone
[applmgr@ebiz1223ap01 comn]$ ls -ld clone*
drwxrwxr-x  2 oracle oracle 4096 Feb 10 09:55 clone
drwxr-xr-x 11 oracle oracle 4096 Feb  3 14:24 clone_04FEB2014
drwxrwxr-x 12 oracle oracle 4096 Feb  4 00:52 clone_10FEB2014
[applmgr@ebiz1223ap01 comn]$ cd $ADMIN_SCRIPTS_HOME
[applmgr@ebiz1223ap01 scripts]$ pwd
/u01/install/fs1/inst/apps/CLONE_ebiz1223ap01/admin/scripts
[applmgr@ebiz1223ap01 scripts]$ ls
adadminsrvctl.sh  adautocfg.sh  adformsrvctl.sh     adopmnctl.sh   adstrtal.sh       gsmstart.sh  jtffmctl.sh  mwactlwrpr.sh
adalnctl.sh       adcmctl.sh    admanagedsrvctl.sh  adpreclone.pl  cz64bitengine.pl  ieo          msc          pon64bitengine.pl
adapcctl.sh       adexecsql.pl  adnodemgrctl.sh     adstpall.sh    gmf               java.sh      mwactl.sh
[applmgr@ebiz1223ap01 scripts]$ perl adpreclone.pl appsTier
                     Copyright (c) 2011 Oracle Corporation
                        Redwood Shores, California, USA
                        Oracle E-Business Suite Rapid Clone
                                 Version 12.2
                      adpreclone Version 120.31.12020000.11
Enter the APPS User Password:
Enter the Weblogic AdminServer password :
 Checking the status of the Oracle WebLogic Administration Server....
 Running perl /u01/install/fs1/EBSapps/appl/ad/12.0.0/patch/115/bin/adProvisionEBS.pl ebs-get-serverstatus -contextfile=/u01/install/fs1/inst/apps/CLONE_ebiz1223ap01/appl/admin/CLONE_ebiz1223ap01.xml -servername=AdminServer -promptmsg=hide
The Oracle WebLogic Administration Server is up.
Running:
perl /u01/install/fs1/EBSapps/appl/ad/12.0.0/bin/adclone.pl java=/u01/install/fs1/FMW_Home/jrockit64 mode=stage stage=/u01/install/fs1/EBSapps/comn/clone component=appsTier method= appctx=/u01/install/fs1/inst/apps/CLONE_ebiz1223ap01/appl/admin/CLONE_ebiz1223ap01.xml showProgress


 Setting the wls environment
Beginning application tier Stage - Mon Feb 10 09:59:30 2014
/u01/install/fs1/FMW_Home/jrockit64/bin/java -Xmx600M -DCONTEXT_VALIDATED=false -Doracle.installer.oui_loc=/oui -classpath /u01/install/fs1/FMW_Home/webtier/lib/xmlparserv2.jar:/u01/install/fs1/FMW_Home/webtier/jdbc/lib/ojdbc6.jar:/u01/install/fs1/EBSapps/comn/java/classes:/u01/install/fs1/FMW_Home/webtier/oui/jlib/OraInstaller.jar:/u01/install/fs1/FMW_Home/webtier/oui/jlib/ewt3.jar:/u01/install/fs1/FMW_Home/webtier/oui/jlib/share.jar:/u01/install/fs1/FMW_Home/webtier/../Oracle_EBS-app1/oui/jlib/srvm.jar:/u01/install/fs1/FMW_Home/webtier/jlib/ojmisc.jar:/u01/install/fs1/FMW_Home/wlserver_10.3/server/lib/weblogic.jar:/u01/install/fs1/FMW_Home/oracle_common/jlib/obfuscatepassword.jar  oracle.apps.ad.clone.StageAppsTier -e /u01/install/fs1/inst/apps/CLONE_ebiz1223ap01/appl/admin/CLONE_ebiz1223ap01.xml -stage /u01/install/fs1/EBSapps/comn/clone -tmp /tmp -method CUSTOM   -showProgress -nopromptmsg
Log file located at /u01/install/fs1/inst/apps/CLONE_ebiz1223ap01/admin/log/clone/StageAppsTier_02100959.log
  -     20% completed       .
Completed Stage...
Mon Feb 10 10:36:03 2014
[applmgr@ebiz1223ap01 scripts]$

D.4 Copy Oracle E-Business Suite application directories from the "Run Edition File System" to the "Patch Edition File System" in the Target System.  (NEW in R12.2)
[applmgr@ebiz1223ap01 scripts]$ cd /u01/install/fs1
[applmgr@ebiz1223ap01 fs1]$
[applmgr@ebiz1223ap01 fs1]$ tar czf EBSapps.tar.gz EBSapps/
[applmgr@ebiz1223ap01 fs1]$ ls -lrt
total 14672284
drwxr-xr-x  5 oracle oracle        4096 Oct 12 21:25 EBSapps
drwxrwxr-x  3 oracle oracle        4096 Feb 10 07:43 inst
drwxr-x--- 13 oracle oracle        4096 Feb 10 08:07 FMW_Home
-rw-rw-r--  1 oracle oracle 15009725011 Feb 10 11:27 EBSapps.tar.gz
[applmgr@ebiz1223ap01 fs1]$ cd /u01/install/fs2
[applmgr@ebiz1223ap01 fs2]$ tar xzf /u01/install/fs1/EBSapps.tar.gz
[applmgr@ebiz1223ap01 fs2]$ pwd
/u01/install/fs2
[applmgr@ebiz1223ap01 fs2]$ ls
EBSapps
[applmgr@ebiz1223ap01 fs2]$

D.5 Configure Patch file system on target appsTier  (NEW in R12.2)
[applmgr@ebiz1223ap01 fs2]$ pwd
/u01/install/fs2
[applmgr@ebiz1223ap01 fs2]$ ls
EBSapps
[applmgr@ebiz1223ap01 fs2]$ cd EBSapps/
[applmgr@ebiz1223ap01 EBSapps]$ cd comn/clone/bin
[applmgr@ebiz1223ap01 bin]$ perl adcfgclone.pl appsTier
                     Copyright (c) 2011 Oracle Corporation
                        Redwood Shores, California, USA
                        Oracle E-Business Suite Rapid Clone
                                 Version 12.2
                      adcfgclone Version 120.63.12020000.26
Enter the APPS password :
Running:
/u01/install/fs2/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -classpath /u01                                                                                        /clone/jlib/ojmisc.jar:/u01/install/fs1/EBSapps/comn/clone/jlib/java:/u01/instal                                                                                        /u01/install/fs1/EBSapps/comn/clone/bin/../FMW/tempinfoApps.txt
Enter the Weblogic AdminServer password :
Running:
/u01/install/fs2/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -classpath /u01                                                                                        /clone/jlib/ojmisc.jar:/u01/install/fs1/EBSapps/comn/clone/jlib/java:/u01/instal                                                                                        /fs1/EBSapps/comn/clone/bin/../FMW/tempinfo.txt
Running:
/u01/install/fs2/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -classpath /u01                                                                                        /clone/jlib/ojmisc.jar:/u01/install/fs1/EBSapps/comn/clone/jlib/java:/u01/instal                                                                                        /fs1/EBSapps/comn/clone/bin/../FMW/EBSDataSource

Do you want to add a node (yes/no) [no] :

Running:
/u01/install/fs2/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -cp /u01/install/fs2/EBSapps/comn/clone/jlib/java:/u01/install/fs2/EBSapps/comn/clone/jlib/xmlparserv2.jar:/u01/install/fs2/EBSapps/comn/clone/jlib/ojdbc5.jar:/u01/install/fs2/EBSapps/comn/clone/jlib/obfuscatepassword.jar:/u01/install/fs2/EBSapps/comn/clone/jlib/ojmisc.jar:/u01/install/fs2/EBSapps/comn/clone/jlib/java:/u01/install/fs2/EBSapps/comn/clone/jlib/emCfg.jar oracle.apps.ad.context.CloneContext -e /u01/install/fs2/EBSapps/comn/clone/bin/../context/apps/CTXORIG.xml -validate -pairsfile /tmp/adpairsfile_29136.lst -stage /u01/install/fs2/EBSapps/comn/clone  2> /tmp/adcfgclone_29136.err; echo $? > /tmp/adcfgclone_29136.res
Log file located at /u01/install/fs2/EBSapps/comn/clone/bin/CloneContext_0210231637.log
Target System File Edition type [run] : patch
Enter the full path of Run File System Context file : /u01/install/fs1/inst/apps/CLONE_ebiz1223ap01/appl/admin/CLONE_ebiz1223ap01.xml
Provide the values required for creation of the new APPL_TOP Context file.
Target System Fusion Middleware Home set to /u01/install/fs2/FMW_Home
Target System Web Oracle Home set to /u01/install/fs2/FMW_Home/webtier
Target System Appl TOP set to /u01/install/fs2/EBSapps/appl
Target System COMMON TOP set to /u01/install/fs2/EBSapps/comn
Target System Instance Top set to /u01/install/fs2/inst/apps/CLONE_ebiz1223ap01
Target System Port Pool [0-99] : 0
Checking the port pool 0
done: Port Pool 0 is free
Report file located at /u01/install/fs2/inst/apps/CLONE_ebiz1223ap01/admin/out/portpool.lst
Complete port information available at /u01/install/fs2/inst/apps/CLONE_ebiz1223ap01/admin/out/portpool.lst
UTL_FILE_DIR on database tier consists of the following directories.
1. /usr/tmp
2. /tmp
3. /u01/install/11.2.0/appsutil/outbound/CLONE_ebiz1223db
4. /usr/tmp
Choose a value which will be set as APPLPTMP value on the target node [1] : 2
Creating the new APPL_TOP Context file from :
  /u01/install/fs2/EBSapps/comn/clone/context/apps/adxmlctx.tmp
The new APPL_TOP context file has been created :
  /u01/install/fs2/inst/apps/CLONE_ebiz1223ap01/appl/admin/CLONE_ebiz1223ap01.xml
Log file located at /u01/install/fs2/EBSapps/comn/clone/bin/CloneContext_0210231637.log
Check Clone Context logfile /u01/install/fs2/EBSapps/comn/clone/bin/CloneContext_0210231637.log for details.
Running Rapid Clone with command:
Running:
perl /u01/install/fs2/EBSapps/comn/clone/bin/adclone.pl java=/u01/install/fs2/EBSapps/comn/clone/bin/../jre mode=apply stage=/u01/install/fs2/EBSapps/comn/clone component=appsTier method=CUSTOM appctxtg=/u01/install/fs2/inst/apps/CLONE_ebiz1223ap01/appl/admin/CLONE_ebiz1223ap01.xml showProgress contextValidated=true


FMW Pre-requisite check log file location : /u01/install/fs2/EBSapps/comn/clone/FMW/logs/prereqcheck.log
Running: /u01/install/fs2/EBSapps/comn/clone/FMW/t2pjdk/bin/java -classpath /u01/install/fs2/EBSapps/comn/clone/prereq/webtier/Scripts/ext/jlib/engine.jar:/u01/install/fs2/EBSapps/comn/clone/prereq/webtier/oui/jlib/OraPrereq.jar:/u01/install/fs2/EBSapps/comn/clone/prereq/webtier/oui/jlib/OraPrereqChecks.jar:/u01/install/fs2/EBSapps/comn/clone/prereq/webtier/oui/jlib/OraInstaller.jar:/u01/install/fs2/EBSapps/comn/clone/prereq/webtier/oui/jlib/OraInstallerNet.jar:/u01/install/fs2/EBSapps/comn/clone/prereq/webtier/oui/jlib/srvm.jar:/u01/install/fs2/EBSapps/comn/clone/prereq/webtier/Scripts/ext/jlib/ojdl.jar:/u01/install/fs2/EBSapps/comn/clone/prereq/webtier/Scripts/ext/jlib/ojdl2.jar:/u01/install/fs2/EBSapps/comn/clone/prereq/webtier/Scripts/ext/jlib/ojdl-log4j.jar:/u01/install/fs2/EBSapps/comn/clone/prereq/webtier/oui/jlib/xmlparserv2.jar:/u01/install/fs2/EBSapps/comn/clone/prereq/webtier/oui/jlib/share.jar:/u01/install/fs2/EBSapps/comn/clone/jlib/java oracle.apps.ad.clone.util.FMWOracleHomePreReqCheck -prereqCheckFMW -e /u01/install/fs2/inst/apps/CLONE_ebiz1223ap01/appl/admin/CLONE_ebiz1223ap01.xml -stage /u01/install/fs2/EBSapps/comn/clone -log /u01/install/fs2/EBSapps/comn/clone/FMW/logs/prereqcheck.log
Beginning application tier Apply - Mon Feb 10 23:18:34 2014
/u01/install/fs2/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -DCONTEXT_VALIDATED=true -Doracle.installer.oui_loc=/oui -classpath /u01/install/fs2/EBSapps/comn/clone/jlib/xmlparserv2.jar:/u01/install/fs2/EBSapps/comn/clone/jlib/ojdbc6.jar:/u01/install/fs2/EBSapps/comn/clone/jlib/java:/u01/install/fs2/EBSapps/comn/clone/jlib/oui/OraInstaller.jar:/u01/install/fs2/EBSapps/comn/clone/jlib/oui/ewt3.jar:/u01/install/fs2/EBSapps/comn/clone/jlib/oui/share.jar:/u01/install/fs2/FMW_Home/webtier/../Oracle_EBS-app1/oui/jlib/srvm.jar:/u01/install/fs2/EBSapps/comn/clone/jlib/ojmisc.jar:/u01/install/fs2/FMW_Home/wlserver_10.3/server/lib/weblogic.jar:/u01/install/fs2/EBSapps/comn/clone/jlib/obfuscatepassword.jar  oracle.apps.ad.clone.ApplyAppsTier -e /u01/install/fs2/inst/apps/CLONE_ebiz1223ap01/appl/admin/CLONE_ebiz1223ap01.xml -stage /u01/install/fs2/EBSapps/comn/clone    -showProgress -nopromptmsg
Log file located at /u01/install/fs2/inst/apps/CLONE_ebiz1223ap01/admin/log/clone/ApplyAppsTier_02102318.log
  \    100% completed
Completed Apply...
Mon Feb 10 23:48:33 2014
Looking for incomplete CLONE record in ad_adop_session_patches table
The CLONE record status is no rows selected
Updating incomplete CLONE record to COMPLETED
[applmgr@ebiz1223ap01 bin]$

E. Finishing Tasks : Complete all the following tasks after successfully completing all the above cloning tasks.
  1. 1. Update profile options
  2. 2. Update printer settings
  3. 3. Update Workflow configuration settings
  4. 4. Verify the APPLCSF variable setting
  5. 5. Update the SESSION_COOKIE_DOMAIN value in ICX_PARAMETERS
  6. 6. Re-Implement SSL and SSO configuration

NOTE : If your source system is integrated with OID, you will have references to OID in your target cloned environment. To remove all the references to OID in the newly cloned environment, execute the following command. Then restatrt all the target cloned apps services.

[applmgr@ebiz1223ap01 install]$ $FND_TOP/bin/txkrun.pl -script=SetSSOReg -removereferences=yes -appspass=APPS
You are removing all SSO-OID related preferences.

*** Log File = /u01/install/fs1/inst/apps/CLONE_ebiz1223ap01/logs/appl/rgf/TXK/txkSetSSOReg_Mon_Feb_10_09_25_26_2014.xml
Beginning input parameter validation for Removing Preferences.
Input parameter validation for Removing Preferences completed.
BEGIN REMOVING PREFERENCES:
Oracle Home Instance preferences removed successfully
Updated APPS_SSO profile with value SSWA successfully.
SSO Preferences Removed successfully.
Removing OID References Started.
Removing OID References Completed Successfully.
Custom DIT Preferences Removed Successfully.
REMOVING PREFERENCES COMPLETED.
End of /u01/install/fs1/EBSapps/appl/fnd/12.0.0/patch/115/bin/txkSetSSOReg.pl : No Errors encountered
[applmgr@ebiz1223ap01 install]$

Hope this helps
SRI

 
Support :
Copyright © 2013. askMLabs - All Rights Reserved
Proudly powered by Blogger