Re: ulimit -d HP-UX 11.31 for ORASUPPORT (1833 Views)
Reply
Occasional Contributor
Gromf_Baenre
Posts: 3
Registered: ‎06-29-2011
Message 1 of 3 (1,848 Views)
Accepted Solution

ulimit -d HP-UX 11.31 for ORASUPPORT

I try to set ulimit -d for non-root user to unlimited.

Other tunables done with /etc/profile (/home/[username]/profile can't do this for Stack Size f.e.).

 

How to do one of things:

1) I didn't find document that says "You can't [ulimit -d unlimited] for non-root".

2) I don't know how grant PRIV_LIMIT for this user (man 5 privileges)

3)  Set this limit to unlimited.

 

I know, that:

1) Shell tunable

2) Only for 32-bit apps

3) Can't really exceed maxdsiz 

4) This is just Oracle support requirement 

Please use plain text.
Exalted Contributor
Steven E. Protter
Posts: 33,806
Registered: ‎08-15-2002
Message 2 of 3 (1,843 Views)

Re: ulimit -d HP-UX 11.31 for ORASUPPORT

Shalom,

Guess you are going to have to pick a number.

Have you tried doing this in .profile and/or /etc/profile

You might be able to do this for all users in that way, but this might break stuff.

Please try and do it on the command line, provide command and system response.

You may need to consult Oracle support for a solution.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,888
Registered: ‎03-06-2006
Message 3 of 3 (1,833 Views)

Re: ulimit -d HP-UX 11.31 for ORASUPPORT

[ Edited ]

>I try to set ulimit -d for non-root user to unlimited.

 

You could set it to 4 Gb, the max for 32 bit.  This is maxdsiz(5).

 

>1) I didn't find document that says "You can't [ulimit -d unlimited] for non-root".

 

You need to make N logical inferences to get that.  But it's pretty clear from sh-posix(1) & setrlimit(2).

 

>2) I don't know how grant PRIV_LIMIT for this user (man 5 privileges)

 

It seems you grant privileges to executables not users, using setfilexsec(1m).

 

>3)  Set this limit to unlimited.

 

You would have to write a program to check the user, call setrlimit(2), then fork and exec a shell or the user's application.

 

(No kudos to go with the solution?)

Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation