Problems while Restoring Hot Backup [message #203120] |
Mon, 13 November 2006 23:33 |
ashok1784
Messages: 3 Registered: November 2006
|
Junior Member |
|
|
Hi All,
I am new to Oracle, so i am doing lot of R&D in oracle.I face a problem while restoring from backup. i will list the steps which i followed to take backup and restore it.
There is a tablespace called as ashok.
Inside the tablespace there is a table called as Test.
Step 1:
alter tablespace ashok begin backup;
Step 2:
select * from v$backup;
FILE# STATUS CHANGE# TIME
---------- ------------------ ---------- ---------
1 NOT ACTIVE 0
2 NOT ACTIVE 0
3 ACTIVE 1916776 14-NOV-06
4 NOT ACTIVE 0
5 ACTIVE 1916776 14-NOV-06
Step 3:
Used os command to copy the datafile used by the tablespace ashok.Note tablespace ashok uses only one datafile.
Step 4.1:
SQL> select TABLESPACE_NAME,TABLE_NAME from dba_tables where TABLESPACE_NAME='ASHOK';
TABLESPACE_NAME TABLE_NAME
------------------------------ ------------------------------
ASHOK TEST
Step 4.2:
alter tablespace ashok end backup;
Step 5:
Shut immediate
Step 6: startup mount;
Step 7: alter database rename file '/local-prd/u01/ashok.dbf' to /local-prd/u02/ashokbackup.dbf'
Step 8: recover tablespace ashok;
Step 9: alter database open;
Step 10:
SQL> select TABLESPACE_NAME,TABLE_NAME from dba_tables where TABLESPACE_NAME='ASHOK';
no rows selected
Please Guide me where i have gone wrong.
Thanks in advance.
My maid id is ashok1784@gmail.com
|
|
|
|
Re: Problems while Restoring Hot Backup [message #203155 is a reply to message #203148] |
Tue, 14 November 2006 02:24 |
ashok1784
Messages: 3 Registered: November 2006
|
Junior Member |
|
|
Hi Mohamad,
I actually created a table inside the tablespace and took a backup of that tablespace. After taking the backup of the tablespace i dropped the table which i had created earlier.
So backed up datafile should contain the table and the existing datafile which is under use by the tablespace should not contain the table.
Correct me if iam wrong.
Problem which i am facing is that after renaming the file for the tablespace still then i dont find table.
Note i have followed the same steps as mentioned by you in the previous post.
Thanks
Ashok.R
|
|
|
|
|
Re: Problems while Restoring Hot Backup [message #204206 is a reply to message #203157] |
Sun, 19 November 2006 00:20 |
parthokonar
Messages: 17 Registered: September 2006 Location: india
|
Junior Member |
|
|
I think when you create a table and enter some data in the table before making the tablespace into begin backup mode and copy the concerned datafiles with o/s, you go for some 'alter system checkpoint','alter system switch logfile'command so that the data is been recorded in the redolog files, thus in the archive logs. Well this may help you
|
|
|