Ksh sudo not found

Hi,
I logged in Unix servers and trying to access oracle DB by giving below cmd
$ sudo su - oracle . But i was getting error msg says that
ksh: sudo: not found
Can someone assist me on this .

The "sudo" executable is not in your path. Try either:
<pre><dir-that-sudo-resides>/sudo su - oracle</pre>
- or -
<pre>export PATH=${PATH}:<dir-that-sudo-resides>
sudo su - oracle</pre>

Similar Messages

  • Solaris- sudo not found

    While configuring the solaris resource adapter on IDM 7,i m getting the following error
    Test connection failed for resource(s):
    Solaris: sudo: not found\n
    I went thru the forum but could not figure where to put the
    following:
    /usr/local/bin/sudo instead of sudo in my command.
    Can somebody help?

    On Solaris (especially 9), use RBAC instead of sudo. Its much cleaner. There is a big admin article on how to go about configuring the roles (piece of cake). Sudo may give you other problems like recon getting stuck for a large number of users, etc.
    To fix your problem (assuming that you have assigned bash shell to the user with whom IM is binding to the Solaris box), add /usr/local/bin to his PATH variable (like, in his .bash_profile).
    Ankush

  • Sub:   /usr/bin/ksh: sqlplus:  not found.

    Hi,
    I installed Oracle 9R2 client on one server and i'm not able to execute sqlplus command it's throwing following error's
    :oracle:/home/oracle#sqlplus
    /usr/bin/ksh: sqlplus: not found.
    :oracle:/u01/app/oracle/product/9.2.0#sqlplus
    /usr/bin/ksh: sqlplus: 0403-006 Execute permission denied.
    then i gave 777 permission to /u01/app/oracle/product/9.2.0
    if i execute /u01/app/oracle/product/9.2.0/bin#sqlplus
    i can able to connect
    this is the Env variable i set in the .profile(AIX 5.2) PATH=/usr/bin:/etc:/usr/sbin:$ORACLE_HOME/bin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:.
    Can anyone help me on this
    Thanks!
    Krishna R

    then i gave 777 permission to /u01/app/oracle/product/9.2.0well, I would not do that...

  • Ksh: sqlplus:  not found.

    Hi all,
    i can logon to oracle db as id=oracle but when i try
    to connect to sqlplus as a regular user, i got this error ksh:sqlplus not found
    i've configured the .profile as
    PATH=/oracle/app/oracle/product/10.2.0/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bi
    n/X11:/sbin:.
    export PATH
    if [ -s "$MAIL" ] # This is at Shell startup. In normal
    then echo "$MAILMSG" # operation, the Shell checks
    fi # periodically.
    AIXTHREAD_SCOPE=S; export AIXTHREAD_SCOPE
    umask 022
    ORACLE_BASE=/oracle/app/oracle; export ORACLE_BASE
    ORACLE_SID=mySID; export ORACLE_SID
    ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME
    PATH=/usr/sbin:$PATH; export PATH
    PATH=$ORACLE_HOME/bin:$PATH; export PATH
    LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
    CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
    TMP=/tmp; export TMP
    TMPDIR=$TMP; export TMPDIR
    also applied
    chmod 6751 $ORACLE_HOME/bin/oracle, but no luck
    any idea?
    oracle 10.2.0.4
    AIX 5.3
    thanks

    $ls -ltr $ORACLE_HOME
    -rwxr-x--- 1 oracle oinstall 0 Jun 07 2005 root.sh.old
    drwxr-xr-x 3 oracle oinstall 256 Mar 10 05:22 wwg
    drwxr-xr-x 4 oracle oinstall 256 Mar 10 05:22 uix
    drwxr-x--- 3 oracle oinstall 256 Mar 10 05:22 tg4sybs
    drwxr-xr-x 3 oracle oinstall 256 Mar 10 05:22 sqlj
    drwxr-xr-x 3 oracle oinstall 256 Mar 10 05:22 slax
    drwxr-xr-x 6 oracle oinstall 256 Mar 10 05:22 perl
    drwxr-xr-x 4 oracle oinstall 256 Mar 10 05:22 owm
    drwxr-xr-x 8 oracle oinstall 256 Mar 10 05:22 ord
    drwxr-xr-x 4 oracle oinstall 256 Mar 10 05:22 oracore
    drwxr-x--- 4 oracle oinstall 256 Mar 10 05:22 opsm
    drwxr-xr-x 5 oracle oinstall 256 Mar 10 05:22 olap
    drwxr-xr-x 6 oracle oinstall 256 Mar 10 05:22 nls
    drwxr-x--- 6 oracle oinstall 256 Mar 10 05:22 md
    drwxr-xr-x 3 oracle oinstall 256 Mar 10 05:22 jre
    drwxr-xr-x 7 oracle oinstall 256 Mar 10 05:22 javavm
    drwxr-xr-x 5 oracle oinstall 256 Mar 10 05:22 has
    drwxr-x--- 3 oracle oinstall 256 Mar 10 05:22 encryption
    drwxr-x--- 3 oracle oinstall 256 Mar 10 05:22 emdw
    drwxr-xr-x 3 oracle oinstall 256 Mar 10 05:22 diagnostics
    drwxr-x--- 3 oracle oinstall 256 Mar 10 05:22 demo
    drwxr-xr-x 6 oracle oinstall 256 Mar 10 05:22 crs
    drwxr-x--- 4 oracle oinstall 256 Mar 10 05:22 clone
    drwxr-x--- 3 oracle oinstall 256 Mar 10 05:22 bali
    drwxr-xr-x 7 oracle oinstall 256 Mar 10 05:22 assistants
    drwxr-xr-x 7 oracle oinstall 256 Mar 10 05:22 plsql
    drwxr-x--- 2 oracle oinstall 256 Mar 10 05:22 mesg
    drwxr-xr-x 6 oracle oinstall 256 Mar 10 05:24 xdk
    drwxr-xr-x 4 oracle oinstall 256 Mar 10 05:24 jdbc
    drwxr-xr-x 4 oracle oinstall 256 Mar 10 05:24 relnotes
    drwxr-x--- 7 oracle oinstall 256 Mar 10 05:24 mgw
    drwxr-xr-x 2 oracle oinstall 256 Mar 10 05:24 endorsed
    drwxr-xr-x 10 oracle oinstall 256 Mar 10 05:24 sqlplus
    drwxr-x--- 7 oracle oinstall 256 Mar 10 05:24 css
    drwxr-xr-x 3 oracle oinstall 256 Mar 10 05:24 cdata
    drwxr-xr-x 7 oracle oinstall 256 Mar 10 05:24 opmn
    drwxr-xr-x 13 oracle oinstall 4096 Mar 10 05:24 srvm
    drwxr-xr-x 7 oracle oinstall 256 Mar 10 05:24 racg
    drwxr-xr-x 14 oracle oinstall 4096 Mar 10 05:24 ldap
    drwxr-x--- 2 oracle oinstall 256 Mar 10 05:24 config
    drwxr-xr-x 12 oracle oinstall 4096 Mar 10 05:27 network
    -rwxr-xr-x 1 oracle oinstall 9528 Mar 10 05:27 root.sh.old.1
    drwxr-x--- 15 oracle oinstall 4096 Mar 10 05:27 oc4j
    drwxr-x--- 7 oracle oinstall 256 Mar 10 05:27 hs
    -rw-r--r-- 1 oracle oinstall 66 Mar 10 05:51 oraInst.loc
    -rw-r----- 1 oracle oinstall 38 Mar 10 06:02 install.platform
    drwxr-xr-x 10 oracle oinstall 4096 Mar 10 06:02 jdk
    drwxr-xr-x 5 oracle oinstall 256 Mar 10 06:02 OPatch
    drwxr-xr-x 7 oracle oinstall 4096 Mar 10 06:02 oui
    drwxr-xr-x 2 oracle oinstall 4096 Mar 10 06:02 jlib
    drwxr-xr-x 14 oracle oinstall 4096 Mar 10 06:02 sysman
    drwxr-xr-x 10 oracle oinstall 256 Mar 10 06:02 precomp
    drwxr-xr-x 3 oracle oinstall 256 Mar 10 06:02 odbc
    drwxr-x--- 7 oracle oinstall 256 Mar 10 06:02 ccr
    drwxr-x--- 11 oracle oinstall 4096 Mar 10 06:02 ctx
    drwxr-x--- 3 oracle oinstall 256 Mar 10 06:03 tg4tera
    drwxr-x--- 3 oracle oinstall 256 Mar 10 06:03 tg4ingr
    drwxr-x--- 3 oracle oinstall 256 Mar 10 06:03 tg4ifmx
    drwxr-xr-x 15 oracle oinstall 4096 Mar 10 06:04 rdbms
    drwxr-xr-x 2 oracle oinstall 8192 Mar 10 06:07 lib32
    -rwxr-x--- 1 oracle oinstall 11524 Mar 10 06:08 root.sh
    drwxr-xr-x 3 oracle oinstall 12288 Mar 10 06:08 lib
    drwxr-x--- 14 oracle oinstall 4096 Mar 10 06:08 inventory
    drwxr-x--- 7 oracle oinstall 256 Mar 10 06:37 cfgtoollogs
    drwsr-sr-x 2 oracle oinstall 16384 Mar 11 00:14 bin
    drwxr-x--- 5 oracle oinstall 4096 Mar 11 03:35 install
    drwxr-xr-x 3 oracle oinstall 256 Mar 11 07:12 log
    drwxr-x--- 2 oracle oinstall 4096 Mar 11 07:23 dbs

  • Ksh:unzip not found

    my working environment:vmware server oracle enterprise redhat4; i am dowing RAC.
    after all setting, I try to install oracle clusterware
    I login as oracle user and type $unzip /u01/Stage11g/linux_11gR1_clusterware.zip
    i have an error:ksh:unzip: not found
    would you help me?

    Look i would say that you should not install on windows: I used vmware to cobfigure the database and i spent 3 days without seeing the sun and i have just finished it. it is very rewarding when you accomplish it.
    1) make user that oracle has permission to that directory
    chown oracle:oinstall /opt/oracle
    or try unzip the file using the root
    su -
    password
    go to that path where it is installed and then unzip it.
    when you are done let me know
    thanks

  • .profile[5]: bin:.:  not found

    Hello All,
    OS: AIX 5.2
    Prior to install Oracle DB 10.2,
    I created the oracle user.
    $ id
    uid=200(oracle) gid=206(oinstall) groups=12(dba),17(oper)
    when I logged to the system remotely via oracle user,
    I got following message after logon to the system
    .profile[5]: bin:.: not found.
    pwd
    /home/oracle
    ls -a
    .profile
    I tried to run .profile manullay
    $ . .profile
    ksh: .profile: not found.
    DN

    that has been fixed.
    it was typo.

  • I am trying to install oracle 11g xe on ubuntu aws instance when i execute sudo /etc/init.d/oracle-xe configure command iam getting this error: sudo: /etc/init.d/oracle-xe : command not found

    i am trying to install oracle 11g xe on ubuntu aws instance when i execute sudo /etc/init.d/oracle-xe configure command iam getting this error: sudo: /etc/init.d/oracle-xe : command not found.

    "command not found" means ... there is no such thing.
    Has the .rpm been installed?
    http://docs.oracle.com/cd/E17781_01/install.112/e18802/toc.htm#XEINL122

  • When i try to boot usb yosemite , i have this message (sudo: /Applications/Install OS X Yosemite.app/Contents/Resources/createinstallmedia: command not found)

    when i try to boot usb yosemite , i have this message (sudo: /Applications/Install OS X Yosemite.app/Contents/Resources/createinstallmedia: command not found)

    You are getting a kernel panic because you are trying to boot the computer with a Tiger DVD. That model requires 10.6.3 - Snow Leopard. You can purchase replacement discs from Apple:
    Apple Store Customer Service at 1-800-676-2775 or visit online Help for more information.
    To contact product and tech support: Apple - Support - Contact Apple Support.
    For Mac App Store: Apple - Support - Mac App Store.
    For iTunes: Apple - Support - iTunes.

  • I want to disable 'Spotlight' for repairing my disk "Macintosh HD" , but somehow the command 'sudo mdutil -a -i off' does not work in 'Terminal'. I get result as ' bash: sudo: command not found' .I am using OS 10.10.  Please help.

    I want to disable 'Spotlight' for repairing my disk "Macintosh HD" , but somehow the command 'sudo mdutil -a -i off' does not work in 'Terminal'. I get result as ' bash: sudo: command not found' .I am using OS 10.10.  Please help.

    It appears that you may not have a properly installed OS X system.
    You must be connected to the Internet to reinstall OS X.
    In the menu bar, choose Apple menu > Restart. Once your Mac restarts (and the gray screen appears), hold down the Command (⌘) and R keys.
    Select “Disk Utility,” and then click Continue.
    Select your startup disk from the list on the left, and then Repair Disk.
    After disk is repaired, select Reinstall OS X, then click Continue.
    Follow the onscreen instructions. In the pane where you select a disk, select your current OS X disk

  • HT5627 When I do as written, i get the message sudo:serveradmin not found

    I have tried toenable mail to send larger emails attachement, i found a way to do this, through terminal on an appel support page. However whan i posted the command line in terminal, it answeres; SUdo: server admin not found, any ideas?

    The correct format of the command is
    sudo serveradmin settings mail:postfix:message_size_limit = number
    as discussed in this article http://support.apple.com/kb/HT5627
    However you need to do this command on the mail server and not on a Mac client.
    Note: server admin is not valid it must be serveradmin

  • [SOLVED] sudo and "command not found" problems

    Ok, the problem I've got is this: sudo has suddenly started acting real strange. It can't find any programs. For example, if i type
    sudo echo
    It just goes
    sudo: echo: command not found
    And another problem I've got, is that as a regular user, it can't find programs in /sbin, or other "exotic" places. For example it can't find firefox, because it's not in /usr/bin or /bin, but in /opt/mozilla/bin.
    Please, help me!
    Last edited by mrpedroxx (2008-06-14 13:23:49)

    sudo -V outputs this
    Sudo version 1.6.9p15
    $PATH outputs
    bash: /usr/gnu/bin:/usr/local/bin:/bin:/usr/bin:.: No such file or directory
    pacman -Q firefox outputs
    firefox 2.0.0.7-1
    Yeah, maybe I should update it anyway
    And /var/log/errors.log does contain stuff about hard disks, but it's just me mounting my iPod and the Windows partition on my hd

  • -bash: sudo: command not found

         Hello all,
    I have had WAY too many problems with this laptop, and at this point in its miserable little life, I've decided to just wipe the hard drive and start fresh, not caring at all what happens to the files left on there. As previously stated in one of my earlier questions (That was, might I add, never fully answered.), this late 2008 MacBook (aluminum) has a problem where it does not boot up, and just endlessly shows the gray spinning pinwheel. Four months later, that just stops, and now when trying to boot up with my normal startup disk, it brings me right to the Recovery disk and tries to reinstall OS X. I tried, it failed 5 minutes in. So I tried to wipe the hard drive, and it says:  Disk Erase failed with the error: Couldn't unmount disk.   I looked it up and I saw that if I went into the Terminal and typed: sudo diskutil unmountDisk /dev/disk0 , it would unmount the disk. But whenever I type that, it says: -bash: sudo: command not found. I have no idea how to fix this, and I would really like to be able to use my laptop again without giving somebody my money to do it for me.
                                                 Thanks,
                                                      Luke

    Clean Install of Snow Leopard
    Be sure to make a backup first because the following procedure will erase
    the drive and everything on it.
         1. Boot the computer using the Snow Leopard Installer Disc or the Disc 1 that came
             with your computer.  Insert the disc into the optical drive and restart the computer.
             After the chime press and hold down the  "C" key.  Release the key when you see
             a small spinning gear appear below the dark gray Apple logo.
         2. After the installer loads select your language and click on the Continue
             button. When the menu bar appears select Disk Utility from the Utilities menu.
             After DU loads select the hard drive entry from the left side list (mfgr.'s ID and drive
             size.)  Click on the Partition tab in the DU main window.  Set the number of
             partitions to one (1) from the Partitions drop down menu, click on Options button
             and select GUID, click on OK, then set the format type to MacOS Extended
             (Journaled, if supported), then click on the Apply button.
         3. When the formatting has completed quit DU and return to the installer.  Proceed
             with the OS X installation and follow the directions included with the installer.
         4. When the installation has completed your computer will Restart into the Setup
             Assistant. After you finish Setup Assistant will complete the installation after which
             you will be running a fresh install of OS X.  You can now begin the update process
             by opening Software Update and installing all recommended updates to bring your
             installation current.
    Download and install Mac OS X 10.6.8 Update Combo v1.1. You may then open App Store, click on the Purchases icon in the toolbar, and re-download any OS X upgrade you purchased except Mavericks. Since Yosemite has been released the App Store may not let you re-download Mavericks, but it will let you download Yosemite.

  • Sudo: command not found

    OK, I got Jaguar installed and all updated on my trusty Wallstreet. the first time I installed it, something got messed up, and the desktop would not show up. So, I reinstalled, with a minmial install, then added in the BSD subsystem. I thought everything was fine, except the terminal would not display "welcome to Darwin!" when opened, instead, all I get is bash-2.05a$ when it starts up.
    So, when trying to run some shell scripts (to uninstall something), I typed in sudo and dragged the script to the terminal window, and pressed enter. all I got was: Sudo: command not found. So, I tried the old standby, su. it asked for my password (yes, I am running this from an admin account), and all it said was su: sorry. I know I am typing in my password correctly.
    the next step was to see where sudo is located, so i typed in
    which sudo
    and all I got was
    no sudo in /bin /sbin /usr/bin /usr/sbin
    so, from the looks of it, sudo was never installed. How am I supposed to get this back? reinstall the BSD subsystem, or is there some Quick and Dirty(tm) way to get it back?
    I am not afraid to play around in the terminal, as I am a Linux/unix junkie.
    thanks.
    -digital

    It's fixed. it was just a bad copy. I got another one, and now when I launch the terminal, it says
    Last login: Fri Mar 2 19:53:49 on ttyp1
    Welcome to Darwin!
    [Leo-Titus-LeBron-Vs-Computer:~] leolebron%
    and when I type sudo, it says:
    usage: sudo -V | -h | -L | -l | -v | -k | -K | [-H] [-P] [-S] [-b] [-p prompt]
    [-u username/#uid] -s | <command>
    So, it all works. I knew something was different, as right after running the setup assistant, it ran software update, which the other copy did not do.
    thanks for all the input.
    -digital

  • HT5627 when I copy it in the terminal, it tells me : " sudo: serveradmin: command not found "

    what should I do ? What did I do wrong ?

    This error?
    $ sudo serveradmin
    Password:
    sudo: serveradmin: command not found
    $
    That usually means you're not logged in on an OS X Server configuration — which is separate from having the Server.app tool loaded onto the system, when you're doing remote management —  or as Linc Davis mentions, that the PATH setting is incorrect.  The correct PATH should look something like this:
    $ sudo echo $PATH
    /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Applications/Server.app/Contents/S erverRoot/usr/bin:/Applications/Server.app/Contents/ServerRoot/usr/sbin
    $
    I wouldn't expect PATH to be incorrect on the root user on the server, barring some site-local tweaks to that context.  But if there have been changes to PATH, then I'd add both bin and sbin within Server.app into the path.  (This change should not be necessary, though.  The PATH should have the correct settings within Server.app by default.)
    If you're looking to use serveradmin on a remote server, then the usual approach is to enable and ssh into the target OS X Server system (ssh [email protected]), or to use ARD or related to push commands, or to use screen sharing and a remote desktop.   ssh is by far the lightest and fastest of these options.  
    AFAIK, the command-line serveradmin tool doesn't do remote management.  There's no obvious way provided to specify the identity of a target server.

  • Cannot inherit backups as sudo tmutil not found in terminal

    I get a "sudo: tmutil: command not found" message on terminal when I am trying to inherit backups as per the fantastic instructions on the website by pondini. What does it mean and how can I correct it?
    My old backups on time machine are not highlighted on time machine so cannot restore them. This is either because I have restored the OS or repaired the external HD used for backups.

    Lets' see....The thread is titled "Cannot inherit backups as sudo tmutil not found in terminal".
    The OP just replied "Any idea what would be equivalent for 10.6.8 to inherit backups? Or is it even possible to do so for 10.6.8?"
    The question was asked in the post right before mone. I should have highlighted that, I guess. Sorry.
    To answer your second comment, I DID "go to the website" and looked for information. Including finding this thread.
    DId not find an answer.
    For anyone out there looking for an actual answer beyond "go find it yourself", the fact is that you CANNOT reconnect a backup in SL. THIS asnwered my question and I hope it helps others looking for the same.

Maybe you are looking for

  • Crystal Reports 9 and Java

    I have a crystal report that I've done that has a lot of parameters. I want to use java to make a more user friendly interface to enter in the parameters. For example, the user needs to be able to filter by date, stock number, vendor, etc. I'm not a

  • Function modul to read PPOMA_CRM structure

    Hello, i have the requirement to read all the employees / users assigned to specific orgunit in my own coding. Do you know a function module which can be used for this? Thank you Best regards Manfred

  • C4380 driver won't dowload Windows 8.1

    I've had my Photosmart C4380 for about 8 years.  Since I bought it it has worked intermittently wirelessly.  Over the years I have downloaded the driver at least 200 times!  I now have a new laptop which is on Windows 8.1 and now the driver won't eve

  • Question about the return message of BAPI_CUSTOMERRETURN_CREATE...

    Hello Experts, We are using the BAPI BAPI_CUSTOMERRETURN_CREATE in one of our programs. In QAS server, it is working fine since in the report we are getting the return value(from RETURN table) where TYPE = 'S', ID = 'V1' and number = '260' to get the

  • Template not updating pages properly

    I have several pages, all started from the same template.  The path to an image in the template is   <img src="../index.php" width="140" height="200" alt="Balgonie Baptist Church Logo">  but on the pages that are updated from this template they are: