Tuesday 13 January 2015

MULLTI-NODE CLONING R12


Means Application and Batch processing in different -different Node.  and database on different node.

NOTE: Independent apps ,concurrent server both start and stop independently server.

On VM limited resource on your PC then follow cloning.
Multi node clonning Shared APPLICATION.

Multi Machine-
DB
hostname oracle.com
ip: 192.168.0.20
hostfile entry: 192.168.0.20     oracle.com    oracle
VM NAME: R12

APPS
hostname linux.com
ip: 192.168.0.21
hostfile entry: 192.168.0.21     linux.com    linux
VM NAME: AppsNode


1. After that you have plan the cloning multi node middle tier i.e
CM and OPMN service  is same on DB  node
APPS is another node i.e AppsNode
It's multi node system.

2. DB and APPS on running state on
    run adpreclone.sh on application tier.

3. after completeing stop application and db
./adstpall.sh apps/apps      - APPS
./addlnctl.sh stop PROD   - DB Listener
./addbctl.sh stop    - DB


After That both Node host file entry is
hostfile entry: 192.168.0.20     oracle.com    oracle
hostfile entry: 192.168.0.21     linux.com    oracle

communicate both machine ping with host name like :
ping oracle
ping linux

7. Start both machine
Check NFS mount point accessible

8. Start db on VM Node R12

9.  perl  adcfgclone.pl  appsTier on Node R12

--------------------------------------------------------------------------------------------------------------------------
Purpose:-running batch processing and opmn service on db side user available and both apps and inst exist else scp source to target node in my case AppsNode To R12.

-bash-3.2$ perl adcfgclone.pl appsTier

                     Copyright (c) 2002 Oracle Corporation
                        Redwood Shores, California, USA

                        Oracle Applications Rapid Clone

                                 Version 12.0.0

                      adcfgclone Version 120.20.12000000.11

Enter the APPS password :

Running:
/u01/oracle/PROD/apps/apps_st/comn/clone/bin/../jre/bin/java -Xmx600M -cp /u01/oracle/PROD/apps/apps_st/comn/clone/jlib/java:/u01/oracle/PROD/apps/apps_st/comn/clone/jlib/xmlparserv2.jar:/u01/oracle/PROD/apps/apps_st/comn/clone/jlib/ojdbc14.jar oracle.apps.ad.context.CloneContext -e /u01/oracle/PROD/apps/apps_st/comn/clone/bin/../context/apps/CTXORIG.xml -validate -pairsfile /tmp/adpairsfile_7098.lst -stage /u01/oracle/PROD/apps/apps_st/comn/clone  2> /tmp/adcfgclone_7098.err; echo $? > /tmp/adcfgclone_7098.res

Log file located at /u01/oracle/PROD/apps/apps_st/comn/clone/bin/CloneContext_11041534.log

Provide the values required for creation of the new APPL_TOP Context file.

Target System Hostname (virtual or normal) [oracle] :

Target System Database SID : PROD

Target System Database Server Node [oracle] :

Target System Base Directory : /u01/oracle/PROD

Target System Forms ORACLE_HOME Directory [/u01/oracle/PROD/apps/tech_st/10.1.2] :

Target System Web ORACLE_HOME Directory [/u01/oracle/PROD/apps/tech_st/10.1.3] :

Target System APPL_TOP Mountpoint [/u01/oracle/PROD/apps/apps_st/appl] :

Target System COMMON_TOP Directory [/u01/oracle/PROD/apps/apps_st/comn] :

Target System Instance Home Directory [/u01/oracle/PROD/inst] :

Target System Root Service [enabled] :

Target System Web Entry Point Services [enabled] : disabled

Target System Web Application Services [enabled] : disabled

Target System Batch Processing Services [enabled] :

Target System Other Services [disabled] :

Do you want to preserve the Display [linux:0.0] (y/n) ? : n

Target System Display [oracle:0.0] :

Do you want the the target system to have the same port values as the source system (y/n) [y] ? : n

Target System Port Pool [0-99] : 0

Checking the port pool 0
done: Port Pool 0 is free
Report file located at /u01/oracle/PROD/inst/apps/PROD_oracle/admin/out/portpool.lst
Complete port information available at /u01/oracle/PROD/inst/apps/PROD_oracle/admin/out/portpool.lst

UTL_FILE_DIR on database tier consists of the following directories.

1. /usr/tmp
2. /usr/tmp
3. /u01/oracle/PROD/db/tech_st/10.2.0/appsutil/outbound/PROD_oracle
4. /usr/tmp
Choose a value which will be set as APPLPTMP value on the target node [1] :

Creating the new APPL_TOP Context file from :
  /u01/oracle/PROD/apps/apps_st/appl/ad/12.0.0/admin/template/adxmlctx.tmp

