Wednesday, September 10, 2008

Single Node Cloning

Single Node Cloning Steps :
===========================

PreClone Steps:

1.Pre-clone for db Tier

In the Location :

/u01/app/oracle/uatdb/9.2.0/appsutil/scripts/UAT_apps/

perl adpreclone.pl dbTier

2. Pre-clone for appsTier

In the Location:

/u01/app/apps/uatcomn/admin/scripts/UAT_apps/

perl adpreclone appsTier

Note: While running the preclone in the apps Tier its better to be down and database can be Up and Running.But the Order must be dbTier and then appsTier.

Post Clone Steps:

Note:While Running post clone both the Tier will be down and first run the dbTier, Now it will automatically up and running after the end of dbtier cloning and then run for appsTier.

Post Clone Pre Checks:

1.Install the Necessary RPM's
2.Check for the Network
3.Make sure the user and Groups.
4.Check for the ORACLE_HOME and PATH
5.Check for Permissions for folders.
5.Now run the post clone from the following location.

Post Clone for DB Tier:

Location : /u01/app/oracle/uatdb/9.2.0/appsutil/clone/bin

6.[oracle@apps bin]$ perl adcfgclone.pl dbTier

Enter the APPS password [APPS]:
apps

First Creating a new context file for the cloned system.

The program is going to ask you for information about the new system:

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

Do you want to use a virtual hostname for the target node (y/n) [n] ?:

Target instance is a Real Application Cluster (RAC) instance (y/n) [n]:

Target System database name [UAT]:

Target system RDBMS ORACLE_HOME directory [/u01/app/oracle/uatdb/9.2.0]:

Target system utl_file accessible directories list [/usr/tmp]:

Number of DATA_TOP's on the target system [1]:

Target system DATA_TOP 1 [/u01/app/oracle/uatdata]:

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

Clone Context uses the same port pool mechanism as the Rapid Install
Once you choose a port pool, Clone Context will validate the port availability.

Enter the port pool number [0-99]: 10

Checking the port pool 10
done: Port Pool 10 is free
Database port is 1531

Backing up /u01/app/oracle/uatdb/9.2.0/appsutil/UAT_apps.xml to /u01/app/oracle/ uatdb/9.2.0/appsutil/UAT_apps.xml1.bak

Creating the new Database Context file from :
/u01/app/oracle/uatdb/9.2.0/appsutil/template/adxdbctx.tmp

The new database context file has been created :
/u01/app/oracle/uatdb/9.2.0/appsutil/UAT_apps.xml

Log file located at /u01/app/oracle/uatdb/9.2.0/appsutil/clone/bin/CloneContext_ 06020557.log

Running Rapid Clone with command:
perl /u01/app/oracle/uatdb/9.2.0/appsutil/clone/bin/adclone.pl java=/u01

/app/oracle/uatdb/9.2.0/appsutil/clone/bin/../jre mode=apply stage=/u01/app/orac le/uatdb/9.2.0/appsutil/clone/bin/..

component=dbTier method=CUSTOM dbctxtg=/u01 /app/oracle/uatdb/9.2.0/appsutil/UAT_apps.xml showProgress contextValidated=true

Beginning database tier Apply - Mon Jun 2 17:57:29 2008
Log file located at /u01/app/oracle/uatdb/9.2.0/appsutil/log/UAT_apps/ApplyDBTie r_06020557.log


Completed Apply...
Mon Jun 2 18:02:27 2008

Beginning APPSDB_UAT registration to central inventory...

ORACLE_HOME NAME : APPSDB_UAT
ORACLE_HOME PATH : /u01/app/oracle/uatdb/9.2.0
Using Inventory location in /etc/oraInst.loc
Log file located at /home/oracle/oraInventory/logs/OracleHomeCloner_06020602.log
ORACLE_HOME /u01/app/oracle/uatdb/9.2.0 was registered successfully.

