SQLPLUS-- libhasgen10.so not found

Hello,
WHen I try to start SQLPLUS as different user but he is part of dba group on HP UX I get the below error.
This server is a test server, please advice.
sqlplus
SQLPlus: Release 10.2.0.2.0 - Production on Thu Aug 4 00:00:55 2011*
Copyright (c) 1982, 2005, Oracle.  All Rights Reserved.
Enter user-name: /as sysdba
*/usr/lib/hpux64/dld.so: Unable to find library 'libhasgen10.so'.*
ERROR:
ORA-12547: TNS:lost contact
But when I use oracle user to hit LDD the output is:
ldd oracle
oracle:
     libhasgen10.so =>     /oracle/DV3/102_64/lib/libhasgen10.so
     libskgxn2.so =>     /oracle/DV3/102_64/lib/libskgxn2.so
     libocr10.so =>     /oracle/DV3/102_64/lib/libocr10.so
     libocrb10.so =>     /oracle/DV3/102_64/lib/libocrb10.so
I tried to compare the environments,but couldn;t find the answer.
Thanks
SM ORA.
Edited by: 847761 on Aug 3, 2011 10:03 PM

847761 wrote:
WHen I try to start SQLPLUS as different user but he is part of dba group on HP UX I get the below error.
*/usr/lib/hpux64/dld.so: Unable to find library 'libhasgen10.so'.*Dynamic link loader failed to resolve a shared object reference (it should be in <i>$ORACLE_HOME/lib</i>). Been some time since I last use HP-UX on a regular basis, but as far as I recall either SHLIB_PATH or the LD_LIBRARY_PATH needs to be set - this is used by the loader as search path for loading shared object libraries.
Seems like you're on 64bit? Check manpages for the environment variable name to set - I also vaguely recall that HP-UX used different env vars for 32bit and 64bit search paths.
The usually default for Oracle client s/w is something as followings (depends of course on the actual Unix/Linux o/s used):
export LD_LIBRARY_PATH=/lib:/usr/lib:$ORACLE_HOME/lib

