数据库

 首页 > 数据库 > Oracle > ORA-00845:MEMORY_TARGET导致Ubuntu升级12.04无法启动的问题

ORA-00845:MEMORY_TARGET导致Ubuntu升级12.04无法启动的问题

分享到:
【字体:
导读:
         摘要:ORA-00845:MEMORY_TARGET导致Ubuntu升级12.04无法启动的问题安装了oracle11g的ubuntu升级到12.04启动是报错误ORA-00845:MEMORY_TARGETnotsupportedonthissystem。原因12.04中将/dev/shm目录改成了/run... ...

ORA-00845:MEMORY_TARGET导致Ubuntu升级12.04无法启动的问题
ORA-00845:MEMORY_TARGET导致Ubuntu升级12.04无法启动的问题
 
安装了oracle11g的ubuntu升级到12.04启动是报错误ORA-00845:
MEMORY_TARGET not supported on this system。 
原因12.04中将/dev/shm目录改成了/run/shm,虽然已经有符号链接但是仍然报错。 
 
解决:   www.2cto.com  
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   www.2cto.com  
;; 
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   www.2cto.com  
# 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 
  www.2cto.com  
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 
 
成功!!!

 
 
摘自 曾文锋开发日志
ORA-00845:MEMORY_TARGET导致Ubuntu升级12.04无法启动的问题
分享到:
关于多层级数据汇总的问题
关于多层级数据汇总的问题     解决方案:   create table t_20120512_a ( id varchar2(6) primary key, cost number(3),  www.2cto.com   p2 number(3), p3 number(3) ) / create table t_20120512_b ( id varchar2(6) primary key, name varchar2(50), b varchar2(100) ) / insert into t_20120512_a values (&#039...
Oracle创建Job时遇到ORA-04063 SYS.DBMS_...
Oracle创建Job时遇到ORA-04063 SYS.DBMS_INTERNAL_LOGSTDBY的解决办法 Oracle创建Job时遇到ORA-04063 SYS.DBMS_INTERNAL_LOGSTDBY的解决办法   项目上需要使用job在每月月初重置序列,在我本机的Oracle上创建job成功了, 但在项目的测试平台上创建却报了ORA-04063的错误,详见下图:     在网上搜索,有人说要重新编译D...
  •         php迷,一个php技术的分享社区,专属您自己的技术摘抄本、收藏夹。
  • 在这里……