簡單修改 讓Ubuntu下Tora支援Oracle

來源:互聯網
上載者:User

Tora是unix/linux下類似toad的資料庫工具。

  Ubuntu(版本Dapper Drake)下直接用apt-get安裝的Tora只有PostgreSQL一個provider。方法給Tora加入了Oracle的支援。大致的步驟如下(有幾個地方與文章裡不同,包括Tora編譯不過去的解決辦法):

  1. 安裝Oracle Instant Client

    $ sudo apt-get install oracle-xe-client

  OIC安裝後的目錄是/usr/lib/oracle/xe/app/oracle/product/10.2.0/client

  2. 把OIC的安裝目錄加到/etc/ld.so.conf檔案裡,然後執行ldconfig命令重新整理

    $ sudo ldconfig

  3. 修改/etc/profile,加入一些新的環境變數

    export ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/client

    export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH

    export TNS_ADMIN=/usr/lib/oracle

    export PATH=$PATH:$ORACLE_HOME/bin

  儲存好後,重新登入使其生效,可以用env或printenv命令檢查。

  4. 安裝Tora和它的源碼(需要有source源)

    $ sudo apt-get install tora

    $ sudo apt-get source tora

  • 1
  • 2
  • 下一頁
【內容導航】
第1頁:簡單修改 讓Ubuntu下Tora支援Oracle 第2頁:簡單修改 讓Ubuntu下Tora支援Oracle

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.