没想到取啥名
2017-10-20 03:43
采纳率: 66.7%
浏览 2.2k

plsql连接本地数据库,出现12514错误

tnsnames.ora文件

tnsnames.ora Network Configuration File: D:\home_software\intstall_path\app\product\11.2.0\dbhome_1\network\ADMIN\tnsnames.ora

Generated by Oracle configuration tools.

ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = orcl)
)
)

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

listener.ora文件

# listener.ora Network Configuration File: D:\home_software\intstall_path\app\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:\home_software\intstall_path\app\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:D:\home_software\intstall_path\app\product\11.2.0\dbhome_1\bin\oraclr11.dll")
)
)

LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = DESKTOP-89BBGSR)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
)

ADR_BASE_LISTENER = D:\home_software\intstall_path\app

监听和服务都是启动状态,试过重新配置监听和服务,但是都没有得到解决。

  • 写回答
  • 好问题 提建议
  • 关注问题
  • 收藏
  • 邀请回答

5条回答 默认 最新

  • 西门呀在吹雪 2017-10-20 05:38
    已采纳
    评论
    解决 无用
    打赏 举报
  • 查看更多回答(4条)

相关推荐 更多相似问题