Professional Documents
Culture Documents
Recovering The Database If System Datafile Is Lost or
Recovering The Database If System Datafile Is Lost or
Rate This
/home/oracle/rub/datafiles/system01.dbf
/home/oracle/rub/datafiles/undotbs1.dbf
/home/oracle/rub/datafiles/sysaux01.dbf
/home/oracle/rub/datafiles/users01.dbf
SQL> select name from v$controlfile;
NAME
/home/oracle/rub/control/c1.ctl
SQL> alter tablespace system begin backup;
Tablespace altered.
SQL> alter tablespace undotbs1 begin backup;
Tablespace altered.
SQL> alter tablespace sysaux begin backup;
Tablespace altered.
SQL> alter tablespace users begin backup;
Tablespace altered.
SQL> !
[oracle@reddy ~]$ mkdir backup
[oracle@reddy ~]$ cd rub/
[oracle@reddy rub]$ cd control/
[oracle@reddy control]$ ls
c1.ctl
[oracle@reddy control]$ cp c1.ctl /home/oracle/backup/
[oracle@reddy control]$ cd ..
[oracle@reddy rub]$ cd datafiles/
[oracle@reddy datafiles]$ ls
redo01.log redo02.log sysaux01.dbf system01.dbf temp01.dbf undotbs1.dbf
users01.dbf
[oracle@reddy datafiles]$ cp *.dbf /home/oracle/backup/
[oracle@reddy datafiles]$ cd ..
[oracle@reddy rub]$ cd archive/
[oracle@reddy archive]$ ls
[oracle@reddy archive]$ cd $ORACLE_HOME/dbs
[oracle@reddy dbs]$ ls
initrub.ora spfilerub.ora
[oracle@reddy dbs]$ cp initrub.ora /home/oracle/backup/
[oracle@reddy dbs]$ cp spfilerub.ora /home/oracle/backup/
[oracle@reddy dbs]$ cd /home/oracle/backup/
[oracle@reddy backup]$ ls
c1.ctl initrub.ora sysaux01.dbf system01.dbf temp01.dbf undotbs1.dbf
users01.dbf spfilerub.ora