Professional Documents
Culture Documents
11gdatabase Offline Cloning
11gdatabase Offline Cloning
11g
ORACLE DATABASE
CLONING(OFFLINE)
BY
NARASIMHARAO,
ORAFACT INC,.
ORAFACT
INDEX
Table of Contents
11g database Off line Cloning :..................................................................................................................3
Copy the environment file source to target ..........................................................................................3
Create directres in Oracle base:.................................................................................................................4
First goto admin directre......................................................................................................................4
Goto cfgtoollogs directre.....................................................................................................................4
Go to diag directre...............................................................................................................................5
Go to flash_recovery_area directre...................................................................................................6
Go to oradata directre........................................................................................................................6
Creating pfile:...........................................................................................................................................7
Generate the control script :..................................................................................................................7
Then generate the control script using ..............................................................................................8
Edit trace file ........................................................................................................................................8
Execute control script:...........................................................................................................................9
Add one temp table space ...................................................................................................................10
Checking the instance:.............................................................................................................................11
ORAFACT
ORAFACT
ORAFACT
Go to diag directre
[root@of30 narasimha]# cd diag/
[root@of30 diag]# ls
asm clients crs diagtool lsnrctl netcman ofm rdbms tnslsnr
In that we create one directre only in RDBMS
[root@of30 diag]# cd rdbms/
[root@of30 rdbms]# ls
ofdb prod
[root@of30 rdbms]# mkdir clondb
[root@of30 rdbms]# ls
clondb ofdb prod
In that clondb we can create one clondb
5
ORAFACT
Go to flash_recovery_area directre
[root@of30 narasimha]# cd flash_recovery_area/
[root@of30 flash_recovery_area]# ls
DEV OFDB PROD
[root@of30 flash_recovery_area]# mkdir CLONDB
[root@of30 flash_recovery_area]# ls
CLONDB DEV OFDB PROD
Go to oradata directre
[root@of30 narasimha]# cd oradata/
[root@of30 oradata]# ls
dev ofdb prod
[root@of30 oradata]# mkdir clondb
[root@of30 oradata]# ls
clondb dev ofdb prod
ORAFACT
Creating pfile:
go to $ORACLE_HOME/dbs
in dbs directre spfile is there, we can create pfile using spfile
SQL> create pfile from spfile:
File created.
Edit the pfile where ofdb is there change the clondb and check the locations of control files.
Move to initofdb.ora to initclondb.ora
[root@of30 dbs]# vi initofdb.ora
[root@of30 dbs]# mv initofdb.ora initclondb.ora
ORAFACT
/d01/narasimha/create_clondb.sql
ORAFACT
2151000 bytes
Variable Size
515902888 bytes
Database Buffers
520093696 bytes
Redo Buffers
5738496 bytes
SQL> @/d01/narasimha/createclon.sql
Database altered
ORAFACT
STATUS
INSTANCE_NAME
------------ ---------------OPEN
clondb
10
ORAFACT