ORA-01034: ORACLE not available


ALTER DATABASE ADD LOGFILE '/dbdata/oracle/logfile/redo01a.log' size 50M; //設置大小
 alter  database add logfile member '/dbdata/oracle/logfile/redo01a.log' to group 1;
SQL> startup
ORACLE instance started.

Total System Global Area 2471931904 bytes
Fixed Size      2255752 bytes
Variable Size   1040188536 bytes
Database Buffers  1409286144 bytes
Redo Buffers     20201472 bytes
Database mounted.
ORA-01113: file 5 needs media recovery
ORA-01110: data file 5: '/data/oracle/datafile/sunecm01.dbf'
SQL>  recover datafile  '/data/oracle/datafile/sunecm01.dbf'
ORA-01034: ORACLE not available
Process ID: 23279
Session ID: 1705 Serial number: 5


----------------重啓服務器、釋放進行------

SQL> conn / as sysdba
Connected to an idle instance.
SQL> startup
ORACLE instance started.

Total System Global Area 2471931904 bytes
Fixed Size      2255752 bytes
Variable Size   1040188536 bytes
Database Buffers  1409286144 bytes
Redo Buffers     20201472 bytes
Database mounted.
ORA-01113: file 5 needs media recovery
ORA-01110: data file 5: '/data/oracle/datafile/sunecm01.dbf'


SQL> recover datafile '/data/oracle/datafile/sunecm01.dbf'
Media recovery complete.



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章