1、官网下载plsql developer
官方地址如下:https://www.allroundautomations.com/try-it-free/
2、安装plsql developer,安装目录我安装到了 E:\software\plsql developer\PLSQL 路径。
3、把instantclient_11_2从 E:\software\plsql developer\PLSQL 移到了 E:\software\plsql developer (这一步可以不用做,根据个人喜好,注意instantclient_11_2的路径,后续会用到)
instantclient_11_2 和 PLSQL 并列
4、在系统环境变量中配置Path,添加instantclient的路径,即
E:\software\plsql developer\instantclient_11_2
5、增加环境变量
NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
TNS_ADMIN=E:\software\plsql developer\instantclient_11_2
6、在PL/SQL Developer->工具->首选项->Oracle连接中设置
Oracle主目录名:E:\software\plsql developer\instantclient_11_2
OCI库:E:\software\plsql developer\instantclient_11_2\oci.dll
7、在E:\software\plsql developer\instantclient_11_2下,找到tnsnames.ora并用记事本打开,添加或修改如下配置
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)
8、再次打开PLSQL Developer,即可找到相应的数据库并运行成功。Database 下拉框可以选择ORCL,输入用户名和密码即可。