selectFILE#,BLOCK#,NONLOGGED_START_CHANGE# from v$nonlogged_block;
有数据了!
结论:
nologging 的表不恢复数据库,v$nonlogged_block中看不出来
nologging 检测方法:
col OWNER for a32
COL TABLE_NAME FOR A30
select owner,table_name,LOGGING from dba_tables where LOGGING='NO'and owner notin('SYS','SYSTEM','DBSNMP','GSMADMIN_INTERNAL','MDSYS','DVSYS','WMSYS','ORDDATA','XDB')orderby 1,2;
set lines 100
col name for a40
select name, UNRECOVERABLE_CHANGE#,UNRECOVERABLE_TIME from v$datafile;
rman target /
report unrecoverable;
解决方法:
备份相关文件
参考:
ORA-1578 ORA-26040 - NOLOGGING 操作引起的坏块 - 错误解释和解决方案 (Doc ID 1623284.1)