zoukankan      html  css  js  c++  java
  • 11G RAC+单机DG

    --报错

    一、


    15:30:45 > startup nomount;
    ORA-01565: error in identifying file '+DATA/test/spfilekjdg.ora'
    ORA-17503: ksfdopn:2 Failed to open file +DATA/test/spfilekjdg.ora
    ORA-15001: diskgroup "DATA" does not exist or is not mounted
    ORA-15040: diskgroup is incomplete
    ORA-15040: diskgroup is incomplete
    ORA-15040: diskgroup is incomplete
    ORA-15040: diskgroup is incomplete
    ORA-15040: diskgroup is incomplete
    ORA-15040: diskgroup is incomplete
    ORA-15040: diskgroup is incomplete
    ORA-15040: diskgroup is incomplete

    ---解决办法
    [root@test ~]# ll /u01/app/oracle/product/11.2.0/db_1/bin/oracle
    -rwsr-s--x 1 oracle oinstall 239501456 Sep 12 10:36 /u01/app/oracle/product/11.2.0/db_1/bin/oracle
    [root@test ~]#
    [root@test ~]#
    [root@test ~]# chown oracle:asmadmin /u01/app/oracle/product/11.2.0/db_1/bin/oracle
    [root@test ~]#
    [root@test ~]# ll /u01/app/oracle/product/11.2.0/db_1/bin/oracle
    -rwxr-x--x 1 oracle asmadmin 239501456 Sep 12 10:36 /u01/app/oracle/product/11.2.0/db_1/bin/oracle
    [root@test ~]#
    [root@test ~]# chmod 6751 /u01/app/oracle/product/11.2.0/db_1/bin/oracle
    [root@test ~]#
    [root@test ~]# ll /u01/app/oracle/product/11.2.0/db_1/bin/oracle
    -rwsr-s--x 1 oracle asmadmin 239501456 Sep 12 10:36 /u01/app/oracle/product/11.2.0/db_1/bin/oracle
    [root@test ~]#


    15:32:52 > startup nomount;
    ORACLE instance started.

    Total System Global Area 2.8862E+11 bytes
    Fixed Size 2271480 bytes
    Variable Size 2.0938E+10 bytes
    Database Buffers 2.6736E+11 bytes
    Redo Buffers 314085376 bytes
    15:33:08 >
    15:33:15 >
    15:33:15 >
    15:33:15 >
    15:33:16 >
    15:33:16 > show parameter spfile

    NAME TYPE VALUE
    ------------------------------------ ----------- ------------------------------
    spfile string +DATA/test/spfilekjdg.ora
    15:35:44 >
    15:35:44 >

    二、

    --主库报错
    Thu Sep 12 17:15:49 2019
    Error 1017 received logging on to the standby
    ------------------------------------------------------------
    Check that the primary and standby are using a password file
    and remote_login_passwordfile is set to SHARED or EXCLUSIVE,
    and that the SYS password is same in the password files.
    returning error ORA-16191
    ------------------------------------------------------------
    PING[ARC1]: Heartbeat failed to connect to standby 'kjdg'. Error is 16191.


    ----原因是主库 两个节点 密码文件 通过 md5sum 查看不一样;把节点1的密码文件传递给节点2后恢复!

    [oracle@test2 dbs]$ md5sum orapwtest2
    11a33a9aca85269874826rr53ba18fef orapwtest2


    [oracle@test1 dbs]$ md5sum orapwtest1
    80a333a3a699f08fcaaa3fdc1c176aab orapwtest1

    [oracle@kjdg dbs]$ md5sum orapwkjdg
    11a33a9aca85269874826rr53ba18fef orapwtestdg

    三、

    ---实操

    17:37:39 SYS@testdg(testdg)> select file_name from dba_temp_files;
    ERROR:
    ORA-01157: cannot identify/lock data file 5502 - see DBWR trace file
    ORA-01110: data file 5502: '+DATA/testdg/tempfile/temp_01.dbf'


    no rows selected

    17:46:03 SYS@testdg(testdg)>
    17:46:34 SYS@testdg(testdg)>
    17:46:34 SYS@testdg(testdg)>
    17:46:35 SYS@testdg(testdg)> alter tablespace temp drop tempfile '+DATA/testdg/tempfile/temp_01.dbf' ;

    Tablespace altered.


    17:47:32 SYS@testdg(testdg)> select file_name from dba_temp_files;
    17:47:35 SYS@testdg(testdg)>

    FILE_NAME
    --------------------------------------------------------------------------------
    +DATA/testdg/tempfile/temp.309.1007744663


    17:47:39 SYS@testdg(testdg)> alter tablespace temp add tempfile '+DATA' size 30g autoextend off;

    Tablespace altered.


    17:47:55 SYS@testdg(testdg)> select file_name from dba_temp_files;

    FILE_NAME
    --------------------------------------------------------------------------------
    +DATA/testdg/tempfile/temp.309.1007744663
    +DATA/testdg/tempfile/temp.310.1007747273

  • 相关阅读:
    【Oracle】ORA-00257:archiver error. Connect internal only, until freed 错误的处理方法
    【SQL】区分新来顾客和再访顾客
    【Xcelsius】在PPT中嵌入水晶易表Xcelsius2008仪表盘
    【SAP BO】【WEBI】【转】Webi实现动态选择度量
    【转】Xcelsius2008 水晶易表问题 部分汇总
    如何进行有效的需求调研
    实现数据仓库的七个步骤、七个禁忌、七种思路
    UTC日期转时间戳
    WIN10下命令行禁用编辑模式
    让socket端口不被子进程继承
  • 原文地址:https://www.cnblogs.com/ss-33/p/11514479.html
Copyright © 2011-2022 走看看