Tablaspace recovery [message #244521] |
Wed, 13 June 2007 03:08 |
Arju
Messages: 1554 Registered: June 2007 Location: Dhaka,Bangladesh. Mobile:...
|
Senior Member |
|
|
I have backup of tablespace data02 image copy named '/oradata/THERAP/datafile/o1_mf_data02_36tbsz3l_.dbf'
And my current database tablespace of data02 is in
'/oradata/oradata/THERAP/data02.dbf'
I have then deleted tablespace data02 including datafiles, contents and cascade contraints.
Now I need to recover my tablespace in prior time which I mean to go in state 'sysdate-2'....
I followed following steps but it does not work...
1. I created new tablespace named data02 and datafile in '/oradata/oradata/THERAP/data02.dbf'
2. Then I invoked following command,
run{
set newname for datafile '/oradata/oradata/THERAP/data02.dbf'
to '/oradata/THERAP/datafile/o1_mf_data02_36tbsz3l_.dbf'
recover tablespace data02 until time 'SYSDATE-2'
auxiliary destination '/oradata';
}
But it does not work.
Please anyone of you can give me solution how I can get back my tablespace data02...............
[Updated on: Wed, 13 June 2007 03:10] Report message to a moderator
|
|
|
|
Re: Tablaspace recovery [message #244633 is a reply to message #244521] |
Wed, 13 June 2007 10:07 |
DreamzZ
Messages: 1666 Registered: May 2007 Location: Dreamzland
|
Senior Member |
|
|
run{
set newname for datafile '/oradata/oradata/THERAP/data02.dbf'
to '/oradata/THERAP/datafile/o1_mf_data02_36tbsz3l_.dbf'
recover tablespace data02 until time 'SYSDATE-2'
auxiliary destination '/oradata';
}
try this command
run {
set newname for datafile '/oradata/oradata/THERAP/data02.dbf'
to '/oradata/THERAP/datafile/o1_mf_data02_36tbsz3l_.dbf'
restore tablespace DATA;
switch datafile all;
recover tablespace DATA;
}
[Updated on: Wed, 13 June 2007 10:21] Report message to a moderator
|
|
|
|
|
|
|
|
|
Re: Tablaspace recovery [message #244776 is a reply to message #244744] |
Thu, 14 June 2007 01:44 |
|
Michel Cadot
Messages: 68731 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
I didn't follow this thread as I saw DreamzZ answered you and his advices in this matter are almost always pretty good.
In this case, I would try exactly what he said.
What I can add is what RMAN already said you: a ";" is missing at the end of "set newname" statement.
Regards
Michel
|
|
|