|
IOTN :: Field Book :: ORACLE 
 |
Linux 4U5 MEM: 16G SGA: 8G [ 6½Ã°£ »ðÁú ¼º°ø±â, ORA-27102 ORA-00385 ERROR: Unable to attach to VLM segment WARNING: EINVAL creating segment ]
|
ÃÖ±æÈ£
[LIST]
|
2008-06-29 02:37:30, Á¶È¸ : 34,639 |

How to Configure RHEL/OEL 4/5 32-bit for Very Large Memory with ramfs and HugePages
Doc ID: Note:317141.1
# °ü·ÃµÈ ¿¡·¯
# ORA-27102: out of memory
# ORA-00385: cannot enable Very Large Memory with new buffer cache parameters
# ERROR: Unable to attach to VLM segment at (nil): window size=0x20000000 size=0x200000000
# WARNING: EINVAL creating segment of size 0x000000007d002000
# Adjusting the default value of parameter parallel_max_servers
# from 320 to 135 due to the value of parameter processes (150)
[oracle@med ~]$ uname -a [ ¼º°øÇÑ Á¤º¸ ]
Linux med 2.6.9-55.ELhugemem #1 SMP Fri Apr 20 17:20:11 EDT 2007 i686 i686 i386 GNU/Linux
Install OS with Full option
/boot/grub/grub.conf [ booting 2.6.9-55.ELhugemem ]
=======================================================================================
default=0 # 1->0 ¼öÁ¤µÊ
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux AS (2.6.9-55.ELhugemem)
root (hd0,0)
kernel /vmlinuz-2.6.9-55.ELhugemem ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.9-55.ELhugemem.img
title Red Hat Enterprise Linux AS (2.6.9-55.ELsmp)
root (hd0,0)
kernel /vmlinuz-2.6.9-55.ELsmp ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.9-55.ELsmp.img
title Red Hat Enterprise Linux AS-up (2.6.9-55.EL)
root (hd0,0)
kernel /vmlinuz-2.6.9-55.EL ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.9-55.EL.img
/etc/sysctl.conf
=======================================================================================
kernel.sysrq = 1
kernel.core_uses_pid = 1
kernel.shmmni = 4096
kernel.shmall = 8388608
kernel.shmmax = 4294967295 # shared_pool_size Á¦ÇѰª
net.core.rmem_default=1048576
net.core.wmem_default=1048576
net.core.rmem_max=1048576
net.core.wmem_max=1048576
kernel.sem = 2000 500000 100 250
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
/etc/rc.local
=======================================================================================
umount /dev/shm
mount -t ramfs ramfs /dev/shm
chown oracle:dba /dev/shm
[ Reboot server ]
=======================================================================================
# /dev/shm È®ÀÎ
# oracle:dba /dev/shm È®ÀÎ
[root@med GH]# mount | grep shm
ramfs on /dev/shm type ramfs (rw)
[root@med GH]# ls -ld /dev/shm
drwxr-xr-x 2 oracle dba 0 Jun 29 02:10 /dev/shm
/etc/security/limits.conf
=======================================================================================
* soft nproc 2047
* hard nproc 16384
* soft nofile 1024
* hard nofile 65536
* soft memlock 4194302
* hard memlock 4194302
[oracle@med dbs]$ ulimit -l
4194302
init.ora
=======================================================================================
*.db_block_buffers=1048576 # 8G
*.db_block_size=8192
*.shared_pool_size=2000M # shmmax ¹üÀ§ Àû¿ë
*.USE_INDIRECT_DATA_BUFFERS=TRUE
# USE_INDIRECT_DATA_BUFFERS=TRUE
# sga_max_size # »ç¿ë ¸øÇÔ.
# sga_target disable # »ç¿ë ¸øÇÔ.
kernel.shmmax = 4294967295 4G [ shared_pool_size Á¦ÇѰª], SGA_TARGETÀº µ¿Àû, »ç¿ë ¸øÇÔ.
[oracle@med dbs]$ ipcs
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x235c63b4 1146891 oracle 640 2166358016 24
0x00000000 1179660 oracle 640 4096 0
================================================================
ls -l /dev/shm
-rw-r----- 1 oracle dba 6442450944 7¿ù 8 22:26 ora_M2_524300
SQL> select 786432*8192 from dual;
786432*8192
-----------
6442450944
db_block_buffers = 786432
db_block_size = 8192
================================================================
| 3.235.60.197
|
|
 |
|
 |
*.process=300À» ³ÑÁö ¸øÇÔ. [ site¿¡¼´Â 1000 °ªÀ» ¿ä±¸ ]
/etc/sysctl.conf
------------------------------------------------------------
kernel.shmmax = 4294967295 # shared_pool_size Á¦ÇѰª
init.ora
------------------------------------------------------------
*.shared_pool_size=2000M # shmmax ¹üÀ§ Àû¿ë
¿ä³ðµé°ú °ü·ÃÀÌ ÀÖ´Â°Í °°Àºµ¥..
´ÙÀ½ÁÖ »ðÁú Çѹø ÇØ¾ßÁö.. ¤¾¤¾¤¾ |
2008-07-27 10:22:02
|
 |
|
 |
ORA10G.__db_cache_size=1644167168
ORA10G.__java_pool_size=16777216
ORA10G.__large_pool_size=33554432
ORA10G.__shared_pool_size=385875968
ORA10G.__streams_pool_size=0
*.audit_file_dest='/oracle/app/oracle/product/10g/admin/ORA10G/adump'
*.background_dump_dest='/oracle/app/oracle/product/10g/admin/ORA10G/bdump'
*.compatible='10.2.0.3.0'
*.control_files='/ORADATA1/control01.ctl','/ORADATA1/control02.ctl','/BACKUP/mirror/control03.ctl'
*.core_dump_dest='/oracle/app/oracle/product/10g/admin/ORA10G/cdump'
*.shared_pool_size=1800m
*.db_block_buffers=512000
*.db_block_size=8192
*.db_domain=''
*.db_file_multiblock_read_count=16
*.db_name='ORA10G'
*.db_recovery_file_dest='/ORADATA1/OCS/flash_recovery_area'
*.db_recovery_file_dest_size=2147483648
*.job_queue_processes=10
*.large_pool_size=0
*.log_archive_dest_1='location=/BACKUP/arch/'
*.open_cursors=200
*.pga_aggregate_target=800M
*.processes=600
*.remote_login_passwordfile='EXCLUSIVE'
*.sessions=600
#*.sga_target=2097152000
*.undo_management='AUTO'
*.undo_tablespace='UNDOTBS1'
*.USE_INDIRECT_DATA_BUFFERS=TRUE
*.utl_file_dir='*'
*.user_dump_dest='/oracle/app/oracle/product/10g/admin/ORA10G/udump'
SQL> show sga
Total System Global Area 6157238272 bytes
Fixed Size 1268244 bytes
Variable Size 1946158572 bytes
Database Buffers 4194304000 bytes
Redo Buffers 15507456 bytes |
2009-10-19 11:53:19
|
 |
Copyright 1999-2023 Zeroboard / skin by ÃÖ±æÈ£(gilho.kr@gmail.com)
|
|
|