WITHOUT A BACKUP / RECOVERY DATAFILE


rrrrr
SQL> ALTER TABLESPACE table_data OFFLINE IMMEDIATE; 

SQL> SELECT * FROM v$recover_file;
FILE# ONLINE ERROR CHANGE# TIME
----- ------- -------------- ------- ----
4 OFFLINE FILE NOT FOUND 0

SQL> ALTER DATABASE create datafile ‘/disk2/DATA/df4.dbf’  as ‘/disk1/DATA/df4.dbf‘;    --- create new datafile
Database altered.

SQL> SELECT * FROM v$recover_file;
FILE# ONLINE ERROR CHANGE# TIME
----- ------- ------------------ ---------- ------
4 OFFLINE 248621 18-NOV-13

SQL> RECOVER TABLESPACE table_data;

SQL> ALTER TABLESPACE table_data ONLINE;
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: