-bash: ulimit: open files: cannot modify limit: Operation not permitted

Hi all,
i´m preparing a linux 64bits environment to install Oracle 10g R2. I´m following the installation manual and there say that:
Depending on the oracle user's default shell, make the following changes to the default shell startup file:
For the Bourne, Bash, or Korn shell, add the following lines in the /etc/profile file (or the /etc/profile.local file on SUSE systems):
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
Ok, I did it, so when execute the follow comand I get a error like this.
tetis:/etc # su - oracle
-bash: ulimit: open files: cannot modify limit: Operation not permitted
oracle@tetis:~>
Can anybody help me ?
Regards,
Wander (Brazil)

The limits for -u and -n are defined in limits.conf, it looks like the -n section is not working (-u is already 16384), just to double check, show us the output for:
$ more /etc/security/limits.conf | grep oracle
oracle              soft    nproc   2047
oracle              hard    nproc   16384
oracle              soft    nofile  1024
oracle              hard    nofile  65536
$ more /etc/pam.d/login | grep pam_limits
session    required     pam_limits.soEnrique

Similar Messages

  • Changed Ulimits values for the Oracle user and getting error -bash: ulimit: max user processes: cannot modify limit: Operation not permitted when logging in.

    I'm trying to increate the ulimits for max user processes and open files for the oracle user.  I've set the values in limits.conf, /etc/profile and in oracle's environment scripts. Now when I log in as oracle I get the below errors. If I change the ulimits back to the original values errors go away but ulimits aren't changed.
    login as: oracle
    [email protected]'s password:
    Last login: Fri Mar  6 09:56:02 2015 from mtkadmin12
    You are logging onto an Oracle system.
    Kickstarted on: 2014-06-05
    -bash: ulimit: max user processes: cannot modify limit: Operation not permitted
    -bash: ulimit: max user processes: cannot modify limit: Operation not permitted
    [oracle@servername ~]$

    Thanks for the update.
    I modified the /etc/security/limits.d/90-nproc.conf and added a line for oracle and also modifed the oracle.sh file.  The ulimits are setting correctly when I su - oracle but they are still wrong when sshing in as oracle.
    [root@mtkdevorap11d-1 ~]# su - oracle
    [oracle@mtkdevorap11d-1 ~]$ ulimit -Ha
    core file size          (blocks, -c) unlimited
    data seg size           (kbytes, -d) unlimited
    scheduling priority             (-e) 0
    file size               (blocks, -f) unlimited
    pending signals                 (-i) 1030982
    max locked memory       (kbytes, -l) 94371840
    max memory size         (kbytes, -m) unlimited
    open files                      (-n) 65536
    pipe size            (512 bytes, -p) 8
    POSIX message queues     (bytes, -q) 819200
    real-time priority              (-r) 0
    stack size              (kbytes, -s) unlimited
    cpu time               (seconds, -t) unlimited
    max user processes              (-u) 16384
    virtual memory          (kbytes, -v) unlimited
    file locks                      (-x) unlimited
    [oracle@mtkdevorap11d-1 ~]$
    [oracle@mtkdevorap11d-2 ~]$ ssh mtkdevorap11d-1
    Last login: Mon Mar 16 13:04:16 2015 from mtkdevorap11d-2.conveydev.com
    You are logging onto an Oracle system.
    Kickstarted on: 2014-06-05
    [oracle@mtkdevorap11d-1 ~]$ ulimit -Ha
    core file size          (blocks, -c) unlimited
    data seg size           (kbytes, -d) unlimited
    scheduling priority             (-e) 0
    file size               (blocks, -f) unlimited
    pending signals                 (-i) 1030982
    max locked memory       (kbytes, -l) 64
    max memory size         (kbytes, -m) unlimited
    open files                      (-n) 4096
    pipe size            (512 bytes, -p) 8
    POSIX message queues     (bytes, -q) 819200
    real-time priority              (-r) 0
    stack size              (kbytes, -s) unlimited
    cpu time               (seconds, -t) unlimited
    max user processes              (-u) 16384
    virtual memory          (kbytes, -v) unlimited
    file locks                      (-x) unlimited
    [oracle@mtkdevorap11d-1 ~]$

  • Error " ulimit: open files: cannot modify limit: Invalid argument" when open a terminal window

    Every time I open a terminal (bash), it shows error " ulimit: open files: cannot modify limit: Invalid argument".    I googled it but did not find the solution that works.  My OS is 10.8.2.  I followed the instruction here http://wordpress.org/support/topic/upgraded-to-php-530-on-mac-now-no-database-co nnection but it doesn't work.(basically, I just commented some lines in that file).       Can anyone help?

    Back up all data.
    Select
    Shell ▹ New Command
    from the Terminal menu bar. Copy and paste the following line into the text box that opens:
    mkdir disabled_shell_files; mv .profile .bash* $_
    Your old shell initialization and history files will be saved in a directory with the indicated name at the top level of your home directory. Test.

  • -bash: ulimit: max user processes: cannot modify limit: Operation not permi

    Hi,
    Installed 10g Forms&Reports only on RHEL 3ES.
    Modified /etc/profile according to Oracle's documentation:
    if [ $USER = "oracle" ]; then
    if [ $SHELL = "/bin/ksh" ]; then
    ulimit -n 16384
    ulimit -p 16384
    else
    ulimit -u 16384 -n 16384
    fi
    fi
    But when I logon to the server, the following message shows:
    "-bash: ulimit: max user processes: cannot modify limit: Operation not permitted"
    What is the problem here?
    Thanks
    Stephan

    Hi,
    Installed 10g Forms&Reports only on RHEL 3ES.
    Modified /etc/profile according to Oracle's documentation:
    if [ $USER = "oracle" ]; then
    if [ $SHELL = "/bin/ksh" ]; then
    ulimit -n 16384
    ulimit -p 16384
    else
    ulimit -u 16384 -n 16384
    fi
    fi
    But when I logon to the server, the following message shows:
    "-bash: ulimit: max user processes: cannot modify limit: Operation not permitted"
    What is the problem here?
    Thanks
    Stephan

  • -bash: ulimit: pipe size: cannot modify limit: Invalid argument

    Followed the Oracle documentation to install Oracle 10g R2 on RedHat 4(UP1) x86-64 and I'm getting the following error when I login to the server from a putty client:
    -bash: ulimit: pipe size: cannot modify limit: Invalid argument
    Can someone explain why I'm getting this error and if there is a way to fix it?
    Thanks,
    Denise

    Hi!
    Just delete changes in /etc/profile and make changes as shown here in file /etc/security/limits.conf.
    Read this article:
    Limiting Maximum Number of Open File Descriptors for the Oracle User
    After /proc/sys/fs/file-max has been changed, see Setting File Handles, there is still a per user limit of maximum open file descriptors:
    $ su - oracle
    $ ulimit -n
    1024
    $
    To change this limit, edit the /etc/security/limits.conf file as root and make the following changes or add the following lines, respectively:
    oracle soft nofile 4096
    oracle hard nofile 63536
    The "soft limit" in the first line defines the number of file handles or open files that the Oracle user will have after login. If the Oracle user gets error messages about running out of file handles, then the Oracle user can increase the number of file handles like in this example up to 63536 ("hard limit") by executing the following command:
    ulimit -n 63536
    You can set the "soft" and "hard" limits higher if necessary.
    NOTE:
    I do not recommend to set the "hard" limit for nofile for the oracle user equal to /proc/sys/fs/file-max. If you do that and the user uses up all the file handles, then the entire system will run out of file handles. This could mean that you won't be able to initiate new logins any more since the system won't be able to open any PAM modules that are required for the login process. That's why I set the hard limit to 63536 and not 65536.
    That these limits work you also need to ensure that pam_limits is configured in the /etc/pam.d/system-auth file, or in /etc/pam.d/sshd for ssh, /etc/pam.d/su for su, or /etc/pam.d/login for local logins and telnet if you don't want to enable it for all login methods. Here are the two session entries I have in my /etc/pam.d/system-auth file:
    session required /lib/security/$ISA/pam_limits.so
    session required /lib/security/$ISA/pam_unix.so
    Now login to the oracle user account since the changes will become effective for new login sessions only. Note that the ulimit options are different for other shells.
    $ su - oracle
    $ ulimit -n
    4096
    $
    The default limit for oracle is now 4096 and the oracle user can increase the number of file handles up to 63536:
    $ su - oracle
    $ ulimit -n
    4096
    $ ulimit -n 63536
    $ ulimit -n
    63536
    $
    To make this change permanent, you could add "ulimit -n 63536" (for bash) to the ~oracle/.bash_profile file which is the user startup file for the bash shell on Red Hat Linux (to verify your shell execute echo $SHELL). To do this you could simply copy/paste the following commands for oracle's bash shell:
    su - oracle
    cat >> ~oracle/.bash_profile << EOF
    ulimit -n 63536
    EOF
    To make the above changes permanent, you could also set the soft limit equal to the hard limit in /etc/security/limits.conf which I prefer:
    oracle soft nofile 63536
    oracle hard nofile 63536

  • /etc/profile: line 28: ulimit: max locked memory: cannot modify limit: Oper

    Hi;
    I writed one sh which is checking tablespace size and its working well ( i used this before for someother client) Now i try to run it on one server and i have this error:
    /etc/profile: line 28: ulimit: max locked memory: cannot modify limit: Operation not permitted in /var/spool/mail/root
    Anyone has idea what is problem?
    Thanks

    Well, check line 28 of /etc/profile, and see what command it is trying to execute. If it's a ulimit -l command, check if the value it is trying to set the limit to is higher than the current ulimit value of the current user. If it is, then that operation is not allowed. You can increase the limit for the current user (at login time) by modifying /etc/security/limits.conf . This is documented in the various guides, notes, whitepapers that talk about installing Oracle database on Linux.

  • "at" command line broken in 10.10.3?  I get "at: cannot regain privs: Operation not permitted"

    After updating to Yosemite 10.10.3, I notice that I can't use the "at" command from the command line in my account. I get the error:
        at: cannot regain privs: Operation not permitted
    It does seem to work if I sudo, but I have some scripts which I don't want to change.
    I don't need to do this very often, so something else other than the 10.10.3 update may have triggered this problem.
    Solution?

    Linc,
    I tried creating the at.allow file, and it didn't help. It still gives me the same error message. Any other ideas?

  • Can't get rid of files with sudo rm: Operation not permitted?!?

    I just noticed that I have a few directories in my files that have a username of "unknown" from GetInfo (username of 314112960 from ls -l) and can't be touched by me. I opened Terminal, and tried to "sudo chown" and "sudo chmod" them; both came back with "Operation not permitted". Can someone tell me how it's possible that su is not allowed to touch them, and more importantly, how I go about civilizing them so that I can see what's there and get rid of it? Thanks,
    Mike

    ls -lod yourfile
    If it says schg, then you have to reboot into single
    user's mode (hold down command-s while the machine
    reboots), then run fsck (the prompts will suggest
    what to type, so you don't have to memorize it here),
    then mount the file system, run fsck again if there
    was a problem reported the first time, and when you
    get the all clear, then navigate to where the file
    is, issue the command
    chflags noschg yourfile
    rm -R yourfile
    and then run fsck one more time (it helps to be
    paranoid) and then reboot.
    Thanks for the specific instructions! I did that and here's what happened.
    The first fsck said everything was fine. The chflags was ok as well. I tried to chown both directories then, to see what was there, and the first time it failed with a "operation not allowed" error. I then did rm -R on one of the directories, and it disappeared. I then tried the chown again on the other one, and it worked! Weird. Maybe there's some latency here somehow. Anyway, I decided I wanted the whole thing gone and I did an rm -Rf on it, and it deleted almost everything, except for one file, which was a link to a nonexistent file (it had an ls -l of "lrwxrwxrwx" (is that a hard link?). When I try to delete that one, it says "no such file or directory". I thought rm was supposed to delete the link, not the file the link is pointing to! Anyway, I couldn't think of any way to get rid of it - it just won't let me do it. Anyone have any ideas how to get rid of this link? It's sitting at the bottom of a long tree of directories and I'd now like the whole thing gone... Oh and then I fsck'd again, which said no error, and I rebooted. Finder won't let me delete it either (error 43, file cannot be found). What do you think?
    Thanks,
    Mike

  • Ulimit "cannot modify limit" error when starting Apache

    This isn't exactly an OSX Server problem, but I am trying to start Apache and subsequently Tomcat on my MacBook Pro so I can locally test a website before I deploy it to our test server. (The MacBook is a new machine to which I recently migrated my setup from my old PowerBook. The PowerBook is running 10.4.11, FWIW, and all worked well there.)
    When I do this from the command line:
    sudo /Library/Apache2/bin/apachectl start
    I get:
    /Library/Apache2/bin/apachectl: line 70: ulimit: open files: cannot modify limit: Invalid argument
    And Apache is not started. This runs fine on my old machine. The culprit line from apachectl is:
    ULIMITMAXFILES="ulimit -S -n `ulimit -H -n`"
    Just running the'ulimit -H -n' yields 'unlimited'.
    What's the problem here, and how do I fix it? I haven't found the answer by Googling.

    Back up all data.
    Select
    Shell ▹ New Command
    from the Terminal menu bar. Copy and paste the following line into the text box that opens:
    mkdir disabled_shell_files; mv .profile .bash* $_
    Your old shell initialization and history files will be saved in a directory with the indicated name at the top level of your home directory. Test.

  • /bin/sh: bad interpreter: Operation not permitted error OS X Lion

    I am trying to install omnetpp-4.2.2 on OS X Lion. When I try to configure I get the following error msg:
    -bash: ./configure: /bin/sh: bad interpreter: Operation not permitted.
    Sudo ./configure didn't help. Highly appreciate your help.

    bad interpreter: Operation not...: Apple Support Communities

  • How to fix file when it says, "Cannot open file " ". Adobe Indesign does not support the file format, a plug-in that supports the file may be missing, or file may be open in another application." It worked one second, I saved and closed the file, then tri

    How to fix file when it says, "Cannot open file " ". Adobe Indesign does not support the file format, a plug-in that supports the file may be missing, or file may be open in another application." It worked one second, I saved and closed the file, then tried to reopen and now it won't work. I am using Adobe InDesign CS5. It is the only version on my comp. I have tried opening on another comp & copying the file – same error comes up. PLEASE HELP

    First check the version of the document with Jongware's script "Identify.jsx" (ExtendScript/JavaScript).
    You can find it here:
    [Ann] Identify Your InDesign File
    If it is CS 5.5 or above, you need someone to open it in the version the script says and export an IDML representation from that. Another way would be to install a 30days version of CS6 or above (CC) and do it yourself.
    In regards of the script showing a result for InDesign files higher than CS6:
    CS7 = CC v9
    CS8 = CC v10 = CC-2014 or CC2014.1
    Uwe

  • Open error 1 - Operation not permitted' error when checking permissions

    Hi
    I just installed Snow Leopard on a clean HD, and when checking permissions I get these errors:
    Repairing permissions for “Internal HD”
    Open error 1: "Operation not permitted" on System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-dynlo ad/itertools.so
    Open error 1: "Operation not permitted" on System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/PyObj C/CoreFoundation/_CFRunLoopObserver.so
    Open error 1: "Operation not permitted" on System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/imputil.p yo
    Open error 1: "Operation not permitted" on System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac/ Carbon/Appearance.pyc
    Open error 1: "Operation not permitted" on System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac/ lib-scriptpackages/StdSuites/_init_.pyo
    Open error 1: "Operation not permitted" on System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/test/test _inspect.pyc
    Open error 1: "Operation not permitted" on System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/PyObj C/AppKit/_appmain.so
    Open error 1: "Operation not permitted" on System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/dateu til/relativedelta.py
    Open error 1: "Operation not permitted" on System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/numpy /ma/mrecords.py
    Open error 1: "Operation not permitted" on System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/zope/ interface/adapter.pyc
    Open error 1: "Operation not permitted" on System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils /msvc9compiler.pyc
    Open error 1: "Operation not permitted" on System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/email/tes t/testemailrenamed.pyo
    Open error 1: "Operation not permitted" on usr/sbin/stdhosts
    Open error 1: "Operation not permitted" on Applications/Utilities/Boot Camp Assistant.app/Contents/Resources/fi.lproj/MainMenu.nib/keyedobjects.nib
    Warning: SUID file "System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/MacOS/ARDAg ent" has been modified and will not be repaired.
    Open error 1: "Operation not permitted" on System/Library/Tcl/tcllib1.11/fileutil/multiop.tcl
    Warning: SUID file "System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/Reso urces/Locum" has been modified and will not be repaired.
    Is there anything to look out for here? What have I done wrong? Did I reformat my drive incorrectly? I chose Mac OS Extended (Journaled).
    Tried also to fix permissions from the install disk but got the same errors.
    Any help would be appreciated. Thanks

    acquiesce wrote:
    Hmm I haven't seen so many errors either.
    the number of errors is not high at all. Leopard would very often produce at least 3 to 4 times as many.
    It could have something to do with me running snow leopard on a Macbook Pro 2.16 core duo and not a core 2 duo... ?
    no, that would not have anything to do with it. as i said, those are most likely just errors in the permissions database. as i said, leopard was notorious for those. snow leopard is not as bad but produces a number of them too. I just haven't seen this particular kind of messages before. reinstalling SL will fix them but it seems like a serious overkill in this case.

  • Unable to open PDF files with Adobe Reader, Mac trying to open files with Quicktime instead, but not succeeding. HELP!

    Unable to open PDF files with Adobe Reader, Mac trying to open files with QuickTime instead, but not succeeding. HELP!

    Hi BDAqua,
    Thanks for the info, I dragged a PDF to desktop ctrl-, get info. change all to open with adobe.
    Problem solved, many thanks for a quick response.
    Barry69

  • LibGL error: open DRM failed (Operation not permitted)

    odf ~ $ glxinfo | grep direct
    libGL error: open DRM failed (Operation not permitted)
    libGL error: reverting to (slow) indirect rendering
    odf ~ $ sudo glxinfo | grep direct
    Password:
    direct rendering: Yes
    Hmmmm ?

    I have the same problem.
    glxinfo | grep rend
    libGL error: open DRM failed (Operation not permitted)
    libGL error: reverting to (slow) indirect rendering
    direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)
    OpenGL renderer string: ATI Radeon HD 3850
    But if sudo glxinfo | grep rend
    direct rendering: Yes
    ls -al /dev/dri/
    crw-r--r-- 1 root users 226, 0 2009-07-20 13:37 card0
    groups
    wheel dbus network video audio optical storage power users vboxusers anonymous
    in xorg.conf is "Section "DRI"
        Mode 0666
    EndSection"
    #edit:
    I set permissions "sudo chmod 666 /dev/dri/card0" and it's OK. Seems to be libdrm problem.
    Last edited by cinan (2009-07-20 11:58:51)

  • Creating files in user directory results in "Operation not permitted" error

    Hello everyone,
    I have a FileVault-secured home directory on my PowerBook G4 running OS X 10.4.6 which gives me some headache, as you can see from the following Terminal session:
    arepty-powerbook:~ arepty$ touch fubar
    touch: fubar: Operation not permitted
    I am definitely in the correct directory, logged in as the correct user, have enough free disk space and the directory has the correct permissions, as you can see below:
    arepty-powerbook:~ arepty$ pwd
    /Users/arepty
    arepty-powerbook:~ arepty$ whoami
    arepty
    arepty-powerbook:~ arepty$ id arepty
    uid=501(arepty) gid=501(arepty) groups=501(arepty), 81(appserveradm), 79(appserverusr), 80(admin)
    arepty-powerbook:~ arepty$ df -h | grep '/Users/arepty'
    /dev/disk2s2 74G 64G 11G 86% /Users/arepty
    arepty-powerbook:~ arepty$ ls -l /Users/ | grep arepty
    drwx------ 180 arepty arepty 6222 May 3 12:31 arepty
    Am I missing something here or is my FileVault-directory perhaps fubar? Thanks in advance for any help you guys might be able to give me.
    Cheers,
    Alex
    PowerMac G5 & PowerBook G4   Mac OS X (10.4.6)  

    That is good to know, but it will probably make it ever harder to locate the cause of this problem. In the meantime, I made a backup of my FileVault-enabled user directory on my PowerMac and reinstalled the operating system on my PowerBook. During the backup, I have encountered a couple of I/O errors so I'm guessing either the filesystem was damaged (and could not be completely repaired by Disk Utility, which I have tried) or the hard drive is damaged.
    Just to be on the safe side, I have ordered a new hard drive and exchanged it (wouldn't want to risk data loss with the old hard drive) and everything works perfectly again with a completely new user directory.
    I am still wondering what caused all this trouble though, since I want to avoid another incident like this in the future.

Maybe you are looking for

  • Consolidation Trial Balance Report

    Hello. Where data for generated before the Consolidation Trial Balance Report? How they can be chosen from a database?

  • SOAP adapter installation and activation

    We have installed XI 3.0 SR1 and wish to enable the sender SOAP adapter to receive SOAP messages from a different (PeopleSoft) system.  The documentation we have found really seems to be lacking in the area on installing and activating the SOAP adapt

  • Video Filters

    I have some DV footage which is "over exposed". To adjust the exposure I have followed the following directions: 1. Drag a clip from the Browser to a video track on the Timeline. 2. Position the Timeline playhead anywhere on the clip so that you can

  • To add new key figure in existing info cube (BI 7.0)

    I m using BI 7.0 How can I add new Key figure in my existing info cube? Thanks KS

  • Convert .pages document on PC?

    Does anyone know of any PC converter that would allow a PC user to open a .Pages file type? I'm not finding anything, but am troubleshooting a situation with some colleague. In advance, I am aware of the export feature in Pages. I'm trying to cover m