ORACLE_HOME disappeared, SQLPLUS - bash: sqlplus: command not found

OK, I am a newbie but am having real difficulty with my 10G DB which I had set up on Unix Solaris box but someone was messing around with it and now I can't see ORACLE_HOME, ORACLE_BASE and ORACLE_SID, they all return blank when I try to "echo" each.
I realise I should have originally set it in Bash_profile, but is now too late.
So how do I set them back up, I cannot get SQLPLUS / AS SYSDBA.........bash: sqlplus: command not found
I have tried to reset and export but still doesn't work.
I got the ORACLE_BASE as:
training:/export/home/training/product/10.2.0/Db_1:N
but can't seem to set the three variables to run SQLPLUS, any ideas what I am doing wrong?
Tried messing around to reset but nothing works, this is the present state of affairs:
env
SSH_TTY=/dev/pts/3
USER=training
ORACLE_SID=training
ORACLE_BASE=/oracle/app
PATH=/usr/sbin:/usr/bin
PWD=/export/home/training/product/10.2.0/Db_1/bin
TZ=Eire
PS1=\e[33m\h\e[31m-\u-\e[33m\W/\e[31m-$\e[32m
SHLVL=3
HOME=/export/home/training
LOGNAME=training
ORACLE_HOME=/oracle/app/product/10.2.0
Can someone help me, really need a step by step guide to set these back up properly.
Thanks

just retyped the last one correctly:
find / -name sqlplus -ls
find: cannot read dir /var/lib/gdm: Permission denied
find: cannot read dir /var/lib/log/gdm: Permission denied
find: cannot read dir /var/mysql: Permission denied
find: cannot read dir /var/dt/sdtlogin: Permission denied
find: cannot read dir /var/core: Permission denied
find: cannot read dir /var/run/smc898: Permission denied
find: cannot read dir /var/spool/clientmqueue: Permission denied
find: cannot read dir /var/spool/mqueue: Permission denied
find: cannot read dir /var/fm/fmd/rsrc: Permission denied
find: cannot read dir /var/fm/fmd/ckpt: Permission denied
find: cannot read dir /var/fm/fmd/xprt: Permission denied
find: cannot read dir /var/postgres/8.2/data: Permission denied
find: cannot read dir /var/postgres/8.2/backups: Permission denied
find: cannot read dir /var/sma_snmp: Permission denied
find: cannot read dir /var/tmp/gconfd-root: Permission denied
find: cannot read dir /var/tmp/orbit-root: Permission denied
find: cannot read dir /var/krb5/rcache/root: Permission denied
find: cannot read dir /var/opt/SUNWjass/run/20091012152456: Permission denied
find: cannot read dir /.gconf: Permission denied
find: cannot read dir /opt/SUNWlwact/misc/: Permission denied
find: cannot read dir /opt/SUNWlwact/sdk/: Permission denied
find: cannot read dir /opt/SUNWlwact/xsl/: Permission denied
find: cannot read dir /opt/SUNWlwact/svc/: Permission denied
find: cannot read dir /opt/SUNWlwact/man/: Permission denied
find: cannot read dir /.sunw: Permission denied
199411 1 -rw-r--r-- 1 training other 0 Jan 14 23:12 /export/home/training/sqlplus
172460 2 drwxr-x--- 9 training other 9 Oct 27 17:58 /export/home/training/product/10.2.0/Db_1/sqlplus
188055 10 -rwxr-x--x 1 training other 8776 Oct 27 18:00 /export/home/training/product/10.2.0/Db_1/bin/sqlplus
184787 2 drwxr-x--- 3 training other 3 Oct 27 17:58 /export/home/training/product/10.2.0/Db_1/inventory/Templates/sqlplus
184842 2 drwxr-x--- 3 training other 3 Oct 27 17:58 /export/home/training/product/10.2.0/Db_1/oc4j/j2ee/oc4j_applications/applications/isqlplus/isqlplus/WEB-INF/classes/oracle/sqlplus
find: cannot read dir /root: Permission denied
find: cannot read dir /proc/227: Permission denied
find: cannot read dir /proc/832: Permission denied
find: cannot read dir /proc/835: Permission denied
find: cannot read dir /proc/458: Permission denied
find: cannot read dir /proc/381: Permission denied
find: cannot read dir /proc/624: Permission denied
find: cannot read dir /proc/818: Permission denied
find: cannot read dir /proc/2221: Permission denied
find: cannot read dir /proc/290: Permission denied
find: cannot read dir /proc/1166: Permission denied
find: cannot read dir /proc/273: Permission denied
find: cannot read dir /proc/229: Permission denied
find: cannot read dir /proc/225: Permission denied
find: cannot read dir /proc/478: Permission denied
find: cannot read dir /proc/445: Permission denied
find: cannot read dir /proc/815: Permission denied
find: cannot read dir /proc/410: Permission denied
find: cannot read dir /proc/432: Permission denied
find: cannot read dir /proc/440: Permission denied
find: cannot read dir /proc/427: Permission denied
find: cannot read dir /proc/352: Permission denied
find: cannot read dir /proc/443: Permission denied
find: cannot read dir /proc/1352: Permission denied
find: cannot read dir /proc/406: Permission denied
find: cannot read dir /proc/2353: Permission denied
find: cannot read dir /proc/670: Permission denied
find: cannot read dir /proc/667: Permission denied
find: cannot read dir /proc/405: Permission denied
find: cannot read dir /proc/213: Permission denied
find: cannot read dir /proc/16953: Permission denied
find: cannot read dir /proc/1146: Permission denied
find: cannot read dir /proc/2580: Permission denied
find: cannot read dir /proc/27831: Permission denied
find: cannot read dir /proc/444: Permission denied
find: cannot read dir /proc/1338: Permission denied
find: cannot read dir /proc/1350: Permission denied
find: cannot read dir /usr/lib/cc-cfw: Permission denied
find: cannot read dir /usr/aset: Permission denied
find: cannot read dir /.gconfd: Permission denied
find: cannot read dir /etc/flash/precreation: Permission denied
find: cannot read dir /etc/flash/preexit: Permission denied
find: cannot read dir /etc/flash/postcreation: Permission denied
find: cannot read dir /etc/inet/secret: Permission denied
find: cannot read dir /etc/apache/ssl.key: Permission denied
find: cannot read dir /etc/sfw/openssl/private: Permission denied
find: cannot read dir /etc/sfw/private: Permission denied
find: cannot read dir /etc/webmin: Permission denied
Looks a bit better:
199411 1 -rw-r--r-- 1 training other 0 Jan 14 23:12 /export/home/training/sqlplus
172460 2 drwxr-x--- 9 training other 9 Oct 27 17:58 /export/home/training/product/10.2.0/Db_1/sqlplus
188055 10 -rwxr-x--x 1 training other 8776 Oct 27 18:00 /export/home/training/product/10.2.0/Db_1/bin/sqlplus
184787 2 drwxr-x--- 3 training other 3 Oct 27 17:58 /export/home/training/product/10.2.0/Db_1/inventory/Templates/sqlplus
184842 2 drwxr-x--- 3 training other 3 Oct 27 17:58 /export/home/training/product/10.2.0/Db_1/oc4j/j2ee/oc4j_applications/applications/isqlplus
How to I run the sqlplus?

Similar Messages

  • -bash: exp: command not found

    Hi!
    we are trying to export a db schema, but receive the following message:
    -bash: exp: command not found
    # Export Schema WLTUSER
    # vi /oracle/app/oracle/scripts/export/export.sh
    # set variables
    export ORACLE_HOME=/oracle/app/oracle/product/10.2.0/db_1
    export ORACLE_SID=xxxxx
    export LD_LIBRARY_PATH=/oracle/app/oracle/product/10.2.0/db_1/lib
    export path=($path $ORACLE_HOME/bin)
    # run schema export
    exp USERID=system/xxxxxx OWNER=WLTUSER FILE=/oracle/app/oracle/scripts/export/export_$TODAY.dmp logfile=/oracle/app/oracle/scripts/export/export_$TODAY.log
    echo "export done..."
    exit 0Please help! Thanks!

    user545194 wrote:
    Hi!
    we are trying to export a db schema, but receive the following message:
    -bash: exp: command not found
    # Export Schema WLTUSER
    # vi /oracle/app/oracle/scripts/export/export.sh
    # set variables
    export ORACLE_HOME=/oracle/app/oracle/product/10.2.0/db_1
    export ORACLE_SID=xxxxx
    export LD_LIBRARY_PATH=/oracle/app/oracle/product/10.2.0/db_1/lib
    export path=($path $ORACLE_HOME/bin)
    # run schema export
    exp USERID=system/xxxxxx OWNER=WLTUSER FILE=/oracle/app/oracle/scripts/export/export_$TODAY.dmp logfile=/oracle/app/oracle/scripts/export/export_$TODAY.log
    echo "export done..."
    exit 0Please help! Thanks!it guess that you have connect with "ROOT" user . try to connect with oracle user or user being the member of dba group , and then take the export ....
    --neeraj                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • -bash: then : command not found

    Hi
    Sorry i have post the same problem in Infrastruture but i am not getting a quick reply.Thats why i am posting this in the database thread.
    I have installed OEL 5.I am going to install Oracle 11g.I have configured Kernel for oracle.But now when give the command su - oracle there is an
    -bash: then : command not found
    -bash: : command not found
    When i give su - then also same these lines appear.Please send me a solution.
    Will this give nay problem in database installation
    Regards
    Bobby

    user12119634(bobs) wrote:
    Hi
    Sorry i have post the same problem in Infrastruture but i am not getting a quick reply.Thats why i am posting this in the database thread.
    I have installed OEL 5.I am going to install Oracle 11g.I have configured Kernel for oracle.But now when give the command su - oracle there is an
    -bash: then : command not found
    -bash: : command not found
    When i give su - then also same these lines appear.Please send me a solution.
    Will this give nay problem in database installation
    Regards
    BobbyTry
    export PATH=/bin:$PATHthen do again

  • Bash: chkconfig: command not found

    Hi,
    I have made a a file dbora and made an entry in the /etc/init.d
    (The file basically does the Automatic Oracle Startup)
    I have created a dbora file
    I have then made the :$chmod 750 /etc/init.d/dbora
    Then $chconfig -level 345 dbora on
    Then its throwing error :bash:chkconfig: command not found
    I have logged in as root:
    $whereis chkconfig
    its shwoing :chkconfig: /sbin/chkconfig
    I tried also the same but not working
    Kindly can anyone help me on this

    uuh...ohhh...the answer to this question can be found at any fuckin bullshit linux documentation?!? so why don't you flame this guy for rtfm questions like the others for asking questions which can be googled for? Well Mr ASCORBINE why doesn't your post contain a link like http://lmgtfy/?q=command+not+found ?!? Actually the FIRST hit to this query got me to the solution, so if you are that wizard you pretend to be why didn't you rtmf him?!? Nah you seem to be another forum troll like others who is upset by himself for being a smartass....

  • Java -version bash: java: command not found

    Hi all.
    I wanna install java on linux (OpenSUSE). When I checked java -version, it shown that :
    java -version
    bash: java: command not found
    Can any solution about it, please!

    Sukirmanster wrote:
    I wanna install java on linux (OpenSUSE). When I checked java -version, it shown that :
    java -version
    bash: java: command not foundNot surprising if you have not installed java yet.
    Can any solution about it, please!If you have installed java, read a unix/linux manual,
    pay particular attention to bash (or any shell) and the role of $PATH.

  • Type "purge" in Terminal and get:   -bash: purge: command not found   Is there another built-in command to clear memory leaks?   want to clear memory periodically

    I have 10.6.8.  When I type "purge" in Terminal I get:   -bash: purge: command not found   Is there another built-in command to clear memory leaks?   I have FreeMemory (works well) and considering FreeMemory Pro, to clear memory periodically, say every 20 minutes, or preferably when a threshold is reached, say when only 100MB is available.

    To get purge to work you need to install Xcode from Optional Installs on the 10.6 install DVD. Also be sure you install CHUD Tools with it.
    But running purge or anything like it is pointless if within a short period of time the VM just grows back again. Sounds like you need more RAM.
    Where are the memory leaks? Just because the VM reaches a certain size doesn't necessarily mean it's from a memory leak.

  • -bash: gcc_select: command not found

    HI
    I am try to compile the Darwin kernel 9.8 on my system according this page https://developer.apple.com/library/mac/#documentation/Darwin/Conceptual/KernelP rogramming/build/build.html
    but unfortunaly I get the error message
    -bash: gcc_select: command not found
    According to the manpage http://developer.apple.com/library/mac/#documentation/Darwin/Reference/Manpages/ 10.5/man1/powerpc-apple-darwin9-gcc-4.0.1.1.html
    In Apple's version of GCC, both cc and gcc are actually symbolic links to a compiler named like        gcc-version; which compiler is linked to may be changed using the command gcc_select.  Similarly, c++        and g++ are links to a compiler named like g++-version.
    but unfortunaly I didn´t got the command on my system
    can anybody help (sry for the bad english) if the is not enough information pls tell me
    System
    Macbook5.1
    Mac OS X 10.5.8
    Xcode 3.1.2
    Thank in advance

    Thank for the answer
    but unfurtunaly I can´t sign in to the developer Forum don´t know why
    I suggest that I have to pay $99/year to get access to Forum
    Developer Technical Support Incidents are only available to members of the iOS, Mac, and Safari Developer Programs.
    for a simple answer I am not ready to pay 99$ that is rip off fraud
    Welcome to Apple
    NO MONEY get out of here
    realy sad
    Hope that someone can help me with my issue how to get the gcc_select or how to change the gcc
    cheers

  • -bash: make: command not found

    Help me please. I downloaded cdrecord because I need a tool called makeisofs but I am told that I need to compile it first before I can use it. The directions say to type "make" to compile it but when I type make in the terminal window, I get the following message:
    -bash: make: command not found
    I've spent hours looking all over the web for an explanation but I just can not find anything to help me. I even joined some IRC channels but no one types anything in those rooms. It is the weirdest thing.
    Can anyone tell me why I can't compile? The directions I got with the download don't explain a thing.

    I found something that might help. On the second Leopard DVD, there is something called Xcode Tools which I am told has what I need. I'll respond if I have any other questions. Thanks for reading.

  • Opmnctl status: "bash: opmnctl: command not found"

    Hi All,
    I am working to setup an OBI 11g VM image to my local system. The VM is a linux OS and my local m/c is Windows7. I am able to login to the VM using oracle/oracle. But the thing is, I am not able to start up my BI server over the VM.
    I checked the status of opmnctl file present at: /home/oracle/obiee/instances/instance1/bin. But getting the message as "bash: opmnctl: command not found".
    I did reboot the VM a few times as well. But, i am not sure can this be a problem? Please suggest what I did wrong and how can I resolve it.
    Thanks.

    Is opmn running?
    try using a different shell e.g ksh.
    l

  • 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

  • [Netconsole] bash: nc: command not found ?

    I configured and loaded as root Netconsole module (its running) to watch a Plug computer boot on a PC with ArchLinux 3.5.4-1 installed, but when running nc command on the PC, bash gives error:
    nc -u -l -p 6666
    bash: nc: command not found
    Any ideas? There is no nc file in /sbin dir or anywhere in FS.
    Last edited by sambul13 (2012-10-02 23:01:16)

    Judging from http://lxr.linux.no/#linux+v2.6.32/Docu … onsole.txt 'nc' means 'netcat', not 'netconsole'.
    Install gnu-netcat and try again.

  • [CLOSED] bash: pyuic4: command not found

    Some day, i found that pyuic4 is missed from my computer.
    $pyuic4
    bash: pyuic4: command not found
    $py
    pyalacarte pydoc2 pylint pyshell python2-config python3.3m-config pywxrc
    pyalamode pydoc3 pylint-gui pytest2 python2-pyuic4 python3-config
    pycolor2 pydoc3.3 pylupdate4 python python3 python-config
    pycrust pygobject-codegen-2.0 pyprof2calltree python2 python3.3 pyvenv
    pydb pygtk-codegen-2.0 pyrcc4 python2.7 python3.3-config pyvenv-3.3
    pydoc pygtk-demo pyreverse python2.7-config python3.3m pywrap
    I use python2, symlink is set in my homefolder
    $echo $PATH
    /home/stig/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/vendor_perl:/usr/bin/core_perl:/opt/qt/bin
    echo $PYTHONPATH gives nothing.
    I've tried to reinstall pyqt-common python2-pyqt, but problem is still persist.
    What can it be?
    Please, help to find out the reason and restore pyuic4
    Last edited by citizen-stig (2013-01-20 14:09:29)

    Thank you.
    I don't know, why it package has been deleted.
    reinstalling helps.

  • -bash: f4fpackager: command not found

    Hi,
    I am trying to use the f4fpackager on one of the centos amis (5.03)  through amazon aws.
    when I try to run the command I get the following:
    -bash: f4fpackager: command not found
    I have tried
    export LD_LIBRARY_PATH=/opt/adobe/ams/tools/f4fpackager
    but haven't had any success - has anyone got any ideas?
    Thanks,
    Craig

    Can you try navigating to the f4fpackager installation directory with the following command?
    cd /opt/adobe/ams/tools
    And then try to launch f4fpackager as follows:
    ./f4fpackager
    If need be, you can load libraries as follows:
    export LD_LIBRARY_PATH=.

  • Bash:startsap: command not found

    Dear All,
    We have successfully installed Solution Manger 4.0 on RHEL with Oracle Database.
    When we try to start the sap we get a an error message the bash:startsap:command not found.
    We go to the console and start sap as follows:-
    Su soladm
    Password
    startsap
    ERROR MSG (bash:startsap:command not found)
    We are able to login to ORASID And start LSNRTL.
    Kindly advice us to resolve the issue.
    Regards
    Sumanth

    Hi,
    If you login with root you can go:
    su - ora<sid>
    lsnrctl start
    exit
    su - <sid>adm
    startsap
    if you still get the error then please run above command in KSH (Korn shell)
    Regards,
    Alpesh Patel

  • -bash:  cat: command not found (or grep)

    Hi, Strange things:
    i3: okn$ ls -R | grep -h "dof" | cat > dtext.txt
    -bash:  cat: command not found
    or then I get this:
    i3: okn$ find . -type f -print | grep -c
    -bash:  grep: command not found
    but this is not happening all the time, i remember grep or cat did work once or twice...
    What's going on here?
    OS 10.7.4; repaired permissions
    Any assistance much appreciated!
    / bw, Omar KN

    'cat' is stored in /bin/cat, NOT /usr/bin/cat, which explains the file not found messages above.
    HOWEVER, the information you have provided seems to imply you have the executables, and previous information provides says you have a valid PATH:
    echo $PATH
    /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/bin:/bin:/usr/sbi n:/sbin:/usr/local/bin:/usr/X11/bin
    this creates a mystery as to why you are getting:
    -bash:  cat: command not found
    -bash:  grep: command not found
    I have a couple of thoughts.
    a) I'm wondering if you have any 'alias' statements in your .bash_profile (or .bash_login, or .profile, or .bashrc).
    b) if you would get the same results should you rename your .bash_profile (and/or .bash_login, .profile, .bashrc) to something like saved.bash_profile, then restart your terminal session (basically eliminating any personalized shell customization).
    c) what would happen if you created a new account (System Preferences -> Accounts) - basically a clean starting point.
    d) are you executing these commands from the command prompt?  Or from within a shell script?
    d.1) if from within a shell script, is the script file the correct file format.
    file name.shell.script
    you want to check that the output from the 'file' command DOES NOT say "...with CRLF line terminators...", as that would imply the the file came from (or through) a Windows system.

  • Bash: adb: command not found.

    I installed ADT bundle from Google.
    I navigated to
    ~/adt-bundle-linux-x86_64-20130219/sdk/platform-tools
    I tried to start adb and got.
    bash: adb: command not found.
    Grrrrr. Had this issue on Debian half a year before. Installed ia32-libs back-then. It worked.
    Arch has no ia32-libs. Uncommented multilib and installed
    lib32-gcc-libs-4.8.0-2 lib32-glibc-2.17-5 lib32-libstdc++5-3.3.6-6 lib32-ncurses-5.9-2
    Like suggested in the forum. No change. Adb is still not found.
    Any help?
    Last edited by manuelschneid3r (2013-04-22 18:21:58)

    manuelschneid3r wrote:
    I tried a lot distros, but I still would not call me an advanced user. I dont know exactly the dfference but ./foo runs something that has rights to be executed. Yes I called it in the right directory. Its a linking problem. (See here)
    I installed the dependencies of android from AUR. Now it works but it shows ??????????? as device...
    Incredibly sick, that Android SDK is not in the official repos...
    The "????????????" means that you do not have the correct udev rules setup. There's an adb udev rules package to install to get around having to write your own.
    And no, `./script.sh` executes something in the present working directory. It is equivalent to:
    $ $SHELL $(pwd)/script.sh
    All the best,
    -HG

Maybe you are looking for

  • Why are there print differences between Reader and Acrobat Pro

    I have a PDF file generated by InDesign (CS3). When I print the PDF from Reader (8.1.4) I get lighter text than when the same file is printed by Acrobat Pro (9.1.0). A close examination of the printed letters shows that the text printed from Reader i

  • How to synchronize NI-Scope and traditional DAQ

    I use a PXI-1042 System with a PXI-5124 Ni-Scope Card and a PXI-6120 with traditional DAQ controlled by a PC running WinXP and LabView 7.0 The intention of this setup is to make synchronized acquisition with both cards with different sample rates. Fo

  • Data Flow Question

    I have a Air app where an employee creates an order. This stores the order information in an order arraycollection, they also add items in the order and those go in the orderitems arraycollection. Now because the employee may not always have a networ

  • Non stock material - Account assignment category Q

    Dear All, I have came across a strange situation. For non stock material, qty update and value update is un checked in configuration. When I am trying to create PR or PO for non stock material, system is giving an error for account assignment categor

  • KO8G Order Settlement after or before TECO

    Hi, Can someone help me to confirm this understanding. As part of my business processes, I capture cost and revenue in a CO internal order. At the completion of the internal order, I will settle this cost and revenue in it to profit segment. The ques