ora0-00376: "file '/data1/oradata/e_data1.dbf' cannot be read at this time"
重啟資料庫沒有問題,資料檔案都能開啟。
[oracle@game ~]$ oerr ora 376
00376, 00000, "file %s cannot be read at this time"
// *cause: attempting to read from a file that is not readable. most likely
// the file is offline.
// *action: check the state of the file. bring it online
[oracle@game ~]$
經檢查,作業系統下資料檔案屬性正常,磁碟空間正常。
懷疑資料檔案有問題:
sql> select file#,status from v$datafile;
file# status
---------- -------
1 system
2 online
3 online
4 online
5 recover
6 online
7 online
8 online
8 rows selected.
果然檔案5狀態為recover,看來得手工恢復該檔案了。
經確認,資料庫未曾備份,但是歸檔重來沒有刪除過,恢復應該沒有問題。
sql> shutdown immediate
database closed.
database dismounted.
oracle instance shut down.
sql> startup mount
ora-32004: obsolete and/or deprecated parameter(s) specified
oracle instance started.
total system global area 285212672 bytes
fixed size 1218968 bytes
variable size 121636456 bytes
database buffers 155189248 bytes
redo buffers 7168000 bytes
database mounted.
sql> recover datafile 5;
ora-00279: change 357661111 generated at 10/14/2008 16:56:30 needed for thread
1ora-00289: suggestion :
ora-00280: change 357661111 for thread 1 is in sequence #3531
specify log:
auto --這裡輸入auto
ora-00279: change 357662213 generated at 10/14/2008 16:59:49 needed for thread
1ora-00289: suggestion :
ora-00280: change 357662213 for thread 1 is in sequence #3532
ora-00278: log file
needed for this recovery
media recovery complete.
sql> alter database datafile '/data1/oradata/e_data1.dbf' online;
database altered.
sql> alter database open;
database altered.
sql> select file#,status from v$datafile;
file# status
---------- -------
1 system
2 online
3 online
4 online
5 online
6 online
7 online
8 online
8 rows selected.
現在再檢索資料,已經沒有問題了。
關於ORACLE ora00600錯誤
由於伺服器突然斷電,導致開機時oracle服務無法啟動,出現ora00600錯誤 1 在執行欄輸入cmd 2 c documents and settings administrator sqlplus 3 輸入使用者名稱 使用者名稱 as sysdba 輸入口令 密碼 4 輸入 startup。出...
Oracle ORA 01555 快照過舊
一 引言 oracle yft yft oerr ora 01555 01555,00000,snapshot too old rollback segment number s with name s too small cause rollback records needed by a rea...
Oracle ora 00257 刪除歸檔日誌
select from v flash recovery area usage select sum percent space used 3 100 from v flash recovery area usag show parameter recove rman target sys sys ...