使用instantclient连接oracle

来源:互联网 发布:哪个软件打电话免费 编辑:程序博客网 时间:2024/05/01 10:34
使用instantclient连接oracle遇到以下问题:
  1. 服务端计算机安装之后更换了名称,导致oracle启动失败,将C:/oracle/ora90/network/ADMIN目录下的listener.ora和tnsnames.ora两个文件中HOST改成127.0.0.1就可以启动了;
  2. 服务端使用sqlplus连接使用system/312登录,出现"invalid user/password"错误,应该是system不能使用客户端登录的问题;
  3. 服务端使用sqlplus连接使用scott/tiger能够正确登录;并且使用jnj06/jnj06也能登录(jnj06是自己创建的用户)
  4. 在客户端使用"sqlplus jnj06/jnj06@//192.168.0.179:1521/pwmis"登录出现"ERROR:ORA-12541: TNS:no listener"错误;
  5. 将服务端listener.ora和tnsnames.ora两个文件中HOST改成192.168.0.179再重启服务,再在客户端使用"sqlplus jnj06/jnj06@//192.168.0.179:1521/pwmis"登录出现"ERROR:ORA-12737: Instant Client Light: unsupported server character set ZHS16GBK"错误;
  6. 将“oraociei10.dll”文件拷贝到同一目录下,再登录,就可以了:
    1. D:/instantclient>sqlplus jnj06/jnj06@//192.168.0.179:1521/pwmis
    2. SQL*Plus: Release 10.2.0.3.0 - Production on Sat Nov 15 10:49:28 2008
    3. Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.
    4. Connected to:
    5. Oracle9i Enterprise Edition Release 9.0.1.1.1 - Production
    6. With the Partitioning option
    7. JServer Release 9.0.1.1.1 - Production
    8. SQL>

原创粉丝点击