Skip to main content

11gR2 setup a larger dev shm after ORA 00845 MEMORY TARGET not supported on this system

11gR2 setup a larger dev shm after ORA 00845 MEMORY TARGET not supported on this system


If you get the following error



ORA-00845: MEMORY_TARGET not supported on this system

while using 11g and the AMM feature... its time to increase your memory mapped files on /dev/shm.


As usually Ive setup my /dev/shm devices at about half (4GB) of physical memory (8GB). Im on a ProLiant DL180G5 and using OEL5.4. So the following was my file system configuration:
[root@rac31 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/cciss/c0d0p2 267G 25G 228G 10% /
/dev/cciss/c0d0p1 99M 12M 82M 13% /boot
tmpfs 4.0G 192M 3.8G 5% /dev/shm
/dev/emcpowerb1 134G 1.1G 133G 1% /u02/ocfs2
/dev/emcpowerd1 5.0G 298M 4.8G 6% /u02/ocfs2_mirror


And my /etc/fstab:
[root@rac31 ~]# more /etc/fstab
LABEL=/1 / ext3 defaults 1 1
LABEL=/boot1 /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
LABEL=SW-cciss/c0d0p3 swap swap defaults 0 0
/dev/emcpowerb1 /u02/ocfs2/ ocfs2 _netdev,datavolume,nointr 0 0
/dev/emcpowerd1 /u02/ocfs2_mirror/ ocfs2 _netdev,datavolume,nointr 0 0


You have to edit /etc/fstab and change the previous tmpfs line with the following one:
[root@rac31 ~]# vi /etc/fstab
LABEL=/1 / ext3 defaults 1 1
LABEL=/boot1 /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs size=6g 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
LABEL=SW-cciss/c0d0p3 swap swap defaults 0 0
/dev/emcpowerb1 /u02/ocfs2/ ocfs2 _netdev,datavolume,nointr 0 0
/dev/emcpowerd1 /u02/ocfs2_mirror/ ocfs2 _netdev,datavolume,nointr 0 0


I then stopped CRS on only that node with the following command:
[root@rac31 ~]# /u01/app/11.2.0/grid/bin/crsctl stop crs

CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on rac31
CRS-2673: Attempting to stop ora.crsd on rac31
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on rac31
CRS-2673: Attempting to stop ora.LISTENER.lsnr on rac31
CRS-2673: Attempting to stop ora.LISTENER_SCAN1.lsnr on rac31
CRS-2673: Attempting to stop ora.DATA_RAC3.dg on rac31
CRS-2673: Attempting to stop ora.FRA_RAC3.dg on rac31
CRS-2673: Attempting to stop ora.registry.acfs on rac31
CRS-2677: Stop of ora.DATA_RAC3.dg on rac31 succeeded
CRS-2677: Stop of ora.LISTENER.lsnr on rac31 succeeded
CRS-2673: Attempting to stop ora.rac31.vip on rac31
CRS-2677: Stop of ora.LISTENER_SCAN1.lsnr on rac31 succeeded
CRS-2673: Attempting to stop ora.scan1.vip on rac31
CRS-2677: Stop of ora.rac31.vip on rac31 succeeded
CRS-2672: Attempting to start ora.rac31.vip on rac32
CRS-2677: Stop of ora.scan1.vip on rac31 succeeded
CRS-2672: Attempting to start ora.scan1.vip on rac32
CRS-2677: Stop of ora.FRA_RAC3.dg on rac31 succeeded
CRS-2677: Stop of ora.registry.acfs on rac31 succeeded
CRS-2673: Attempting to stop ora.asm on rac31
CRS-2677: Stop of ora.asm on rac31 succeeded
CRS-2676: Start of ora.rac31.vip on rac32 succeeded
CRS-2676: Start of ora.scan1.vip on rac32 succeeded
CRS-2672: Attempting to start ora.LISTENER_SCAN1.lsnr on rac32
CRS-2676: Start of ora.LISTENER_SCAN1.lsnr on rac32 succeeded
CRS-2673: Attempting to stop ora.eons on rac31
CRS-2673: Attempting to stop ora.ons on rac31
CRS-2677: Stop of ora.ons on rac31 succeeded
CRS-2673: Attempting to stop ora.net1.network on rac31
CRS-2677: Stop of ora.net1.network on rac31 succeeded
CRS-2677: Stop of ora.eons on rac31 succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on rac31 has completed
CRS-2677: Stop of ora.crsd on rac31 succeeded
CRS-2673: Attempting to stop ora.drivers.acfs on rac31
CRS-2673: Attempting to stop ora.gpnpd on rac31
CRS-2673: Attempting to stop ora.asm on rac31
CRS-2673: Attempting to stop ora.cssdmonitor on rac31
CRS-2673: Attempting to stop ora.ctssd on rac31
CRS-2673: Attempting to stop ora.evmd on rac31
CRS-2673: Attempting to stop ora.mdnsd on rac31
CRS-2677: Stop of ora.cssdmonitor on rac31 succeeded
CRS-2677: Stop of ora.mdnsd on rac31 succeeded
CRS-2677: Stop of ora.gpnpd on rac31 succeeded
CRS-2677: Stop of ora.evmd on rac31 succeeded
CRS-2677: Stop of ora.drivers.acfs on rac31 succeeded
CRS-2677: Stop of ora.ctssd on rac31 succeeded
CRS-2677: Stop of ora.asm on rac31 succeeded
CRS-2673: Attempting to stop ora.cssd on rac31
CRS-2677: Stop of ora.cssd on rac31 succeeded
CRS-2673: Attempting to stop ora.diskmon on rac31
CRS-2673: Attempting to stop ora.gipcd on rac31
CRS-2677: Stop of ora.gipcd on rac31 succeeded
CRS-2677: Stop of ora.diskmon on rac31 succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on rac31 has completed
CRS-4133: Oracle High Availability Services has been stopped.


No Oracle processes are now available.. I can simply reboot (yes I could mount it.. but I wanted to test it after a reboot)
[root@rac31 ~]# ps -ef|grep oracle
oracle 7079 1 0 Apr16 ? 00:00:01 /u01/app/oracle/product/11.2.0/dbhome_1/ccr/bin/nmz -cron -silent
root 28585 25068 0 17:42 pts/0 00:00:00 grep oracle

[root@rac31 ~]# reboot

Broadcast message from root (pts/0) (Tue Apr 27 17:42:42 2010):

The system is going down for reboot NOW!



And just few minutes after the instance (there was only the ASM one) started up I looked at my file system again.
[root@rac31 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/cciss/c0d0p2 267G 25G 228G 10% /
/dev/cciss/c0d0p1 99M 12M 82M 13% /boot
tmpfs 6.0G 192M 5.9G 4% /dev/shm
/dev/emcpowerb1 134G 1.1G 133G 1% /u02/ocfs2
/dev/emcpowerd1 5.0G 295M 4.8G 6% /u02/ocfs2_mirror


Ok... it mounted my devices and it was now 6GB.

Now on the other node you have to repeat the same steps.
[root@rac32 ~]# vi /etc/fstab
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs size=6g 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
LABEL=SW-cciss/c0d0p3 swap swap defaults 0 0
/dev/emcpowerb1 /u02/ocfs2/ ocfs2 _netdev,datavolume,nointr 0 0
/dev/emcpowerd1 /u02/ocfs2_mirror/ ocfs2 _netdev,datavolume,nointr 0 0


Stop the CRS.
[root@rac32 ~]# /u01/app/11.2.0/grid/bin/crsctl stop crs

CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on rac32
CRS-2673: Attempting to stop ora.crsd on rac32
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on rac32
CRS-2673: Attempting to stop ora.LISTENER.lsnr on rac32
CRS-2673: Attempting to stop ora.DATA_RAC3.dg on rac32
CRS-2673: Attempting to stop ora.FRA_RAC3.dg on rac32
CRS-2673: Attempting to stop ora.registry.acfs on rac32
CRS-2673: Attempting to stop ora.LISTENER_SCAN2.lsnr on rac32
CRS-2677: Stop of ora.DATA_RAC3.dg on rac32 succeeded
CRS-2677: Stop of ora.LISTENER.lsnr on rac32 succeeded
CRS-2673: Attempting to stop ora.rac32.vip on rac32
CRS-2677: Stop of ora.LISTENER_SCAN2.lsnr on rac32 succeeded
CRS-2673: Attempting to stop ora.scan2.vip on rac32
CRS-2677: Stop of ora.rac32.vip on rac32 succeeded
CRS-2672: Attempting to start ora.rac32.vip on rac31
CRS-2677: Stop of ora.scan2.vip on rac32 succeeded
CRS-2672: Attempting to start ora.scan2.vip on rac31
CRS-2677: Stop of ora.registry.acfs on rac32 succeeded
CRS-2677: Stop of ora.FRA_RAC3.dg on rac32 succeeded
CRS-2673: Attempting to stop ora.asm on rac32
CRS-2677: Stop of ora.asm on rac32 succeeded
CRS-2676: Start of ora.rac32.vip on rac31 succeeded
CRS-2676: Start of ora.scan2.vip on rac31 succeeded
CRS-2672: Attempting to start ora.LISTENER_SCAN2.lsnr on rac31
CRS-2676: Start of ora.LISTENER_SCAN2.lsnr on rac31 succeeded
CRS-2673: Attempting to stop ora.ons on rac32
CRS-2673: Attempting to stop ora.eons on rac32
CRS-2677: Stop of ora.ons on rac32 succeeded
CRS-2673: Attempting to stop ora.net1.network on rac32
CRS-2677: Stop of ora.net1.network on rac32 succeeded
CRS-2677: Stop of ora.eons on rac32 succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on rac32 has completed
CRS-2677: Stop of ora.crsd on rac32 succeeded
CRS-2673: Attempting to stop ora.asm on rac32
CRS-2673: Attempting to stop ora.cssdmonitor on rac32
CRS-2673: Attempting to stop ora.ctssd on rac32
CRS-2673: Attempting to stop ora.evmd on rac32
CRS-2673: Attempting to stop ora.drivers.acfs on rac32
CRS-2673: Attempting to stop ora.mdnsd on rac32
CRS-2677: Stop of ora.cssdmonitor on rac32 succeeded
CRS-2677: Stop of ora.evmd on rac32 succeeded
CRS-2677: Stop of ora.mdnsd on rac32 succeeded
CRS-2677: Stop of ora.ctssd on rac32 succeeded
CRS-2677: Stop of ora.drivers.acfs on rac32 succeeded
CRS-2677: Stop of ora.asm on rac32 succeeded
CRS-2673: Attempting to stop ora.cssd on rac32
CRS-2677: Stop of ora.cssd on rac32 succeeded
CRS-2673: Attempting to stop ora.gpnpd on rac32
CRS-2673: Attempting to stop ora.diskmon on rac32
CRS-2677: Stop of ora.gpnpd on rac32 succeeded
CRS-2673: Attempting to stop ora.gipcd on rac32
CRS-2677: Stop of ora.gipcd on rac32 succeeded
CRS-2677: Stop of ora.diskmon on rac32 succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on rac32 has completed
CRS-4133: Oracle High Availability Services has been stopped.


After a reboot the ASM instance was running again


and my /dev/shm devie was 6GB.
[root@rac32 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/cciss/c0d0p2 267G 16G 238G 7% /
/dev/cciss/c0d0p1 99M 12M 82M 13% /boot
tmpfs 6.0G 192M 5.9G 4% /dev/shm
/dev/emcpowerb1 134G 1.1G 133G 1% /u02/ocfs2
/dev/emcpowerd1 5.0G 293M 4.8G 6% /u02/ocfs2_mirror


Thats all.

Comments

Popular posts from this blog

2 7 stable 9 vs TProxy on Ubnt

2 7 stable 9 vs TProxy on Ubnt Quote: idealnya proxy itu emang harus transparent. namun untuk squid2.7stable9 belum bener2 transparent. lah maksudnya transparent gimana? gini lho.. ketika client di bawah proxy request http yang masuk ke proxy kan ip client. trus yang keluar malah ip proxy. emang namanya transparent. cuman blom transparent menurut ane. kalo kita bikin proxy model gini dan mau limit traffic ya susah.. karena yang keluar dari proxy adalah ip proxy. bukan ip client. lah trus setelah pake TProxy hasilnya gimana? diharapkan setelah pake TProxy ip yang keluar dari proxy bener2 pure ip client. bukan proxy. jadi lebih mudah untuk management bandwidth. udah ngerti kan? (mudah2an blom) POC tweak dulo systemnya supaya traffic bisa lebih optimal Code: echo "*             soft    nofile          65535" >> /etc/security/limits.conf echo "* ...

10 Gaming Gear Gak Penting Dengan RGB LED untuk Melengkapi Koleksimu

10 Gaming Gear Gak Penting Dengan RGB LED untuk Melengkapi Koleksimu Fenomena lampu RGB untuk produk-produk komputer bertema gaming kini tentunya semakin menjamur. Dengan berbagai merk yang tidak mau ketinggalan untuk memeriahkan pesta cahaya warna-warni untuk produk-produk yang dibuat oleh mereka. Mungkin pada awalnya tren ini hanya terjadi pada mouse, keyboard, dan kipas untuk case. Namun, dengan semakin  �hype�-nya  trend RGB ini penyematan lampu LED mulai menjalar ke perlengkapan lain mulai dari LED case, RAM, bahkan ke Motherboard. Bahkan, para produsen pun mulai menggila untuk menempatkan lampu LED ini ke barang-barang perlengkapan gaming lain yang bahkan terasa tidak penting. Berikut daftar 10 Gaming gear gak penting dengan RGB LED yang bisa kamu tambahkan untuk koleksimu. advertisement Gaming Guide: PC Awet Low Budget untuk eSports 1. Razer Firefly Daftar ini tentunya tidak akan afdol bila tidak dimulai dengan produk  Razer.  Salah satu merk yang ikut me...

10 Cara Untuk Download Berbagai Macam Video di Internet

10 Cara Untuk Download Berbagai Macam Video di Internet Setiap hari orang  men-download, menonton, dan berbagi video dari situs video-sharing seperti  YouTube ,  Google Video ,  Metacafe ,  Dailymotion ,  Break , dan berbagai situs serupa lainnya. Apakah Anda ingin menonton video pada iPod Anda saat bekerja keluar, masukkan ke dalam presentasi PowerPoint untuk menambahkan beberapa slide, atau hanya mendownload video sebelum itu dihapus, ini cukup penting untuk mengetahui cara men-download, mengubah, dan memainkan video. Layanan Web gratis untuk download video dari situs video-sharing 1. ClipNabber  memungkinkan Anda untuk men-download video dari YouTube, Metacafe, dll dengan hanya menyalin dan menyisipkan URL. Anda kemudian akan mendapatkan link dimana Anda dapat men-download file ke komputer Anda, iPod, iPhone, atau media player lainnya. Anda harus memiliki FLV player untuk video YouTube. Cepat dan sangat mudah digunakan! 2. Zamzar  adalah aplika...