• USA : +1 973 910 5725
  • INDIA: +91 905 291 3388
  • info@tekslate.com
  • Login

Cloning

1. Prepare Source System – dbTier
2. Preparing Source System – appsTier
3. Copy the Source System to the Target System
4. Configuring the Target System

 

 

 

 

1. Prepare Source System – dbTier
In the following demonstration we will clone our VISION single node instance to another VISION instance. Even in single node cloning we still have to perform activities like dbTier and appsTier just like two nodes. Here our source machine name is VISION and target is VISION2 while database VIS and VIS2 accordingly. The other change is that source directory structure is /u01/oracle while target /d01/oracle, this is not mandatory you can have same and if not then you
will have to provide this information later in the steps. So note down all such information before proceeding.
1.1. login as: oracle
1.2. $ cd /u01/oracle/ visdb/9.2.0/appsutil/ scripts/VIS_vision/
1.3. $ perl adpreclone.pl dbTier pwd= apps

Running Rapid Clone with command…

perl /u01/oracle/ visdb/9.2.0/appsutil/bin/adclone.pl java= /u01/oracle/ visdb/9.2.0/ jre/1.4.2 mode= stage

stage= /u01/oracle/ visdb/9.2.0/appsutil/ clone component= dbTier method= CUSTOM

dbctx= /u01/oracle/ visdb/9.2.0/appsutil/VIS_vision.xml pwd= apps showProgress

Beginning database tier Stage – Tue Sep 12 09:18:13 2006

Log file located at /u01/oracle/ visdb/9.2.0/appsutil/ log/VIS_vision/StageDBTier_09120918.log

| 5% completed

 

Running Rapid Clone with command…perl /u01/oracle/ visdb/9.2.0/appsutil/bin/adclone.pl java= /u01/oracle/ visdb/9.2.0/ jre/1.4.2 mode= stage

stage= /u01/oracle/ visdb/9.2.0/appsutil/ clone component= dbTier method= CUSTOM

dbctx= /u01/oracle/ visdb/9.2.0/appsutil/VIS_vision.xml pwd= apps showProgress

Beginning database tier Stage – Tue Sep 12 09:18:13 2006

Log file located at /u01/oracle/ visdb/9.2.0/appsutil/ log/VIS_vision/StageDBTier_09120918.log

Completed Stage…

Tue Sep 12 09:24:47 2006

 

<<<<<<<<<<<<<<<<<—————***********————–>>>>>>>>>>>>>>>>>

 

2. Preparing Source System – appsTier

 1.1. $ cd /u01/oracle/ viscomn/admin/ scripts/VIS_vision
1.2. $ perl adpreclone.pl appsTier pwd= apps

Running Rapid Clone with command…

perl /u01/oracle/ visappl/ad/11.5.0/bin/adclone.pl java= /u01/oracle/ visora/ iAS/appsoui/ jre/1.3.1

mode= stage stage= /u01/oracle/ viscomn/ clone component= appsTier method= CUSTOM

appctx= /u01/oracle/ visappl/admin/VIS_vision.xml pwd= apps showProgress

Beginning application tier Stage – Tue Sep 12 09:33:58 2006

Log file located at /u01/oracle/ visappl/admin/VIS_vision/ log/StageAppsTier_09120933.log

\ 8% completed

 

Running Rapid Clone with command…perl /u01/oracle/ visappl/ad/11.5.0/bin/adclone.pl java= /u01/oracle/ visora/ iAS/appsoui/ jre/1.3.1

mode= stage stage= /u01/oracle/ viscomn/ clone component= appsTier method= CUSTOM

appctx= /u01/oracle/ visappl/admin/VIS_vision.xml pwd= apps showProgress

Beginning application tier Stage – Tue Sep 12 09:33:58 2006

Log file located at /u01/oracle/ visappl/admin/VIS_vision/ log/StageAppsTier_09120933.log

Completed Stage…

Tue Sep 12 09:40:31 2006

VIS-/u01/oracle/ viscomn/admin/ scripts/VIS_vision>

 

<<<<<<<<<<<<<<<—————***********————–>>>>>>>>>>>>>>>>

