1.Oracle官网下载instantclient
解压到D:\zl\instantclient_11_2
2.配置环境变量
- ORACLE_HOME = D:\zl\instantclient_11_2
- TNS_ADMIN = D:\zl\instantclient_11_2
- NLS_LANG = SIMPLIFIED CHINESE_CHINA.ZHS16GBK
3.在D:\zl\instantclient_11_2文件夹下创建两个文件tnsnames.ora和listener.ora
tnsnames.ora
ymdb =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.8)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = dbname)
)
)
listener.ora
LISTENER1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 要访问的数据库地址)(PORT = 1521))
)
4.配置plsqldevloper-->工具-->首选项-->连接
5.重启成功