通过修改log_archive_dest_state_n参数的状态来控制主库的日志文件传输


Attribute Description

ENABLE

Log transport services can transmit redo data to this destination. ENABLE is the default.

DEFER

Log transport services will not transmit redo data to this destination. This is a valid but unused destination.

ALTERNATE

This destination is not enabled, but it will become enabled if communication to its associated destination fails.

RESET

Functions the same as DEFER, but clears any error messages for the destination if it had previously failed.



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
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值