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。
最后祝各位看官安装顺利!