SlideShare uma empresa Scribd logo
1 de 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

Mais conteúdo relacionado

Mais procurados

Dataguard presentation
Dataguard presentationDataguard presentation
Dataguard presentationVimlendu Kumar
 
Comparison of ACFS and DBFS
Comparison of ACFS and DBFSComparison of ACFS and DBFS
Comparison of ACFS and DBFSDanielHillinger
 
Oracle dataguard overview
Oracle dataguard overviewOracle dataguard overview
Oracle dataguard overviewaguswahyudi09
 
10 ways to improve your rman script
10 ways to improve your rman script10 ways to improve your rman script
10 ways to improve your rman scriptMaris Elsins
 
Oracle Active Data Guard: Best Practices and New Features Deep Dive
Oracle Active Data Guard: Best Practices and New Features Deep Dive Oracle Active Data Guard: Best Practices and New Features Deep Dive
Oracle Active Data Guard: Best Practices and New Features Deep Dive Glen Hawkins
 
EBS-technical_upgrade_best_practices 12.1 or 12.2
EBS-technical_upgrade_best_practices 12.1 or 12.2EBS-technical_upgrade_best_practices 12.1 or 12.2
EBS-technical_upgrade_best_practices 12.1 or 12.2Berry Clemens
 
Oracle Applications R12 architecture
Oracle Applications R12 architectureOracle Applications R12 architecture
Oracle Applications R12 architectureSekhar Byna
 
Oracle R12 EBS Performance Tuning
Oracle R12 EBS Performance TuningOracle R12 EBS Performance Tuning
Oracle R12 EBS Performance TuningScott Jenner
 
Oracle backup and recovery
Oracle backup and recoveryOracle backup and recovery
Oracle backup and recoveryYogiji Creations
 
Backup and recovery in oracle
Backup and recovery in oracleBackup and recovery in oracle
Backup and recovery in oraclesadegh salehi
 
Understand oracle real application cluster
Understand oracle real application clusterUnderstand oracle real application cluster
Understand oracle real application clusterSatishbabu Gunukula
 
AutoUpgrade and Best Practices
AutoUpgrade and Best PracticesAutoUpgrade and Best Practices
AutoUpgrade and Best PracticesJitendra Singh
 
Database Cloud Services Office Hours - 0421 - Migrate AWS to OCI
Database Cloud Services Office Hours - 0421 - Migrate AWS to OCIDatabase Cloud Services Office Hours - 0421 - Migrate AWS to OCI
Database Cloud Services Office Hours - 0421 - Migrate AWS to OCITammy Bednar
 
Counting -cycle_count_using_mobile_application
Counting  -cycle_count_using_mobile_applicationCounting  -cycle_count_using_mobile_application
Counting -cycle_count_using_mobile_applicationmanitenkasi
 
Oracle Performance Tuning Fundamentals
Oracle Performance Tuning FundamentalsOracle Performance Tuning Fundamentals
Oracle Performance Tuning FundamentalsEnkitec
 
Oracle database hot backup and recovery
Oracle database hot backup and recoveryOracle database hot backup and recovery
Oracle database hot backup and recoveryArun Sharma
 
Redefining tables online without surprises
Redefining tables online without surprisesRedefining tables online without surprises
Redefining tables online without surprisesNelson Calero
 

Mais procurados (20)

Dataguard presentation
Dataguard presentationDataguard presentation
Dataguard presentation
 
Comparison of ACFS and DBFS
Comparison of ACFS and DBFSComparison of ACFS and DBFS
Comparison of ACFS and DBFS
 
Data Guard Architecture & Setup
Data Guard Architecture & SetupData Guard Architecture & Setup
Data Guard Architecture & Setup
 
Oracle dataguard overview
Oracle dataguard overviewOracle dataguard overview
Oracle dataguard overview
 
10 ways to improve your rman script
10 ways to improve your rman script10 ways to improve your rman script
10 ways to improve your rman script
 
Oracle Active Data Guard: Best Practices and New Features Deep Dive
Oracle Active Data Guard: Best Practices and New Features Deep Dive Oracle Active Data Guard: Best Practices and New Features Deep Dive
Oracle Active Data Guard: Best Practices and New Features Deep Dive
 
