首先下载oracle客户端
解压在E:\oracleClient\instantclient_11_2该路径下。进入到instantclient_11_2下创建目录 NETWORK,然后再NETWORK下建立目录ADMIN。在ADMIN目录下建立tnsnames.ora文件,在该tnsnames.ora文件中添加 :
ECSTDBY = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.11)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = ecstdby) ) ) TEST = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.0.0.1)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl) ) )
192.168.0.11--为数据库所在机器ip
环境变量的配置
在环境变量添加TNS_ADMIN,值为tnsnames.ora所在路径。
如F:\oracleClient\instantclient_11_2\NETWORK\ADMIN\tnsnames.ora
设置ORACLE的语言,添加环境变量NLS_LANG,值为AMERICAN_AMERICA.AL32UTF8
如果出现乱码可用SIMPLIFIED CHINESE_CHINA.ZHS16GBK
下载并安装PLSQL Developer
安装完成后进入PLSQL Developer,选择tools->preferences->connection
Oracle Home
F:\oracleClient\instantclient_11_2
OCI library
F:\oracleClient\instantclient_11_2\oci.dll
保存,就可以使用了
时间: 2024-10-11 03:51:49