1.登陆页面
2.
安装Oracle服务端后plsql连接时报错:ORA-12504:TNS:监听程序在CONNECT_DATA中未获得SERVICE_NAME
原创silencemgy 最后发布于2018-07-25 13:27:51 阅读数 9778 收藏
展开
话不多说。直接上解决办法:
首先打开:文件一
E:appsilenceproduct11.2.0client_1 etworkadmin nsnames.ora -------------此为oracle客户端安装路径
文件里面内容如下:
192.168.1.26 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.26)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = yss)
)
)
接着打开:文件二
E:appsilenceproduct11.2.0dbhome_1NETWORKADMIN nsnames.ora ----------此为oracle服务端安装路径
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)
)
)
最后:把文件一的内容复制到文件二。搞定!
3.错误12514:监听
一般跟PLSQL关系不大,主要看看实例数据库对不对,10.10.82.180:1521/bdmeta ip:端口号/实例名
————————————————
版权声明:本文为CSDN博主「silencemgy」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/silencemgy/article/details/81200919