Professional Documents
Culture Documents
Introduction
This document describe steps to refresh database development from production, this way can work on
RAC environment as well.
Environment:-
Production: -
Oracle Database 11.2.0.3
Operating system: Oracle Linux 6.4
Development:-
Oracle Database 11.2.0.3
Operating system: Oracle Linux 6.4
Software needed:-
Osama Mustafa has progressive experience in Oracle Products, community. He recently served as
Oracle Database Administrator.
Provide Database Implementation Solutions, High Availability Solution, Infrastructure and Storage
Planning, Install, Configure, Implement and manage Oracle E-Business Suite environments. Architect,
build and support highly-available Oracle EBS, Database and Fusion Middleware environments including
appropriate reporting, Installs, configures, upgrades, tunes, and maintains production, development and
test databases.
He entered Oracle ACE Program in 2013, he is author for the book Oracle Penetration Testing, Osama
Mustafa Certified OCP 10g,11g, Linux Implementations , Certified Ethical hacker and LPT , and Solaris
Administrator.
Include to all this Osama Mustafa is international Speaker in Oracle User Group and Oracle OTN Tour,
Published Online Articles in His blog about Oracle Technology, Volunteer in Oracle User Group such as
IOUG, ODTUG and UKOUG , Volunteer Board member in RACSIG and Organizer for RACATTACK
Event around the world. Recently his article has been published on OTECH magazine about Real
Application Cluster Here.
Twitter: @OsamaOracle
G+: Osama Mustafa
SlidShare: Osama Mustafa
LinkedIn: http://www.linkedin.com/in/osamamustafa
Blog: https://osamamustafa.blogpsot.com.
Open this trace file and copy all its contents to notepad++ on your desktop machine.
Step #4: Now Create backup folder called BKP_FOLDER and Copy All the Data files And Redo
Logs to this Directory, once copy is done Run the following command :-
Create another ARCH_FOLDER and Copy All Archives log that generated in the same day to
this folder if your database run No Archive mode skip this step.
Note: Rename the directory that containing all data files, Redo logs and control files and
create new directory with the same name.
Step #6: Copy Backup (from production) to Test Server (New Folder).
Copy all the data files, Redo logs from BKP_Folder on production to Directory on
Test Server Dont Copy Control file
Now Copy all The Archives Logs from Production Arch_Folder to same directory
on test.
TO
If you take the controlfile From RAC remove all the lines contains Logfile Thread 2.
Now your Controlfile is ready and check the permission of Datafiles please.
Step #8: Before Run the Script Make sure that Parameter files log_archive_format Same
as Production. If you dont use Archive mode forget it.
In this step it will ask you about Archive log Do you remember why we copied archive
from production to Test indicate the location, if its keep asking them apply the
archive log one by one till you receive Media recovery cancelled. or Media recovery
complete., it means recovery is successful.
If the above command not working set the following parameter to True
_no_recovery_through_resetlogs=TRUE
Step #10: Disable Thread 2 on Database (if you are using RAC).
Then