plsql developer连接oracle数据库
1.下载安装PLSQL Developer12
访问PLSQL Developer官网https://www.allroundautomations.com/bodyplsqldevreg.html,下载win64版本
2.访问oracle官网,下载Instant Client并解压,解压后复制到PLSQL Developer12安装目录下
http://www.oracle.com/technetwork/database/database-technologies/instant-client/downloads/index.html
3.PLSQL Developer配置
打开PLSQL Developer,登录窗口直接选择cancel,在主界面选择Configure - Preferences - Connection
- 设置Oracle Home为 instantclient解压路径
- 设置OCI liarary为 instantclient解压路径\oci.dll
4.配置环境变量
-
- NLS_LANG SIMPLIFIED CHINESE_CHINA.ZHS16GBK
- TNS_ADMIN instantclient解压路径
5.配置tnsnames.ora
在 instantclient解压路径下创建文件新建network/admin/tnsnames.ora,输入TNS连接信息,注意修改红色部分
TEST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)