Operating System - HP-UX
1833788 Members
2851 Online
110063 Solutions
New Discussion

what does this mean... hpux error 12: not enough space?

 
David Heard
Occasional Advisor

what does this mean... hpux error 12: not enough space?

what does this mean... hpux error 12: not enough space?
10 REPLIES 10
Robert-Jan Goossens
Honored Contributor

Re: what does this mean... hpux error 12: not enough space?

Hi,

Could run the command

# swapinfo -tam

Regards,
Robert-Jan
Graham Cameron_1
Honored Contributor

Re: what does this mean... hpux error 12: not enough space?

What it says.
The original definition is as below.

> grep 12 /usr/include/sys/errno.h
#define ENOMEM 12 /* Not enough core */

These days it could be one of many things - often it is seen when trying to insert a message into a queue which is already full.

In what context are you seeing this message - what application etc?

-- Graham
Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done.
David Heard
Occasional Advisor

Re: what does this mean... hpux error 12: not enough space?

trying to start anoracle inst.
Graham Cameron_1
Honored Contributor

Re: what does this mean... hpux error 12: not enough space?

Thought so.
Do you have metalink?
Search for "hpux error 12: not enough space" and you'll get plenty of pointers, most of which are to do with increasing kernel parameters for shared memory and message queues.

If you don't have metalink, search this forum for "oracle kernel parameters".

-- Graham
Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done.
Rita C Workman
Honored Contributor

Re: what does this mean... hpux error 12: not enough space?

First thing you might do is:

Find out if it's a new instance being started on this box.
Talk to you DBA (or just go out and check the ~init.ora files and run ipcs -a) and see just what is running (instances) and what each has set up for SGA. Add it all up and see what kernel parms are set to for shared memory, semaphores & msg queues.
Are the DBA's asking for more than the kernel is set to handle - then adjust the kernel....
BUT do you have the system resources to increase these values???

So a little communication between the "I want" and the "What I have to give" may need to take place.

Rgrds,
Rita
Stuart Abramson_2
Honored Contributor

Re: what does this mean... hpux error 12: not enough space?

1. Error messages are defined in:

/usr/include/sys/errno.h

2. man errno


EDOM 33 /* Math arg out of domain of func */
ERANGE 34 /* Math result not representable */
EPERM 1 /* Not super-user */
ENOENT 2 /* No such file or directory */
ESRCH 3 /* No such process */
EINTR 4 /* interrupted system call */
EIO 5 /* I/O error */
ENXIO 6 /* No such device or address */
E2BIG 7 /* Arg list too long */
ENOEXEC 8 /* Exec format error */
EBADF 9 /* Bad file number */
ECHILD 10 /* No children */
EAGAIN 11 /* No more processes */
ENOMEM 12 /* Not enough core */ Check maxdsiz; ulimit -a
EACCES 13 /* Permission denied */
EFAULT 14 /* Bad address */

3. In this case, it could be about three things:

a. Your ulimit -a is too small (memory)

b. Your maxdsiz is too small.

c. You are out of swap space. (if swap is full, you can't allocate any more memory).

d. You have a memory leak fillin gup your memory.

Examine all of these and make appropriate changes.
Bill Hassell
Honored Contributor

Re: what does this mean... hpux error 12: not enough space?

As mentioned, out of memory means not enough memory is available (hardly ever true) or the requested amount of memory is not allowed for this program (quite common). Here is a discussion that can help (it's about DB2 but Oracle is the same): http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=343146


Bill Hassell, sysadmin
Rick Meijer
Occasional Advisor

Re: what does this mean... hpux error 12: not enough space?

Hello,

Yeah its a shared memory resource issue. Try increasing the kernel's shared memory parameters. I cut and pasted a few.

Check ipcs -mob for allocated memory with no attached processes. Remove these with ipcrm -m # if any or just reboot the box to clean things up.

Reduce the instances init.ora file shared pool and/or buffer size values until the instance fits.

Some kernel parms to look at:

maxdsiz 800000000 Max Data Segment Size For 32-bit Processes (Bytes)
maxdsiz_64bit 1073741824 Max Data Segment Size For 64-bit Processes (Bytes)
maxfiles 2048 Soft File Limit Per Process
maxfiles_lim 2048 Hard File Limit Per Process
maxssiz 64000000 Max Stack Segment Size For 32-bit Processes (Bytes)
maxssiz_64bit 64000000 Max Stack Segment Size For 64-bit Processes (Bytes)
maxtsiz 67108864 Max Text Segment Size For 32-bit Processes (Bytes)
maxtsiz_64bit 1073741824 Max Text Segment Size For 64-bit Processes (Bytes)

Best wishes,

Rick
Bill Hassell
Honored Contributor

Re: what does this mean... hpux error 12: not enough space?

Note also that shared memory is severely restricted for 32bit versions of Oracle. This restritcion has been discussed many times here in the forums. No matter how many gigabytes of RAM you have installed, 32bit programs are limited to a single map that all other programs (including other Oracle instances) must share within the 32bit limits. Check these notes:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=133543

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=147321


Bill Hassell, sysadmin
malay boy
Trusted Contributor

Re: what does this mean... hpux error 12: not enough space?

I just got this error yesterday.But my find I mistuned the kernel parameter.Do check metalink.oracle.com . search for doc id=169706.1 . You will have all the setting/patch your need for oracle installation.

regards
mB
There are three person in my team-Me ,myself and I.