High Performance PL/SQL
High Performance PL/SQLHigh Performance PL/SQL
High Performance PL/SQL
 
EBS-technical_upgrade_best_practices 12.1 or 12.2
EBS-technical_upgrade_best_practices 12.1 or 12.2EBS-technical_upgrade_best_practices 12.1 or 12.2
EBS-technical_upgrade_best_practices 12.1 or 12.2
 
Oracle Applications R12 architecture
Oracle Applications R12 architectureOracle Applications R12 architecture
Oracle Applications R12 architecture
 
Convert single instance to RAC
Convert single instance to RACConvert single instance to RAC
Convert single instance to RAC
 
Oracle R12 EBS Performance Tuning
Oracle R12 EBS Performance TuningOracle R12 EBS Performance Tuning
Oracle R12 EBS Performance Tuning
 
Oracle backup and recovery
Oracle backup and recoveryOracle backup and recovery
Oracle backup and recovery
 
Backup and recovery in oracle
Backup and recovery in oracleBackup and recovery in oracle
Backup and recovery in oracle
 
Understand oracle real application cluster
Understand oracle real application clusterUnderstand oracle real application cluster
Understand oracle real application cluster
 
AutoUpgrade and Best Practices
AutoUpgrade and Best PracticesAutoUpgrade and Best Practices
AutoUpgrade and Best Practices
 
Database Cloud Services Office Hours - 0421 - Migrate AWS to OCI
Database Cloud Services Office Hours - 0421 - Migrate AWS to OCIDatabase Cloud Services Office Hours - 0421 - Migrate AWS to OCI
Database Cloud Services Office Hours - 0421 - Migrate AWS to OCI
 
Counting -cycle_count_using_mobile_application
Counting  -cycle_count_using_mobile_applicationCounting  -cycle_count_using_mobile_application
Counting -cycle_count_using_mobile_application
 
Oracle Performance Tuning Fundamentals
Oracle Performance Tuning FundamentalsOracle Performance Tuning Fundamentals
Oracle Performance Tuning Fundamentals
 
Oracle database hot backup and recovery
Oracle database hot backup and recoveryOracle database hot backup and recovery
Oracle database hot backup and recovery
 
Redefining tables online without surprises
Redefining tables online without surprisesRedefining tables online without surprises
Redefining tables online without surprises
 

Semelhante a 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 cloneDeepti 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 cloneDeepti Singh
 
Rman cloning guide
Rman cloning guideRman cloning guide
Rman cloning guideAmit87_dba
 
2011 384 hackworth_ppt
2011 384 hackworth_ppt2011 384 hackworth_ppt
2011 384 hackworth_pptmaclean liu
 
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 windowsRoo Wall
 
Oracle data guard configuration in 12c
Oracle data guard configuration in 12cOracle data guard configuration in 12c
Oracle data guard configuration in 12cuzzal basak
 
Kp.3 pengaturan sistem dan user
Kp.3 pengaturan sistem dan userKp.3 pengaturan sistem dan user
Kp.3 pengaturan sistem dan userDesty Yani
 
oracle upgradation
oracle upgradationoracle upgradation
oracle upgradationinfluxbob
 
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 SetupArun Sharma
 
br_test_lossof-datafile_10g.doc
br_test_lossof-datafile_10g.docbr_test_lossof-datafile_10g.doc
br_test_lossof-datafile_10g.docLucky Ally
 
Standby db creation commands
Standby db creation commandsStandby db creation commands
Standby db creation commandsPiyush Kumar
 
Scripts related to temp tablespace
Scripts related to temp tablespaceScripts related to temp tablespace
Scripts related to temp tablespaceSoumya Das
 
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 databaseJorge Batista
 
Cloning database using srdf copy
Cloning database using srdf copyCloning database using srdf copy
Cloning database using srdf copyAmit Vashishth
 

Semelhante a 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
 

Último

Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
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...Enterprise Knowledge
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
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...Martijn de Jong
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
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...Neo4j
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
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 textsMaria Levchenko
 
[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.pdfhans926745
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
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 RobisonAnna Loughnan Colquhoun
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 

Último (20)

Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
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...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
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...
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
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...
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
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
 
[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
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
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
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer 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