Similar Messages

  • 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?

  • SQLPLUS: not found

    Hello,
    8.1.7 on UNIX (generic). With a new SID in the Oracle profile, starting SQLPLUS returns "not found" instead of connecting to an idle instance. ORATAB, TNSNAMES, LISTENER.ora are updated, link to pfile and orapw file created.
    All works correcly when the SID that was created on install is used.
    On my last project with 8.1.6, a new or unknown SID would start an idle instance. LSNRCTL gives the same message with a new SID in the profile.
    Any ideas on what is missing ?
    Thanks,
    Kevin Lang

    If you get "sqlplus: not found" then the OS cannot find the sqlplus executable. Triple check how you change "just" the ORACLE_SID, and make sure that your PATH environment variable is not being updated, or is being correctly updated. [From the message you are getting I think you're using 'sh' or 'ksh'. But if you are using 'csh' then you might need to execute 'rehash' if the PATH is changed.]
    Using the '/nolog' option to SQL*Plus may eliminate the different ORACLE_SID as an issue.
    - CJ

  • Sqlplus command not found

    Hi All,
    OS : Solaris
    Oracle Version : 10.1.0.2.0
    When i am trying to connect to database by typing sqlplus
    i am getting error
    -bash: sqlplus: command not found
    previously when i connect like that i am able to connect to database
    when i check space
    I have 32 GB Drive and free space is 288M.
    Can anyone tell me is this the space issue or any other issue.
    I logged in with Oracle User

    Vikas Kohli wrote:
    Hi All,
    OS : Solaris
    Oracle Version : 10.1.0.2.0
    When i am trying to connect to database by typing sqlplus
    i am getting error
    -bash: sqlplus: command not found
    previously when i connect like that i am able to connect to database
    when i check space
    I have 32 GB Drive and free space is 288M.
    Can anyone tell me is this the space issue or any other issue.
    I logged in with Oracle UserSet the environment variable PATH correclty and make sure you've added $ORACLE_HOME/bin folder to it
    export PATH=$ORACLE_HOME/bin:$PATH
    sqlplus / as sysdbaKamran Agayev A.
    Oracle ACE
    My Oracle Video Tutorials - http://kamranagayev.wordpress.com/oracle-video-tutorials/

  • Bash: SQLPLUS: Command not found

    Hi All,
    I'm facing problem during connecting to SQLPLUS in Linux Plateform Redhat 4.....whenever I write SQLPLUS, it gives me the following Error message
    Bash: Sqlplus: Command not found.
    kindly let me know, how can I get rid of this Error. Thanks
    Regards,
    Imran

    Your environmentals are not setup.
    From the command prompt source oraenv
    ~> . oraenv
    or (depending on your os )
    ~> source oraenv
    Respond to the prompt with the name of your database exactly (uppercase/lowercase) as it is in the oratab file (/etc/oratab ?)
    This will set your ORACLE_HOME, ORACLE_SID, and PATH variables correctly for your database.
    Try sqlplus again and see if that does not work for you.

  • (OEL 4.7) -bash: sqlplus: command not found after install of 10g R2

    Hi all
    I'm new to Linux and I would like your help and directions on a few things:
    After 2 days of battle with RPM's (i386 vs x86_64) i was finally able to install 10g R2 on OEL 4.7 x86_64 system without any errors.
    please check if all these settings are correct and help me how to start sqlplus? or create a database with dbca
    I followed all the directions in Doc ID: 339510.1.
    During installation i choose this path as the ORACLE_HOME
    /u01/app/oracle/product/10.2.0/
    I did not however installed the default database.
    I then ran the two scripts at the end of the installation as root.
    Here are my settings:
    oracle bash_profile:
    # .bash_profile
    # Get the aliases and functions
    if [ -f ~/.bashrc ]; then
    . ~/.bashrc
    fi
    # User specific environment and startup programs
    PATH=$PATH:$HOME/bin
    export PATH
    unset USERNAME
    :q
    ORACLE_BASE=/u01/app/oracle
    export ORACLE_BASE
    ORACLE_HOME=/product/10.2.0/db_1;
    export ORACLE_HOME
    export PATH=$ORACLE_HOME/bin:$PATH
    here is my oracle env result
    [oracle@nycoralp01 /]$ env | grep -i ORACLE
    OLDPWD=/home/oracle/oraInventory
    USER=oracle
    ORACLE_BASE=/u01/app/oracle
    MAIL=/var/spool/mail/oracle
    PATH=/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/oracle/bin
    HOME=/home/oracle
    LOGNAME=oracle
    ORACLE_HOME=/product/10.2.0/db_1
    here is my echo $ORACLE_HOME result:
    [oracle@nycoralp01 /]$ echo $ORACLE_HOME
    /product/10.2.0/db_1
    Can someone please tell me what did i miss or did not set?
    When i try to run sqlplus i get this error
    [oracle@nycoralp01 /]$ sqlplus
    -bash: sqlplus: command not found
    Any help appreciated

    I change it in my bash_profile
    $ vi ~oracle/.bash_profile
    # .bash_profile
    # Get the aliases and functions
    if [ -f ~/.bashrc ]; then
    . ~/.bashrc
    fi
    # User specific environment and startup programs
    PATH=$PATH:$HOME/bin
    export PATH
    unset USERNAME
    :q
    ORACLE_BASE=/u01/app/oracle
    export ORACLE_BASE
    ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1;
    export ORACLE_HOME
    export PATH=$ORACLE_HOME/bin:$PATH
    and i'm still getting the same error
    -bash: sqlplus: command not found
    Is there anything else i'm missing? do i have to restart anything?

  • Exiting from sqlplus prompt if file not found

    I often execute .sql files from my shell scripts. If the .sql file is not present then sqlplus command logs onto sql prompt but stays there saying file not found.
    Is there a way I can make sqlplus exit if the file is not found.
    I believe one of the option should be specifying some condition in the .sql file.

    Hi,
    Tricky problem! WHENEVER OSERROR EXIT is the right command, but where can you put it?
    If foo.sql doesn't exist, then clearly you can't put it in foo.sql.
    Even putting in in login.sql doesn't seem to work.
    What you can do is write a script that you know will exist, and always run that to launch your real script.
    For example, you can write a script called try_to_run.sql, like this:
    WHENEVER  OSERROR  EXIT
    @&1Pass the name of your real script as &1, like this:
    sqlplus  scott/tiger@dbanme  @try_to_run  real_scriptor, if real_script.sql takes arguments:
    sqlplus  scott/tiger@dbanme  @try_to_run  "real_script arg1  arg2  arg3"

  • 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...

  • Sqlplus not found after db install on linux

    Hi gurus,
    i have installed oracle db 10gr2 on linux redhat 5, installation was successfull but when i run sqlplus /nolog at the terminal i get -bash: sqlplus: command not found.
    Below are other information you may need:
    [oracle@abg-dom-12 102]$ ls -rtl /ORACLE
    total 40
    drwxr-x--- 3 oracle oracle 4096 Mar 1 13:23 oradata
    drwxr-x--- 3 oracle oracle 4096 Mar 1 13:23 admin
    drwxr-x--- 3 oracle oracle 4096 Mar 1 13:24 flash_recovery_area
    drwxrwxr-x 6 oracle oracle 4096 Mar 1 13:57 oraInventory
    drwxr-x--- 60 oracle oracle 4096 Mar 1 14:19 102
    [oracle@abg-dom-12 102]$ echo $PATH
    /usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/oracle/bin:/ORACLE/102/lib
    [oracle@abg-dom-12 102]$ ls -l $ORACLE_HOME/bin/sqlplus
    -rwxr-x--x 1 oracle oracle 7311 Mar 1 13:22 /ORACLE/102/bin/sqlplus
    [oracle@abg-dom-12 102]$ which sqlplus
    /usr/bin/which: no sqlplus in (/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/oracle/bin:/ORACLE/102/lib)
    DB VERSION = 10GR2
    OS PLATFORM = LINUX REDHAT 5
    Your help is very much appreciated.
    Thank you.

    Thanks for your response. Please find below output from the commands:
    [oracle@abg-dom-12 102]$ id
    uid=500(oracle) gid=500(oracle) groups=500(oracle) context=user_u:system_r:unconfined_t
    [oracle@abg-dom-12 102]$ env | sort
    _=/bin/env
    CVS_RSH=ssh
    G_BROKEN_FILENAMES=1
    HISTSIZE=1000
    HOME=/home/oracle
    HOSTNAME=abg-dom-12
    INPUTRC=/etc/inputrc
    LANG=en_US.UTF-8
    LD_LIBRARY_PATH=/ORACLE/102/lib:/ORACLE/102/lib32
    LESSOPEN=|/usr/bin/lesspipe.sh %s
    LOGNAME=oracle
    LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
    MAIL=/var/spool/mail/oracle
    OLDPWD=/home/oracle
    ORACLE_BASE=/ORACLE
    ORACLE_HOME=/ORACLE/102
    ORACLE_SID=GHADB
    PATH=/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/oracle/bin:/ORACLE/102/lib
    PWD=/ORACLE/102
    SHELL=/bin/bash
    SHLVL=1
    SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
    TERM=xterm
    USER=oracle
    [oracle@abg-dom-12 102]$
    [oracle@abg-dom-12 102]$ find / -name sqlplus -print 2>/dev/null
    /ORACLE/102/sqlplus
    /ORACLE/102/inventory/Templates/sqlplus
    /ORACLE/102/bin/sqlplus
    /ORACLE/102/oc4j/j2ee/oc4j_applications/applications/isqlplus/isqlplus/WEB-INF/classes/oracle/sqlplus
    [oracle@abg-dom-12 102]$

  • 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

  • Command not found error while executing a shell script

    Hello,
    I am a newbie to linux.I am attaching the code which gives me following errors..
    error list:
    1. no such file or directory enviornemnt
    2. command not found
    3. ambiguous redirectline
    Script
    cd $HOME/wkdir
    rm /tmp/*.log
    # source environment
    . ./env
    # Run the install script to setup the database
    # Configure SH account
    sqlplus "/ as sysdba" <<! > /tmp/perflab_install.log 2>&1
    grant connect, resource, dba to SH;
    alter user sh account unlock;
    # create the fetch_n_rows procedure
    sqlplus "$PERFLAB_USER" <<! >> /tmp/perflab_install.log 2>&1
    drop index sales_time_bix;
    drop index sales_time_idx;
    create index sales_time_idx on sales(time_id) compute statistics;
    -- fetch_n_rows: fetches 'n' rows from the specified statement --
    CREATE OR REPLACE PROCEDURE fetch_n_rows(
    stmt VARCHAR,
    name VARCHAR,
    nexec NUMBER := 1,
    nrows NUMBER := 0,
    debug BOOLEAN := FALSE)
    IS
    -- Local variables
    curs INTEGER := null;
    rc INTEGER;
    nexec_it INTEGER := 0;
    nrows_it INTEGER;
    BEGIN
    dbms_application_info.set_module('DEMO', name);
    WHILE (nexec_it < nexec)
    LOOP
    curs := DBMS_SQL.OPEN_CURSOR;
    DBMS_SQL.PARSE(curs, stmt, DBMS_SQL.NATIVE);
    rc := DBMS_SQL.EXECUTE(curs);
    nrows_it := 0;
    LOOP
    IF (dbms_sql.fetch_rows(curs) <= 0 OR (nrows <> 0 AND nrows_it = nrows
    THEN
    EXIT;
    ELSE IF (debug = TRUE)
    THEN
    DBMS_OUTPUT.PUT_LINE(nrows_it);
    END IF;
    END IF;
    nrows_it := nrows_it + 1;
    END LOOP;
    DBMS_SQL.CLOSE_CURSOR(curs);
    nexec_it := nexec_it + 1;
    END LOOP;
    dbms_application_info.set_module(null, null);
    END fetch_n_rows;
    show errors
    # Start the workload
    . ./start_workload.sh > /tmp/setup_perflab.log 2>&1
    # Wait two minutes for workload to get going
    sleep 120
    # Modify snapshot interval
    sqlplus -s /NOLOG <<EOF >> /tmp/setup_perflab.log 2>&1
    connect / as sysdba
    set head on
    set feedback on;
    set pagesize 40
    rem -- event to allow setting very short Flushing interval
    alter session set events '13508 trace name context forever, level 1';
    rem -- change INTERVAL setting to 2 minutes
    rem -- change RETENTION setting to 6 hours (total of 180 snapshots)
    execute dbms_workload_repository.modify_snapshot_settings(interval => 2,-
    retention => 360);
    EOF
    Note : start_workload.sh is also in the same directory..
    Any help would be greatly appreciated.

    Please put your script between "code" format delimiters.
    http://wiki.oracle.com/page/Oracle+Discussion+Forums+FAQ
    You can add the line "set -x" at the beginning of your script to see at which line it fails? I suspect the . ./env line.

  • File not found error on Mandrake 8.0

    My installation stops on 54 % and a popup message appears complaining that some files are not found on Disk2. As I have no alternative I give <Ignore> for the 10 -15 popup windows that appear, and the installations continues. In the link phase the popus came again. Again I press the Ignore button.
    At the end the Oracle Installer says <Successful> but when I try the sqlplus /nolog :
    sqlplus>connect / as sysdba
    the following error appear :
    libodm9.so cannot load object file : no such file or directory
    I can't see where I'm wrong ( the installation disks are ok - no error given when I'm uncompressing them to Disk1, Disk2, Disk3).
    Any help will be much appreciated !
    Thanks a lot !
    Best regards

    My installation stops on 54 % and a popup message appears complaining that some files are not found on Disk2. As I have no alternative I give <Ignore> for the 10 -15 popup windows that appear, and the installations continues. In the link phase the popus came again. Again I press the Ignore button.
    At the end the Oracle Installer says <Successful> but when I try the sqlplus /nolog :
    sqlplus>connect / as sysdba
    the following error appear :
    libodm9.so cannot load object file : no such file or directory
    I can't see where I'm wrong ( the installation disks are ok - no error given when I'm uncompressing them to Disk1, Disk2, Disk3).
    Any help will be much appreciated !
    Thanks a lot !
    Best regards

  • JRE not found, while installing Oracle 9i on Fedora Core 5

    I am installing Oracle 9i on Fedora Core 5 from the following site.
    http://ivan.kartik.sk/oracle/install_ora9_fedora.html
    The site asks me to Download the Java Runtime Enviroment (j2re-1_3_1_15-linux-i586.bin) from the Sun website.
    extract the file and put it in /opt directory. And edit Disk1/install/linux/oraparam.ini and modify JRE_LOCATION variable to /opt/jre1.3.xx
    I have downloaded JRE version jre1.3.1_19 as this is the version available from the sun site, and put it in the /opt directory.
    [oracle@localhost Disk1]$ cd /opt
    [oracle@localhost opt]$ ls -l
    total 24
    drwxr-xr-x 6 root root 4096 Aug 19 2006 jre1.3.1_19
    My oraparam.ini settings are:
    [oracle@localhost ~]$ cat Disk1/install/linux/oraparam.ini
    [Oracle]
    JRE_LOCATION=/opt/jre1.3.1_19
    However, after doing these changes when I use /home/oracle/Disk1/runInstaller, i get the following error:
    [oracle@localhost Disk1]$ pwd
    /home/oracle/Disk1
    [oracle@localhost Disk1]$ ./runInstaller
    [oracle@localhost Disk1]$ The Java RunTime Environment was not found at /tmp/OraInstall2008-04-29_07-09-15AM/jre/bin/java. Hence, the Oracle Universal Installer cannot be run.
    Please visit http://www.javasoft.com and install JRE version 1.3.1 or higher and try again.
    : No such file or directory

    Ivan Kartik:
    I have installed Oracle 9i on Fedora 5.
    I am able to login using sqlplus 'sys/sys as sysdba'
    and start the database using startup
    However, there were problems starting Configuration Assistant services and HTTP Server.
    Here are the details:
    Launched configuration tool Agent Configuration Assistant
    Command which is being spawned is /opt/oracle/920/JRE/bin/jre -classpath /opt/oracle/920/JRE/lib/rt.jar:/opt/oracle/920/jlib/srvm.jar:/opt/oracle/920/network/agent/agentca.jar oracle.agent.AgentCA /orahome /opt/oracle/920 /nodeinfo NO_VALUE
    Configuration tool Agent Configuration Assistant failed
    Parameter "orahome" = /opt/oracle/920
    Parameter "nodeinfo" = NO_VALUE
    Agent Service Failed
    Result code for launching of configuration tool is 1
    Launched configuration tool Starting HTTP Server
    Command which is being spawned is /opt/oracle/920/Apache/Apache/bin/apachectl startssl
    Invalid Exit Code. The following result code will be used for configuration tool: 1
    Configuration tool Starting HTTP Server failed
    /opt/oracle/920/Apache/Apache/bin/httpd: error while loading shared libraries: libdb.so.2: cannot open shared object file: No such file or directory
    /opt/oracle/920/Apache/Apache/bin/apachectl startssl: httpd could not be started
    Result code for launching of configuration tool is 1
    Launched configuration tool Agent Configuration Assistant
    Command which is being spawned is /opt/oracle/920/JRE/bin/jre -classpath /opt/oracle/920/JRE/lib/rt.jar:/opt/oracle/920/jlib/srvm.jar:/opt/oracle/920/network/agent/agentca.jar oracle.agent.AgentCA /orahome /opt/oracle/920 /nodeinfo NO_VALUE
    Configuration tool Agent Configuration Assistant failed
    Parameter "orahome" = /opt/oracle/920
    Parameter "nodeinfo" = NO_VALUE
    Agent Service Failed

  • TNS Listener: Entry Point Not Found

    First I installed 8.1.6 Personal edition
    on my laptop (NT4 SP5):
    Folder: d:\orant.
    Oracle Home: DEFAULT_HOME
    That went fine. I could connect to the database with SQLPLUS, DBA etc.
    Then I tried to install Portal using:
    Folder: d:\9iAS
    Oracle Home: iSuites
    Spent three days trying to get Portal to install ok. Have finally got through the installation of 9iAS (HTTP Server Only), which the Universal Installer claims to be successfull.
    Started the Apache Server and tried to connect to the portal. I get the following error message:
    Proxy log On failed.
    Please verify that you have specified correct connectivity information i.e.username, password & connect-string in the Database Access Descriptor
    Error-Code:12154
    Error TimeStamp:Tue, 23 Jan 2001 23:20:00 GMT
    Database Log In Failed
    TNS could not resolve service name
    Verify that the TNS name in the connectstring entry of the DAD for this URL is valid.
    I can access the admin page:
    http://<machine>:80/pls/admin_/
    To debug this I tried to connect to the database with SQLPLUS and I got this error message:
    I:\>sqlplus
    SQL*Plus: Release 8.1.7.0.0 - Production on Tue Jan 23 16:08:58 2001
    (c) Copyright 2000 Oracle Corporation. All rights reserved.
    Enter user-name: system
    Enter password:
    ERROR:
    ORA-12560: TNS:protocol adapter error
    Enter user-name:
    Checked my Services and found that the TNS listener was not started. When I try to start the OracleDEFAULT_HOMETNSListener in my Services I get the following error message:
    TNSLSNR.exe - Entry Point Not Found
    The procedure entry point snlpcgtsrvbynm could not be located in the dynamic link library oranl8.dll.
    I have tried swicthing my primary Oracle Home using the Home Selector. Did not help.
    Shouldn't the TNS listener be started, or?
    Any ideas what to check?

    I have found the solution of my problem from Oracle9i Portal's Configuration Guide , the troubleshooting part. The document can be found in the Oralce9i Documentation web site.
    The problem is that I set the incorrect information in my tnsnames.ora file when installing Oracle9i Portal.
    The solution is set the host name, port number and SID in the tnsnames.ora file. This file is located at
    \Oracle_Home\network\admin\
    Here is the example of the content in that file:
    PORTALDB_MyHost =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = MyHost)(PORT = 1521))
    (CONNECT_DATA = (SID = PortalDB)(SERVER = DEDICATED))
    INST1_HTTP =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = MyHost)(PORT = 1521))
    (CONNECT_DATA = (SERVER = SHARED)(SERVICE_NAME = PortalDB)(PRESENTATION = http://admin))
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (CONNECT_DATA = (SID = PLSExtProc)(PRESENTATION = RO))
    ---------------------------------------------

  • Not found - The requested URL /apex/wwv_flow.show was not found on this ser

    I have a very simple anonymous block (see below) which I am using to test an area of the database I am developing using OE and APEX. Sometimes the block works and other times it fails with the following error message------
    Not found - The requested URL /apex/wwv_flow.show was not found on this server
    Before the error message is displayed a pop-up window appears with a submit button ( the heading on the window contains --- Enter Bind Variables - windows internet explorer), which I do not understand.
    Is the problem I am experiencing due to some memory limitation ? or do I have a corrupt oracle system (everything else appears OK though).
    Any help or advice would be much appreciated.
    Best Regards
    Lawrence Cattell
    Here is the anonymous block (please no comments on the code). If I extend the number of DBMS_OUTPUT.PUT_LINES beyond the current number of 3 it fails everytime, sometimes it works with 3, sometimes it fails. Is it related to the number of variables I am binding to the WSI_QUOTE Type ?
    DECLARE
    v_dir VARCHAR2(20):='WSI_REPORTS';
    V_COUNT NUMBER(2,0);
    V_QTE_REF_NBR WSI_QUOTES.QTE_REF_NBR%TYPE;
    V_CTR_ID WSI_QUOTES.CTR_ID%TYPE;
    v_QTE_REC_NBR WSI_QUOTES.QTE_REC_NBR%TYPE;
    v_QTE_DTE WSI_QUOTES.QTE_DTE%TYPE;
    V_PEB_NBR WSI_QUOTES.PEB_NBR%TYPE;
    V_QTE_COM WSI_QUOTES.QTE_COM%TYPE;
    V_SAI_NBR_01 WSI_QUOTES.SAI_NBR_01%TYPE;
    V_QTY_01 WSI_QUOTES.QTY_01%TYPE;
    V_SAI_NBR_02 WSI_QUOTES.SAI_NBR_02%TYPE;
    V_QTY_02 WSI_QUOTES.QTY_02%TYPE;
    V_SAI_NBR_03 WSI_QUOTES.SAI_NBR_03%TYPE;
    V_QTY_03 WSI_QUOTES.QTY_03%TYPE;
    V_SAI_NBR_04 WSI_QUOTES.SAI_NBR_04%TYPE;
    V_QTY_04 WSI_QUOTES.QTY_04%TYPE;
    V_SAI_NBR_05 WSI_QUOTES.SAI_NBR_05%TYPE;
    V_QTY_05 WSI_QUOTES.QTY_05%TYPE;
    V_SAI_NBR_06 WSI_QUOTES.SAI_NBR_06%TYPE;
    V_QTY_06 WSI_QUOTES.QTY_06%TYPE;
    V_SAI_NBR_07 WSI_QUOTES.SAI_NBR_07%TYPE;
    V_QTY_07 WSI_QUOTES.QTY_07%TYPE;
    V_SAI_NBR_08 WSI_QUOTES.SAI_NBR_08%TYPE;
    V_QTY_08 WSI_QUOTES.QTY_08%TYPE;
    V_SAI_NBR_09 WSI_QUOTES.SAI_NBR_09%TYPE;
    V_QTY_09 WSI_QUOTES.QTY_09%TYPE;
    V_SAI_NBR_10 WSI_QUOTES.SAI_NBR_10%TYPE;
    V_QTY_10 WSI_QUOTES.QTY_10%TYPE;
    V_CTR_NME WSI_CUSTOMERS.CTR_NME%TYPE;
    CURSOR GET_QUOTE_INFO_CUR IS
    SELECT *FROM WSI_QUOTES WHERE QTE_REC_NBR = 2;
    BEGIN
    DELETE WSI_QUOTE_TEMP_HOLD;
    OPEN GET_QUOTE_INFO_CUR;
    LOOP
    FETCH GET_QUOTE_INFO_CUR INTO V_QTE_REC_NBR,V_QTE_REF_NBR,V_CTR_ID,v_QTE_DTE,V_PEB_NBR, V_SAI_NBR_01,V_QTY_01,V_SAI_NBR_02,V_QTY_02,V_SAI_NBR_03, V_QTY_03,
    V_SAI_NBR_04, V_QTY_04, V_SAI_NBR_05, V_QTY_05,V_SAI_NBR_06, V_QTY_06,V_SAI_NBR_07,V_QTY_07,V_SAI_NBR_08, V_QTY_08, V_SAI_NBR_09, V_QTY_09,
    V_SAI_NBR_10,V_QTY_10,V_QTE_COM;
    EXIT WHEN GET_QUOTE_INFO_CUR%NOTFOUND;
    SELECT CTR_NME INTO v_CTR_NME FROM WSI_CUSTOMERS WHERE CTR_ID = V_CTR_ID;
    END LOOP;
    CLOSE GET_QUOTE_INFO_CUR;
    V_COUNT :=1;
    DBMS_OUTPUT.PUT_LINE(v_QTE_REF_NBR|| '***' ||v_CTR_ID|| '***' ||V_CTR_NME|| '***' ||V_peb_NBR|| '***' ||V_SAI_NBR_01|| '***' ||V_QTY_01);
    DBMS_OUTPUT.PUT_LINE(v_QTE_REF_NBR|| '***' ||v_CTR_ID|| '***' ||V_CTR_NME|| '***' ||V_peb_NBR|| '***' ||V_SAI_NBR_02|| '***' ||V_QTY_02);
    DBMS_OUTPUT.PUT_LINE(v_QTE_REF_NBR|| '***' ||v_CTR_ID|| '***' ||V_CTR_NME|| '***' ||V_peb_NBR|| '***' ||V_SAI_NBR_03|| '***' ||V_QTY_03);
    END;

    The interpreter could be choking on the "*from" (no space before "from") might not be parsing the SQL as intended .
    The "Enter Bind Variables" dialog box is coming from something undefined, I'd suggest putting that block into an .sql file and run it via sqlplus.
    To demonstrate how a bind variable is handled try setting up a file with:
    select * from sometablename where somecolname = &somekeyval;
    -- or '&somekeyval' if its varchar2When you connect with sqlplus and run that file it will prompt for the value to use for "somekeyval".
    Only other thing is to ensure the "select * ..." has the same column names and in the same order as expected by the fetch, perhaps the table layout has changed and you could be getting an added column or maybe missing one at the end of the list.
    If you try running that block in a sqlplus session enable serveroutput to see the dbms_out result (set serveroutput on size 50000)

Maybe you are looking for

  • Can I change default text size in CS5

    Every new document seems to open with a default text size of 12 pt. (or 0.167 inches). I am a sign maker and my typical artboard size is often 120" x 120" or larger. Is there a way to change the default text size so that new documents open with a tex

  • How do I reducing the amount of joining when using one-to-one mappings?

    Examine the following example; class Person Address address; String firstName, lastName; class Address Long addressId; String state, city, zip; Assume that both of these classes are mapped to tables in a database. Attributes such as Staff's name and

  • Error starting desing console

    Hi, I am getting following error when trying to start design console : Exception in thread "main" java.security.AccessControlException: access denied ( java.util.PropertyPermission * read,write) at java.security.AccessControlContext.checkPermission(A

  • Excel macro to launch Bex analyzer

    Hi, first of all congratulation to the forum. really interesting and useful. I am trying to write a macro that launches Bex analyzer from an excel template.  I have been trying with: Dim RetVal RetVal = Shell("C:\Program Files\....\BW\sapbex.xla", 1)

  • Can I use my iPhone as a hotspot?

    How can the iPhone 5 be used as a hotspot?