SQL开发人员无法连接到数据库,但SQLPLUS可以

时间:2019-06-06 17:09:26

标签: sql oracle connection sqlplus

我已经看过类似的问题,但是找不到解决方案。

如下图所示,我可以通过SQL * PLUS成功连接到Oracle DB

I get successfully a connection through SQL PLUS

但是当我尝试通过SQL DEVELOPER获取连接时,使用相同的id / pwd会返回错误代码:

I can get no connection

这是我的tns配置:

# tnsnames.ora Network Configuration File: D:\DB_Home\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)
      (SID = orcl)
    )
  )

有帮助吗?我已经看到了类似的问题,并听从了他们的建议,但对我没有用。

0 个答案:

没有答案