Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
11Activity
0 of .
Results for:
No results containing your search query
P. 1
How to clone a Windows database

How to clone a Windows database

Ratings:

4.0

(1)
|Views: 789 |Likes:
Published by SHAHID FAROOQ

More info:

Published by: SHAHID FAROOQ on Aug 29, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

09/11/2010

pdf

text

original

 
How to clone a Windows database
Oracle Tips by Burleson Consulting May 3, 2008
Question:
How can I copy my Oracle database from one Windows machine to another? Is copying the same ascloning?
Answer:
Yes, copying and cloning are synonymous, and there are several ways to copy a database:
RMAN restore to new server 
DataPump (export. import)
File cloning (the fastest method)Common reasons for copying a Windows database include creating a testing and development instance andcopying a production Windows database for ease by reporting. Here is a generic clone procedure that works onall OS environments, and is a fast way to copy a Windows Oracle database from one machine to another:
Cloning a RAC Windows databaseFor HA systems, there is a minimum downtime approach to copying a Windows instance:
Super-fast cloning of a Windows databaseSee these related notes on copying Windows databases:
Super fast Database Copying/Cloning
Oracle Tips by Burleson Consulting 
A database cloning procedure is especially useful for the DBA who wants to give his developers a full-sizedTEST and DEV instance by cloning the PROD instance into the development server areas.This Oracle clone procedure can be use to quickly migrate a system from one UNIX server to another. It clonesthe Oracle database and this Oracle cloning procedures is often the fastest way to copy a Oracle database.
STEP 1:
On the old system, go into SQL*Plus, sign on as SYSDBA and issue: “alter database backupcontrolfile to trace”. This will put the create database syntax in the trace file directory. The trace keyword tells
 
oracle to generate a script containing a create controlfile command and store it in the trace directory identifiedin the user_dump_dest parameter of the init.ora file. It will look something like this:
STARTUP NOMOUNTCREATE CONTROLFILE REUSE DATABASE "OLDLSQ" NORESETLOGSNOARCHIVELOGMAXLOGFILES 16MAXLOGMEMBERS 2MAXDATAFILES 240MAXINSTANCES 1MAXLOGHISTORY 113LOGFILEGROUP 1 ('/u03/oradata/oldlsq/log1a.dbf','/u03/oradata/olslsq/log1b.dbf') SIZE 30M,GROUP 2 ('/u04/oradata/oldlsq/log2a.dbf','/u04/oradata/oldlsq/log2b.dbf') SIZE 30MDATAFILE'/u01/oradata/oldlsq/system01.dbf','/u01/oradata/oldlsq/mydatabase.dbf';# Recovery is required if any of the datafiles are restored# backups, or if the last shutdown was not normal or immediate.RECOVER DATABASE# Database can now be opened normally.ALTER DATABASE OPEN;
 
STEP 2:
Shutdown the old database
STEP 3:
Copy all data files into the new directories on the new server. You may change the file names if youwant, but you must edit the controlfile to reflect the new data files names on the new server.
rcp /u01/oradata/oldlsq/* newhost:/u01/oradata/newlsqrcp /u01/oradata/oldlsq/* newhost:/u01/oradata/newlsqrcp /u03/oradata/oldlsq/* newhost:/u03/oradata/newlsqrcp /u04/oradata/oldlsq/* newhost:/u04/oradata/newlsq
 
STEP 4:
Copy and Edit the Control file – Using the output syntax from STEP 1, modify the controlfile creationscript by changing the following:Old:
CREATE CONTROLFILEREUSE DATABASE "OLDLSQ"NORESETLOGS
 New:
CREATE CONTROLFILESET DATABASE "NEWLSQ"RESETLOGS
STEP 5:
Remove the “recover database” and “alter database open” syntax
# Recovery is required if any of the datafiles are restored# backups, or if the last shutdown was not normal or immediate.RECOVER DATABASE# Database can now be opened normally.ALTER DATABASE OPEN;
 
STEP 6
: Re-names of the data files names that have changed.Save as
db_create_controlfile.sql.
Old:
 
DATAFILE'/u01/oradata/oldlsq/system01.dbf','/u01/oradata/oldlsq/mydatabase.dbf'
 New:
DATAFILE'/u01/oradata/newlsq/system01.dbf','/u01/oradata/newlsq/mydatabase.dbf'
STEP 7:
Create the bdump, udump and cdump directories
cd $DBA/adminmkdir newlsqcd newlsqmkdir bdumpmkdir udumpmkdir cdumpmkdir pfile
STEP 8:
Copy-over the old init.ora file
rcp $DBA/admin/olslsq/pfile/*.ora newhost:/u01/oracle/admin/newlsq/pfile
STEP 9:
Start the new database
@db_create_controlfile.sql
STEP 10:
Place the new database in archivelog mode
Cloning a large RAC database
 
Oracle
Tips by Steve Karam
Question:
We have a specific need to clone a RAC database that is in archivelog mode and is up and runningand is about 2 terabytes. We’ve been able to clone the smaller databases in archivelog mode with little impacton the database being cloned and would like to use this option for the multi terabyte RAC clusters database.How do you clone a large multi terabyte RAC database?
Answer:
Oracle's Grid Control uses the RMAN DUPLICATE feature in order to do its RAC cloning. ThisRMAN feature uses a database backup as the basis for the cloning procedure. The backup is transferred andrestored on another server and put into action.Unfortunately, the only real way to customize a large RAC clone with RMAN this is to allocate more channels.You can run the DUPLICATE command on your own in RMAN, without using RAC Grid Control. When youdo so, just specify multiple AUXILIARY channels of device type DISK. The more you specify, the faster your duplicate will take place. You can find a better description of RMAN terminology (including how channelswork)here. 

Activity (11)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads
bondexo liked this
stardanish9114 liked this
junaid9900 liked this
shekar_bandi liked this
joselara19 liked this
nikhildr086 liked this
chavandilip liked this
satyam1520 liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->