linux環境下oracle client安裝和配置

來源:互聯網
上載者:User

oracle用戶端的安裝是非常簡單的,關鍵在tns配置,我這裡使用的rpm安裝包,oracle本身就不是開源,那使用rpm安裝時最簡單的。

,先下載下面三個檔案,注意版本最好一致。

         oracle-instantclient-basic-10.2.0.4-1.i386.rpm

         oracle-instantclient-sqlplus-10.2.0.4-1.i386.rpm

         oracle-instantclient-devel-10.2.0.4-1.i386.rpm

2.      

oracle-instantclient-basic-10.2.0.4-1.i386.rpm是基本的動態庫、jar包,預設安裝路徑是:

oracle-instantclient-sqlplus-10.2.0.4-1.i386.rpm是用戶端sqlplus安裝包, 預設安裝路徑是:/usr/lib/oracle/10.2.0.4/client

oracle-instantclient-devel-10.2.0.4-1.i386.rpm是api介面檔案,預設安裝路徑是:/usr/include/oracle/10.2.0.4/client

 

sudo rpm-avi oracle-instantclient-basic-10.2.0.4-1.i386.rpm

sudo rpm-avi oracle-instantclient-sqlplus-10.2.0.4-1.i386.rpm

sudo rpm-avi oracle-instantclient-devel-10.2.0.4-1.i386.rpm

 

4.      

5.      測試連接

USERNAME/PASSWD@test_base

USERNAME.TABLENAME where accountid = 8401428;


相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.