3. Copy the Source System to the Target System
3.1. Shut down the services on both tiers.
3.2. Copy Source System in the following order,

Application tier file system
Copy the following directories from the source node to the target node:
1. < APPL_TOP>
2. <OA_HTML>
3. <OA_JAVA>
4. <OA_JRE_TOP>
5. < COMMON_TOP> /util
6. < COMMON_TOP> / clone
7. < COMMON_TOP> /_pages (when this directory exists)
8. < 806 ORACLE_HOME>
9. < iAS ORACLE_HOME>

Database tier file system
1. Perform a normal shutdown on source database
2. Copy all the database files from the source to the target system
3. Copy the source ORACLE_HOME to the target system
Note: The above mentioned copying steps are provided by Oracle. The cloning with this selective folders copying gave error so we copied complete Oracle folder from source to target. The cloning with these selective folders will be provided later.

 

<<<<<<<<<<<<<<<—————***********————–>>>>>>>>>>>>>>>>

 

4. Configuring the Target System
4.1. Login as Oracle user
4.2. Run adcfgclone.pl on database tier, and provide your feedback to each prompt as shown below.

 

$ cd /d01/oracle/ visdb/9.2.0/appsutil/ clone/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 [VIS] :VIS2

Target system RDBMS ORACLE_HOME directory [ /u01/oracle/ visdb/9.2.0] : /d01/oracle/ visdb/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/oracle/ visdata] : /d01/oracle/ visdata

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

Target system Display [ vision2:0.0] :

Do you want to preserve the port values from the source system on the target system (y/n) [ y] ?:n

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] :

0

Checking the port pool 0

done: Port Pool 0 is free

Database port is 1521

Creating the new Database Context file from :

/d01/oracle/ visdb/9.2.0/appsutil/ template/adxdbctx.tmp

The new database context file has been created :

/d01/oracle/ visdb/9.2.0/appsutil/VIS2_vision2.xml

Log file located at /d01/oracle/ visdb/9.2.0/appsutil/ clone/bin/CloneContext_11080500.log

Running Rapid Clone with command:

registration to central inventory…

ORACLE_HOME NAME : APPSDB_VIS2

ORACLE_HOME PATH : /d01/oracle/ visdb/9.2.0

Using Inventory location in /etc/oraInst.loc

Log file located at /etc/oraInventory/ logs/OracleHomeCloner_11080506.log

ORACLE_HOME /d01/oracle/ visdb/9.2.0 was registered successfully.

Starting database listener for VIS2:

Running:

/d01/oracle/ visdb/9.2.0/appsutil/ scripts/VIS2_vision2/addlnctl.sh start VIS2

You are running addlnctl.sh version 115.6

Logfile: /d01/oracle/ visdb/9.2.0/appsutil/ log/VIS2_vision2/addlnctl.txt

Starting listener process VIS2 …

Listener VIS2 has already been started.

addlnctl.sh: exiting with status 0

[oracle@vision2 bin]$

 

Note: The inputs in the above steps are in blue color while where default is accepted the ENTER key is pressed. Like “Do you want to use a virtual hostname for the target node (y/n) [n] ?: ” the default is [n] so pressing just enter key means you selected n.
4.3. Login as Oracle user on Applications Server.
4.4. Now run adcfgclone.pl on Applications Tier, and provide your feedback to each
prompt as shown below.

 

$ cd /d01/oracle/ viscomn/ clone/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 [VIS] :VIS2

Target system database server node [ vision] :vision2

Target system database domain name [erpstuff.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/oracle/ visappl] : /d01/oracle/ visappl

Target system COMMON_TOP directory [ /u01/oracle/viscomn] : /d01/oracle/ viscomn

Target system 8.0.6 ORACLE_HOME directory [ /u01/oracle/ visora/8.0.6] : /d01/oracle/ visora/8.0.6

Target system iAS ORACLE_HOME directory [ /u01/oracle/ visora/ iAS] : /d01/oracle/ visora/ iAS

Do you want to preserve the Display set to vision.erpstuff.com:0.0 (y/n) [ y] ?:n

Target system Display [ vision2:0.0] :

Do you want to preserve the port values from the source system on the target system (y/n) [ y] ?:n

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] :

