不安装Oracle数据库使用plsqldevloper

时间:2023-03-08 17:27:53

1.Oracle官网下载instantclient

解压到D:\zl\instantclient_11_2

2.配置环境变量

  1. ORACLE_HOME = D:\zl\instantclient_11_2
  2. TNS_ADMIN = D:\zl\instantclient_11_2
  3. 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-->工具-->首选项-->连接

不安装Oracle数据库使用plsqldevloper

5.重启成功