ORA-12154: TNS:could not resolve the connect identifier specified
来源:互联网 发布:软件停止工作怎么办 编辑:程序博客网 时间:2024/05/18 21:42
问题:使用plsql连接oracle数据库时,出现问题 ORA-12154: TNS:could not resolve the connect identifier specified ,即无法解析指定的连接
标识符。这说明缺少了一个环境变量,TNS_ADMIN 。
解决方法:右击 我的电脑 -> 属性 -> 高级 -> 环境变量 -> Administrator 的用户变量 -> 新建 ,
变量名为:TNS_ADMIN
变量值为:%ORACLE_HOME%\NETWORK\ADMIN\
其中%ORACLE_HOME% 即 Orcale 的安装路径(可以直接指定为安装位置),其实,设置的该环境变量的值为 tnsnames.ora文件所在路径,特别是重装后或其它操作,忘了设置
TNS_ADMIN 变量,PL/SQL 登陆就会报“无法解析指定的连接标识符”的错误 ,而设置TNS_ADMIN变
量是为了能够找到 tnsnames.ora。如果本机上安装了ORACLE,并且设置了 ORACLE_HOME 环境变
量,那么会自动在 %ORACLE_HOME%/NETWORK/ADMIN/位置查找 tnsnames.ora 文件。
0 0
- 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
- ORA-12154: TNS:could not resolve the connect identifier specified
- ORA-12154: TNS:could not resolve the connect identifier specified
- 使用sqlplus连接数据库时报"ORA-12154:TNS:could not resolve the connect identifier specified"解决办法
- useful-ffmpeg-commands
- Dubbo与Zookeeper、SpringMVC整合和使用
- 202. Happy Number
- java- 分布式- 一致性哈希算法(1)
- Maven笔记
- ORA-12154: TNS:could not resolve the connect identifier specified
- Android的 CountDownTimer的使用
- Android 恢复出厂设置(系统时间不修改)
- 计算两点的坐标值
- 卷积神经网络中图像池化操作全解析
- Html(5) - 超链接
- Java函数式编程
- 第12周项目2-时间类
- Java多线程笔记