0

Checking the port pool 0

done: Port Pool 0 is free

Web Listener port is 8000

Complete port information available at /d01/oracle/ visappl/admin/out/VIS2_vision2/portpool.lst

UTL_FILE_DIR on database tier consists of the following directories.

1. /usr/ tmp

2. /usr/ tmp

3. /d01/oracle/ visdb/9.2.0/appsutil/outbound/VIS2_vision2

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 :

/d01/oracle/ visappl/ad/11.5.0/admin/ template/adxmlctx.tmp

The new APPL_TOP context file has been created :

/d01/oracle/ visappl/admin/VIS2_vision2.xml

Log file located at /d01/oracle/ viscomn/ clone/bin/CloneContext_11080515.log

Running Rapid Clone with command:

perl /d01/oracle/ viscomn/ clone/bin/adclone.pl java= /d01/oracle/ viscomn/ clone/bin/ ../ jre

mode= apply stage= /d01/oracle/ viscomn/ clone/bin/ .. component= appsTier method= CUSTOM

appctxtg= /d01/oracle/ visappl/admin/VIS2_vision2.xml showProgress contextValidated= true

Beginning application tier Apply – Wed Nov 8 17:18:21 2006

Log file located at /d01/oracle/ visappl/admin/VIS2_vision2/ log/ApplyAppsTier_11080518.log

17% completed

———————————————-Completion Message————————————————–

Completed Apply…

Wed Nov 8 17:24:17 2006

Beginning APPSIAS_VIS2 registration to central inventory…

ORACLE_HOME NAME : APPSIAS_VIS2

ORACLE_HOME PATH : /d01/oracle/ visora/ iAS

Using Inventory location in /etc/oraInst.loc

Log file located at /etc/oraInventory/ logs/OracleHomeCloner_11080524.log

ERROR: Registration Failed… Please check log file.

You can rerun this registration with the following script:

/d01/oracle/ viscomn/admin/out/VIS2_vision2/ regOUI_APPSIAS_VIS2.sh

Starting application Services for VIS2:

Running:

/d01/oracle/ viscomn/admin/ scripts/VIS2_vision2/adstrtal.sh APPS/< appspwd>

You are running adstrtal.sh version 115.14

Executing service control script:

/d01/oracle/ viscomn/admin/ scripts/VIS2_vision2/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:

/d01/oracle/ viscomn/admin/ scripts/VIS2_vision2/adalnctl.sh start

script returned:

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

adalnctl.sh version

Checking for FNDFS executable.

Starting listener process APPS_VIS2.

adalnctl.sh: exiting with status 0

.end std out.

.end err out.

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

Executing service control script:

/d01/oracle/ viscomn/admin/ scripts/VIS2_vision2/adcmctl.sh start

script returned:

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

You are running adcmctl.sh version 115.20

Starting concurrent manager for VIS2 …

Starting VIS2_1108@VIS2 Internal Concurrent Manager

Default printer is noprint

adcmctl.sh: exiting with status 0

.end std out.

.end err out.

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

Executing service control script:

/d01/oracle/ viscomn/admin/ scripts/VIS2_vision2/adfrmctl.sh start

script returned:

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

You are running adfrmctl.sh version 115.34

Starting forms server for VIS2 on port 9000.

adfrmctl.sh: exiting with status 0

.end std out.

.end err out.

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

Executing service control script:

/d01/oracle/ viscomn/admin/ scripts/VIS2_vision2/adrepctl.sh start

script returned:

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

You are running adrepctl.sh version 115.29

starting Reports Server for VIS2 on port 7000.

adrepctl.sh: exiting with status 0

.end std out.

.end err out.

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

Executing service control script:

/d01/oracle/ viscomn/admin/ scripts/VIS2_vision2/adfmcctl.sh start

script returned:

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

You are running adfmcctl.sh version 115.17

Starting forms load balancing client for VIS2.

adfmcctl.sh: exiting with status 0

.end std out.

.end err out.

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

Executing service control script:

/d01/oracle/ viscomn/admin/ scripts/VIS2_vision2/adfmsctl.sh start

script returned:

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

You are running adfmsctl.sh version 115.13

