一、准备
软件 | 版本 | 下载地址 |
PLSQL Developer | 12.0.7 | https://www.allroundautomations.com/files/plsqldev1207x64.msi |
PLSQL Developer汉化包 | 12.0 | https://www.allroundautomations.com/plsqldevlang/120/chinese.exe |
Oracle Instant Client | 12.2.0.1.0 | https://download.oracle.com/otn/nt/instantclient/122010/instantclient-basic-windows.x64-12.2.0.1.0.zip |
Microsoft Visual Studio 2013 Redistributable | 12.0.30501 | https://download.microsoft.com/download/F/3/5/F3500770-8A08-488E-94B6-17A1E1DD526F/vcredist_x64.exe |
ps:PLSQL Developer历史版本下载地址:https://www.allroundautomations.com/registered-plsqldev/
二、安装
PLSQL Developer、汉化包和Microsoft Visual Studio 2013 Redistributable都是双击exe可执行文件安装,Oracle Instant Client解压到自定义路径,比如:D:\Program\Oracle\instantclient_12_2
三、配置
配置系统环境变量
NLS_LANG=SIMPLIFIED CHINESE_CHINA.ZHS16GBK
TNS_ADMIN=D:\Program\Oracle\instantclient_12_2\NETWORK\ADMIN
如下图:
四、配置Oracle和OCI
启动PLSQL Developer
弹出登录窗口选择 取消 跳过登陆,先配置Oracle主目录名和OCI库
在菜单栏选择配置 >> 选择首选项 >> Oracle >> 连接
在Oracle主目录名中配置D:\Program\Oracle\instantclient_12_2
在OCI库中配置D:\Program\Oracle\instantclient_12_2\oci.dll
如下图:
然后点击确定后,退出PLSQL Developer
五、配置tnsnames.ora
在D:\Program\Oracle\instantclient_12_2\目录下新建NETWORK\ADMIN文件夹
在ADMIN文件夹中新建tnsnames.ora文件,编辑文件如下:
# tnsnames.ora Network Configuration File: D:\Program\Oracle\instantclient_12_2\NETWORK\ADMIN\tnsnames.ora # Generated by Oracle configuration tools. orcl = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.49.41)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = orcl) ) )
六、登录
再次打开PLSQL Developer时,弹出登录窗口就可以选择数据库
最后,附上注册码
PLSQL Developer 12 注册码
product code: 4vkjwhfeh3ufnqnmpr9brvcuyujrx3n3le
serial Number:226959
password: xs374ca亲测有效