log_archive_dest_1设置报错

DG搭建完之后,又报错:
Tue Dec 22 16:24:33 2015
Errors in file /u01/app/oracle/admin/orcl/bdump/orcl_arc1_2994.trc:
ORA-16014: log 8 sequence# 20 not archived, no available destinations
ORA-00312: online log 8 thread 2: '/u01/app/orcl/onlinelog/stdby_redo8.log'

查看文件:

[root@dbdg datafile]# cat /u01/app/oracle/admin/orcl/bdump/orcl_arc1_2994.trc
/u01/app/oracle/admin/orcl/bdump/orcl_arc1_2994.trc
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORACLE_HOME = /u01/app/oracle/product/10.2.0/dbhome_1
System name:    Linux
Node name:      dbdg
Release:        2.6.18-308.el5
Version:        #1 SMP Fri Jan 27 17:17:51 EST 2012
Machine:        x86_64
Instance name: orcl
Redo thread mounted by this instance: 1
Oracle process number: 17
Unix process pid: 2994, image: oracle@dbdg (ARC1)

*** 2015-12-22 14:39:33.083
*** SERVICE NAME:() 2015-12-22 14:39:33.083
*** SESSION ID:(1640.1) 2015-12-22 14:39:33.083
*** 2015-12-22 14:39:33.083 21373 kcrr.c
*** 2015-12-22 14:49:33.102
*** 2015-12-22 14:49:33.102 21373 kcrr.c
*** 2015-12-22 14:59:33.123
*** 2015-12-22 14:59:33.123 21373 kcrr.c
*** 2015-12-22 15:09:33.143
*** 2015-12-22 15:09:33.143 21373 kcrr.c
*** 2015-12-22 15:19:33.163
*** 2015-12-22 15:19:33.163 21373 kcrr.c
*** 2015-12-22 15:24:33.176
ARCH: Connecting to console port...
ARCH: Connecting to console port...
*** 2015-12-22 15:24:33.176 21373 kcrr.c
ORA-16014: log 8 sequence# 20 not archived, no available destinations
ORA-00312: online log 8 thread 2: '/u01/app/orcl/onlinelog/stdby_redo8.log'
*** 2015-12-22 15:33:49.457
*** 2015-12-22 15:33:49.457 21420 kcrr.c
*** 2015-12-22 15:34:33.197
ARCH: Connecting to console port...
ARCH: Connecting to console port...
*** 2015-12-22 15:34:33.197 21373 kcrr.c
ORA-16014: log 8 sequence# 20 not archived, no available destinations
ORA-00312: online log 8 thread 2: '/u01/app/orcl/onlinelog/stdby_redo8.log'
*** 2015-12-22 15:44:33.215
*** 2015-12-22 15:44:33.215 21373 kcrr.c
*** 2015-12-22 15:54:33.235
*** 2015-12-22 15:54:33.235 21373 kcrr.c
*** 2015-12-22 16:04:33.254
*** 2015-12-22 16:04:33.254 21373 kcrr.c
*** 2015-12-22 16:14:33.272
*** 2015-12-22 16:14:33.272 21373 kcrr.c
*** 2015-12-22 16:19:33.281
ARCH: Connecting to console port...
ARCH: Connecting to console port...
*** 2015-12-22 16:19:33.281 21373 kcrr.c
ORA-16014: log 8 sequence# 20 not archived, no available destinations
ORA-00312: online log 8 thread 2: '/u01/app/orcl/onlinelog/stdby_redo8.log'
*** 2015-12-22 16:24:33.291
ARCH: Connecting to console port...
ARCH: Connecting to console port...
*** 2015-12-22 16:24:33.291 21373 kcrr.c
ORA-16014: log 8 sequence# 20 not archived, no available destinations
ORA-00312: online log 8 thread 2: '/u01/app/orcl/onlinelog/stdby_redo8.log'

说的挺明显,就是归档路径有问题,

路径下没有归档:

[root@dbdg orcl]# ll
total 0
查看参数:

log_archive_dest_1                   string      LOCATION=/u01/app/oracle/orcl
                                                 VALID_FOR=(ALL_LOGFILES,ALL_RO
                                                 LES) DB_UNIQUE_NAME=orcl

原来是DB_UNIQUE_NAME指定错误。

修改:

SQL>  alter system set log_archive_dest_1='LOCATION=/u01/app/oracle/orcl VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=orcldg' scope=both;

System altered.

归档路径生成了归档


[root@dbdg orcl]# ll
total 1436
-rw-r----- 1 oracle oinstall  174592 Dec 22 16:49 1_22_899013364.dbf
-rw-r----- 1 oracle oinstall    1024 Dec 22 16:49 1_28_899013364.dbf
-rw-r----- 1 oracle oinstall   98304 Dec 22 16:49 1_29_899013364.dbf

原来,log_archive_dest_1指定本机db_unique_name.

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

丹心明月

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值