The new APPL_TOP context file has been created :
  /u01/oracle/PROD/inst/apps/PROD_oracle/appl/admin/PROD_oracle.xml

Log file located at /u01/oracle/PROD/apps/apps_st/comn/clone/bin/CloneContext_11041534.log
Check Clone Context logfile /u01/oracle/PROD/apps/apps_st/comn/clone/bin/CloneContext_11041534.log for details.

Running Rapid Clone with command:
perl /u01/oracle/PROD/apps/apps_st/comn/clone/bin/adclone.pl java=/u01/oracle/PROD/apps/apps_st/comn/clone/bin/../jre mode=apply stage=/u01/oracle/PROD/apps/apps_st/comn/clone component=appsTier method=CUSTOM appctxtg=/u01/oracle/PROD/inst/apps/PROD_oracle/appl/admin/PROD_oracle.xml showProgress contextValidated=true
Running:
perl /u01/oracle/PROD/apps/apps_st/comn/clone/bin/adclone.pl java=/u01/oracle/PROD/apps/apps_st/comn/clone/bin/../jre mode=apply stage=/u01/oracle/PROD/apps/apps_st/comn/clone component=appsTier method=CUSTOM appctxtg=/u01/oracle/PROD/inst/apps/PROD_oracle/appl/admin/PROD_oracle.xml showProgress contextValidated=true
APPS Password :

Beginning application tier Apply - Tue Nov  4 15:40:44 2014

/u01/oracle/PROD/apps/apps_st/comn/clone/bin/../jre/bin/java -Xmx600M -DCONTEXT_VALIDATED=true  -Doracle.installer.oui_loc=/oui -classpath /u01/oracle/PROD/apps/apps_st/comn/clone/jlib/xmlparserv2.jar:/u01/oracle/PROD/apps/apps_st/comn/clone/jlib/ojdbc14.jar:/u01/oracle/PROD/apps/apps_st/comn/clone/jlib/java:/u01/oracle/PROD/apps/apps_st/comn/clone/jlib/oui/OraInstaller.jar:/u01/oracle/PROD/apps/apps_st/comn/clone/jlib/oui/ewt3.jar:/u01/oracle/PROD/apps/apps_st/comn/clone/jlib/oui/share.jar:/u01/oracle/PROD/apps/apps_st/comn/clone/jlib/oui/srvm.jar:/u01/oracle/PROD/apps/apps_st/comn/clone/jlib/ojmisc.jar  oracle.apps.ad.clone.ApplyAppsTier -e /u01/oracle/PROD/inst/apps/PROD_oracle/appl/admin/PROD_oracle.xml -stage /u01/oracle/PROD/apps/apps_st/comn/clone    -showProgress
APPS Password : Log file located at /u01/oracle/PROD/inst/apps/PROD_oracle/admin/log/ApplyAppsTier_11041540.log
  \     73% completed

Completed Apply...
Tue Nov  4 15:53:17 2014

Starting application Services for PROD:
Running:
/u01/oracle/PROD/inst/apps/PROD_oracle/admin/scripts/adstrtal.sh -nopromptmsg

You are running adstrtal.sh version 120.13.12000000.3

Executing service control script:
/u01/oracle/PROD/inst/apps/PROD_oracle/admin/scripts/adopmnctl.sh start
script returned:
****************************************************

You are running adopmnctl.sh version 120.4.12000000.3

Starting Oracle Process Manager (OPMN) ...

adopmnctl.sh: exiting with status 0

adopmnctl.sh: check the logfile /u01/oracle/PROD/inst/apps/PROD_oracle/logs/appl/admin/log/adopmnctl.txt for more information ...


.end std out.

.end err out.

****************************************************


Executing service control script:
/u01/oracle/PROD/inst/apps/PROD_oracle/admin/scripts/adalnctl.sh start
script returned:
****************************************************

adalnctl.sh version 120.3

Checking for FNDFS executable.
Starting listener process APPS_PROD.

adalnctl.sh: exiting with status 0


adalnctl.sh: check the logfile /u01/oracle/PROD/inst/apps/PROD_oracle/logs/appl/admin/log/adalnctl.txt for more information ...


.end std out.

.end err out.

****************************************************


Executing service control script:
/u01/oracle/PROD/inst/apps/PROD_oracle/admin/scripts/adcmctl.sh start
script returned:
****************************************************

You are running adcmctl.sh version 120.14

Starting concurrent manager for PROD ...
Starting PROD_1104@PROD Internal Concurrent Manager
Default printer is noprint

adcmctl.sh: exiting with status 0


adcmctl.sh: check the logfile /u01/oracle/PROD/inst/apps/PROD_oracle/logs/appl/admin/log/adcmctl.txt for more information ...


.end std out.

.end err out.

