ASM实例内存修改

memory_max_target(它为静态参数,修改完成后需要重启实例)

memory_target(它为动态参数,不需要重启实例)

SQL> select name,issys_modifiable from v$parameter   where name='memory_max_target';

NAME                                                                             ISSYS_MOD

-------------------------------------------------------------------------------- ---------

memory_max_target                                                                FALSE

SQL> select name,issys_modifiable from v$parameter where name='memory_target';

NAME                                                                             ISSYS_MOD

-------------------------------------------------------------------------------- ---------

memory_target                                                                    IMMEDIATE

查看ASM内存,并修改memory_max_target,由512M变为4G

[grid@db1 ~]$ sqlplus / as sysasm

SQL*Plus: Release 11.2.0.3.0 Production on Wed Sep 25 14:44:59 2013

Copyright (c) 1982, 2011, Oracle.  All rights reserved.

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production

With the Real Application Clusters and Automatic Storage Management options

SQL> show parameter mem;

NAME                                 TYPE        VALUE

------------------------------------ ----------- ------------------------------

memory_max_target                    big integer 512M

memory_target                        big integer 512M

SQL>

SQL>

SQL> alter system set memory_max_target=4G scope=spfile;

System altered.

SQL> exit

Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production

With the Real Application Clusters and Automatic Storage Management options

查看crs状态(因为测试数据库实例与监听没有启动,如果生产环境中,建议一个个去停,保证业务正常运行)

[grid@db1 ~]$ crsctl stat res -t

--------------------------------------------------------------------------------

NAME           TARGET  STATE        SERVER                   STATE_DETAILS

--------------------------------------------------------------------------------

Local Resources

--------------------------------------------------------------------------------

ora.DATA.dg

ONLINE  ONLINE       db1

ONLINE  ONLINE       db2

ora.FRA.dg

ONLINE  ONLINE       db1

ONLINE  ONLINE       db2

ora.LISTENER.lsnr

OFFLINE OFFLINE      db1

OFFLINE OFFLINE      db2

ora.OCR.dg

ONLINE  ONLINE       db1

ONLINE  ONLINE       db2

ora.asm

ONLINE  ONLINE       db1                      Started

ONLINE  ONLINE       db2                      Started

ora.gsd

OFFLINE OFFLINE      db1

OFFLINE OFFLINE      db2

ora.net1.network

ONLINE  ONLINE       db1

ONLINE  ONLINE       db2

ora.ons

ONLINE  ONLINE       db1

ONLINE  ONLINE       db2

--------------------------------------------------------------------------------

Cluster Resources

--------------------------------------------------------------------------------

ora.LISTENER_SCAN1.lsnr

1        ONLINE  ONLINE       db2

ora.cvu

1        ONLINE  ONLINE       db1

ora.db1.vip

1        ONLINE  ONLINE       db1

ora.db2.vip

1        ONLINE  ONLINE       db2

ora.dmzdb.db

1        OFFLINE OFFLINE                               Instance Shutdown

2        OFFLINE OFFLINE                               Instance Shutdown

ora.oc4j

1        ONLINE  ONLINE       db1

ora.scan1.vip

1        ONLINE  ONLINE       db2

[grid@db1 ~]$

停crs  全部节点

注:修改asm实例内存,需要重启asm实例

测试了下重启实例,需要停diskgroup相对重启crs要麻烦

故选择重启crs,生产环境可以一个个实例重启,保证业务能够运行

本例为了测试方便去,全部停止,全部启动

[root@db1 ~]# crsctl stop  cluster -all

CRS-2673: Attempting to stop 'ora.crsd' on 'db1'

CRS-2673: Attempting to stop 'ora.crsd' on 'db2'

CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'db1'

CRS-2673: Attempting to stop 'ora.db1.vip' on 'db1'

CRS-2673: Attempting to stop 'ora.FRA.dg' on 'db1'

CRS-2673: Attempting to stop 'ora.OCR.dg' on 'db1'

CRS-2673: Attempting to stop 'ora.DATA.dg' on 'db1'

