Operating System - HP-UX
1748151 Members
3643 Online
108758 Solutions
New Discussion

Re: ulimit -d HP-UX 11.31 for ORASUPPORT

 
SOLVED
Go to solution
Gromf_Baenre
Occasional Contributor

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 

2 REPLIES 2
Steven E. Protter
Exalted Contributor

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
Dennis Handly
Acclaimed Contributor
Solution

Re: ulimit -d HP-UX 11.31 for ORASUPPORT

>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?)