对于配置有限的电脑,不安装oracle需要使用plsql怎么设置才可以使用呢
一、首先下载一个instantclient (Oracle提供的一个较为轻量级的客户包)
据说plsql不支持64位的instantclient 呦
附地址:链接:http://pan.baidu.com/s/1dE5I71v 密码:2n5c
二、原instantclient 是不含有sqlnet.ora和tnsnames.ora两个文件的,但是上边包中我已经放进去了。
tnsnames.ora文件:
ORCL = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl) ) ) EXTPROC_CONNECTION_DATA = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1)) ) (CONNECT_DATA = (SID = PLSExtProc) (PRESENTATION = RO) ) )
sqlnet.ora文件
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
三、添加系统变量:TNS_ADMIN
变量值:D:Oracleinstantclient_11_2(放置instantclient_11_2这个客户包的位置)
四、打开plsql:Tools-->Preferences
设置俩变量Oracle Home:instantclient的路径
OCI library:instantclient的路径oci.dll
五、请重启下plsql,是不是好啦是不是好啦,好啦啦