CRS-2673: Attempting to stop 'ora.oc4j' on 'db1'

CRS-2673: Attempting to stop 'ora.cvu' on 'db1'

CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'db2'

CRS-2673: Attempting to stop 'ora.db2.vip' on 'db2'

CRS-2673: Attempting to stop 'ora.FRA.dg' on 'db2'

CRS-2673: Attempting to stop 'ora.OCR.dg' on 'db2'

CRS-2673: Attempting to stop 'ora.DATA.dg' on 'db2'

CRS-2673: Attempting to stop 'ora.LISTENER_SCAN1.lsnr' on 'db2'

CRS-2677: Stop of 'ora.db1.vip' on 'db1' succeeded

CRS-2677: Stop of 'ora.db2.vip' on 'db2' succeeded

CRS-2677: Stop of 'ora.DATA.dg' on 'db1' succeeded

CRS-2677: Stop of 'ora.LISTENER_SCAN1.lsnr' on 'db2' succeeded

CRS-2673: Attempting to stop 'ora.scan1.vip' on 'db2'

CRS-2677: Stop of 'ora.FRA.dg' on 'db2' succeeded

CRS-2677: Stop of 'ora.scan1.vip' on 'db2' succeeded

CRS-2677: Stop of 'ora.FRA.dg' on 'db1' succeeded

CRS-2677: Stop of 'ora.DATA.dg' on 'db2' succeeded

CRS-2677: Stop of 'ora.oc4j' on 'db1' succeeded

CRS-2677: Stop of 'ora.cvu' on 'db1' succeeded

CRS-2677: Stop of 'ora.OCR.dg' on 'db1' succeeded

CRS-2673: Attempting to stop 'ora.asm' on 'db1'

CRS-2677: Stop of 'ora.OCR.dg' on 'db2' succeeded

CRS-2673: Attempting to stop 'ora.asm' on 'db2'

CRS-2677: Stop of 'ora.asm' on 'db1' succeeded

CRS-2677: Stop of 'ora.asm' on 'db2' succeeded

CRS-2673: Attempting to stop 'ora.ons' on 'db2'

CRS-2677: Stop of 'ora.ons' on 'db2' succeeded

CRS-2673: Attempting to stop 'ora.net1.network' on 'db2'

CRS-2677: Stop of 'ora.net1.network' on 'db2' succeeded

CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'db2' has completed

CRS-2673: Attempting to stop 'ora.ons' on 'db1'

CRS-2677: Stop of 'ora.ons' on 'db1' succeeded

CRS-2673: Attempting to stop 'ora.net1.network' on 'db1'

CRS-2677: Stop of 'ora.net1.network' on 'db1' succeeded

CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'db1' has completed

CRS-2677: Stop of 'ora.crsd' on 'db2' succeeded

CRS-2673: Attempting to stop 'ora.ctssd' on 'db2'

CRS-2673: Attempting to stop 'ora.evmd' on 'db2'

CRS-2673: Attempting to stop 'ora.asm' on 'db2'

CRS-2677: Stop of 'ora.crsd' on 'db1' succeeded

CRS-2673: Attempting to stop 'ora.ctssd' on 'db1'

CRS-2673: Attempting to stop 'ora.evmd' on 'db1'

CRS-2673: Attempting to stop 'ora.asm' on 'db1'

CRS-2677: Stop of 'ora.evmd' on 'db2' succeeded

CRS-2677: Stop of 'ora.ctssd' on 'db1' succeeded

CRS-2677: Stop of 'ora.evmd' on 'db1' succeeded

CRS-2677: Stop of 'ora.ctssd' on 'db2' succeeded

CRS-2677: Stop of 'ora.asm' on 'db2' succeeded

CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'db2'

CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'db2' succeeded

CRS-2673: Attempting to stop 'ora.cssd' on 'db2'

CRS-2677: Stop of 'ora.cssd' on 'db2' succeeded

CRS-2677: Stop of 'ora.asm' on 'db1' succeeded

CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'db1'

CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'db1' succeeded

