PL/SQL ORA-12154: TNS:could not resolve the connect identifier specified
来源:互联网 发布:漏洞提交平台源码 编辑:程序博客网 时间:2024/06/04 11:49
PL/SQL安装好后,登录后爆出这样的错误:
ORA-12154: TNS:could not resolve the connect identifier specified
描述:
1:oracle 10g 安装在虚拟机上;
2:本地安装的oracle客户端,与plsql
处理办法:
1:将虚拟机上的
C:\oracle\product\10.2.0\db_1\NETWORK\ADMIN
下的tnsnames.ora文件拷贝至E:\instantclient-basic-win32-11.2.0.1.0(随意)
2:打开tnsnames.ora文件
检查host=是不是虚拟机地址。(加粗),不是则修改
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.146.130)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)
3:增加环境变量:
变量名为:TNS_ADMIN
变量值为:E:\instantclient-basic-win32-11.2.0.1.0(该处是tnsnames.ora路径)
4:重启PL/sql .登录,书写sql语句,检查是否搞定
阅读全文
0 0
- PL/SQL 报错(ORA-12154:TNS:could not resolve the connect identifier specified)解决
- PL/SQL Developer 中的另一个问题:ORA-12154: TNS:could not resolve the connect identifier specified
- pl/sql ORA-12154: TNS:could not resolve the connect identifier specified的问题
- PL/SQL ORA-12154: TNS:could not resolve the connect identifier specified
- ORA-12154: TNS:could not resolve the connect identifier specified
- ORA-12154: TNS:could not resolve the connect identifier specified
- ORA-12154: TNS:could not resolve the connect identifier specified
- ORA-12154:TNS could not resolve the connect identifier specified
- ORA-12154: TNS: could not resolve the connect identifier specified
- ORA-12154:TNS:could not resolve the connect identifier specified
- ORA-12154: TNS:could not resolve the connect identifier specified
- ORA-12154: TNS:could not resolve the connect identifier specified
- ORA-12154: TNS:could not resolve the connect identifier specified
- ORA-12154: TNS:could not resolve the connect identifier specified
- ORA-12154: TNS:could not resolve the connect identifier specified
- ORA-12154: TNS:could not resolve the connect identifier specified
- ORA-12154: TNS:could not resolve the connect identifier specified
- ORA-12154: TNS:could not resolve the connect identifier specified
- scikit-learn 中文文档-模型评估-无监督学习|ApacheCN
- bzoj3123: [Sdoi2013]森林
- centos7下docker部署nginx使用let's encrypt免费证书
- 如何下载android源码
- 基于物品的协同过滤算法
- PL/SQL ORA-12154: TNS:could not resolve the connect identifier specified
- HashMap原理介绍
- RTSP服务器运作
- qt 获取动态生成的qlineedit值
- web框架简介
- jdbc升级之连接池 dbcp方法和c3p0方法的比较
- java中的数据类型
- HDU 5912
- 通信网络编程第五次作业