分类: LINUX
2014-12-27 19:46:13
cd ~/.wine/drive_c
mkdir -p oracle/instantclient/bin
mkdir -p oracle/instantclient/network/admin
将 instantclient xxx .zip 解压到 bin 目录下
admin 目录下创建 tnsnames.ora
sch@LH532:~/.wine/drive_c/oracle/instantclient/network/admin$ more tnsnames.ora
SHEDI_245 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.154.245)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = shedi)
)
)
wine regedit
进入到 HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment
ORACLE_HOME c:\oracle\instantclient
NLS_LANG AMERICAN_CHINA.ZHS16GBK
TNS_ADMIN c:\oracle\instantclient\network\admin
PATH 在PATH的最后添加: ;c:\oracle\instantclient\bin