客户端配置好服务名后,用PL/SQL Developer连接数据库时,报错:ORA-12504:TNS:监听程序在CONNECT_DATA中未获得SERVICE_NAME。一般这种情况请检查tnsnames.ora文件中TNS是否配置正确,如下所示,SERVICE_NAME 名字弄错了,结果报如上错误: GSP = (DESCRIPTION = (ADDRESS =(PROTOCOL = TCP)(HOST = 172.20.36.79)(PORT ...
ORA-12504: TNS:listener wasnot given the SERVICE_NAMEin CONNECT_DATA 解决办法: 说明:其实上面出现这样的情况是在tnsname.ora中配置错了,将tnsname.ora中的ADDRESS_LIST参数去掉就行了。 最终的tnsname.ora中的配置变为: [oracle@sm2 admin]$ cat tnsnames.ora sm2 = ( DESCRIPTION = ( ADDRESS = (PROT...
客户端配置好服务名后,用PL/SQL Developer连接数据库时,报错:ORA-12504:TNS:监听程序在CONNECT_DATA中未获得SERVICE_NAME。一般这种情况请检查tnsnames.ora文件中TNS是否配置正确,如下所示,SERVICE_NAME 名字弄错了,结果报如上错误: GSP = (DESCRIPTION = (ADDRESS =(PROTOCOL = TCP)(HOST = 172.20.36.79)(PORT ...
1ERROR:ORA-12504:TNS:监听程序在 CONNECT_DATA 中未获得 SERVICE_NAME使用本地的SQLPlus连接服务器上的Oracle数据库,系统先提示ORA-12504:TNS:监听程序在 CONNECT_DATA 中未获得 SERVICE_NAME再次输入用户名密码系统又提示ORA-12560:TNS:协议适配器错误.如图所示 c管理员命令提示符- sqlplus’ systen/ora1ed@192168...
ORA-12504:TNS:监听程序在CONNECT_DATA中未获得 SERVICE_NAME 客户端配置好服务名后,⽤PL/SQL Developer连接数据库时,报错:ORA-12504:TNS:监听程序在CONNECT_DATA中未获得SERVICE_NAME。⼀般这种情况请检查tnsnames.ora ⽂件中TNS是否配置正确,如下所⽰,SERVICE_NAME 名字弄错了,结果报如上错误:GSP ...
ora-12504: tns:listener was not given the service_name in connect_data in windows 10 I'm connecting my application with Oracle database but it gives above error when I trying to login my application. I'm already tried to different changes in tnsnames.ora file....
(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST =192.168.13.61)(PORT = 1521)) ) (CONNECT_DATA = (SID = ORCL) ) ) 5.lsnrctl status和tnsping orcl,显示如下: Oracle数据库使用PL/SQL客户端登录正常,ORA-12504故障排除。
net manager重新为你的数据库配个listner吧。像我的listner的格式为:LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))(ADDRESS = (PROTOCOL = TCP)(HOST = 7NQARM2O3BV7R51)(PORT = 1521)))ipc协议是不是你所需要的?7NQARM2O3BV7R51为我的...
(SERVICE_NAME=orcl) ) ) 解决方案:修改tnsname.ora文件内容如下: 172.16.39.199=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=172.16.39.199)(PORT=1521)) (CONNECT_DATA=(SERVICE=DEDICATED) (SERVICE_NAME=orcl) ) ) 再次连接,成功。 *** 对于一件事情,往往超过我们的想象,自信、坚持,勇往直前! 参与者:...