In this article i will explain how we can take clone in Oracle EBS
Lots of EBS forum users ask same question in forum, “How i can take clone”.
If you take first time of your source system,than you have to check your source system has Rapid Clone patches. For all steps and patches name please refer:
Cloning Oracle Applications Release 12 with Rapid Clone [ID 406982.1]
Cloning Oracle Applications Release 11i with Rapid Clone [ID 230672.1]
Before start to process let us define something about clone.
Source system means, our existing instance. It could be test or prod(even clon) instance.
Target system means, our new instance which is same as like source system.Its mean clone is 1 of 1 copy of our source system. Same data, same user etc.
We assume our operating system is Linux and we assuem we are try to taking clone of our PROD system.
Our source system users are:
applprod user for Application Tier
oraprod user for Db tier
Our target system users are:
applclon user for Application Tier
oraclon user for Db tier
1. Run preclone on source system:
When you are running preclone you dont need to close your system.
DB Tier
Login as oraprod user,
$ cd $ORACLE_HOME/appsutil/scripts/ SID_HOSTNAME
perl adpreclone.pl dbTier
Apps Tier
Login as applprod user,
$ cd $COMMON_TOP/admin/scripts/SID_HOSTNAME
perl adpreclone.pl appsTier
2. Copy the source system to the target system
For this steps you need to close your apps+db+listener.
A. Close your apps&db services
Apps tier:
Shutdown the App
Login as applprod user,
$ cd $COMMON_TOP/admin/scripts/SID_HOSTNAME
$./adstpall.sh apps/<apps_pass>
be sure there is no any process for applprod user,you can use below command:
ps -u applprod
Db Tier:
Login as oraprod user,
$lsnrctl stop SID
$sqlplus “/as sysdba”
SQL> shutdown immediate;
be sure there is no any process for oraprod user,you can use below command:
ps -u oraprod
B. Start to copy process from source to target
When you are sure all services down and no any process for apps&db user you have to copy your all folder from source to target.
Please dont forget; If you have any session for apps+db it will cause error in clone process on target server
Let us say all folder under /u01/PROD in your source server and you want to copy this folder to /data/CLON in target server. So please follow below
1.Login as root user to your source system
2.scp -r /u01/PROD root@10.x.x(target machine IP):/data/CLON
it will ask you clon server’s root user password,enter password and you will see it will start to copy
When copy process compliate than you can open your source system
C. Rename folders name in target server
After copy process you can rename folder names in target
R11:
mv prodcomn clonecomn
mv prodora clonora
mv prodappl cloneppl
mv proddata clonedata
mv proddb clonedb
R12:
cd /data/PROD <<< its our target server path
ls
mv inst inst_old
mkdir inst
3. Start Clone process on target node:
Before start to clonning process we must set perl and per5lib for apps and db tiers.
For more details please check:
Setting the Perl Environment PERL5LIB [ID 395294.1]
Common Perl Setup Issues and Solutions for E-Business Suite 11i [ID 404055.1]
A. If you dont have clone user on source system than create user
useradd -g dba -d /home/applprod applprod
useradd -g dba -d /home/oraprod oraprod
B. Start post clone on dbtier first
For r12 clonning:
Set perl and perl5lib for db tier.
R12-dbTier:
Login as oraclon user
export PATH=/xx/db/tech_st/11.1.0/perl/bin/perl:$PATH
export PERL5LIB=/xx/db/tech_st/11.1.0/perl/lib/5.8.3/:/xx/db/tech_st/11.1.0/perl/lib/site_perl/5.8.3/
$ cd [RDBMS ORACLE_HOME]/appsutil/clone/bin
$ perl adcfgclone.pl dbTier
R12-appsTier:
Login as applclon user
export PATH=/xx/apps/tech_st/10.1.3/perl:$PATH
export PERL5LIB=/xx/apps/tech_st/10.1.3/perl/lib/5.8.3:/xx/apps/tech_st/10.1.3/perl/lib/site_perl/5.8.3
$ cd [COMMON_TOP]/clone/bin
$ perl adcfgclone.pl appsTier
Set perl and perl5lib for apps tier:
For r11 clonning:
R11-dbTier:
Login as oraclon user
export PATH=/xx/clondb/10.2.0/perl:$PATH
export PERL5LIB=/xx/clondb/10.2.0/perl/lib/5.8.3:/xx/clondb/10.2.0/perl/lib/site_perl/5.8.3
$ cd [RDBMS ORACLE_HOME]/appsutil/clone/bin
$ perl adcfgclone.pl dbTier
R11-apps Tier:
export PATH=$xx/clonora/iAS/Apache/perl/bin:$PATH
export PERL5LIB=/xx/clonora/iAS/Apache/perl/lib/5.00503/:/xx/clonora/iAS/Apache/perl/lib/site_perl/5.00503
$ cd [COMMON_TOP]/clone/bin
$ perl adcfgclone.pl appsTier
References:
Cloning Oracle Applications Release 12 with Rapid Clone [ID 406982.1]
Cloning Oracle Applications Release 11i with Rapid Clone [ID 230672.1]
Setting the Perl Environment PERL5LIB [ID 395294.1]
Common Perl Setup Issues and Solutions for E-Business Suite 11i [ID 404055.1]
wonder için bir cevap yazın Cevabı iptal et