分类: Linux

客户端配置好服务名后,用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 = 1521))
    (CONNECT_DATA=
      (SERVER = DEDICATED)
      (SERVER_NAME = gsp)
    )
  )
修改为
GSP =
  (DESCRIPTION =
    (ADDRESS =(PROTOCOL = TCP)(HOST = 172.20.36.79)(PORT = 1521))
    (CONNECT_DATA=
      (SERVER = DEDICATED)
      (SERVICE_NAME = gsp)
    )
  )


GitHub 加速计划 / li / linux-dash
10.39 K
1.2 K
下载
A beautiful web dashboard for Linux
最近提交(Master分支:2 个月前 )
186a802e added ecosystem file for PM2 4 年前
5def40a3 Add host customization support for the NodeJS version 4 年前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