set linesize 2222 heading on wrap on column dest_name format a20 column status format a8 column database_mode format a15 column recovery_mode format a35 column protection_mode format a25 column destination format a15 column archived_seq# format 999999999 column applied_seq# format 999999999 column error format a10 column srl format a5 column db_unique_name format a15 column gap_status format a10
SELECT inst_id, dest_name, status, database_mode, protection_mode, recovery_mode, gap_status, archived_seq#, applied_seq#, srl, db_unique_name, destination, error FROM gv$archive_dest_status WHERE status <>'INACTIVE' AND type ='PHYSICAL';
INST_ID DEST_NAME STATUS DATABASE_MODE PROTECTION_MODE RECOVERY_MODE GAP_STATUS ARCHIVED_SEQ# APPLIED_SEQ# SRL DB_UNIQUE_NAME DESTINATION ERROR ---------- -------------------- -------- --------------- ------------------------- ----------------------------------- ---------- ------------- ------------ ----- --------------- --------------- ---------- 2 LOG_ARCHIVE_DEST_2 VALID OPEN_READ-ONLY MAXIMUM PERFORMANCE MANAGED REALTIME APPLY NO GAP 123726123725 YES orcldg orcldg 1 LOG_ARCHIVE_DEST_2 VALID OPEN_READ-ONLY MAXIMUM PERFORMANCE MANAGED REALTIME APPLY NO GAP 123726123725 YES orcldg orcldg
检查备库同步进程:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
set line2222 pages1000 select inst_id,pid,process,thread#,sequence#,status,delay_mins from gv$managed_standby;
[oracle@orcl:/home/oracle]$ oerr ora 270 00270, 00000, "error creating archive log %s" // *Cause: An error was encountered when either creating or opening // the destination file for archiving. // *Action: Check that the archive destination is valid and that there // is sufficient space on the destination device.
SQL> archive log list Database log mode Archive Mode Automatic archival Enabled Archive destination USE_DB_RECOVERY_FILE_DEST Oldest online log sequence 123726 Next log sequence to archive 0 Current log sequence 123727
没有设置归档目录,默认存放到闪回目录下,检查一下闪回配置:
1 2 3 4 5 6 7
SQL>showparameter db_recover
NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ db_recovery_file_dest string /u01/app/oracle/fast_recovery_ area db_recovery_file_dest_size big integer100G