ubuntu下面安裝oracle10g

 ubuntu下面安裝oracle10g

(1) : ubuntu 6.06

(2): 由於 ubuntu 是 debian 的內核,所以要在 oracle 官方上下載 oracle-xe-universal_10.2.0.1-1.0_i386.deb

 

開始安裝(先看下面要注意的問題,第四項)

 

1:dpkg –I oracle-xe-universal_10.2.0.1-1.0_i386.deb

 

出現一下問題

 

正在解壓縮將用於更替的包文件 oracle-xe-universal ...

dpkg :依賴關係問題使得 oracle-xe-universal 的配置工作不能繼續:

 oracle-xe-universal 依賴於 libaio (>= 0.3.96) | libaio1 (>= 0.3.96);然而:

  軟件包 libaio還沒有被安裝。

  軟件包 libaio1還沒有被安裝。

dpkg :處理 oracle-xe-universal (--install)時出錯:

  依賴關係問題 - 仍未被配置

在處理時有錯誤發生:

 oracle-xe-universal

 

原來是libaio缺少,沒有安裝,我就下載下來,是個rpm,然後安裝這個rpm,

 

sudo apt-get libaio-0.3.96-7.i386.rpm

 

正在讀取軟件包列表... 完成

正在分析軟件包的依賴關係樹... 完成

E: 無法找到軟件包 libaio-0.3.96-7.i386.rpm

 

真是鬱悶反覆試驗都不行

 

 

放棄這樣安裝,到網上查找其他方案安裝libaio

 

網上說採用apt-get -f install安裝方式可能自動獲取包

 

 

apt-get -f  install 果然可以日誌如下

root@ubuntu:/home/oem# apt-get -f  install

正在讀取軟件包列表... 完成

正在分析軟件包的依賴關係樹... 完成

正在更正依賴關係... 完成

將會安裝下列額外的軟件包:

  libaio1

下列【新】軟件包將被安裝:

  libaio1

共升級了 0 個軟件包,新安裝了 1 個軟件包,要卸載 0 個軟件包,有 7 個軟件未被升級。

有 1 個軟件包沒有被完全安裝或卸載。

需要下載 5182B 的軟件包。

解壓縮後會消耗掉 61.4kB 的額外空間。

您希望繼續執行嗎?[Y/n]y

獲取:1 http://mirror.lupaworld.com dapper/main libaio1 0.3.104-1ubuntu6 [5182B]下載 5182B,耗時 2s (2346B/s)

選中了曾被取消選擇的軟件包 libaio1。

( 正在讀取數據庫 ... 系統當前總共安裝有 76207 個文件和目錄。)

正在解壓縮 libaio1 (從 .../libaio1_0.3.104-1ubuntu6_i386.deb) ...

正在設置 libaio1 (0.3.104-1ubuntu6) ...

 

正在設置 oracle-xe-universal (10.2.0.1-1.0) ...

Executing Post-install steps...

You must run '/etc/init.d/oracle-xe configure' as the root user to configure the database.

 

 

2 :

 

root@ubuntu:/home/oem#  /etc/init.d/oracle-xe configure

 

 

Oracle Database 10g Express Edition Configuration

-------------------------------------------------

This will configure on-boot properties of Oracle Database 10g Express

Edition.  The following questions will determine whether the database should

be starting upon system boot, the ports it will use, and the passwords that

will be used for database accounts.  Press <Enter> to accept the defaults.

Ctrl-C will abort.

 

Specify the HTTP port that will be used for Oracle Application Express [8080]:8080

 

Specify a port that will be used for the database listener [1521]:1521

 

Specify a password to be used for database accounts.  Note that the same

password will be used for SYS and SYSTEM.  Oracle recommends the use of

different passwords for each database account.  This can be done after

initial configuration:

Confirm the password:

 

Do you want Oracle Database 10g Express Edition to be started on boot (y/n) [y]:y

 

Starting Oracle Net Listener...Done

Configuring Database...

 

Starting Oracle Database 10g Express Edition Instance...Done

Installation Completed Successfully.

To access the Database Home Page go to "http://127.0.0.1:8080/apex"

 

 

  這就安裝完了?真是不可思以,比9I快很多啊,總共花了10幾分鐘,中間的配置少了好多啊。

 

3 :訪問數據

http://127.0.0.1:8080/apex

根據設置的密碼沒有問題,能夠正確訪問

 

 

4: 需要注意的問題:

在剛開始安裝的時候可能出現一下問題

 

root@ubuntu:/home/oem# dpkg -i oracle-xe-universal_10.2.0.1-1.0_i386.deb

選中了曾被取消選擇的軟件包 oracle-xe-universal。

( 正在讀取數據庫 ... 系統當前總共安裝有 73613 個文件和目錄。)

正在解壓縮 oracle-xe-universal (從 oracle-xe-universal_10.2.0.1-1.0_i386.deb) ...

This system does not meet the minimum requirements for swap space.  Based on

the amount of physical memory available on the system, Oracle Database 10g

Express Edition requires 750 MB of swap space. This system has 711 MB

of swap space.  Configure more swap space on the system and retry the installation.

dpkg :處理 oracle-xe-universal_10.2.0.1-1.0_i386.deb (--install)時出錯:

  子進程·pre-installation script·返回了錯誤號·1

在處理時有錯誤發生:

 oracle-xe-universal_10.2.0.1-1.0_i386.deb

 

這個問題是由於SWAP分區不夠的原因造成的,那就增加一個SWAP分區

 

1 :採用文件的方式增加swap分區

Dd if=/dev/zero of=/tmp/tmp.swap bs=1M count =100( 建立一個100M的文件)

mkswap /tmp/tmp.swap( 標識swap文件)

swapon /tmp/tmp.swap( 激活swap)

修改/etc/fstab文件增加一行

 

/tmp/tmp.swap swap swap defaluts 0 0

Swapon –s 查看當前的swap分區情況

發現已經有2個SWAP分區了,空間這下子夠了,可以繼續安裝了

 

2 :也可已採用直接增加SWAP方式(我沒有采用這樣的辦法)
發佈了50 篇原創文章 · 獲贊 6 · 訪問量 22萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章