ubuntu server 12.04 x86_64 下安装oracle xe 11 x86_64

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 <Enter> 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。

最后祝各位看官安装顺利!


转载于:https://my.oschina.net/codelinker/blog/355850

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值