SQL> alter system set log_archive_dest_state_
2="defer";
System altered.
SQL> show parameter dest
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
audit_file_dest string /u01/app/oracle/admin/tbtest/a
dump
background_dump_dest string /u01/app/oracle/diag/rdbms/pr_
tbtest/tbtest/trace
core_dump_dest string /u01/app/oracle/diag/rdbms/pr_
tbtest/tbtest/cdump
cursor_bind_capture_destination string memory+disk
db_create_file_dest string
db_create_online_log_dest_1 string
db_create_online_log_dest_2 string
db_create_online_log_dest_3 string
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_create_online_log_dest_4 string
db_create_online_log_dest_5 string
db_recovery_file_dest string /u01/app/oracle/fast_recovery_
area
db_recovery_file_dest_size big integer 4122M
diagnostic_dest string /u01/app/oracle
log_archive_dest string
log_archive_dest_1 string location=/u01/archlog valid_
for=(all_logfiles,all_roles)
db_unique_name=pr_tbtest
log_archive_dest_10 string
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
log_archive_dest_11 string
log_archive_dest_12 string
log_archive_dest_13 string
log_archive_dest_14 string
log_archive_dest_15 string
log_archive_dest_16 string
log_archive_dest_17 string
log_archive_dest_18 string
log_archive_dest_19 string
log_archive_dest_2 string service=st_tbtest lgwr async
valid_for=(online_logfiles,pri
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
mary_role) db_unique_name=st_
tbtest
log_archive_dest_20 string
log_archive_dest_21 string
log_archive_dest_22 string
log_archive_dest_23 string
log_archive_dest_24 string
log_archive_dest_25 string
log_archive_dest_26 string
log_archive_dest_27 string
log_archive_dest_28 string
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
log_archive_dest_29 string
log_archive_dest_3 string
log_archive_dest_30 string
log_archive_dest_31 string
log_archive_dest_4 string
log_archive_dest_5 string
log_archive_dest_6 string
log_archive_dest_7 string
log_archive_dest_8 string
log_archive_dest_9 string
log_archive_dest_state_1 string enable
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
log_archive_dest_state_10 string enable
log_archive_dest_state_11 string enable
log_archive_dest_state_12 string enable
log_archive_dest_state_13 string enable
log_archive_dest_state_14 string enable
log_archive_dest_state_15 string enable
log_archive_dest_state_16 string enable
log_archive_dest_state_17 string enable
log_archive_dest_state_18 string enable
log_archive_dest_state_19 string enable
log_archive_dest_state_2 string defer
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
log_archive_dest_state_20 string enable
log_archive_dest_state_21 string enable
log_archive_dest_state_22 string enable
log_archive_dest_state_23 string enable
log_archive_dest_state_24 string enable
log_archive_dest_state_25 string enable
log_archive_dest_state_26 string enable
log_archive_dest_state_27 string enable
log_archive_dest_state_28 string enable
log_archive_dest_state_29 string enable
log_archive_dest_state_3 string DEFER
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
log_archive_dest_state_30 string enable
log_archive_dest_state_31 string enable
log_archive_dest_state_4 string enable
log_archive_dest_state_5 string enable
log_archive_dest_state_6 string enable
log_archive_dest_state_7 string enable
log_archive_dest_state_8 string enable
log_archive_dest_state_9 string enable
log_archive_duplex_dest string
log_archive_min_succeed_dest integer 1
standby_archive_dest string ?/dbs/arch
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
user_dump_dest string /u01/app/oracle/diag/rdbms/pr_
tbtest/tbtest/trace
SQL> select STATUS from v$archive_dest;
STATUS
---------
VALID
DEFERRED
INACTIVE
INACTIVE
INACTIVE
INACTIVE
INACTIVE
INACTIVE
INACTIVE
INACTIVE
INACTIVE
STATUS
---------
INACTIVE
INACTIVE
INACTIVE
INACTIVE
INACTIVE
INACTIVE
INACTIVE
INACTIVE
INACTIVE
INACTIVE
INACTIVE
STATUS
---------
INACTIVE
INACTIVE
INACTIVE
INACTIVE
INACTIVE
INACTIVE
INACTIVE
INACTIVE
INACTIVE
31 rows selected.
SQL> select pid,process,status,sequence# from v$managed_standby;
PID PROCESS STATUS SEQUENCE#
---------- --------- ------------ ----------
4357 ARCH CLOSING 615
4359 ARCH CLOSING 618
4361 ARCH CLOSING 298
4363 ARCH CLOSING 619
4365 LNS WRITING 620
SQL>
SQL>
SQL>
SQL> drop table test2;
Table dropped.
SQL> select pid,process,status,sequence# from v$managed_standby;
PID PROCESS STATUS SEQUENCE#
---------- --------- ------------ ----------
4357 ARCH CLOSING 615
4359 ARCH CLOSING 618
4361 ARCH CLOSING 298
4363 ARCH CLOSING 619
4365 LNS WRITING 620
SQL> create table test3 as select * from dba_objects;
Table created.
SQL> select count(*) from test3;
COUNT(*)
----------
74863
SQL> select pid,process,status,sequence# from v$managed_standby;
PID PROCESS STATUS SEQUENCE#
---------- --------- ------------ ----------
4357 ARCH CLOSING 615
4359 ARCH CLOSING 620
4361 ARCH CLOSING 298
4363 ARCH CLOSING 619
4365 LNS CLOSING 620
SQL> select pid,process,status,sequence# from v$managed_standby;
PID PROCESS STATUS SEQUENCE#
---------- --------- ------------ ----------
4357 ARCH CLOSING 615
4359 ARCH CLOSING 620
4361 ARCH CLOSING 298
4363 ARCH CLOSING 619
4365 LNS CLOSING 620
SQL> alter system switch logfile;
System altered.
SQL> /
System altered.
SQL> select pid,process,status,sequence# from v$managed_standby;
PID PROCESS STATUS SEQUENCE#
---------- --------- ------------ ----------
4357 ARCH CLOSING 622
4359 ARCH CLOSING 620
4361 ARCH CLOSING 298
4363 ARCH CLOSING 621
4365 LNS CLOSING 620
SQL> /
PID PROCESS STATUS SEQUENCE#
---------- --------- ------------ ----------
4357 ARCH CLOSING 622
4359 ARCH CLOSING 620
4361 ARCH CLOSING 298
4363 ARCH CLOSING 621
4365 LNS CLOSING 620
SQL> /
PID PROCESS STATUS SEQUENCE#
---------- --------- ------------ ----------
4357 ARCH CLOSING 622
4359 ARCH CLOSING 620
4361 ARCH CLOSING 298
4363 ARCH CLOSING 621
4365 LNS CLOSING 620
SQL> alter system switch logfile;
System altered.
SQL> /
System altered.
SQL> /
System altered.
SQL> 26157 ARCH CLOSING 618
26159 ARCH CLOSING 620
26161 ARCH CONNECTED 0
SQL> SQL> SQL> 26163 ARCH CLOSING 619
SQL> 26458 MRP0 WAIT_FOR_LOG 621
SQL> select pid,process,status,sequence# from v$managed_standby;
PID PROCESS STATUS SEQUENCE#
---------- --------- ------------ ----------
4357 ARCH CLOSING 625
4359 ARCH CLOSING 623
4361 ARCH CLOSING 298
4363 ARCH CLOSING 624
4365 LNS CLOSING 620
SQL>
SQL>
SQL>
SQL>
SQL>
SQL>
SQL> alter system set log_archive_dest_state_2="enable";
System altered.
SQL> select pid,process,status,sequence# from v$managed_standby;
PID PROCESS STATUS SEQUENCE#
---------- --------- ------------ ----------
4357 ARCH OPENING 626
4359 ARCH CLOSING 623
4361 ARCH CLOSING 298
4363 ARCH CLOSING 626
4365 LNS OPENING 627
SQL>
SQL>
SQL>
SQL> drop table test3;
Table dropped.
SQL>
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29440247/viewspace-1808174/,如需轉載,請註明出處,否則將追究法律責任。