zoukankan      html  css  js  c++  java
  • 安装ODAC for Entity Framework后连接数据库TNS: could not resolve the connect identifier specified

      安装ODAC for Entity Framework后,连接数据库报错Oracle 10g ORA-12154:TNS: could not resolve the connect identifier specified 解决方法:

         1.右键我的电脑-属性-高级-环境变量 ,在系统变量中选中 path 点击编辑,查看变量值发现是D:\app\Administrator\product\11.2.0\client_2;D:\app\Administrator\product\11.2.0\client_2\bin;D:\app\Administrator\product\11.2.0\client_1\bin; 是安装ODAC后生成的client_2吗?高手请留言。

         2.看看client_2文件夹中是什么情况吧,D:\app\Administrator\product\11.2.0\client_2\Network\Admin\Sample中的tnsnames.ora空空如也,将复制Sample里面的两个文件复制出来,然后把client_1中的tnsnames.ora内容贴到client_2的tnsnames.ora中,就可以了。

         3.使用PL/SQL Developer提示:NLS_LANG is not defined on the client.Character set conversion may cause unexpected results.

      解决方法:
      修改注册表,在运行中输入regedit ,找到ORACLE\KEY_OraClient11g_homexx,右键新建“字符串值(S)”项为“NLS_LANG”,值为“SIMPLIFIED CHINESE_CHINA.ZHS16GBK”。

      若在64位的环境下安装32为的程序,则修改注册表路径为HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ORACLE\KEY_OraClient11g_home2,新建“字符串值(S)”项为“NLS_LANG”,值为“SIMPLIFIED CHINESE_CHINA.ZHS16GBK”

  • 相关阅读:
    开启 clr enabled
    索引查看
    nginx 安装
    mysql中int(10)与int(11)有什么区别吗?
    1.安卓开发基础1~6笔记
    Vue项目搭建基础之Vue-cli模版测试
    alert执行顺序
    介绍call和apply
    a链接易混淆与form表单简易验证用法详解
    js正则知识点
  • 原文地址:https://www.cnblogs.com/beautifulplanet/p/2607814.html
Copyright © 2011-2022 走看看