Configuration of instant client
oracle server developer comes with a client
Unzip directory: D:\Toolkit\instantclient_11_2
Set environment variables
ØAdd to the Path variable: D:\Toolkit\instantclient_11_2
Ø NLS_LANG=SIMPLIFIED CHINESE_CHINA.ZHS16GBK
Ø ORACLE_HOME=D:\Toolkit\instantclient_11_2
Variables can be omitted:
Ø TNS_ADMIN=D:\Toolkit\instantclient_11_2
nThe default directory is %ORACLE_HOME%\network\admin
SQL_PATH=D:\Toolkit\instantclient_11_2
LD_LIBRARY_PATH=D:\Toolkit\instantclient_11_2
tnsnames.ora given sqlnet.ora
Generally not required, but individual software will recognize these files, and it will be no later than adding these files when encountered.
tnsnames.ora example
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
)
)
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = Oracle)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)
sqlnet.ora example
#This is to install the client authentication configuration, and the " ORA-12638: solution to the identity certificate retrieval failure" error will be reported on the instant client.
#SQLNET.AUTHENTICATION_SERVICES= (NTS)
#Authentication configuration of instant client:
SQLNET.AUTHENTICATION_SERVICES= (NONE)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)