- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ERROR IN .PROFILE
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
Forums
Discussions
Discussions
Discussions
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
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
07-30-2002 09:13 AM
07-30-2002 09:13 AM
Here is the error:
.profile[63]: unlimited: The specified number is not valid for this command.
Here is the line of code in the .profile that calls oraenv.
# Locate "osh" and exec it if found
ULIMIT=`(ulimit) 2>/dev/null`
if [ $? = 0 -a "$ULIMIT" -lt 2113674 ] ; then
Any ideas, I am lost. This same code works on my other systems without the error.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2002 09:20 AM
07-30-2002 09:20 AM
Re: ERROR IN .PROFILE
vi the file , type :63, and show that line. It looks as though it is complaining about you setting of unlimited.
Thanks
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2002 09:27 AM
07-30-2002 09:27 AM
SolutionI tried ulimit as root in sh and csh shells which returned different output.
In sh shell
# ulimit
4194303
And in csh shell:
# ulimit
unlimited
Therefore, ulimit may not always return a number as you expected it to. You may want to add another flag to check whether ULIMIT is a number before comparing it in your if statement.
Hai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2002 09:31 AM
07-30-2002 09:31 AM
Re: ERROR IN .PROFILE
If you are going to set the ulimit to unlimited, it needs to be in quotes:
ulimit "unlimited"
This, however, is a horrible thing to do and you risk filling-up file systems doing this. Bad things happen if you fill /tmp or /var/tmp with a core file. This also posses a security threat, as unencrypted passwords may be in the core file.
HTH
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2002 09:59 AM
07-30-2002 09:59 AM
Re: ERROR IN .PROFILE
Another thing to consider is that "normal" users cannot increase their ulimit.
No idea what follows then, but if you're trying to increase ulimit as the Oracle user it will fail to do so.
Only root has that ability & it's ulimit is unlimited by default anyway....
Rgds,
Jeff