zoukankan      html  css  js  c++  java
  • ASM实例远程连接

    存在一个软件,远程连接ASM实例


    tj2:/picclife/app/grid$ lsnrctl status Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.20.42)(PORT=1521))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.20.44)(PORT=1521))) Services Summary... Service "+ASM" has 1 instance(s). Instance "+ASM2", status READY, has 1 handler(s) for this service... The command completed successfully ASM_TNS = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.20.42)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = +ASM) ) ) tj2:/picclife/app/oracle/product/11.2.0/db_1/network/admin$ tnsping asm_tns TNS Ping Utility for Linux: Version 11.2.0.3.0 - Production on 01-AUG-2019 06:42:27 Copyright (c) 1997, 2011, Oracle. All rights reserved. Used parameter files: Used TNSNAMES adapter to resolve the alias Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.20.42)(PORT = 1521)) (CONNECT_DATA =
    (SERVER = DEDICATED) (SERVICE_NAME = +ASM))) OK (50 msec) tj2:/picclife/app/oracle/product/11.2.0/db_1/network/admin$ sqlplus sys/oracle123@asm_tns as sysdba SQL*Plus: Release 11.2.0.3.0 Production on Thu Aug 1 06:43:14 2019 Copyright (c) 1982, 2011, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production With the Real Application Clusters and Automatic Storage Management options SQL> select status from v$instance; STATUS ------------------------ STARTED

    到了版本11.2.0.3 连接ASM实例没啥特别的
    Oracle Database - Enterprise Edition - Version 9.2.0.8 to 11.1.0.6 [Release 9.2 to 11.1]
    在较低的版本中,ASM实例远程连接需要配置参数

    客户建议
     This note will resolve help resolve the following errors when trying to connect to an ASM isntance remotely
    ORA-12505 TNS:listener could not resolve SID given in connect descriptor
    ORA-12541: TNS:no listener
    ORA-15000: command disallowed by current instance type
    ORA-12528: TNS:listener: all appropriate instances are blocking new connections
    ORA-1031:   insufficient privileges

    解决方案:
    1.将ASM监听配置为静态监听文件
    SID_LIST_LISTENER =
        (SID_LIST =
          (SID_DESC =
             (SID_NAME = +ASM)
             (ORACLE_HOME = c:oracleappproduct11.1.0db_1)
          )
       )
    重启监听程序
    2.修改Tnsnames.ora连接参数
    ASM =
       (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = hostname)(PORT = 1521))
          (CONNECT_DATA =
             (SERVER = DEDICATED)
             (SID = +ASM)
             (UR=A)
          )
       )

    UR=A选项通常用来连接使用nomount,mount或restricted模式启动数据库。

    数据库启动到nomount,监听状态为BLOCKED;
    数据库启动到mount,监听状态为READY;
    数据库启动到restrict,监听状态为RESTRICT;
    静态注册的asm为BLOCKED

    3.参数调整(未测试,是否需要修改)
    remote_login_passwordfile = exclusive ... for stand alone ASM setups
    remote_login_passwordfile = shared ... for ASM setups that also use Real Application Cluster (RAC)

  • 相关阅读:
    文本字符集转换
    添加HP消息队列
    fedora19/opensuse13.1 配置svn client
    前端html---介绍前端,标签,列表
    数据分析1
    项目流程
    git 使用
    mongo基础
    linux上面pycharm汉化
    pythonNet 09协程
  • 原文地址:https://www.cnblogs.com/lvcha001/p/11279713.html
Copyright © 2011-2022 走看看