Oracle RAC 停止启动问题

版本:Oracle 11g

系统:Solaris 5.10

问题:数据库卡慢,通过srvctl stop database -d orcl停止数据库后,再次启动,无法启动

报错如下:

PRCR-1079:Failed to start resource ora.orcl.db

CRS-5017: The resource action "ora.orcl.db start" encountered the following error:

ORA-27102: out of memory

但是通过SQLPLUS 使用startup,又启动了

参与42

12同行回答

desert_xudesert_xu数据库运维工程师杭州xxxx有限公司
这个是solaris 内核参数 project.max-shm-memory  不足以放下你的sga 值 导致 被分段,会影响性能显示全部

这个是solaris 内核参数 project.max-shm-memory  不足以放下你的sga 值 导致 被分段,会影响性能

收起
医药 · 2017-02-21
浏览5901
desert_xudesert_xu数据库运维工程师杭州xxxx有限公司
提示内存不足,看看alert日志,启动报什么错误显示全部

提示内存不足,看看alert日志,启动报什么错误

收起
医药 · 2017-02-21
浏览5223
xylhldyxylhldy系统工程师成都麦柯
我就是两个节点系统都重启了,重启后用srvctl启动还是报错;但是通过sqlplus启动,就正常启动了显示全部

我就是两个节点系统都重启了,重启后用srvctl启动还是报错;

但是通过sqlplus启动,就正常启动了

收起
系统集成 · 2017-02-21
浏览5233
zwz99999zwz99999系统工程师dcits
重启一下系统,然后手动单独启动有报错吗显示全部

重启一下系统,然后手动单独启动有报错吗

收起
系统集成 · 2017-02-21
浏览5305
李凯26李凯26技术经理西麦科技
主机重启下,估计是用srv关闭没有完全释放内存资源。显示全部

主机重启下,估计是用srv关闭没有完全释放内存资源。

收起
系统集成 · 2017-02-21
浏览5395
xylhldyxylhldy系统工程师成都麦柯
[code class=\"\"]我在日志中看到有个这个告警:WARNING: The system does not seem to be configuredoptimally. Creating a segment of size 0x00000003c2000000failed. Please change the shm parameters so thata segment can be created for this size. While this is...显示全部
[code class=\"\"]我在日志中看到有个这个告警:
WARNING: The system does not seem to be configured
optimally. Creating a segment of size 0x00000003c2000000
failed. Please change the shm parameters so that
a segment can be created for this size. While this is
not a fatal issue, creating one segment may improve performance[/code]收起
系统集成 · 2017-02-21
浏览5288
wangxuefengwangxuefeng系统运维工程师a
已经提示内存不足了。你返回到系统界面,看下内存状态。是不是有内存条有点问题了。显示全部

已经提示内存不足了。你返回到系统界面,看下内存状态。是不是有内存条有点问题了。

收起
系统集成 · 2017-02-21
浏览4274
desert_xudesert_xu数据库运维工程师杭州xxxx有限公司
Start Database by sqlplus, can not by srvctl on Solaris 10 (Oracle RAC 10G)http://surachartopun.com/2008/12/start-database-by-sqlplus-can-not-by.htmlAfter I changed project on Solaris 10.projmod -s -K \"project.max-shm-memory=(privileged,13832385536,...显示全部

Start Database by sqlplus, can not by srvctl on Solaris 10 (Oracle RAC 10G)

http://surachartopun.com/2008/12/start-database-by-sqlplus-can-not-by.html


After I changed project on Solaris 10.

projmod -s -K \"project.max-shm-memory=(privileged,13832385536,deny)\" oracle

something wrong, i can start instance by sqlplus, but can not by srvctl

srvctl  start instance -d db  -i  db2

PRKP-1001 : Error starting instance db2 on node node02

CRS-0215: Could not start resource \'ora.db.db2.inst\'.

When checked log files on ORACLE_HOME/log/{hostname}/racg/imon*log

SQL> ORA-27102: out of memory

SVR4 Error: 22: Invalid argument

SQL> Disconnected

So, found out some informations from matalink.

Cause

Problem is not the oracle project.

This occurs because when we start an instance using srvctl it will inherit the system project, since the crsd.bin is running as root, our racg infrastructure is starting the resource as oracle however racgwrap is initially started as root. It calls  setuid/setgid to change the user & group IDs but unfortunately when we do this we dont call the project ID.

Solution

Easiest fix for this problem is to define a project for system.

% projmod -s -K \"project.max-shm-memory=(privileged,2.00TB,deny)\" system

% projmod -s -K \"process.max-sem-nsems=(privileged,2048,deny)\" system

Above assigns root user the system project in order for the CRSD daemon (run under root\'s user id) to pick up the changes:

% vi /etc/user_attr, add root to project=system:

Finally restart CRS stack

And then I modified project (for system project)

projmod -s -K \"project.max-shm-memory=(privileged,13832385536,deny)\" oracle

projmod -s -K \"project.max-shm-memory=(privileged,15132385536,deny)\" system

that helped me solve this case.

srvctl  start instance -d db  -i  db2

收起
医药 · 2017-02-21
浏览4306
desert_xudesert_xu数据库运维工程师杭州xxxx有限公司
export SRVM_TRACE=TRUE执行srvctl 的trace日志贴一下,sqlplus  /  as sysdbashow parameter spfile 显示全部

export SRVM_TRACE=TRUE

执行srvctl 的trace日志贴一下,

sqlplus  /  as sysdba

show parameter spfile

收起
医药 · 2017-02-21
浏览5303
wangzhuangyongwangzhuangyong软件架构设计师众安房产
看报错,是内存问题显示全部

看报错,是内存问题

收起
互联网服务 · 2017-02-21
浏览5338

提问者

xylhldy
系统工程师成都麦柯

相关问题

相关资料

相关文章

问题状态

  • 发布时间:2017-02-21
  • 关注会员:6 人
  • 问题浏览:13468
  • 最近回答:2017-02-21
  • X社区推广