sias1991
mt172970621
采纳率20.3%
2015-05-22 07:28 阅读 1.9k

PL/SL登陆报错,ORA-12505:

ORA-12505: TNS: 监听程序当前无法识别连接描述符中所给出的SID

应该如何修改啊。跪求解决方案。弄了一天了。

tnsnames.ora Network Configuration File: D:\Oracle10g\network\admin\tnsnames.ora

Generated by Oracle configuration tools.

ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(sid = orcl)
)
)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

3条回答 默认 最新

  • tianyazaiheruan y_keven 2015-05-22 07:35

    提示的很明显了:SID错误,这类似mysql的url、用户名、密码中的一项错误;解决方法对症下药就行:找到安装目录下的oci目录下的tnsnames.ora文件,这里面会配置所有的连接地址、端口 检查你登陆的这个这几项是否有错误

    点赞 评论 复制链接分享
  • wk60251 夜独醉╋心碎 2015-05-22 07:53

    这里是我的里面的内容,你自己对着看吧!

    tnsnames.ora Network Configuration File: D:\oracle\orcl\product\11.1.0\db_1\network\admin\tnsnames.ora

    Generated by Oracle configuration tools.

    WEBOFFICE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = MO-20150312OHLK)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = weboffice)
    )
    )

    EDW_JCSS =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.3.15)(PORT = 1521))
    )
    (CONNECT_DATA =
    (SERVICE_NAME = jsjt)
    )
    )

    EA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.3.15)(PORT = 1521))
    )
    (CONNECT_DATA =
    (SERVICE_NAME = EADEV)
    )
    )

    UC =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.3.15)(PORT = 1521))
    )
    (CONNECT_DATA =
    (SERVICE_NAME = UCDEV)
    )
    )

    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = MO-20150312OHLK)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    )
    )

    点赞 评论 复制链接分享
  • tianyazaiheruan y_keven 2015-05-22 08:00

    关键问题就在sid=orcl这段了;看看你装的oracle 或者公司服务器oracle的版本,对应不同版本来设置这个值;比如:SID = oracle9i

    点赞 评论 复制链接分享