使用
instantclient连接oracle遇到以下问题:
- 服务端计算机安装之后更换了名称,导致oracle启动失败,将C:/oracle/ora90/network/ADMIN目录下的listener.ora和tnsnames.ora两个文件中HOST改成127.0.0.1就可以启动了;
- 服务端使用sqlplus连接使用system/312登录,出现"invalid user/password"错误,应该是system不能使用客户端登录的问题;
- 服务端使用sqlplus连接使用scott/tiger能够正确登录;并且使用jnj06/jnj06也能登录(jnj06是自己创建的用户)
- 在客户端使用"sqlplus jnj06/jnj06@//192.168.0.179:1521/pwmis"登录出现"ERROR:ORA-12541: TNS:no listener"错误;
- 将服务端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"错误;
- 将“oraociei10.dll”文件拷贝到同一目录下,再登录,就可以了:
-
- D:/instantclient>sqlplus jnj06/jnj06@//192.168.0.179:1521/pwmis
- SQL*Plus: Release 10.2.0.3.0 - Production on Sat Nov 15 10:49:28 2008
- Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
- Connected to:
- Oracle9i Enterprise Edition Release 9.0.1.1.1 - Production
- With the Partitioning option
- JServer Release 9.0.1.1.1 - Production
- SQL>