原创地址:http://zhidao.baidu.com/question/202591604.html
登陆
用户名:XXX
密码:XXX
数据库:数据库名_172.16.1.104
大概是因为Oracle10g和9i的安装目录结构变了,需要在PLSQL Developer中重新配置ORACLE_HOME and "OCI Library"的目录。
具体配置:
在PLSQL Developer选择Tools > Preferences > options > "Oracle Home" and "OCI Library",例如:
Oracle10g装在D:\oracle\
则:Oracle Home为F:\Oracle\product\10.1.0
OCI Library为F:\Oracle\product\10.1.0\Client_2\BIN\oci.dll
PL/SQL中文版则为:工具/参数选择->选项->(看右边的)Oracle主目录名F:\Oracle\product\10.1.0
OCI库:F:\Oracle\product\10.1.0\Client_2\BIN\oci.dll
配置完以后重新启动PLSQL Developer,会发现登录界面多了一栏Connect as 的内容。然后可以进行登录。
如果还不行的话,需要配置F:\Oracle\product\10.1.0\Client_2\NETWORK\ADMIN\tnsnames.ora的内容
ORCL_x.x.x.x =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = x.x.x.x)(PORT = 1521))
)
(CONNECT_DATA =
(SID = orcl)
(SERVER = DEDICATED)
)
)