SlideShare a Scribd company logo
1 of 13
Cloning EBS R12
A Step By Step Detailing
By Orazer Technologies
www.orazer.com
Cloning oracle ebusiness suite R12 using hot backup.
Source : PROD
Target : TEST
Pre-Tasks:
• Bring down taget system’s services.
•Backup parameter file, CONTEXT_FILEs of both application and database.
•Remove Application files(apps_st, tech_st and INST_TOP) of target
system
•Unregister db from RMAN catalog if registered and drop the database.
•Verify space on the database node and applications node.
•On source, run adpreclone.pl ( if not executed recently)
$ cd $INST_TOP/admin/scripts
$ perl adpreclone.pl appsTier
2www.orazer.com
Copying files:
On DB Node
Copy the latest DB backups from source to target (Including
archivelog backup and controlfile backup)
e.g.:
$ cd /backup/PROD/
$ scp * oratest@dmdev01:/backup/clone/PROD/
On Apps Node
Copy apps_st and tech_st from source application node to
target application node.
e.g.:
$ cd /u01/oracle/PROD
$ tar –cvf – apps_st | gzip | ssh –l appltest dmdev02 “( cd
/u01/oracle/TEST/apps && gunzip | tar –xvf – )”
3www.orazer.com
Steps to Clone Database
1. Change the db_name parameter in pfile that is backed up (eg: TEST to
PROD)
2. Start the target db using modified pfile
Sql > startup nomount pfile=’/backup/clone/initTEST.ora’
3. Restore the controlfile from the backup of PROD
RMAN> restore controlfile from ‘/backup/clone/PROD/PROD.ctl’
4. Mount the database
Sql> alter database mount
5. Once db is mounted catalog the backups copied from source.
RMAN > catalog start with ‘/backup/clone/PROD/’;
4www.orazer.com
6. Once the backups are cataloged we can restore the database usig the
PROD’s backup. But the database files are pointing to PROD’s location so it
will try to restore the datafiles to PROD’s location which may not exist in
target.
Ex: /u01/oracle/PROD/data/system01.dbf
Hence we will have to rename the datafiles to point to new(TEST) location
before restoring. We can rename the files or use SET NEWNAME in RMAN
before restoring.
Ex: set newname for datafile 1 to ‘/u01/oracle/TEST/system.dbf’;
Note : Below script can be used to create the script for “SET NEWNAME”.
Change the path of target datafile location and run the script in source.
select ‘set newname for datafile ‘ || file_id || ‘ to ”/u01/oracle/TEST/’ ||
substr(file_name,instr(file_name,’/’,-1)+1) || ”’;’
from dba_data_files;
5www.orazer.com
7. Restore and recover the database
Ex:
Rman>run {
set until time “to_date(’16/07/2015 23:20:00′,’dd/mm/yyyy hh24:mi:ss’)”;
set newname for datafile 1 to ‘/u01/oracle/TEST/system.dbf’;
set newname for datafile 44 to ‘/u01/oracle/TEST/apps_ts_tx_data_01.dbf’;
set newname for datafile 76 to ‘/u01/oracle/TEST/apps_ts_tx_idx01.dbf’;
set newname for datafile 35 to ‘/u01/oracle/TEST/sysaux_01.dbf’;
set newname for datafile 37 to ‘/u01/oracle/TEST/undotbs1_01.dbf’;
allocate channel ch1 type disk;
allocate channel ch2 type disk;
restore database;
switch datafile all;
recover database;
release channel ch1;
release channel ch2;
}
After the database is restored and recovered then open the database using
resetlogs.
SQL> alter database open resetlogs; 6www.orazer.com
Post Steps:
1. Recreate ALL the temp tablespaces. If not done then DB will not be
opened after renaming.
Sql> select tablespace_name from dba_tablespaces where
tablespace_name like ‘%TEMP%’;
TEMP
TEMP1
Create a new temp tablespace
create TEMPORARY TABLESPACE temp2 tempfile
‘/u01/oracle/TEST/temp2.dbf’ size 2048M;
2. Make the newly created temp tablespace as DEFAULT
ALTER DATABASE DEFAULT TEMPORARY TABLESPACE temp2;
3. Drop the old temp tablespaces
DROP TABLESPACE temp INCLUDING CONTENTS AND DATAFILES;
DROP TABLESPACE temp1 INCLUDING CONTENTS AND DATAFILES;
7www.orazer.com
4. Recreate the dropped temps
create TEMPORARY TABLESPACE temp tempfile
‘/u01/oracle/TEST/temp.dbf’ size 20G;
create TEMPORARY TABLESPACE temp1 tempfile
‘/u01/oracle/TEST/temp1.dbf’ size 2048M;
5. Change the default temp again to old
ALTER DATABASE DEFAULT TEMPORARY TABLESPACE temp;
6. Drop TEMP2
6.1 Stop the database and startup in mount mode using same modified pfile
Sql> shutdown immediate;
Sql > startup mount pfile=’/backup/clone/initTEST.ora’
6.2 Change the database name to TEST
nid TARGET=SYS/welcome123 DBNAME=TEST
8www.orazer.com
6.3 Once the database is renamed the nid command will bring down the
database. Start it using the old pfile in ORACLE_HOME/dbs. (which has
db_name as TEST)
Sql>startup mount
Sql>alter database open resetlogs;
Note : Disable archive log if needed.
6.4 After db is opened, cleanup the FND NODE details using below script.
Run it as apps user.
SQL> conn apps/<appspwd>
Connected.
SQL> show user
USER is “APPS”
SQL> EXEC FND_CONC_CLONE.SETUP_CLEAN;
commit;
6.4 Run auto-config on DB Tier after ensuring that the DB and listener are up
and running.
$ cd $ORACLE_HOME/appsutil/scripts/TEST_dmdev02/./ adautocfg.sh
9www.orazer.com
Steps to Clone Application:
1. Ensure the file system copy completed successfully on the application tier.
Compare the size (du –sh) output with production for same content.
$ pwd
/u01/oracle/TEST/apps
$ du -sh apps_st tech_st
39303540 apps_st
9237724 tech_st
2. Set Primary and secondary nodes and set all Pending requests on hold.
update fnd_concurrent_queues set node_name=’DMDEV02′ where
node_name is not null;
3. Check the old $INST_TOP is removed completely before starting the next
step.
cd /u01/oracle/TEST/apps/apps_st/comn/clone/bin
perl adcfgclone.pl appsTier <Path of the context_file that was saved in Pre
Task B>
10www.orazer.com
4. Stop the concurrent managers and workflow.
5. Stop the Applications.
6. Change Apps password:
FNDCPASS apps/xxx 0 Y system/xx SYSTEM APPLSYS XXX
7. Change Sysasmin password:
FNDCPASS apps/xxx 0 Y system/xxx USER SYSADMIN xxx
8. Point all the fndcpesr soft links in $XX_TOP/bin to
$FND_TOP/bin/fndcpesr
for i in `ls -l | grep “^l” | awk ‘{print $9}’`
do
ln -sf $FND_TOP/bin/fndcpesr $i
Done
11www.orazer.com
10. Run cmclean.sql
11. Run adautocfg.sh
12. Start all the services except the concurrent managers. CM’s should not be
started until Security team complete their post clone activities.
13. Login to the application using login page and launch the forms.
14. Change the Site Name to the name of the current environment with
information of the Refreshed time
12www.orazer.com
Issues
R12: “FRM-92101: There was a failure in the Forms Server during startup”
Error When Attempting to Launch Forms
(Doc ID 454427.1)
The $ORACLE_HOME/lib32/ldflags was pointing to source instance(PROD)
1. Change is to point to target instance.
2. Bring down the application services.
3. Relink the forms executables.
cd $ORACLE_HOME/forms/lib32
make -f ins_forms.mk install
4. Start the services
13www.orazer.com