CRS-2673: Attempting to stop 'ora.cssd' on 'db1'

CRS-2677: Stop of 'ora.cssd' on 'db1' succeeded

启动crs 全部节点

[root@db1 ~]# crsctl start  cluster -all

CRS-2672: Attempting to start 'ora.cssdmonitor' on 'db1'

CRS-2672: Attempting to start 'ora.cssdmonitor' on 'db2'

CRS-2676: Start of 'ora.cssdmonitor' on 'db1' succeeded

CRS-2672: Attempting to start 'ora.cssd' on 'db1'

CRS-2676: Start of 'ora.cssdmonitor' on 'db2' succeeded

CRS-2672: Attempting to start 'ora.diskmon' on 'db1'

CRS-2672: Attempting to start 'ora.cssd' on 'db2'

CRS-2672: Attempting to start 'ora.diskmon' on 'db2'

CRS-2676: Start of 'ora.diskmon' on 'db1' succeeded

CRS-2676: Start of 'ora.diskmon' on 'db2' succeeded

CRS-2676: Start of 'ora.cssd' on 'db1' succeeded

CRS-2672: Attempting to start 'ora.ctssd' on 'db1'

CRS-2676: Start of 'ora.cssd' on 'db2' succeeded

CRS-2672: Attempting to start 'ora.ctssd' on 'db2'

CRS-2672: Attempting to start 'ora.cluster_interconnect.haip' on 'db2'

CRS-2676: Start of 'ora.ctssd' on 'db1' succeeded

CRS-2672: Attempting to start 'ora.evmd' on 'db1'

CRS-2672: Attempting to start 'ora.cluster_interconnect.haip' on 'db1'

CRS-2676: Start of 'ora.ctssd' on 'db2' succeeded

CRS-2672: Attempting to start 'ora.evmd' on 'db2'

CRS-2676: Start of 'ora.evmd' on 'db1' succeeded

CRS-2676: Start of 'ora.evmd' on 'db2' succeeded

CRS-2676: Start of 'ora.cluster_interconnect.haip' on 'db1' succeeded

CRS-2672: Attempting to start 'ora.asm' on 'db1'

CRS-2676: Start of 'ora.cluster_interconnect.haip' on 'db2' succeeded

CRS-2672: Attempting to start 'ora.asm' on 'db2'

CRS-2676: Start of 'ora.asm' on 'db1' succeeded

CRS-2672: Attempting to start 'ora.crsd' on 'db1'

CRS-2676: Start of 'ora.crsd' on 'db1' succeeded

CRS-2676: Start of 'ora.asm' on 'db2' succeeded

CRS-2672: Attempting to start 'ora.crsd' on 'db2'

CRS-2676: Start of 'ora.crsd' on 'db2' succeeded

[root@db1 ~]#

查看crs状态,发现crs启动正常

[grid@db1 ~]$ crsctl stat res -t

--------------------------------------------------------------------------------

NAME           TARGET  STATE        SERVER                   STATE_DETAILS

--------------------------------------------------------------------------------

Local Resources

--------------------------------------------------------------------------------

ora.DATA.dg

ONLINE  ONLINE       db1

ONLINE  ONLINE       db2

ora.FRA.dg

ONLINE  ONLINE       db1

ONLINE  ONLINE       db2

ora.LISTENER.lsnr

OFFLINE OFFLINE      db1

OFFLINE OFFLINE      db2

ora.OCR.dg

ONLINE  ONLINE       db1

ONLINE  ONLINE       db2

ora.asm

ONLINE  ONLINE       db1                      Started

ONLINE  ONLINE       db2                      Started

ora.gsd

OFFLINE OFFLINE      db1

OFFLINE OFFLINE      db2

ora.net1.network

ONLINE  ONLINE       db1

ONLINE  ONLINE       db2

ora.ons

ONLINE  ONLINE       db1

ONLINE  ONLINE       db2

--------------------------------------------------------------------------------

Cluster Resources

--------------------------------------------------------------------------------

ora.LISTENER_SCAN1.lsnr

