zoukankan      html  css  js  c++  java
  • Oracle 11g ORA-12514:TNS:监听程序当前无法识别连接描述符中请求的服务

    创建数据库test

    1.打开Oracle net manager

    2.服务命名:test

    tcpip 主机:127.0.0.1 端口:1521

    3.监听程序

    选择 监听位置

    网络地址:localhost

    端口:1521

    选择 数据库服务

    全局数据库名 SID: test

    4.停止监听服务 启动监听服务

    # listener.ora Network Configuration File: E:appAdministratorproduct11.1.0db_1NETWORKADMINlistener.ora
    # Generated by Oracle configuration tools.
    
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (GLOBAL_DBNAME = test)
          (SID_NAME = test)
        )
        (SID_DESC =
          (GLOBAL_DBNAME = NBS)
          (SID_NAME = NBS)
        )
      )
    
    LISTENER =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
      )

    2个数据库服务一个test,一个NBS,公用一个监听

    # tnsnames.ora Network Configuration File: E:appAdministratorproduct11.1.0db_1NETWORKADMIN	nsnames.ora
    # Generated by Oracle configuration tools.
    
    test=
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
        )
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = test)
        )
      )
    
    NBS =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
        )
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = NBS)
        )
      )

    客户端无法访问服务器 Oracle 出现12541错误

    C:WindowsSystem32driversetc

    修改hosts

    10.50.180.123 andyzc

    服务器ip 主机名

    然后在listener.ora将localhost改为andyzc

    cmd-》tsnping andyzc

    出现ok就可以用客户端连接到服务器了

  • 相关阅读:
    linux rcu
    linux下的进程、网络、性能监控命令
    使用optimizely做A/B测试
    使用logstash收集日志的可靠性验证
    LAMP-HTTPD的安装全步骤
    Iptables Save
    linux-ftp
    远程桌面验证问题,函数错误-windows
    ESXIroot密码重置
    centos or windows 双系统
  • 原文地址:https://www.cnblogs.com/andyz168/p/4961799.html
Copyright © 2011-2022 走看看