zoukankan      html  css  js  c++  java
  • 【Vegas原创】ORA16038解决

    现象:
    SQL> alter database open;
    alter database open
    *
    ERROR at line 1:
    ORA-16038: log 3 sequence# 857 cannot be archived
    ORA-12154: TNS:could not resolve the connect identifier specified
    ORA-00312: online log 3 thread 1: '/u01/app/oracle/oradata/oralin/redo03.log'

    解决方案:
    1,查一下你是否在DG中;

    2,查log_archive_dest_n 除1外,是否还有设置,如果有设置,查log_archive_dest_state_n除1外是否还有enable,如果有enable,则改为defer;(作此原因,要确定是否以前做过DG的实验,且为测试数据库,否则轻易不要修改)

    3,以上配置都正确,则清空所有的log group:


    SQL> alter database clear unarchived logfile group 1;

    Database altered.

    SQL> alter database clear logfile group 1;

    Database altered.

    SQL> alter database clear unarchived logfile group 2;

    Database altered.

    SQL> alter database clear logfile group 2;

    Database altered.

    SQL> alter database clear unarchived logfile group 3;

    Database altered.

    SQL> alter database clear logfile group 3;

    Database altered.

    SQL> alter database open;

    Database altered.


    4,如果open后再次切日志,还会出现此问题,则直接recover。

    SQL> alter system archive log current;
    alter system archive log current
    *
    ERROR at line 1:
    ORA-16038: log 1 sequence# 860 cannot be archived
    ORA-12154: TNS:could not resolve the connect identifier specified
    ORA-00312: online log 1 thread 1: '/u01/app/oracle/oradata/oralin/redo01.log'


    SQL> recover database until cancel;




  • 相关阅读:
    5.6 Go 常用函数
    5.5 Go defer
    5.4 Go 闭包
    5.3 Go 匿名函数
    5.2 Go 包与函数
    python 通过pytz模块进行时区的转换,获取指定时区的时间
    前端在js中获取用户所在地区的时间与时区
    Python2 指定文件编码格式需要注意的地方
    linux 使用进程管理工具 supervisor
    Python 私有变量中两个下划线 _ _item 与 一个下划线的区别 _item
  • 原文地址:https://www.cnblogs.com/amadeuslee/p/3744296.html
Copyright © 2011-2022 走看看