oracle 11g ORA 12505的问题,求高手啊

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了oracle 11g ORA 12505的问题,求高手啊相关的知识,希望对你有一定的参考价值。

初次连接的时候,出现了12505错误,看网上说是要修改listener.ora,但是我搜索到了四个,不知道该改哪一个,逐一尝试了之后也没有用,还是有问题啊
这是修改之后的
# listener.ora Network Configuration File: E:\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 = E:\app\Administrator\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:E:\app\Administrator\product\11.2.0\dbhome_1\bin\oraclr11.dll")
)
(SID_DESC =
(GLOBAL_DBNAME = ORCL)
(ORACLE_HOME = E:\app\Administrator\product\11.2.0\dbhome_1)
(SID_NAME = orcl)
)
)

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

参考技术A HOST = localhost
这里,加上你的静态IP,或是计算机名
另外,你这个是静态注册,要早于database启动
参考技术B 你使用 netmanger 重新配置一下 参考技术C 修改tnsnames.ora,添加如下代码
TEST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 182.168.1.7)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = TEST)
)
)
参考技术D hosts 文件里加一下你的计算名称
然后HOST全用计算名称或者127.0.0.1
第5个回答  2012-05-03 重新配置一下监听也可。

oracle安装后tnsnames.ora内容

# tnsnames.ora Network Configuration File: D:\Develop\oracle11g\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.

LISTENER_ORCL =
  (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))


ORACLR_CONNECTION_DATA =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    )
    (CONNECT_DATA =
      (SID = CLRExtProc)
      (PRESENTATION = RO)
    )
  )

ORCL =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = orcl)
    )
  )

 

以上是关于oracle 11g ORA 12505的问题,求高手啊的主要内容,如果未能解决你的问题,请参考以下文章

解决oracle11g的ORA-12505问题

jdbc连接oracle11g出现ora-12505错误怎么解决?

Java连接Oracle11g的时候提示ORA-12505

oracle11g sql dever链接提示ora-12505,sql plus可以正常连接

ORA-12505: 侦听器拒绝连接并出现以下错误 -- SQL Developer

oracle 11g ORA-12514问题