1        ONLINE  ONLINE       db2

ora.cvu

1        ONLINE  ONLINE       db1

ora.db1.vip

1        ONLINE  ONLINE       db1

ora.db2.vip

1        ONLINE  ONLINE       db2

ora.dmzdb.db

1        OFFLINE OFFLINE                               Instance Shutdown

2        OFFLINE OFFLINE                               Instance Shutdown

ora.oc4j

1        ONLINE  ONLINE       db1

ora.scan1.vip

1        ONLINE  ONLINE       db2

1        ONLINE  ONLINE       db2

db1节点上查看mem,此时memory_max_target变为4G

修改memory_target  ,由512M变为1536M

[grid@db1 ~]$ sqlplus / as sysasm

SQL*Plus: Release 11.2.0.3.0 Production on Wed Sep 25 14:54:41 2013

Copyright (c) 1982, 2011, Oracle.  All rights reserved.

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production

With the Real Application Clusters and Automatic Storage Management options

SQL> show parameter mem;

NAME                                 TYPE        VALUE

------------------------------------ ----------- ------------------------------

memory_max_target                    big integer 4G

memory_target                        big integer 512M

SQL>

SQL> alter system set memory_target=1536m scope=both  sid='+ASM1';

System altered.

SQL> show parameter mem;

NAME                                 TYPE        VALUE

------------------------------------ ----------- ------------------------------

memory_max_target                    big integer 4G

memory_target                        big integer 1536M

db2节点上查看mem,此时memory_max_target变为4G

修改memory_target,由512M变为1536M

[grid@db2 ~]$ sqlplus / as sysasm

SQL*Plus: Release 11.2.0.3.0 Production on Wed Sep 25 22:52:53 2013

Copyright (c) 1982, 2011, Oracle.  All rights reserved.

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production

With the Real Application Clusters and Automatic Storage Management options

SQL>

SQL> show parameter mem;

NAME                                 TYPE        VALUE

------------------------------------ ----------- ------------------------------

memory_max_target                    big integer 4G

memory_target                        big integer 512M

SQL> alter system set memory_target=1536m scope=both sid='+ASM2';

System altered.

SQL> show parameter mem;

NAME                                 TYPE        VALUE

------------------------------------ ----------- ------------------------------

memory_max_target                    big integer 4G

memory_target                        big integer 1536M

SQL>

