在64位Ubuntu Server版本安裝Oracle XE

來源:互聯網
上載者:User

Ubuntu版本:

uname -r

Linux localserver 2.6.32-24-server #43-Ubuntu SMP Thu Sep 16 16:05:42 UTC 2010 x86_64 GNU/Linux

在64位的系統上安裝xe先要安裝32位的庫:

sudo apt-get install libc6-i386

下一步是下載需要的檔案:libaio_0.3.104-1_i386.deb 和 Oracle-xe-universal_10.2.0.1-1.1_i386.deb

wget -c http://oss.oracle.com/debian/dists/unstable/main/binary-i386/libaio_0.3.104-1_i386.deb http://oss.oracle.com/debian/dists/unstable/non-free/binary-i386/oracle-xe-universal_10.2.0.1-1.1_i386.deb

安裝:

sudo apt-get install bc

sudo dpkg -i --force-architecture libaio_0.3.104-1_i386.deb
sudo dpkg -i --force-architecture oracle-xe-universal_10.2.0.1-1.1_i386.deb

到這裡,安裝步驟已經完成。接下來是設定部分

sudo /etc/init.d/oracle-xe configure

根據提示完成設定。

編輯一些環境變數:sudo vim /etc/profile

在檔案最後加上:

ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
PATH=$PATH:$ORACLE_HOME/bin
export ORACLE_HOME
export ORACLE_SID=XE
export PATH

完成後訪問http://127.0.0.1:8080/apex可以管理資料庫

常見問題:xe不能遠端存取

Answer:

Oracle XE 安裝完成後,可以通過 http://127.0.0.1:8080/apex 訪問Oracle Application Express 。Oracle XE 預設只監聽 127.0.0.1的 8080 連接埠, 不能在別的機器上通過瀏覽器訪問XE執行個體,如果需要在別的機器上訪問資料庫伺服器上的XE執行個體,需要以system 身份登陸XE資料庫,運行 EXEC DBMS_XDB.SETLISTENERLOCALACCESS(FALSE);。


SQL> EXEC DBMS_XDB.SETLISTENERLOCALACCESS(FALSE);

PL/SQL 過程已成功完成.

SQL> exit

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.