More Related Content

What's hot

Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
Aaron Shilo
 

What's hot (20)

Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
 
Backup and recovery in oracle
Backup and recovery in oracleBackup and recovery in oracle
Backup and recovery in oracle
 
Oracle E-Business Suite 12.2 - The Upgrade to End All Upgrades
Oracle E-Business Suite 12.2 - The Upgrade to End All UpgradesOracle E-Business Suite 12.2 - The Upgrade to End All Upgrades
Oracle E-Business Suite 12.2 - The Upgrade to End All Upgrades
 
Oracle 12c and its pluggable databases
Oracle 12c and its pluggable databasesOracle 12c and its pluggable databases
Oracle 12c and its pluggable databases
 
Redefining tables online without surprises
Redefining tables online without surprisesRedefining tables online without surprises
Redefining tables online without surprises
 
Oracle 12c Automatic Data Optimization (ADO) - ILM
Oracle 12c Automatic Data Optimization (ADO) - ILMOracle 12c Automatic Data Optimization (ADO) - ILM
Oracle 12c Automatic Data Optimization (ADO) - ILM
 
Oracle Database 12c : Multitenant
Oracle Database 12c : MultitenantOracle Database 12c : Multitenant
Oracle Database 12c : Multitenant
 
New Features for Multitenant in Oracle Database 21c
New Features for Multitenant in Oracle Database 21cNew Features for Multitenant in Oracle Database 21c
New Features for Multitenant in Oracle Database 21c
 
