oracle instantclient basic +pl/sql 安装和配置

好记性不如烂笔头,记录只为学习。

1、在Oracle官网(http://www.oracle.com/technetwork/topics/winsoft-085727.html)上下载 instantclient-basic-nt-11.2.0.2.0.zip ,大概50M左右,紧挨着这个有个basicLite版本,这个小一点。解压文件到C:\instantclient_11_2。

2、配置环境变量:

ORACLE_HOME=C:\instantclient_11_2   
TNS_ADMIN=C:\instantclient_11_2 
NLS_LANG=SIMPLIFIED CHINESE_CHINA.AL32UTF8

3、在C:\instantclient_11_2下新建如下目录:NETWORK  \  ADMIN 。在admin目录下新建文件tnsnames.ora。

4、配置host  port  service_name

ORCL =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.3)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SID = ORCL)
      (SERVER = DEDICATED)
    )
  ) 
5、运行PLSQL测试,看是否连的通

你可能感兴趣的:(oracle instantclient basic +pl/sql 安装和配置)