yum install unixODBC
rpm -ivh oracle-instantclient-basic-10.2.0.3-1.i386.rpm #downloaded on http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/linuxsoft.html
unzip instantclient-odbc-linux32-10.2.0.3-20061115.zip #downloaded on http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/linuxsoft.html
cp ./instantclient_10_2/libsqora.so.10.1 /usr/lib/oracle/10.2.0.3/client/lib/
export ORACLE_HOME=/usr/lib/oracle/10.2.0.3/client
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
還需要設置爲$TWO_TASK
(其中甲骨文正在尋求皮卡服務器的默認位置),以點Oracle服務器運行在Windows上哪裏 - - 不要忘記在最後的端口號後添加監聽器:
export TWO_TASK=//213.123.23.19:1521/listener
爲了再檢查一下爲偵聽器的名稱,在窗戶上鍵入以下命令提示用戶正在運行Oracle Se rver:
lsnrctl
status
它將招募監聽者及其狀態(READY或UNKNOWN)。連接到處於就緒狀態監聽器:Instance "zelistener", status READY
的mkdir /等/ ORACLE
六/etc/oracle/tnsnames.ora
MY_SID =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(PROTOCOL = TCP)
(Host = 127.0.0.1)
(Port = 1521)
)
)
(CONNECT_DATA = (SID = MY_SID)
)
)
出口TNS_ADMIN =的/ etc/ORACLE
六/etc/odbcinst.ini
[OracleODBC-10g]
Description = Oracle ODBC driver for Oracle 10g
Driver = /usr/lib/oracle/10.2.0.3/client/lib/libsqora.so.10.1
FileUsage = 1
Driver Logging = 7
六/etc/odbc.ini
[simple]
Driver = OracleODBC-10g
DSN = OracleODBC-10g
ServerName = MY_SID
UserID = USER
Password = PASSWORD
的isql -v簡單
+---------------------------------------+
| Connected! |
| |
| sql-statement |
| help [tablename] |
| quit |
| |
+---------------------------------------+
那麼有什麼不適合你? –