Starting database listener for UAT:
Running:
/u01/app/oracle/uatdb/9.2.0/appsutil/scripts/UAT_apps/addlnctl.sh start UAT

You are running addlnctl.sh version 115.6

Logfile: /u01/app/oracle/uatdb/9.2.0/appsutil/log/UAT_apps/addlnctl.txt

Starting listener process UAT ...

Listener UAT has already been started.

addlnctl.sh: exiting with status 0

====================================================================
Post Clone for Apps Tier:

Location :/u01/app/apps/uatcomn/clone/bin

[applmgr@apps bin]$ perl adcfgclone.pl appsTier

Enter the APPS password [APPS]: apps

First Creating a new context file for the cloned system.
The program is going to ask you for information about the new system:

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

Do you want to use a virtual hostname for the target node (y/n) [n] ?:

Target system database SID [UAT]:

Target system database server node [apps]:

Target system database domain name [doyen.com]:

Does the target system have more than one application tier server node (y/n) [n] ?:

Is the target system APPL_TOP divided into multiple mount points (y/n) [n] ?:

Target system APPL_TOP mount point [/u01/app/apps/uatappl]:

Target system COMMON_TOP directory [/u01/app/apps/uatcomn]:

Target system 8.0.6 ORACLE_HOME directory [/u01/app/apps/uatora/8.0.6]:

Target system iAS ORACLE_HOME directory [/u01/app/apps/uatora/iAS]:

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

Clone Context uses the same port pool mechanism as the Rapid Install
Once you choose a port pool, Clone Context will validate the port availability.

Enter the port pool number [0-99]: 10

Checking the port pool 10
done: Port Pool 10 is free
Web Listener port is 8010
Complete port information available at /u01/app/apps/uatappl/admin/out/UAT_apps/portpool.lst

UTL_FILE_DIR on database tier consists of the following directories.

1. /usr/tmp
2. /usr/tmp
3. /u01/app/oracle/uatdb/9.2.0/appsutil/outbound/UAT_apps
4. /usr/tmp

Choose a value which will be set as APPLPTMP value on the target node [1]:3

Backing up /u01/app/apps/uatappl/admin/UAT_apps.xml to /u01/app/apps/uatappl/admin/UAT_apps.xml2.bak

Creating the new APPL_TOP Context file from :
/u01/app/apps/uatappl/ad/11.5.0/admin/template/adxmlctx.tmp

The new APPL_TOP context file has been created :
/u01/app/apps/uatappl/admin/UAT_apps.xml

Log file located at /u01/app/apps/uatcomn/clone/bin/CloneContext_06020611.log

Running Rapid Clone with command:
perl /u01/app/apps/uatcomn/clone/bin/adclone.pl java=/u01/app/apps/uatcomn/clone/bin/../jre mode=apply

stage=/u01/app/apps/uatcomn/clone/bin/.. component=appsTier method=CUSTOM appctxtg=/u01/app/apps/uatappl/admin/UAT_apps.xml

showProgress contextValidated=true

/etc/oraInst.loc points to an Inventory that does not exist:
/home/applmgr/oraInventory
Inventory Directory created...
Beginning application tier Apply - Mon Jun 2 18:12:07 2008
Log file located at /u01/app/apps/uatappl/admin/UAT_apps/log/ApplyAppsTier_06020612.log

Completed Apply...

Mon Jun 2 18:21:15 2008

Beginning APPSIAS_UAT registration to central inventory...

ORACLE_HOME NAME : APPSIAS_UAT
ORACLE_HOME PATH : /u01/app/apps/uatora/iAS
Using Inventory location in /etc/oraInst.loc
Log file located at /home/applmgr/oraInventory/logs/OracleHomeCloner_06020621.log
ORACLE_HOME /u01/app/apps/uatora/iAS was registered successfully.

Starting application Services for UAT:
Running:
/u01/app/apps/uatcomn/admin/scripts/UAT_apps/adstrtal.sh APPS/

You are running adstrtal.sh version 115.14

