zoukankan      html  css  js  c++  java
  • 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.

  • 相关阅读:
    python集成开发环境Anaconda的安装
    hasMap2
    WireShark:TCP三次握手 抓包
    CCF 201409-4 最优配餐
    201403-4 无线网络
    java IO的字节流和字符流及其区别
    平衡二叉树DSW算法
    警惕Java编译器中那些“蜜糖”陷阱
    laravel 学习笔记 —— 神奇的服务容器
    LNMP下安装phpmyadmin的一个小错误解决办法
  • 原文地址:https://www.cnblogs.com/cxchanpin/p/7102589.html
Copyright © 2011-2022 走看看