1834629 Members
3223 Online
110069 Solutions
New Discussion

Re: Ulimit error

 
SOLVED
Go to solution
Anand Sreenivasan
Regular Advisor

Ulimit error

I am getting an error when I try to execute the command ulimit -a or ulimit -aH. The error is as follows,
ulimit -aH
ksh: ulimit: bad option(s)
ingxprod:/# ulimit -a
ksh: ulimit: bad option(s)

But, Just ulimit gives back a number, I need to know how much is my no files descriptors is set to so that I can change it. Any help is appreciated. Thanks.
9 REPLIES 9
Steven E. Protter
Exalted Contributor

Re: Ulimit error

This is non-critical but quite annoying.

If this happens to be an oracle user, there is a component of oracle which is used in setting up the environment oraenv, that doesn't like the world unlimited in the ulimit data and needs to be modified to make this error go away.

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
Anand Sreenivasan
Regular Advisor

Re: Ulimit error

I am sorry but I am running this as root. And also, what is that I have to do even if itis for Oracle user to make this go away. Thanks.
David Child_1
Honored Contributor

Re: Ulimit error

Anand,

Which shell are you using? If you are using the bourne shell you will get this error.

Run 'echo $0' and it should show you what shell you are in.

David
Pete Randall
Outstanding Contributor

Re: Ulimit error

What shell are you using? The ulimit command is part of the shell and may differ depending on the shell being used.


Pete

Pete
Anand Sreenivasan
Regular Advisor

Re: Ulimit error

Here is the output
ingxprod:/# echo $0
-ksh

I am using Korn Shell...I went inside SAM to see the values being set and it is set to 1042. I think I can change it there and then process the new kernel which will require a reboot?. Is that correct.I still wants to see this command work. Thanks.
RAC_1
Honored Contributor
Solution

Re: Ulimit error

man ksh.

You need to do /usr/bin/ulimit
/usr/bin/ulimit -Ha

what you are oding is shell builtin ulimit

With sh shell, you can do
ulimit -Ha
ulimit -Sa
There is no substitute to HARDWORK
Anand Sreenivasan
Regular Advisor

Re: Ulimit error

I got that working by giving it the full path name. Thanks for the help. But To change it, Does it require a reboot ? Or can I edit a file to set this up ?.
RAC_1
Honored Contributor

Re: Ulimit error

No need to reboot. Also you can exceed values set by kernel parameters. You can set it in your .profile file.
OR source it from file

Anil
There is no substitute to HARDWORK
Anand Sreenivasan
Regular Advisor

Re: Ulimit error

Thanks for the all the quick answers. Appreciate the help.