Ubuntu升级 12.04无法启动( ORA-00845: MEMORY_TARGET)

安装了oracle11g的ubuntu升级到12.04启动是报错误ORA-00845: MEMORY_TARGET not supported on this system。
原因12.04中将/dev/shm目录改成了/run/shm,虽然已经有符号链接但是仍然报错。
解决:
1、编辑oracle-shm
sundoctor@sundoctor-ThinkPad-W510:~$ sudo gedit /etc/init.d/oracle-shm

#! /bin/sh
# /etc/init.d/oracle-shm
#
#
case $1 in
start)
echo "Starting script /etc/init.d/oracle-shm"
# Run only once at system startup
if [ -e /dev/shm/.oracle-shm ]; then
echo "/dev/shm is already mounted, nothing to do"
else
rm -f /dev/shm
mkdir /dev/shm
#mount -B /run/shm /dev/shm
mount --move /run/shm /dev/shm
mount -B /dev/shm /run/shm
touch /dev/shm/.oracle-shm
fi
;;
stop)
echo "Stopping script /etc/init.d/oracle-shm"
echo "Nothing to do"
;;
*)
echo "Usage:/etc/init.d/oracle-shm {start|stop}"
exit 1
;;
esac
#
### BEGIN INIT INFO
# Provides: oracle-shm
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description:Bind /run/shm to /dev/shm at system startup.
# Description: Fix to allow Oracle 11g use AMM.
### END INIT INFO
2、安装oracle-shm

sundoctor@sundoctor-ThinkPad-W510:~$sudo chmod 755 /etc/init.d/oracle-shm
sundoctor@sundoctor-ThinkPad-W510:~$sudo update-rc.d oracle-shm defaults 01 99

3、重启系统
sundoctor@sundoctor-ThinkPad-W510:~$sudo shutdown -r now

4、验证修改成功
sundoctor@sundoctor-ThinkPad-W510:~$sudo cat /etc/mtab |grep shm
none /dev/shm tmpfs rw,nosuid,nodev 0 0
/dev/shm /run/shm none rw,bind 0 0

5、启动数据库

sundoctor@sundoctor-ThinkPad-W510:~$su – oracle
sundoctor@sundoctor-ThinkPad-W510:~$dbstart

成功!!!
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值