(1) : ubuntu 6.06
(2):
由于
ubuntu
是
debian
的內(nèi)核,所以要在
oracle
官方上下載
oracle-xe-universal_
開始安裝(先看下面要注意的問題,第四項(xiàng))
1:dpkg –I oracle-xe-universal_
出現(xiàn)一下問題
正在解壓縮將用于更替的包文件 oracle-xe-universal ...
dpkg
:依賴關(guān)系問題使得 oracle-xe-universal 的配置工作不能繼續(xù):
?oracle-xe-universal
依賴于 libaio (>= 0.3.96) | libaio1 (>= 0.3.96);然而:
?
軟件包 libaio還沒有被安裝。
?
軟件包 libaio1還沒有被安裝。
dpkg
:處理 oracle-xe-universal (--install)時(shí)出錯(cuò):
?
依賴關(guān)系問題 - 仍未被配置
在處理時(shí)有錯(cuò)誤發(fā)生:
?oracle-xe-universal
原來是libaio缺少,沒有安裝,我就下載下來,是個(gè)rpm,然后安裝這個(gè)rpm,
sudo apt-get libaio-0.3.96-7.i386.rpm
正在讀取軟件包列表... 完成
正在分析軟件包的依賴關(guān)系樹... 完成
E:
無(wú)法找到軟件包 libaio-0.3.96-7.i386.rpm
真是郁悶反復(fù)試驗(yàn)都不行
放棄這樣安裝,到網(wǎng)上查找其他方案安裝libaio
網(wǎng)上說采用apt-get -f install安裝方式可能自動(dòng)獲取包
apt-get -f? install
果然可以日志如下
root@ubuntu:/home/oem# apt-get -f? install
正在讀取軟件包列表... 完成
正在分析軟件包的依賴關(guān)系樹... 完成
正在更正依賴關(guān)系... 完成
將會(huì)安裝下列額外的軟件包:
? libaio1
下列【新】軟件包將被安裝:
? libaio1
共升級(jí)了 0 個(gè)軟件包,新安裝了 1 個(gè)軟件包,要卸載 0 個(gè)軟件包,有 7 個(gè)軟件未被升級(jí)。
有 1 個(gè)軟件包沒有被完全安裝或卸載。
需要下載 5182B 的軟件包。
解壓縮后會(huì)消耗掉 61.4kB 的額外空間。
您希望繼續(xù)執(zhí)行嗎?[Y/n]y
獲取:1 http://mirror.lupaworld.com dapper/main libaio1 0.3.104-1ubuntu6 [5182B]下載 5182B,耗時(shí) 2s (2346B/s)
選中了曾被取消選擇的軟件包 libaio1。
(
正在讀取數(shù)據(jù)庫(kù) ... 系統(tǒng)當(dāng)前總共安裝有 76207 個(gè)文件和目錄。)
正在解壓縮 libaio1 (從 .../libaio1_0.3.104-1ubuntu6_i386.deb) ...
正在設(shè)置 libaio1 (0.3.104-1ubuntu6) ...
正在設(shè)置 oracle-xe-universal (
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
-------------------------------------------------
This will configure on-boot properties of Oracle Database
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
Starting Oracle Net Listener...Done
Configuring Database...
Starting Oracle Database
Installation Completed Successfully.
To access the Database Home Page go to "http://127.0.0.1:8080/apex"
?
這就安裝完了?真是不可思以,比9I快很多啊,總共花了10幾分鐘,中間的配置少了好多啊。
3
:訪問數(shù)據(jù)
根據(jù)設(shè)置的密碼沒有問題,能夠正確訪問
4:
需要注意的問題:
在剛開始安裝的時(shí)候可能出現(xiàn)一下問題
root@ubuntu:/home/oem# dpkg -i oracle-xe-universal_
選中了曾被取消選擇的軟件包 oracle-xe-universal。
(
正在讀取數(shù)據(jù)庫(kù) ... 系統(tǒng)當(dāng)前總共安裝有 73613 個(gè)文件和目錄。)
正在解壓縮 oracle-xe-universal (從 oracle-xe-universal_
This system does not meet the minimum requirements for swap space.? Based on
the amount of physical memory available on the system, Oracle Database
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_
?
子進(jìn)程·pre-installation script·返回了錯(cuò)誤號(hào)·1
在處理時(shí)有錯(cuò)誤發(fā)生:
?oracle-xe-universal_
這個(gè)問題是由于SWAP分區(qū)不夠的原因造成的,那就增加一個(gè)SWAP分區(qū)
1
:采用文件的方式增加swap分區(qū)
Dd if=/dev/zero of=/tmp/tmp.swap bs=
mkswap /tmp/tmp.swap(
標(biāo)識(shí)swap文件)
swapon /tmp/tmp.swap(
激活swap)
修改/etc/fstab文件增加一行
/tmp/tmp.swap swap swap defaluts 0 0
Swapon –s
查看當(dāng)前的swap分區(qū)情況
發(fā)現(xiàn)已經(jīng)有2個(gè)SWAP分區(qū)了,空間這下子夠了,可以繼續(xù)安裝了
2
:也可已采用直接增加SWAP方式(我沒有采用這樣的辦法)