starting forms metrics server for VIS2.

adfmsctl.sh: exiting with status 0

.end std out.

.end err out.

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

Executing service control script:

/d01/oracle/ viscomn/admin/ scripts/VIS2_vision2/ jtffmctl.sh start

script returned:

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

You are running jtffmctl.sh version 115.16

Validating Fulfillment patch level via /d01/oracle/ viscomn/ java

Fulfillment patch level validated.

Starting Fulfillment Server for VIS2 on port 9300 …

jtffmctl.sh: exiting with status 0

 

.end std out.

.end err out.

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

Executing service control script:

/d01/oracle/ viscomn/admin/ scripts/VIS2_vision2/addisctl.sh start

script returned:

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

addisctl.sh version 115.14

/d01/oracle/ visora/8.0.6/ vbroker/bin/osagent

Started osagent.

Osagent logs messages to the file /d01/oracle/ visora/8.0.6/discwb4/util/osagent.log.

Waiting for OAD to start…

Started OAD.

OAD logs messages to the file /d01/oracle/ visora/8.0.6/discwb4/util/oad.log.

Discoverer Locator Started.

Locator logs messages to the file /d01/oracle/ visora/8.0.6/discwb4/util/ locator.log.

Registering Discoverer Session

Completed registration of repository_id = IDL:DCISessionManager:1.0

object_name = vision2.erpstuff.com_8000OracleDiscovererSession4

reference data =

path_name = /d01/oracle/ visora/8.0.6/discwb4/util/ runses.sh

activation_policy = UNSHARED_SERVER

args = (length= 4)[ -session; vision2.erpstuff.com_8000OracleDiscovererSession4; -preference;

vision2.erpstuff.com._8000OracleDiscovererPreferences4; ]

env = NONE

for OAD on host 192.168.0.39

Registering the Collector

Completed registration of repository_id = IDL:DCICollector:1.0

object_name = vision2.erpstuff.com_8000OracleDiscovererCollector4

reference data =

path_name = /d01/oracle/ visora/8.0.6/discwb4/util/ runcol.sh

activation_policy = SHARED_SERVER

args = (length= 2)[ -collector; vision2.erpstuff.com_8000OracleDiscovererCollector4; ]

env = NONE

for OAD on host 192.168.0.39

Applying preferences from file : /d01/oracle/ visora/8.0.6/discwb4/util/pref.txt

Finished applying preferences

Closing down registry..

Registry File sync…

Registering Discoverer Preference Repository

Completed registration of repository_id = IDL:DCICORBAInterface:1.0

object_name = vision2.erpstuff.com_8000OracleDiscovererPreferences4

reference data =

path_name = /d01/oracle/ visora/8.0.6/discwb4/util/ runpref.sh

activation_policy = SHARED_SERVER

args = (length= 2)[ -preference; vision2.erpstuff.com_8000OracleDiscovererPreferences4; ]

env = NONE

for OAD on host 192.168.0.39

addisctl.sh: exiting with status 0

.end std out.

.end err out.

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

All enabled services for this node are started.

Check logfile /d01/oracle/ viscomn/admin/ log/VIS2_vision2/11081724.log for details

Exiting with status 0

[oracle@vision2 bin]$

 

Note: The inputs in the above steps are in blue color while where default is accepted the ENTER key is pressed. Like “Do you want to use a virtual hostname for the target node (y/n) [n] ?: ” the default is [n] so pressing just enter key means you selected n.
4.5. I f status of all services is 0 then we have done with cloning.
4.6. Login in the application to confirm your cloning.

92

 

 

 

 

 

 

 

 

 

 

Summary
Review Date
Reviewed Item
Cloning
Author Rating
5

“At TekSlate, we are trying to create high quality tutorials and articles, if you think any information is incorrect or want to add anything to the article, please feel free to get in touch with us at info@tekslate.com, we will update the article in 24 hours.”

0 Responses on Cloning"

    Leave a Message

    Your email address will not be published. Required fields are marked *

    Site Disclaimer, Copyright © 2016 - All Rights Reserved.

    Support


    Please leave a message and we'll get back to you soon.

    I agree to be contacted via e-mail.