****************************************************


Executing service control script:
/u01/oracle/PROD/inst/apps/PROD_oracle/admin/scripts/jtffmctl.sh start
script returned:
****************************************************

You are running jtffmctl.sh version 120.3

Validating Fulfillment patch level via /u01/oracle/PROD/apps/apps_st/comn/java/classes
Fulfillment patch level validated.
Starting Fulfillment Server for PROD on port 9300 ...

jtffmctl.sh: exiting with status 0


.end std out.

.end err out.

****************************************************


All enabled services for this node are started.

adstrtal.sh: Exiting with status 0

adstrtal.sh: check the logfile /u01/oracle/PROD/inst/apps/PROD_oracle/logs/appl/admin/log/adstrtal.log for more information ...



--------------------------------------------------------------------------------------------------------------------------


10. perl adcfgclone.pl appsTier on AppsNode

-bash-3.2$ perl adcfgclone.pl appsTier

                     Copyright (c) 2002 Oracle Corporation
                        Redwood Shores, California, USA

                        Oracle Applications Rapid Clone

                                 Version 12.0.0

                      adcfgclone Version 120.20.12000000.11

Enter the APPS password :

Running:
/u01/oracle/PROD/apps/apps_st/comn/clone/bin/../jre/bin/java -Xmx600M -cp /u01/oracle/PROD/apps/apps_st/comn/clone/jlib/java:/u01/oracle/PROD/apps/apps_st/comn/clone/jlib/xmlparserv2.jar:/u01/oracle/PROD/apps/apps_st/comn/clone/jlib/ojdbc14.jar oracle.apps.ad.context.CloneContext -e /u01/oracle/PROD/apps/apps_st/comn/clone/bin/../context/apps/CTXORIG.xml -validate -pairsfile /tmp/adpairsfile_7249.lst -stage /u01/oracle/PROD/apps/apps_st/comn/clone  2> /tmp/adcfgclone_7249.err; echo $? > /tmp/adcfgclone_7249.res

Log file located at /u01/oracle/PROD/apps/apps_st/comn/clone/bin/CloneContext_11041604.log

Provide the values required for creation of the new APPL_TOP Context file.

Target System Hostname (virtual or normal) [linux] :

Target System Database SID : PROD

Target System Database Server Node [linux] : oracle

Target System Base Directory : /u01/oracle/PROD

Target System Forms ORACLE_HOME Directory [/u01/oracle/PROD/apps/tech_st/10.1.2] :

Target System Web ORACLE_HOME Directory [/u01/oracle/PROD/apps/tech_st/10.1.3] :

Target System APPL_TOP Mountpoint [/u01/oracle/PROD/apps/apps_st/appl] :

Target System COMMON_TOP Directory [/u01/oracle/PROD/apps/apps_st/comn] :

Target System Instance Home Directory [/u01/oracle/PROD/inst] :

Target System Root Service [enabled] : disabled

Target System Web Entry Point Services [enabled] :

Target System Web Application Services [enabled] :

Target System Batch Processing Services [enabled] : disabled

Target System Other Services [disabled] : enabled

Do you want to preserve the Display [linux:0.0] (y/n) ? : n

Target System Display [linux:0.0] :

Target System Port Pool [0-99] : 0

Checking the port pool 0
done: Port Pool 0 is free
Report file located at /u01/oracle/PROD/inst/apps/PROD_linux/admin/out/portpool.lst
Complete port information available at /u01/oracle/PROD/inst/apps/PROD_linux/admin/out/portpool.lst

UTL_FILE_DIR on database tier consists of the following directories.

1. /usr/tmp
2. /usr/tmp
3. /u01/oracle/PROD/db/tech_st/10.2.0/appsutil/outbound/PROD_oracle
4. /usr/tmp
Choose a value which will be set as APPLPTMP value on the target node [1] :

Creating the new APPL_TOP Context file from :
  /u01/oracle/PROD/apps/apps_st/appl/ad/12.0.0/admin/template/adxmlctx.tmp

The new APPL_TOP context file has been created :
  /u01/oracle/PROD/inst/apps/PROD_linux/appl/admin/PROD_linux.xml

Log file located at /u01/oracle/PROD/apps/apps_st/comn/clone/bin/CloneContext_11041604.log
Check Clone Context logfile /u01/oracle/PROD/apps/apps_st/comn/clone/bin/CloneContext_11041604.log for details.

