oralce客户端安装(绿色版)

1.下载Oracle Instant Client(basic版本)

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

2.设置环境变量

PATH=D:\work\oralce\client_11_2;

ORACLE_HOME=D:\work\oralce\client_11_2

TNS_ADMIN=D:\work\oralce\client_11_2

NLS_LANG=American_America.AL32UTF8

注意字符集合

3.在D:\work\oralce\client_11_2创建文件

  • tnsnames.ora

172.30.0.125 =

  (DESCRIPTION =

    (ADDRESS_LIST =

      (ADDRESS = (PROTOCOL = TCP)(HOST = 172.30.0.125)(PORT = 1521))

    )

    (CONNECT_DATA =

      (SERVICE_NAME = oradb01)

    )

  )

  • sqlnet.ora

SQLNET.AUTHENTICATION_SERVICES= (NTS)

NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)

你可能感兴趣的:(oralce)