1. 程式人生 > >如何處理日誌文件丟失

如何處理日誌文件丟失

日誌文件 ACTIVE current INACTIVE

select group#,members from v$log;

查看日誌文件的狀態

select  group#,status from v$log;

有狀態來決定執行步驟

status:
    active
            alter system checkpoint;
            alter database clear logfile group <group#>
    
    inactive,unused
            alter database clear logfile group <group#>
            
    current
            alter system switch logfile;
            alter system checkpoint;
            alter database clear logfile group <group#>


如何處理日誌文件丟失