instantclient_11_2与PLSQL Developer的配置
1,在instantclient_11_2文件夹里找到instantclient_11_2\network\admin目录下的
tnsnames.ora文件,打开此文件,进行相关的数据库的地址的配置
DEVDB =
(DESCRIPTION =
(ADDRESS = (PROTOCOL =TCP)(HOST = 192.168.1.247)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = devdb)
)
)
注解:DEVDB 这是数据库的名称,HOST = 192.168.1.247这是数据库的地址,
PORT = 1521数据库端口号 SERVICE_NAME = devdb 数据库名称
2.在PLSQL Developer文件目录下面新建一个文件start.bat
在文件里写如下内容:
@echooff
set path=F:\oralceclint\instantclient_11_2
set ORACLE_HOME=F:\oralceclint\instantclient_11_2
set TNS_ADMIN=F:\oralceclint\instantclient_11_2
set NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
start plsqldev.exe