oracle11g rac asm 实例内存修改的更多相关文章

  1. oracle11g rac asm存储数据迁移

    OS:rh6.4 ORACLE 11g RAC ASM OCR和VOTING DISK在crs磁盘组,控制文件.数据文件.参数文件在DATA组. 1.备份数据库 RUN {ALLOCATE CHANN ...

  2. ORACLE11g R2【RAC+ASM→单实例FS】

    ORACLE11g R2[RAC+ASM→单实例FS] 11g R2 RAC+ASMà单实例FS的DG,建议禁用OMF. 本演示案例所用环境:   primary standby OS Hostnam ...

  3. ORACLE11g R2【RAC+ASM→RAC+ASM】

    ORACLE11g R2[RAC+ASM→RAC+ASM] 本演示案例所用环境:RAC+ASM+OMF   primary standby OS Hostname node1,node2 dgnode ...

  4. ORACLE10g R2【RAC+ASM→单实例FS】

    ORACLE10g R2[RAC+ASM→单实例FS] 10g R2 RAC+ASMà单实例FS的DG,建议禁用OMF. 本演示案例所用环境:   primary standby OS Hostnam ...

  5. 基于CentOS与VmwareStation10搭建Oracle11G RAC 64集群环境:4.安装Oracle RAC FAQ-4.5.安装Grid,创建ASM磁盘组空间不足

    因之前分区时,分区的Last cylinder的值选了“1”,导致创建磁盘组空间不足.解决办法是先删除分区,重新创建分区并删除ASM磁盘,然后重建ASM磁盘 1. 先删除分区,重新创建分区: 1)查询 ...

  6. 基于CentOS与VmwareStation10搭建Oracle11G RAC 64集群环境:4.安装Oracle RAC FAQ-4.2.Oracleasm Createdisk ASM磁盘失败:Instantiating disk: failed

    1.错误信息:Instantiating disk: failed [root@linuxrac1 /]# /usr/sbin/oracleasm createdisk OCR_VOTE /dev/s ...

  7. 基于CentOS与VmwareStation10搭建Oracle11G RAC 64集群环境:4.安装Oracle RAC FAQ-4.7.Oracle 11G R2 RAC修改public网络IP

    问题:Linuxrac2节点的public网IP被占用,导致集群节点2无法访问 1.禁止相关CRS资源的启动,停止这些资源(vip,listener,scan,scan_listener,databa ...

  8. 基于CentOS与VmwareStation10搭建Oracle11G RAC 64集群环境:3.安装Oracle RAC-3.1.安装并配置ASM驱动

    3.1.安装并配置ASM驱动 3.3.1.检查内核 [root@linuxrac2 etc]# uname -r 2.6.18-164.el5 下载以下rpm包(注意rpm包版本和Linux内核版本一 ...

  9. centos部署oracle rac单实例11.2.0.3数据库(使用asm磁盘)

    部署oracle rac单实例数据库,需要安装grid和datavase两部分,所以首先创建两个用户oracle和grid,因为不能使用root用户进行安装,在安装之前首先需要修改一些系统参数和安装一 ...

随机推荐

  1. [ES6] Converting an array-like object into an Array with Array.from()

    Array.from() lets you convert an "iterable" object (AKA an array-like object) to an array. ...

  2. 关于linux内存管理

     Linux的内存管理主要分为两部分:物理地址到虚拟地址的映射,内核内存分配管理(主要基于slab). 物理地址到虚拟地址之间的映射 1.概念 物理地址(physical address) 用于内存芯 ...

  3. ASP.NET MVC 文件异步上传问题处理

    最近在做一个网站,用asp.net MVC4.0来开发,今天遇到了个小问题,通过查找相关渠道解决了,在这里把这个问题写出来,问题非常简单,不喜勿喷,mark之希望可以给遇到相同问题的初学者一点帮助.我 ...

  4. JAVA - 回调机制

    参考例子:android的Button OnClickListener接口.<第一行代码>中的回调例子   定义接口 public interface HttpCallbackListen ...

  5. git 取消追踪

    git rm --cached filePath这个操作不会删除这个文件

  6. ubuntu 切换JDK版本

    安装: 第一种方式:sudo apt-get install openjdk-7-jdk(or openjdk-6-jdk) 第二种方式:tar -zxvf jdk-7u79-linux-x64.ta ...

  7. Ubuntu11.10与r8168网卡不兼容导致网络时断时续的问题

    安装了ubuntu11.10之后,感觉上网啥的很不稳定,ssh连接内网机器也是一条命令卡半天,检查了各方面的原因,网络没有什么问题,最后才发现是网卡驱动的问题,网上搜了一下是由于linux(ubunt ...

  8. checking for oracle home incompatibilities failed

    安装Oracle软件的过程中,报错: 出错原因: 这个错误主要是oracle上一次安装失败,而没有删除干净而留下的目录文件造成. 解决办法: 清除原先目录下的文件,再retry或者重新安装即可. 示例 ...

  9. 编程语言大牛王垠:编程的智慧,带你少走弯路 [本文转载CocoaChina]

    作者:王垠 授权本站转载. 编程是一件创造性的工作,是一门艺术.精通任何一门艺术,都需要很多的练习和领悟,所以这里提出的“智慧”,并不是号称三天瘦二十斤的减肥药,它并不能代替你自己的勤奋.然而我希望它 ...

  10. 【转】深入理解Java内存模型(五)——锁

    锁的释放-获取建立的happens before 关系 锁是java并发编程中最重要的同步机制.锁除了让临界区互斥执行外,还可以让释放锁的线程向获取同一个锁的线程发送消息. 下面是锁释放-获取的示例代 ...