Home > Database > Mysql Tutorial > 连接Oracle11.2.0.1 提示Ora

连接Oracle11.2.0.1 提示Ora

WBOY
Release: 2016-06-07 15:50:56
Original
1052 people have browsed it

刚安装了Oracle11gR2,上来就出现问题了,幸亏上次还有些经验,赶紧给大家分享一下 安装顺序,Oracle11gR2 64Bit 的服务器端,ArcSDE,Oracle11gR2 32Bit 的客户端 但是在建立PL/SQL连接时提示ora-12514 无监听程序错误 解决办法:因为我的机器上已经有固定I

刚安装了Oracle11gR2,上来就出现问题了,幸亏上次还有些经验,赶紧给大家分享一下


安装顺序,Oracle11gR2 64Bit 的服务器端,ArcSDE,Oracle11gR2 32Bit 的客户端


但是在建立PL/SQL连接时提示ora-12514  无监听程序错误


解决办法:因为我的机器上已经有固定IP,而在相关的Listener文件和TNSName文件记录的是localhost,所以

1:将这两个文件的localhost修改为用户机器的IP地址

2:修改操作系统的Hosts文件将用户机器的IP地址对应localhost


把这个问题解决后,连接又出现新的问题ora-12541


这个挺奇怪的,查看listener文件感觉少些东西

# listener.ora Network Configuration File: D:\app\Administrator\product\11.2.0\dbhome_1\network\admin\listener.ora
# Generated by Oracle configuration tools.

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = CLRExtProc)
      (ORACLE_HOME = D:\app\Administrator\product\11.2.0\dbhome_1)
      (PROGRAM = extproc)
      (ENVS = "EXTPROC_DLLS=ONLY:D:\app\Administrator\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    )
    (SID_DESC =
      (GLOBAL_DBANAME = orcl)
      (ORACLE_HOME = D:\app\Administrator\product\11.2.0\dbhome_1)
      (SID_NAME = orcl)
    )
  )

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.100.111)(PORT = 1521))
    )
  )

ADR_BASE_LISTENER = D:\app\Administrator
Copy after login

但是默认安装是没有

(SID_DESC =
      (GLOBAL_DBANAME = orcl)
      (ORACLE_HOME = D:\app\Administrator\product\11.2.0\dbhome_1)
      (SID_NAME = orcl)
    )
Copy after login

所以添加上去就可以了,修改自己的SID_NAME和GLOBAL_NAME、ORACLE_HOME就可以了


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template