Executing service control script:
/u01/app/apps/uatcomn/admin/scripts/UAT_apps/adapcctl.sh start

script returned:
****************************************************

adapcctl.sh version 115.43

Starting Apache Web Server Listener (dedicated HTTP) ...
Starting Apache Web Server Listener (dedicated PLSQL) ...

adapcctl.sh: exiting with status 0


.end std out.

.end err out.

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


Executing service control script:
/u01/app/apps/uatcomn/admin/scripts/UAT_apps/adalnctl.sh start
script returned:
****************************************************

adalnctl.sh version

Checking for FNDFS executable.
Starting listener process APPS_UAT.

adalnctl.sh: exiting with status 0


.end std out.

.end err out.

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


Executing service control script:
/u01/app/apps/uatcomn/admin/scripts/UAT_apps/adcmctl.sh start
script returned:
****************************************************

You are running adcmctl.sh version 115.20

Starting concurrent manager for UAT ...
Starting UAT_0602@UAT Internal Concurrent Manager
Default printer is noprint

adcmctl.sh: exiting with status 0


.end std out.

.end err out.

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


Executing service control script:
/u01/app/apps/uatcomn/admin/scripts/UAT_apps/adfrmctl.sh start
script returned:
****************************************************

You are running adfrmctl.sh version 115.34

Starting forms server for UAT on port 9010.

adfrmctl.sh: exiting with status 0


.end std out.

.end err out.

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


Executing service control script:
/u01/app/apps/uatcomn/admin/scripts/UAT_apps/adrepctl.sh start
script returned:
****************************************************

You are running adrepctl.sh version 115.29

starting Reports Server for UAT on port 7010.

adrepctl.sh: exiting with status 0


.end std out.

.end err out.

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


Executing service control script:
/u01/app/apps/uatcomn/admin/scripts/UAT_apps/adfmcctl.sh start
script returned:
****************************************************

You are running adfmcctl.sh version 115.17

Starting forms load balancing client for UAT.

adfmcctl.sh: exiting with status 0


.end std out.

.end err out.

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


Executing service control script:
/u01/app/apps/uatcomn/admin/scripts/UAT_apps/adfmsctl.sh start
script returned:
****************************************************

You are running adfmsctl.sh version 115.13

starting forms metrics server for UAT.

adfmsctl.sh: exiting with status 0


.end std out.

.end err out.

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


Executing service control script:
/u01/app/apps/uatcomn/admin/scripts/UAT_apps/jtffmctl.sh start
script returned:
****************************************************

You are running jtffmctl.sh version 115.16

Validating Fulfillment patch level via /u01/app/apps/uatcomn/java
Fulfillment patch level validated.
Starting Fulfillment Server for UAT on port 9310 ...

jtffmctl.sh: exiting with status 0


.end std out.

.end err out.

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


Executing service control script:
/u01/app/apps/uatcomn/admin/scripts/UAT_apps/addisctl.sh start
script returned:
****************************************************

addisctl.sh version 115.14

/u01/app/apps/uatora/8.0.6/vbroker/bin/osagent
Started osagent.
Osagent logs messages to the file /u01/app/apps/uatora/8.0.6/discwb4/util/osagent.log.
Waiting for OAD to start...
Started OAD.
OAD logs messages to the file /u01/app/apps/uatora/8.0.6/discwb4/util/oad.log.
Discoverer Locator Started.
Locator logs messages to the file /u01/app/apps/uatora/8.0.6/discwb4/util/locator.log.

addisctl.sh: exiting with status 0


.end std out.

.end err out.

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

All enabled services for this node are started.
Check logfile /u01/app/apps/uatcomn/admin/log/UAT_apps/06021821.log for details

Exiting with status 0

Note:

By Default all the services are started at the end of that Tier cloning. And while it asks for oraInst.loc mention the old path when we give in database creation. If it asks to run a script then edit and see the script, It may have mentioned the different path. so edit that and save what we have given while running database.

No comments: