数据库报ORA-12514
listener refused the connection with the following error: ora-12514, tns:listener does not currently know of service requested in connect descriptor.
原因:监听器配置问题,具体没搞懂,猜测是sid链接不匹配,监听器无法监听到orcl。
修改oracle安装目录下d:\app\xuannan\product\11.2.0\dbhome_1\network\admin\listener.ora文件
# listener.ora network configuration file: d:\app\xuannan\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\xuannan\product\11.2.0\dbhome_1)
(program = extproc)
(envs = "extproc_dlls=only:d:\app\xuannan\product\11.2.0\dbhome_1\bin\oraclr11.dll")
)
(sid_desc =
(global_dbname = orcl)
(oracle_home = d:\app\xuannan\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))
)
)
adr_base_listener = d:\app\xuannan
加上这一段就好了
上一篇: Redis的使用--基本数据类型的操作命令和应用场景
下一篇: 揭秘:李渊是怎么靠3万兵马称帝的?
推荐阅读
-
spring boot启动时mybatis报循环依赖的错误(推荐)
-
php 不能连接数据库 php error Can't connect to local MySQL server
-
mysql 查询数据库中的存储过程与函数的语句
-
Android studio报: java.lang.ExceptionInInitializerError 错误
-
Android中的SQLite数据库简介
-
sqlserver中在指定数据库的所有表的所有列中搜索给定的值
-
在数据库‘master’中拒绝CREATE DATABASE权限问题的解决方法
-
mssql server 数据库附加不上解决办法分享
-
sqlserver 数据库连接字符串中的可选项收集
-
sqlserver数据库迁移后,孤立账号解决办法