Home » RDBMS Server » Server Administration » Restore the data from datafile
Restore the data from datafile [message #60200] Fri, 23 January 2004 02:01 Go to next message
K. Prakash babu
Messages: 46
Registered: July 2001
Member
Hi friends,

I have performed a cold backup and got the datafile 'df1.dbf' from database(X1).

How can i restore the data in a seperate database(X2) using 'df1.dbf'.

Please give me the solution... it is very urgent.

Thanks in Advance
-Prakash
Re: Restore the data from datafile [message #60201 is a reply to message #60200] Fri, 23 January 2004 02:22 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
i beleive,
you cannot plug datafile df1.dbf ( from X1) into X2.
You need to recreate the whole database ( using cold backup of X1).
It is different case when u transportable tablespaces ( eventhough u cannot do things with offline cold backup).
Re: Restore the data from datafile [message #60204 is a reply to message #60201] Fri, 23 January 2004 02:34 Go to previous message
satish
Messages: 112
Registered: September 2000
Senior Member
It is not like sql server, attaching/detaching datafiles.

you need to take cold backup of log files, control files, and datafiles.

then use the control file creation script and make appropriate changes in it, then run the server manager/sqlplus with this script.

sample control file script:

STARTUP NOMOUNT
CREATE CONTROLFILE REUSE DATABASE "x2" NORESETLOGS NOARCHIVELOG
MAXLOGFILES 5
MAXLOGMEMBERS 3
MAXDATAFILES 100
MAXINSTANCES 1
MAXLOGHISTORY 170
LOGFILE
GROUP 1 'D:DBDATAREDO01.LOG' SIZE 100M,
GROUP 2 'D:DBDATAREDO02.LOG' SIZE 100M,
GROUP 3 'D:DBDATAREDO03.LOG' SIZE 100M
DATAFILE
'D:DBDATASYSTEM01.DBF',
'D:DBDATAUNDOTBS01.DBF',
'D:DBDATAINDX01.DBF',
'D:DBDATATOOLS01.DBF',
'D:DBDATAUSERS01.DBF'
CHARACTER SET WE8MSWIN1252
;
RECOVER DATABASE;
ALTER DATABASE OPEN;
Previous Topic: Scan alert log and if error found, send alert email
Next Topic: Migration from8i to 9i
Goto Forum:
  


Current Time: Fri Sep 20 10:32:16 CDT 2024