- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Linux Error: 12: Cannot allocate memory
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2010 06:49 AM
тАО10-14-2010 06:49 AM
# uname -r
2.6.32.19-0.3-pae #1 SMP
Oracle: 10gR2 standard edition 32 bit
Physical Memory: 6 GB
# free -m
total used free shared buffers cached
Mem: 5857 1806 4051 0 26 1577
-/+ buffers/cache: 202 5655
Swap: 12284 0 12284
Oracle was running until Mr DBA has increased the value of 'sga_max_size' to 2.5GB
SQL> startup
ORA-27102: out of memory
Linux Error: 12: Cannot allocate memory
Additional information: 1
Additional information: 2260998
following are the kernel parameters
# cat /proc/sys/kernel/shmmni
4096
# cat /proc/sys/kernel/shmmax
3294967296
# cat /proc/sys/kernel/shmall
1572864
# getconf PAGE_SIZE
4096
Please help/suggest
Regards
Maaz
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2010 06:56 AM
тАО10-14-2010 06:56 AM
Re: Linux Error: 12: Cannot allocate memory
Can "Mr DBA" decrease the 'sga_max_size' back down to its previous value and see if it starts?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2010 07:35 AM
тАО10-14-2010 07:35 AM
Re: Linux Error: 12: Cannot allocate memory
>It's possible that you don't have enough
>contiguous RAM for the SGA.
I am sorry, I didnt got you. But what I can share with you is that, when Oracle was installed on this system, there was only 2 GB Physical Memory installed, and now we have added 4 GB, i,e 6 GB of Physical Memory.
>Can "Mr DBA" decrease the 'sga_max_size' back
>down to its previous value and see if it
>starts?
yes, when sga_max_size sets to 1 GB it works/starts
Regards
Maaz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2010 08:47 AM
тАО10-14-2010 08:47 AM
Re: Linux Error: 12: Cannot allocate memory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2010 08:34 PM
тАО10-14-2010 08:34 PM
Re: Linux Error: 12: Cannot allocate memory
# df /dev/shm
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 2999164 100 2999064 1% /dev/shm
# df -hT
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda2 ext3 123G 9.6G 107G 9% /
devtmpfs devtmpfs 2.9G 108K 2.9G 1% /dev
tmpfs tmpfs 2.9G 100K 2.9G 1% /dev/shm
/dev/drbd0 ext3 197G 13G 175G 7% /opt/oracle
Thanks
Regards
Maaz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2010 01:26 AM
тАО10-15-2010 01:26 AM
SolutionOn 32-bit Linux the total SGA size is limited to around 2Gig (Some say 1.7 Gig)
the following link is a little more explicit
http://www.oracle-base.com/articles/linux/LargeSGAOnLinux.php
I do not know if this is correct, but perhap worth investigating !
Enjoy, life.
Jean-Pierre Huc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2010 02:42 AM
тАО10-15-2010 02:42 AM
Re: Linux Error: 12: Cannot allocate memory
Thanks for sharing I'll try following the url
and for your kind consideration
# ipcs -lm
------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 3217741
max total shared memory (kbytes) = 6291456
min seg size (bytes) = 1
Regards
Maaz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2010 04:58 AM
тАО10-31-2010 04:58 AM
Re: Linux Error: 12: Cannot allocate memory
>df /dev/shm ??
Hi Huc
>On 32-bit Linux the total SGA size is
>limited to around 2Gig (Some say 1.7 Gig)
>the following link is a little more explicit
>http://www.oracle-base.com/articles/linux/LargeSGAOnLinux.php
Thanks everybody, and esp Tim Nelson, and Huc
I append the following line in the fstab, and issue resolved
tmpfs /dev/shm tmpfs size=5g 0 0
Thanks
Maaz