Beruflich Dokumente
Kultur Dokumente
Step1>
NoArchive Log Mode logfile not overwritten:
SQL> startup
SQL> /
SQL>commit;
SQL> shutdown immediate
Additional information: 3
SQL> shutdown abort
ORA-00289: suggestion :
/d01/swapna/10.2.0.5/flash_recovery_area/10GDB/archivelog/2010_07_12/o1_mf_1_37_
%u_.arc
/d01/swapna/10.2.0.5/oradata/10gdb/redo01.log
ORA-00289: suggestion :
/d01/swapna/10.2.0.5/flash_recovery_area/10GDB/archivelog/2010_07_12/o1_mf_1_37_
%u_.arc
/d01/swapna/10.2.0.5/oradata/10gdb/redo03.log
Log applied.
SQL> startup
51M redo01.log
51M redo02.log
51M redo03.log
SQL> /
-----do this step multiple times
SQL> /
196608 rows created.
SQL> /
SQL> commit;
COUNT(*)
----------
393216
Connected.
COUNT(*)
----------
6
Step3>
NoArchive Log ,Redo overwritten ,Redo log file backup is available
SQL>shutdown immediate
[swapna@of20 10gdb]$ pwd
/d01/swapna/10.2.0.5/oradata/10gdb
SQL> startup
SQL> /
SQL> /
SQL> commit;
SQL> shutdown immediate
SQL> startup
Connected.
COUNT(*)
----------
6
Error:
ERROR at line 1:
ORA-00289: suggestion :
/d01/swapna/oradata/test11g/flash_recovery_area/TEST11G/archivelog/2010_07_12/o1
_mf_1_1_%u_.arc
ERROR at line 1:
solution:
above all are wrong methods
SQL>recover database using backup control file; -----this will work
Step1>
enable archive log mode:
[swapna@of20 test11g]$ mkdir archive_logs
[swapna@of20 test11g]$ cd archive_logs/
/d01/swapna/oradata/test11g/archive_logs
*.log_archive_dest_1="location=/d01/swapna/oradata/test11g/archive_logs"
:wq!
SQL> create spfile from pfile;
Step2>
I)Loss of System tablespace
SQL> shutdown immediate
SQL> startup
Step3>
II)Non-System datafile loss(Do not Shut)
SQL> startup
Connected.
ERROR at line 1:
Additional information: 3
SQL> startup
SQL> conn swapna/swapna123
Connected.
Step4>
III)ArchiveLog mode,non-system datafile loss and initially closed ,Open database
continue step3 upto remove the datafile
[swapna@of20 test11g]$ rm -rf ts1df.dbf ts1df.dbf
SQL> shutdown abort
Database altered.
Connected.
COUNT(*)
----------
393216
Step5>
IV)Archivelog mode,No backup of datafile
Tablespace created.
User created.
SQL> grant connect,resource to test;
Grant succeeded.
SQL>conn test/test123
create table and insert values
SQL> select count(*) from a;
COUNT(*)
----------
2621440
Database altered.
Database altered.
Connected.
COUNT(*)
----------
2621440
Archive log mode control file recovery
Step1>
Archive Log ,Control File lost with backup
[swapna@of20 test11g]$ cp -Rp * /d01/swapna/bkp/
SQL>startup
do some transactions in database
SQL> select count(*) from a;
COUNT(*)
----------
2621440
SQL> delete a;
SQL>/
SQL> select count(*) from a;
COUNT(*)
----------
3145728
ERROR at line 1:
ORA-00205: error in identifying control file, check alert log for more info
ERROR at line 1:
1190
Database altered.
/d01/swapna/oradata/test11g/redo01.log
/d01/swapna/oradata/test11g/redo03.log
Log applied.
Connected.
Step2>
Archive Log,Control File without backup
[swapna@of20 test11g]$ cp -Rp * /d01/swapna/bkp/
SQL>startup
do some transaction in database
SQL> delete a where a=3;
SQL> commit;
Database altered.
:wq!
SQL> startup nomount
SQL> @/d01/swapna/diag/rdbms/test11g/test11g/trace/createcontrol.sql
Database altered.
Connected.
A NAME
---------- -----
3 a3