Sie sind auf Seite 1von 3

Prerequisites For before cloning:

1)check the disk freespace


2)check tar,make commands
3)check OUI version
4)same version,db,hostname
5)cold/hot backup
Pre_Clone steps:
Step: 1: Run theadpreclone on both the Tiers
su

oraprod

perl $ORACLE_HOME/appsutil/scripts/PROD_erp/adpreclone.pl dbTier


su

applprod

perl $ADMIN_SCRIPTS_HOME/adpreclone.pl appsTier


Step 2:Stop all the Services of Target System and Remove the Files from Respecti
ve Directories
#Login root
stop service TEST
rm rf d01/testdb(remove thetestdb directory)
rm rf d02/testapps(remove the testapps directory)
Step3:Take the appropriate backup from the Source to Target Server
Step 4: Un Zip the all the files in Target Server and change theappropriate name
s
Step 5:Change appropriate TEST Directories Names
mv d01/d01/proddb /d01/testdb
mv d02/d02/prodapps /d02/testapps
Step 6:Change the ownership of TEST Directories to respective users
chown

R oratest1:dba /d01/testdb/TEST

chown R apptest1:dba /d02/testapps/TEST


chown R oratest1:dba /etc/oraInventory(optional)
Step 7: DoSome Required Changes in Target Instance:
su oratest1
a) mv/d01/testdb/TEST/db/tech_st/10.2.0/appsutil/jre1.6.0_03/d01/testdb/TEST/db/
tech_st/10.2.0/appsutil/jre
b) cd/d01/testdb/TEST/db/tech_st/10.2.0/sysman/lib

vienv_sysman.mk
Search forJRE_LIB_DIR (use /to search a word in vi editor)
Change /d01/prodb/prodto /d01/testdb/test in that line
Save and exit(: x)
Step 8:Run the adcfgclone on dbTier and appsTier
Cloning onDB Tier:
su oratest1
perl /d01/testdb/TEST/db/tech_st/10.2.0/appsutil/clone/bin/adcfgclone.pldbTier
Apps Password: Enter the Production Password
Target System Hostname (virtual or normal)[test]: E
Target System Database SID:TEST
Target System Base Directory: /d01/testdb/TEST
Target System utl_file_dir Directory List:/usr/tmp
Number of DATA_TOP's on the Target System [3]:E
Target System DATA_TOP Directory 1: /d01/testdb/TEST/testdata/logdata
Target System DATA_TOP Directory 2:/d01/testdb/TEST/testdata/sysdata
Target System DATA_TOP Directory 3:/d01/testdb/TEST/testdata/appsdata
Target System RDBMS ORACLE_HOME Directory[/d01/testdb/TEST/db/tech_st/10.2.0] :
E
Target System Archive Log Directory:/d01/testdb/TEST/testdata/logdata/archive E
Do you want to preserve the Display [test1:99](y/n):N
Target System Display [test:0.0] test:1
Do you want the the target system to have the sameport values as the source sys
tem (y/n) [y]? N
Target System Port Pool [0-99] : 1
@AppsTier:
su apptest1
perl /d02/testapps/TEST/apps/apps_st/comn/clone/bin/adcfgclone.plappsTier
Enter theAPPS user password : <enter appspassword as in Source>

Enter theAPPS password : <reenter apps password>


Target hostname (virtual or normal) [TEST] : E
Target system database SID : TEST
Target system database server node [TEST] : E
Target system base directory for source homes: /d02/testapps/TEST
Target System Tools ORACLE_HOME Directory [/d02/testapps/TEST/apps/tech_st/10.1
.2]:E
Target System Web ORACLE_HOME Directory [/d02/testapps/TEST/apps/tech_st/10.1.3
] E
Target System APPL_TOP Directory [/d02/testapps/TEST/apps/apps_st/appl]:E
Target System COMMON_TOP Directory [/d02/testapps/TEST/apps/apps_st/comn]:E
Target system base directory for instancehomes [/d02/testapps/TEST/inst] : E
Target system service groups - Enable RootService [enabled] :E
Target system service groups - Enable WebEntry Point Services [enabled] : E
Target system service groups - Enable WebApplication Services [enabled] : E
Target system service groups - Enable BatchProcessing Services [enabled] : E
Target system service groups - Enable OtherServices [disabled] : E
Do you want to preserve the Display set toerp:99 (y/n) [y] ? : N
Target system Display [TEST:0.0] : TEST:1
Do you want the the target system to have thesame port values as the source sys
tem (y/n) [y] ? N
Enter the port pool to be used for the targetsystem node [0-99]:1
Target system proxy hostname [10.2.1.3] : E
Target system proxy port [3128] : E
Choose a value which will be set as APPLPTMPvalue on the target node[1] : E
Post Cloning Steps:
1)
2)
3)
4)
5)

Update Profile Options


Update Printer Settings
Repoint the DB links
Update workflow configuration settings
Update the SESSION_COOKIE_DOMAIN value in ICX_PARAMETERS

Das könnte Ihnen auch gefallen