Configurating PLSQL using oracle instant client

本文介绍如何下载并配置Oracle Instant Client以实现与Oracle数据库的连接。包括设置环境变量、复制配置文件及配置PL/SQL Developer等内容。

1. Download oracle instant client

http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html

For downloading from oracle official website,you need a account first. After you login in, please choose the version you need and begin to download.

when get the oracle instant client package, please decompress it to a directory. For example, my directory is D:\ProgramFiles\instantclient_11_2.

2.Configurate environment variables

 As follow:
    PATH=D:\ProgramFiles\instantclient_11_2
    TNS_ADMIN=D:\ProgramFiles\instantclient_11_2
    LD_LIBRARY_PATH=D:\ProgramFiles\instantclient_11_2
    SQLPATH=D:\ProgramFiles\instantclient_11_2
    NLS_LANG=SIMPLIFIED CHINESE_CHINA.AL32UTF8

The NLS_LANG need to same as the setting of oracle server. you can select it like this: select * from v$nls_parameters;

3.Copy tnsnames.ora and sqlnet.ora

 Copying tnsnames.ora and sqlnet.ora from oracle server to D:\ProgramFiles\instantclient_11_2

4.Cofigurate PLSQL developer

Runing PLSQL developer, Click cancel at login window, Click Tools->Preferences, add two configurations at Connection item as below:

     Oracle Home:D:\ProgramFiles\instantclient_11_2
     OCI Library:D:\ProgramFiles\instantclient_11_2\oci.dll

Now, All of configurations are ok, Please restart PLSQL to take effect.

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值