Oracle Instant Client environment configuration

1. Configure the Oracle Instant Client environment. Go
to the Oracle official website to download the Oracle Instant Client, and pay attention to choosing the x86 platform. Toad only recognizes the 32-bit Oracle Instant Client. As for the version number, there is no special requirement, and the version is downward compatible.

On the desktop, right-click on "My Computer", select "Properties", select "Environment Variables" in the "Advanced" page, and in the system variables, modify as follows

变量名:ORACLE_HOME
变量值:D:\Program Files\instantclient_11_2
变量名:TNS_ADMIN
变量值:D:\Program Files\instantclient_11_2
变量名:NLS_LANG
变量值:SIMPLIFIED CHINESE_CHINA.ZHS16GBK
修改Path变量,在后面添加 D:\Program Files\instantclient_11_2

Create a new text file in D:\Program Files\instantclient_11_2, the file name is tnsnames.ora

//orcl can be customized and replaced
//HOST is modified to Oracle Server address
SERVICE_NAME is modified to Oracle instance name

orcl = 
      (DESCRIPTION = 
        (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.30.85)(PORT = 1521)) 
        (CONNECT_DATA = 
          (SERVER = DEDICATED) 
          (SERVICE_NAME = orcl) 
        ) 
      )

Reposted from http://blog.csdn.net/shenhonglei1234/article/details/7257741

2. Start plsql, because it has not been configured, so you can cancel to
enter plsql, and set the oracle home path and oci library path in tools->connection in the upper option bar. Some versions of the interface may not be in the upper option bar tools–>connection, so you may be able to find the configuration of Oracle Home elsewhere, then apply, restart plsql, you will find that the database will display orcl, and then enter your user and password, you can log in
Insert picture description here
Insert picture description here

Guess you like

Origin blog.csdn.net/wujian_csdn_csdn/article/details/111518835