1.下載oracle xe
我下載的是oracle-xe-11.2.0-1.0.x86_64.rpm.zip
2. 安裝必要程序或文件
$sudo?apt-get?install?unzip?chkconfig?libaio1?alien
3.解壓上面的oraclexxx.zip文件,然后進行轉換
$sudo?alien?-d?--scripts?oracle-xe-11.2.0-1.0.x86_64.rpm
上面轉換完成后會生成一個?oracle-xe_11.2.0-2_amd64.deb 文件 。
4.建立一個軟鏈接
這個在安裝上面的文件時會用到
#ln?-s?/usr/lib/insserv/insserv?/sbin/insserv
5.安裝
$sudo?dpkg?-i?oracle-xe_11.2.0-2_amd64.deb
6.先暫停下安裝,修改相關配置
添加一個文件目錄
#mkdir?-p?/var/lock/subsys
修改 /etc/init.d/oracle-xe 文件
....
53?if?[?-z?"$AWK"?];?then?AWK=/usr/bin/awk;?fi
.....
.....
65?###################################################?下面這些是新增的
66?echo?"check?/dev/shm?start"
67?if?[?-L?/dev/shm?];?then
68??????echo?"create"
69??????rm?-rf?/dev/shm
70??????mkdir?/dev/shm
71??????mount?-t?tmpfs?shmfs?-o?size=2048m?/dev/shm
72?fi
73?echo?"check?/dev/shm?end"
74?###################################################
7.執行安裝命令
#?/etc/init.d/oracle-xe?configure
check?/dev/shm?start
check?/dev/shm?end
Oracle?Database?11g?Express?Edition?Configuration
-------------------------------------------------
This?will?configure?on-boot?properties?of?Oracle?Database?11g?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??to?accept?the?defaults.
Ctrl-C?will?abort.
Specify?the?HTTP?port?that?will?be?used?for?Oracle?Application?Express?[8080]:81
Specify?a?port?that?will?be?used?for?the?database?listener?[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?11g?Express?Edition?to?be?started?on?boot?(y/n)?[y]:y
Starting?Oracle?Net?Listener...Done
Configuring?database...Done
Starting?Oracle?Database?11g?Express?Edition?instance...Done
Installation?completed?successfully.
oralce xe 默認的sid 為 XE。
最后祝各位看官安裝順利!