How do you recover a datafile that has not been physically
been backed up since its creation and has been deleted.
Provide syntax example.
Answers were Sorted based on User's Feedback
Answer / bharath
Perform below steps
1) alter database datafile < file_id> offline;
2) alter database create datafile <file_id>;
3) recover datafile <file_id>;
4) alter database datafile <file_id> online;
Is This Answer Correct ? | 13 Yes | 0 No |
Answer / mallesh
To create datafile,we need the current controlfile or buckup controlfile that recognises the new datafile that was added.
we go to mount stage and create new datafile using command
syntax:
>alter database create datafile;
>alter tablespace <tsname> add datafile '<location>' size;
>alter system switch logfile;
Is This Answer Correct ? | 4 Yes | 3 No |
Answer / shiva
>alter database create datafile < path>;
> alter database recover automatic datafile < path> /<file_id>
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / nehru
>alter database create datafile 'old path' as 'new path' size
>recover datafile 'datafile id';
Is This Answer Correct ? | 0 Yes | 0 No |
What query tells you how much space a tablespace named "test" is taking up, and how much space is remaining?
what r the types of backup?
What are statistics, under what circumstances they go out of date, how do you update them?
Give the stages of instance startup to a usable state where normal users may access it.
How many packages we have in db
What is the default port no on which sql server listens? : sql server DBA
how will you see when the database was started using sql prompt?
How many memory layers are in the shared pool?
how to restore files with rman?
what is the diffrence between core dba and apps dba?
Database crashes. Corruption is found scattered among the file system neither of your doing nor of Oracle's. What database recovery options are available? Database is in archive log mode.
hi, how can i check all backups are exist to restore? I.e. i forget to take backup on one day. But now i want to check that all backups are there to restore now. I know the answer of through timestamps we know how to check. But i need any other way?