Oracle RAC Internals - The Cache Fusion Edition
Oracle RAC Internals - The Cache Fusion EditionOracle RAC Internals - The Cache Fusion Edition
Oracle RAC Internals - The Cache Fusion Edition
 
Oracle sql high performance tuning
Oracle sql high performance tuningOracle sql high performance tuning
Oracle sql high performance tuning
 
Oracle Applications R12 architecture
Oracle Applications R12 architectureOracle Applications R12 architecture
Oracle Applications R12 architecture
 
Oracle Performance Tuning Fundamentals
Oracle Performance Tuning FundamentalsOracle Performance Tuning Fundamentals
Oracle Performance Tuning Fundamentals
 
Oracle RAC 19c: Best Practices and Secret Internals
Oracle RAC 19c: Best Practices and Secret InternalsOracle RAC 19c: Best Practices and Secret Internals
Oracle RAC 19c: Best Practices and Secret Internals
 
Oracle data guard for beginners
Oracle data guard for beginnersOracle data guard for beginners
Oracle data guard for beginners
 
Why oracle data guard new features in oracle 18c, 19c
Why oracle data guard new features in oracle 18c, 19cWhy oracle data guard new features in oracle 18c, 19c
Why oracle data guard new features in oracle 18c, 19c
 
Oracle Database 12c with RAC High Availability Best Practices
Oracle Database 12c with RAC High Availability Best PracticesOracle Database 12c with RAC High Availability Best Practices
Oracle Database 12c with RAC High Availability Best Practices
 
Your tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
Your tuning arsenal: AWR, ADDM, ASH, Metrics and AdvisorsYour tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
Your tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
 
Adop and maintenance task presentation 151015
Adop and maintenance task presentation 151015Adop and maintenance task presentation 151015
Adop and maintenance task presentation 151015
 
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive PresentationNabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
 
What to Expect From Oracle database 19c
What to Expect From Oracle database 19cWhat to Expect From Oracle database 19c
What to Expect From Oracle database 19c
 

Similar to Cloning Oracle EBS R12: A Step by Step Procedure

Oracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid cloneOracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid clone
Deepti Singh
 
Oracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid cloneOracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid clone
Deepti Singh
 
2011 384 hackworth_ppt
2011 384 hackworth_ppt2011 384 hackworth_ppt
2011 384 hackworth_ppt
maclean liu
 
oracle upgradation
oracle upgradationoracle upgradation
oracle upgradation
influxbob
 
How to create a non managed standby database
How to create a non managed  standby databaseHow to create a non managed  standby database
How to create a non managed standby database
Jorge Batista
 

Similar to Cloning Oracle EBS R12: A Step by Step Procedure (20)

Oracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid cloneOracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid clone
 
Oracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid cloneOracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid clone
 
Rman cloning guide
Rman cloning guideRman cloning guide
Rman cloning guide
 
2011 384 hackworth_ppt
2011 384 hackworth_ppt2011 384 hackworth_ppt
2011 384 hackworth_ppt
 
Creating a physical standby database 11g on windows
Creating a physical standby database 11g on windowsCreating a physical standby database 11g on windows
Creating a physical standby database 11g on windows
 
Physical_Standby_Database_R12.2.4
Physical_Standby_Database_R12.2.4Physical_Standby_Database_R12.2.4
Physical_Standby_Database_R12.2.4
 
oracle dba
oracle dbaoracle dba
oracle dba
 
Oracle data guard configuration in 12c
Oracle data guard configuration in 12cOracle data guard configuration in 12c
Oracle data guard configuration in 12c
 
Kp.3 pengaturan sistem dan user
Kp.3 pengaturan sistem dan userKp.3 pengaturan sistem dan user
Kp.3 pengaturan sistem dan user
 
Oracle ORA Errors
Oracle ORA ErrorsOracle ORA Errors
Oracle ORA Errors
 
oracle upgradation
oracle upgradationoracle upgradation
oracle upgradation
 
Oracle 11g Installation With ASM and Data Guard Setup
Oracle 11g Installation With ASM and Data Guard SetupOracle 11g Installation With ASM and Data Guard Setup
Oracle 11g Installation With ASM and Data Guard Setup
 
Cloning 2
Cloning 2Cloning 2
Cloning 2
 
Cloning 2
Cloning 2Cloning 2
Cloning 2
 
br_test_lossof-datafile_10g.doc
br_test_lossof-datafile_10g.docbr_test_lossof-datafile_10g.doc
br_test_lossof-datafile_10g.doc
 
Createclone
CreatecloneCreateclone
Createclone
 
Standby db creation commands
Standby db creation commandsStandby db creation commands
Standby db creation commands
 
Scripts related to temp tablespace
Scripts related to temp tablespaceScripts related to temp tablespace
Scripts related to temp tablespace
 
How to create a non managed standby database
How to create a non managed  standby databaseHow to create a non managed  standby database
How to create a non managed standby database
 
Cloning database using srdf copy
Cloning database using srdf copyCloning database using srdf copy
Cloning database using srdf copy
 

Recently uploaded

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Recently uploaded (20)

2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 

Cloning Oracle EBS R12: A Step by Step Procedure

  • 1. Cloning EBS R12 A Step By Step Detailing By Orazer Technologies www.orazer.com
  • 2. Cloning oracle ebusiness suite R12 using hot backup. Source : PROD Target : TEST Pre-Tasks: • Bring down taget system’s services. •Backup parameter file, CONTEXT_FILEs of both application and database. •Remove Application files(apps_st, tech_st and INST_TOP) of target system •Unregister db from RMAN catalog if registered and drop the database. •Verify space on the database node and applications node. •On source, run adpreclone.pl ( if not executed recently) $ cd $INST_TOP/admin/scripts $ perl adpreclone.pl appsTier 2www.orazer.com
  • 3. Copying files: On DB Node Copy the latest DB backups from source to target (Including archivelog backup and controlfile backup) e.g.: $ cd /backup/PROD/ $ scp * oratest@dmdev01:/backup/clone/PROD/ On Apps Node Copy apps_st and tech_st from source application node to target application node. e.g.: $ cd /u01/oracle/PROD $ tar –cvf – apps_st | gzip | ssh –l appltest dmdev02 “( cd /u01/oracle/TEST/apps && gunzip | tar –xvf – )” 3www.orazer.com
  • 4. Steps to Clone Database 1. Change the db_name parameter in pfile that is backed up (eg: TEST to PROD) 2. Start the target db using modified pfile Sql > startup nomount pfile=’/backup/clone/initTEST.ora’ 3. Restore the controlfile from the backup of PROD RMAN> restore controlfile from ‘/backup/clone/PROD/PROD.ctl’ 4. Mount the database Sql> alter database mount 5. Once db is mounted catalog the backups copied from source. RMAN > catalog start with ‘/backup/clone/PROD/’; 4www.orazer.com
  • 5. 6. Once the backups are cataloged we can restore the database usig the PROD’s backup. But the database files are pointing to PROD’s location so it will try to restore the datafiles to PROD’s location which may not exist in target. Ex: /u01/oracle/PROD/data/system01.dbf Hence we will have to rename the datafiles to point to new(TEST) location before restoring. We can rename the files or use SET NEWNAME in RMAN before restoring. Ex: set newname for datafile 1 to ‘/u01/oracle/TEST/system.dbf’; Note : Below script can be used to create the script for “SET NEWNAME”. Change the path of target datafile location and run the script in source. select ‘set newname for datafile ‘ || file_id || ‘ to ”/u01/oracle/TEST/’ || substr(file_name,instr(file_name,’/’,-1)+1) || ”’;’ from dba_data_files; 5www.orazer.com
  • 6. 7. Restore and recover the database Ex: Rman>run { set until time “to_date(’16/07/2015 23:20:00′,’dd/mm/yyyy hh24:mi:ss’)”; set newname for datafile 1 to ‘/u01/oracle/TEST/system.dbf’; set newname for datafile 44 to ‘/u01/oracle/TEST/apps_ts_tx_data_01.dbf’; set newname for datafile 76 to ‘/u01/oracle/TEST/apps_ts_tx_idx01.dbf’; set newname for datafile 35 to ‘/u01/oracle/TEST/sysaux_01.dbf’; set newname for datafile 37 to ‘/u01/oracle/TEST/undotbs1_01.dbf’; allocate channel ch1 type disk; allocate channel ch2 type disk; restore database; switch datafile all; recover database; release channel ch1; release channel ch2; } After the database is restored and recovered then open the database using resetlogs. SQL> alter database open resetlogs; 6www.orazer.com
  • 7. Post Steps: 1. Recreate ALL the temp tablespaces. If not done then DB will not be opened after renaming. Sql> select tablespace_name from dba_tablespaces where tablespace_name like ‘%TEMP%’; TEMP TEMP1 Create a new temp tablespace create TEMPORARY TABLESPACE temp2 tempfile ‘/u01/oracle/TEST/temp2.dbf’ size 2048M; 2. Make the newly created temp tablespace as DEFAULT ALTER DATABASE DEFAULT TEMPORARY TABLESPACE temp2; 3. Drop the old temp tablespaces DROP TABLESPACE temp INCLUDING CONTENTS AND DATAFILES; DROP TABLESPACE temp1 INCLUDING CONTENTS AND DATAFILES; 7www.orazer.com
  • 8. 4. Recreate the dropped temps create TEMPORARY TABLESPACE temp tempfile ‘/u01/oracle/TEST/temp.dbf’ size 20G; create TEMPORARY TABLESPACE temp1 tempfile ‘/u01/oracle/TEST/temp1.dbf’ size 2048M; 5. Change the default temp again to old ALTER DATABASE DEFAULT TEMPORARY TABLESPACE temp; 6. Drop TEMP2 6.1 Stop the database and startup in mount mode using same modified pfile Sql> shutdown immediate; Sql > startup mount pfile=’/backup/clone/initTEST.ora’ 6.2 Change the database name to TEST nid TARGET=SYS/welcome123 DBNAME=TEST 8www.orazer.com
  • 9. 6.3 Once the database is renamed the nid command will bring down the database. Start it using the old pfile in ORACLE_HOME/dbs. (which has db_name as TEST) Sql>startup mount Sql>alter database open resetlogs; Note : Disable archive log if needed. 6.4 After db is opened, cleanup the FND NODE details using below script. Run it as apps user. SQL> conn apps/<appspwd> Connected. SQL> show user USER is “APPS” SQL> EXEC FND_CONC_CLONE.SETUP_CLEAN; commit; 6.4 Run auto-config on DB Tier after ensuring that the DB and listener are up and running. $ cd $ORACLE_HOME/appsutil/scripts/TEST_dmdev02/./ adautocfg.sh 9www.orazer.com
  • 10. Steps to Clone Application: 1. Ensure the file system copy completed successfully on the application tier. Compare the size (du –sh) output with production for same content. $ pwd /u01/oracle/TEST/apps $ du -sh apps_st tech_st 39303540 apps_st 9237724 tech_st 2. Set Primary and secondary nodes and set all Pending requests on hold. update fnd_concurrent_queues set node_name=’DMDEV02′ where node_name is not null; 3. Check the old $INST_TOP is removed completely before starting the next step. cd /u01/oracle/TEST/apps/apps_st/comn/clone/bin perl adcfgclone.pl appsTier <Path of the context_file that was saved in Pre Task B> 10www.orazer.com
  • 11. 4. Stop the concurrent managers and workflow. 5. Stop the Applications. 6. Change Apps password: FNDCPASS apps/xxx 0 Y system/xx SYSTEM APPLSYS XXX 7. Change Sysasmin password: FNDCPASS apps/xxx 0 Y system/xxx USER SYSADMIN xxx 8. Point all the fndcpesr soft links in $XX_TOP/bin to $FND_TOP/bin/fndcpesr for i in `ls -l | grep “^l” | awk ‘{print $9}’` do ln -sf $FND_TOP/bin/fndcpesr $i Done 11www.orazer.com
  • 12. 10. Run cmclean.sql 11. Run adautocfg.sh 12. Start all the services except the concurrent managers. CM’s should not be started until Security team complete their post clone activities. 13. Login to the application using login page and launch the forms. 14. Change the Site Name to the name of the current environment with information of the Refreshed time 12www.orazer.com
  • 13. Issues R12: “FRM-92101: There was a failure in the Forms Server during startup” Error When Attempting to Launch Forms (Doc ID 454427.1) The $ORACLE_HOME/lib32/ldflags was pointing to source instance(PROD) 1. Change is to point to target instance. 2. Bring down the application services. 3. Relink the forms executables. cd $ORACLE_HOME/forms/lib32 make -f ins_forms.mk install 4. Start the services 13www.orazer.com