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

    (这个有问题)
    服务器配置
    找到ASM实例的LISTENER.ORA文件,在目录$ORACLE_HOME\network\admin下,进行如下修改:增加监听器(下面红色部分),增加监听描述(绿色部分,注意这是静态参数),然后重启监听。

    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /oracle/product/10.2.0/asm)
    (PROGRAM = extproc)
    )
        (SID_DESC =
    (GLOBAL_DBNAME = +ASM)
    (ORACLE_HOME = /oracle/product/10.2.0/asm)
    (SID_NAME = +ASM)
    )
    )

    LSNRASM =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = dbhp)(PORT = 1521))
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    )
    )客户端配置
    注意红色部分:

    ASM =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = dbhp)(PORT = 1521))
    )
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = +ASM)
    (UR=A)
    )
    )
    客户端连接
    SQLPLUS sys/passwd@asm as sysdba

    上面的有点不对
    http://hi.baidu.com/danghj/blog/item/d666ce88e037ce9fa4c27252.html
    oracle_sid 还得改回来
    ASM_172.22.11.124 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.22.11.124)(PORT = 1521))
    )
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = danghj)
    (UR=A)
    )
    )

    正常运行的 lsnrctl stutas
    Services Summary...
    Service "+ASM" has 2 instance(s).
    Instance "+ASM", status UNKNOWN, has 1 handler(s) for this service...
    Instance "+ASM", status BLOCKED, has 1 handler(s) for this service...
    Service "+ASM_XPT" has 1 instance(s).
    Instance "+ASM", status BLOCKED, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "danghj" has 1 instance(s).
    Instance "danghj", status READY, has 1 handler(s) for this service...
    Service "danghjXDB" has 1 instance(s).
    Instance "danghj", status READY, has 1 handler(s) for this service...
    Service "danghj_XPT" has 1 instance(s).
    Instance "danghj", status READY, has 1 handler(s) for this service...
    The command completed successfully
  • 相关阅读:
    1-Java基础回顾整理_06_数组
    1-Java基础回顾整理_05_方法
    1-Java基础回顾整理_04_交互、循环、关键字
    1-Java基础回顾整理_03_类型、变量、运算符
    1-Java基础回顾整理_02_java介绍
    1-Java基础回顾整理_01_计算机发展史
    整合SSM
    Spring整合Mybatis--xml配置文件方式
    java设计模式之动态代理
    Mybatis之动态sql
  • 原文地址:https://www.cnblogs.com/danghuijian/p/4400403.html
Copyright © 2011-2022 走看看