Running Rapid Clone with command:
perl /u01/oracle/PROD/apps/apps_st/comn/clone/bin/adclone.pl java=/u01/oracle/PROD/apps/apps_st/comn/clone/bin/../jre mode=apply stage=/u01/oracle/PROD/apps/apps_st/comn/clone component=appsTier method=CUSTOM appctxtg=/u01/oracle/PROD/inst/apps/PROD_linux/appl/admin/PROD_linux.xml showProgress contextValidated=true
Running:
perl /u01/oracle/PROD/apps/apps_st/comn/clone/bin/adclone.pl java=/u01/oracle/PROD/apps/apps_st/comn/clone/bin/../jre mode=apply stage=/u01/oracle/PROD/apps/apps_st/comn/clone component=appsTier method=CUSTOM appctxtg=/u01/oracle/PROD/inst/apps/PROD_linux/appl/admin/PROD_linux.xml showProgress contextValidated=true
APPS Password :

Beginning application tier Apply - Tue Nov  4 16:09:31 2014

/u01/oracle/PROD/apps/apps_st/comn/clone/bin/../jre/bin/java -Xmx600M -DCONTEXT_VALIDATED=true  -Doracle.installer.oui_loc=/oui -classpath /u01/oracle/PROD/apps/apps_st/comn/clone/jlib/xmlparserv2.jar:/u01/oracle/PROD/apps/apps_st/comn/clone/jlib/ojdbc14.jar:/u01/oracle/PROD/apps/apps_st/comn/clone/jlib/java:/u01/oracle/PROD/apps/apps_st/comn/clone/jlib/oui/OraInstaller.jar:/u01/oracle/PROD/apps/apps_st/comn/clone/jlib/oui/ewt3.jar:/u01/oracle/PROD/apps/apps_st/comn/clone/jlib/oui/share.jar:/u01/oracle/PROD/apps/apps_st/comn/clone/jlib/oui/srvm.jar:/u01/oracle/PROD/apps/apps_st/comn/clone/jlib/ojmisc.jar  oracle.apps.ad.clone.ApplyAppsTier -e /u01/oracle/PROD/inst/apps/PROD_linux/appl/admin/PROD_linux.xml -stage /u01/oracle/PROD/apps/apps_st/comn/clone    -showProgress
APPS Password : Log file located at /u01/oracle/PROD/inst/apps/PROD_linux/admin/log/ApplyAppsTier_11041609.log
  -     89% completed

Completed Apply...
Tue Nov  4 16:28:01 2014

Starting application Services for PROD:
Running:
/u01/oracle/PROD/inst/apps/PROD_linux/admin/scripts/adstrtal.sh -nopromptmsg

You are running adstrtal.sh version 120.13.12000000.3

Executing service control script:
/u01/oracle/PROD/inst/apps/PROD_linux/admin/scripts/adapcctl.sh start
script returned:
****************************************************

You are running adapcctl.sh version 120.6.12000000.2

Starting OPMN managed Oracle HTTP Server (OHS) instance ...

adapcctl.sh: exiting with status 0

adapcctl.sh: check the logfile /u01/oracle/PROD/inst/apps/PROD_linux/logs/appl/admin/log/adapcctl.txt for more information ...


.end std out.

.end err out.

****************************************************


Executing service control script:
/u01/oracle/PROD/inst/apps/PROD_linux/admin/scripts/adoacorectl.sh start
script returned:
****************************************************

You are running adoacorectl.sh version 120.11.12000000.2

Starting OPMN managed OACORE OC4J instance  ...

adoacorectl.sh: exiting with status 0

adoacorectl.sh: check the logfile /u01/oracle/PROD/inst/apps/PROD_linux/logs/appl/admin/log/adoacorectl.txt for more information ...


.end std out.

.end err out.

****************************************************


Executing service control script:
/u01/oracle/PROD/inst/apps/PROD_linux/admin/scripts/adformsctl.sh start
script returned:
****************************************************

You are running adformsctl.sh  version 120.12.12000000.3

Starting OPMN managed FORMS OC4J instance  ...

adformsctl.sh: exiting with status 0

adformsctl.sh: check the logfile /u01/oracle/PROD/inst/apps/PROD_linux/logs/appl/admin/log/adformsctl.txt for more information ...


.end std out.

.end err out.

****************************************************


Executing service control script:
/u01/oracle/PROD/inst/apps/PROD_linux/admin/scripts/adoafmctl.sh start
script returned:
****************************************************

You are running adoafmctl.sh version 120.6.12000000.2

Starting OPMN managed OAFM OC4J instance  ...

adoafmctl.sh: exiting with status 0

adoafmctl.sh: check the logfile /u01/oracle/PROD/inst/apps/PROD_linux/logs/appl/admin/log/adoafmctl.txt for more information ...


.end std out.

.end err out.

****************************************************


All enabled services for this node are started.

adstrtal.sh: Exiting with status 0

adstrtal.sh: check the logfile /u01/oracle/PROD/inst/apps/PROD_linux/logs/appl/admin/log/adstrtal.log for more information ...


.
.
.
All services running and working fine now Enjoy..?

No comments: