筆者在一台生產用測試庫上SELECT一個表時出現ORA
數據庫版本是
SQL> conn owi/owi
Connected
SQL> select * from dpa_history;
select * from dpa_history
*
ERROR at line
ORA
ORA
報ORA
使用rman登錄catalog數據庫
[ora
Recovery Manager: Release
Copyright (c)
connected to target database: DPA (DBID=
connected to recovery catalog database
查找最近datafile
RMAN> list backup of datafile
List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
BP Key:
Piece Name: /d
List of Datafiles in backup set
File LV Type Ckp SCN Ckp Time Name
查找SCN
RMAN> list backup of archivelog scn from
List of Backup Sets
===================
BS Key Size Device Type Elapsed Time Completion Time
BP Key:
Piece Name: /d
List of Archived Logs in backup set
Thrd Seq Low SCN Low Time Next SCN Next Time
查找sequence
RMAN> list copy of archivelog from sequence
List of Archived Log Copies
Key Thrd Seq S Low Time Name
查詢online archive log
SQL> select sequence#
SEQUENCE# MEMBERS ARC STATUS
從以上查詢中可以看出datafile
下面開始blockreocver
RMAN> blockrecover datafile
Starting blockrecover at
allocated channel: ORA_DISK_
channel ORA_DISK_
channel ORA_DISK_
channel ORA_DISK_
restoring blocks of datafile
channel ORA_DISK_
piece handle=/d
channel ORA_DISK_
starting media recovery
archive log thread
archive log thread
channel ORA_DISK_
channel ORA_DISK_
archive log thread=
channel ORA_DISK_
archive log thread=
channel ORA_DISK_
piece handle=/d
channel ORA_DISK_
media recovery complete
Finished blockrecover at
再SELECT一下表DPA_HISTORY
SQL> select * from dpa_history;
PRODLINEID BARCODE PA
From:http://tw.wingwit.com/Article/program/Oracle/201311/18869.html