zoukankan      html  css  js  c++  java
  • dataguard unname

    IM on ADG: End of Empty Journal
    Recovered data files to a consistent state at change 2066571
    stopping change tracking
    2021-05-14T06:09:07.839764-04:00
    Errors in file /u01/app/oracle/diag/rdbms/ora18c/ora18c/trace/ora18c_mrp0_1607.trc:
    ORA-01274: cannot add data file that was originally created as '+DATA/SLNNGK/C21CCC2F26B343B4E0536F38A8C01387/DATAFILE/tps_hxl.317.1072505347'
    2021-05-14T06:09:07.839905-04:00
    Background Media Recovery process shutdown (ora18c)
    2021-05-14T06:09:07.969770-04:00
    Errors in file /u01/app/oracle/diag/rdbms/ora18c/ora18c/trace/ora18c_mz00_3359.trc:
    ORA-01110: data file 20: '/u01/app/oracle/product/18.0.0.0/db_1/dbs/UNNAMED00020'
    ORA-01565: error in identifying file '/u01/app/oracle/product/18.0.0.0/db_1/dbs/UNNAMED00020'
    ORA-27037: unable to obtain file status
    Linux-x86_64 Error: 2: No such file or directory
    Additional information: 7
    Checker run found 1 new persistent data failures


    登录cdb
    SQL> connect / as sysdba
    Connected.


    alter system set standby_file_management=manual;

    SQL> alter database create datafile '/u01/app/oracle/product/18.0.0.0/db_1/dbs/UNNAMED00020' AS '/u01/app/oracle/oradata/ora18c/pdb1/tps_hxl.dbf';
    alter database create datafile '/u01/app/oracle/product/18.0.0.0/db_1/dbs/UNNAMED00020' AS '/u01/app/oracle/oradata/ora18c/pdb1/tps_hxl.dbf'
    *
    ERROR at line 1:
    ORA-01516: nonexistent log file, data file, or temporary file
    "/u01/app/oracle/product/18.0.0.0/db_1/dbs/UNNAMED00020" in the current
    container

    SQL> alter session set container=pdb1;
    SQL> alter session set container=cdb$root;
    SQL> alter system set standby_file_management=auto;

    System altered.

    若复制进程停掉的话,需要手工启动
    查看复制进行
    SELECT PROCESS, STATUS, THREAD#, SEQUENCE#, BLOCK#, BLOCKS FROM V$MANAGED_STANDBY;
    手工启动
    alter database recover managed standby database using current logfile disconnect ;

  • 相关阅读:
    Python网络爬虫与信息提取(二)—— BeautifulSoup
    Linux文件系统概述
    XML简介
    JSON数据格式
    SQL*Loader之CASE8
    SQL*Loader之CASE9
    SQL*Loader之CASE10
    SQL*Loader之CASE11
    Oracle工具之DBNEWID
    Oracle常用函数汇总
  • 原文地址:https://www.cnblogs.com/hxlasky/p/14769595.html
Copyright © 2011-2022 走看看