log_archive_dest_1设置报错

Posted cxchanpin

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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'

查看文件:

[[email protected] 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: [email protected] (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'

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

路径下没有归档:

[[email protected] 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.

归档路径生成了归档

[[email protected] 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.

以上是关于log_archive_dest_1设置报错的主要内容,如果未能解决你的问题,请参考以下文章

12cr1 rac-rac dg broker 报错ORA-16698

使用alter system set修改参数不生效

错误记录Android Studio 配置 AspectJ 报错 ( all buildscript {} blocks must appear before any plugins {} )(代码片

错误记录发布 Flutter 插件包报错 ( It‘s strongly recommended to include a “homepage“ or “repository“ field )(代码片

ORA-00600: internal error code, arguments: [25027], [1], [0], [], [], [], [], [], [], [], [], [](代码片

ORA-00600: internal error code, arguments: [25027], [1], [0], [], [], [], [], [], [], [], [], [](代码片