Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
structure.
This is very common to restore our database from one system to another system with the same
database name but having different directory structure. I try to do it with cold backup. I am
using windows XP and oracle 10.2.0
Enter password:
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
FILE_NAME
------------------------------------------------------------------
D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\USERS01.DBF
D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSAUX01.DBF
D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\UNDOTBS01.DBF
D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF
3.) Now copy your datafiles, controlfile, redolog file and pfile to the destination system using
os copy command at place where you want it.
4.) At destination system first to create instance using (only in case of windows OS)
In linux it is should be at
D:\oracle\product\10.2.0\db_1\dbs\initorcl.ora
6.) Here a little change is required. I am changing only place of my datafiles, controlfile,
redolog file so in iniorcl.ora file I change accordingly. rest of the parameters like bdump,
adump etc are same as source database
control_files='D:\oracle\product\10.2.0/oradata/control01.ctl','D:\oracle\product\10.2.0/oradat
a/control02.ctl','D:\oracle\product\10.2.0/oradata/control03.ctl'
control_files='D:\oracle\product\10.2.0/oradata/orcl/control01.ctl','D:\oracle\product\10.2.0/or
adata/ orcl/control02.ctl','D:\oracle\product\10.2.0/oradata/orcl/control03.ctl'
Now you can read the path for datafiles, controlfile, redolog which we need to change.
FILE_NAME
------------------------------------------------------------------
D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\USERS01.DBF
D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSAUX01.DBF
D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\UNDOTBS01.DBF
D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF
MEMBER
------------------------------------------------------------------
D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO03.LOG
D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO02.LOG
D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO01.LOG
NAME
--------------------------------------------------------------------------------
D:\ORACLE\PRODUCT\10.2.0\ORADATA\SYSTEM01.DBF
D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\UNDOTBS01.DBF
D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSAUX01.DBF
D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\USERS01.DBF
Database altered.
Database altered.
Database altered.
Database altered.
Database altered.
Database altered.