Error in SQLPLUS

Hi,
I am working in oracle9i and solaris 5.8 ..
In OS level
$ if i give sqlplus means it shows error as
sh sqlplus : not found
then i export all the Environmental varialbles
again the same errror...
please tell me how to resolve this error
Regards...

Hi sorry ,
There is no such character
ls $ORACLE_HOME/bin | grep sqlplus
/export/home1/ngptmis/bin: No such file or directory
bash-2.03$ echo $PATH | grep $ORACLE_HOME/bin
bash-2.03$
bash-2.03$ pwd
/apps/informatica/data/pc/SrcFiles/Teams
bash-2.03$
it shows like this
How to resolve this error

Similar Messages

  • Supress errors in SQLPlus

    Hi,
    Does anyone know of a way to suppress a specific ORA error in SQLPlus?
    What I want to do is to Create a View with Force option and supress the informational error:
    ORA-24344: success with compilation error.
    Regards
    HÃ¥kan

    SYS cannot connect by itself, it can connect only with the SYSDBA or SYSOPER roles. Those roles are roles enabled by Oracle even before creation time, and those are used to perform specific adminstrative tasks such as install, recover, startup and shutdown, among others.
    If you want to perform other administrative tasks when the database instance is already open you may use any other user with DBA privileges, such as SYSTEM.
    In order to enable access as SYSDBA/SYSOPER your os user must be authenticated, either from the os (privilged dba group) or by means of the sysdba password , stored at the database password file.
    ~ Madrid.

  • Shell Script: Timeout and return error if Sqlplus hangs

    Shell Script: Timeout and return error if Sqlplus hangs
    Dear all,
    This morning, our production database hung with lots of ORA-600 and 7445. The issue has been escalated to Oracle Tech support but my monitoring script which tries to make a connection every 5 mins to the database to see if its up, did not alert me. The reason is that, it connected to the database and hung, never came out to report an error and so I never got alerted until a user called me.
    Can any one tell me how I can exit from the sqlplus block if I dont get a response in x seconds? This sqlplus block is being called with in a shell script.
    Any help is highly apprciated.

    I don't know of anything built into any shell scripting language that would do this, no. I'm not a Perl programmer, but I have a vague recollection that Perl may have something useful here.
    From the "separate thread" part of my comment, though, you could certainly spawn a separate thread (thread 2), have thread 2 wait a period of time, then look for a message from thread 1 and throw an error if the message hadn't been sent. I don't know that I'd be for writing multi-threaded shell scripts, though. The heartbeat also gives you a layer of redundancy so that something is monitoring the monitor in case that process stops working.
    Justin

  • How to write errors in sqlplus script into logging table?

    Hi,
    I am having sqlplus script which do some DDL and DML statements.
    Now is there any way to logg errors which pop up when the script is esxecuting?
    For example something like:
    WHENEVER SQLERROR EXIT SQL.SQLCODE
    BEGIN
    /* SOME DDL OR DDL */
    CREATE TABLE A
    COL_1 NUMBER,
    COL_2 NUMBER
    /* Wrong sql statement */
    INSERT INTO TABLE_DOWS_NOT_EXISTS(....);
    EXCEPTION WHEN OTHERS THEN
    INSERT INTO logging_tbl (error_description) VALUES(SQL.SQLCODE);
    END;
    I know, this one will tell sqlplus to exit with sql error code without trapping into exception section, but is there any way to handle it?
    Thanks

    An approach would be to enable spooling in the beginning of your script. Wrap dbms_output into an error_log procedure. The error_log should simple write an errorcode + message to the prompt.<br>Afterwards - a search batchjob or manual search for errorcode occurances in the script spool file(s) should reveal the outcome.

  • Strange error in sqlplus

    Greeting gurus
    it is some setup issue with sqlplus ?
    I can run this sql using TOAD but when this sql is issued using sqlplus in the unix shell it gives the error below
    We do . oraenv and gives the instance name but it still gives us this error
    any help will really appreciated.
    SQL> l
      1* select count(*) from ahha_std.all_tables_tbl
    SQL> /
    select count(*) from ahha_std.all_tables_tbl
    ERROR at line 1:
    ORA-01115: IO error reading block from file  (block # )
    ORA-01110: data file 2: '+DATA1/ahhadb/datafile/sysaux.425.810935331'
    ORA-15081: failed to submit an I/O operation to a disk

    Why post this to the SQL and PL/SQL language forum? I see TOAD mentioned, SQL*Plus mentioned, and an Oracle server error posted.
    Where is the SQL or PL/SQL language problem?

  • Error starting SQLPLUS after updating Fedora Core 5

    Hi,
    I ran "yum update" on fedora core 5 and now sqlplus does not start anymore. I get this error:
    sqlplus: error while loading shared libraries: /opt/oracle/xe/app/oracle/product/10.2.0/server/bin/../lib/libnnz10.so: cannot restore segment prot after reloc: Permission denied
    I understand it has something to do with the SELinux policy but how can I configure my system so Oracle still works AND the security policy still works ?
    Thanks !!!
    Coen

    Hello,
    This solution ( tail -f /var/log/audit/audit.log |tee oracle.log; audit2allow -M oracle < oracle.log; semodule -i oracle.pp)
    worked for me. Can somebody explain what it did (I don't understand from the man pages)? ALso, how did this come to be. This happened to me right after a fresh install, and the machine got bounced.
    All answers are apprecaited.
    Thanks,
    Edited by: user8674025 on Nov 27, 2009 9:59 AM

  • How to get ORA Errors on SQLPlus in english

    Hi,
    I am running 10gR2 on american Windows.
    Even I have set NLS_LANG=AMERICAN_AMERICA.WE8MSWIN1252
    still getting oracle errros on SQLPlus in german :-(
    What do I else need to change?
    Thanks

    Hi,
    Are you sure that the NLS_LANG variable was correctly set up ?
    C:\>sqlplus system/manager
    SQL*Plus: Release 10.2.0.1.0 - Production on Dom Jun 10 21:43:40 2007
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Conectado a:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL> select * from mytable;
    select * from mytable
    ERRO na linha 1:
    ORA-00942: a tabela ou view não existe
    SQL> select * from nls_session_parameters;
    PARAMETER                      VALUE
    NLS_LANGUAGE                   BRAZILIAN PORTUGUESE
    NLS_TERRITORY                  BRAZIL
    NLS_CURRENCY                   R$
    NLS_ISO_CURRENCY               BRAZIL
    NLS_NUMERIC_CHARACTERS         ,.
    NLS_CALENDAR                   GREGORIAN
    NLS_DATE_FORMAT                DD/MM/RR
    NLS_DATE_LANGUAGE              BRAZILIAN PORTUGUESE
    NLS_SORT                       WEST_EUROPEAN
    NLS_TIME_FORMAT                HH24:MI:SSXFF
    NLS_TIMESTAMP_FORMAT           DD/MM/RR HH24:MI:SSXFF
    NLS_TIME_TZ_FORMAT             HH24:MI:SSXFF TZR
    NLS_TIMESTAMP_TZ_FORMAT        DD/MM/RR HH24:MI:SSXFF TZR
    NLS_DUAL_CURRENCY              Cr$
    NLS_COMP                       BINARY
    NLS_LENGTH_SEMANTICS           BYTE
    NLS_NCHAR_CONV_EXCP            FALSE
    17 linhas selecionadas.
    SQL> exit
    Desconectado de Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    C:\>set NLS_LANG=AMERICAN_AMERICA.WE8MSWIN1252
    C:\>sqlplus system/manager
    SQL*Plus: Release 10.2.0.1.0 - Production on Sun Jun 10 21:44:12 2007
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL> select * from mytable;
    select * from mytable
    ERROR at line 1:
    ORA-00942: table or view does not exist
    SQL> select * from nls_session_parameters;
    PARAMETER                      VALUE
    NLS_LANGUAGE                   AMERICAN
    NLS_TERRITORY                  AMERICA
    NLS_CURRENCY                   $
    NLS_ISO_CURRENCY               AMERICA
    NLS_NUMERIC_CHARACTERS         .,
    NLS_CALENDAR                   GREGORIAN
    NLS_DATE_FORMAT                DD-MON-RR
    NLS_DATE_LANGUAGE              AMERICAN
    NLS_SORT                       BINARY
    NLS_TIME_FORMAT                HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT           DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT             HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT        DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY              $
    NLS_COMP                       BINARY
    NLS_LENGTH_SEMANTICS           BYTE
    NLS_NCHAR_CONV_EXCP            FALSE
    17 rows selected.
    SQL> alter session set nls_language=german;
    Session wurde geõndert.
    SQL> select * from my table;
    select * from my table
    FEHLER in Zeile 1:
    ORA-00933: SQL-Befehl wurde nicht korrekt beendet
    SQL> select * from mytable;
    select * from mytable
    FEHLER in Zeile 1:
    ORA-00942: Tabelle oder View nicht vorhandenCheers

  • Giving error as sqlplus is not recognised command

    hi all
    I want to log in through the Cmd of windows.
    as
    C:\> sqlplus
    gives error
    'sqlplus' is not recognized as an internal or external command,
    operable program or batch file.

    Can you post here ORACLE_HOME?
    and
    C:\Users\Mahir>echo %PATH%
    C:\Program Files (x86)\Common Files\NetSarang;C:\Oracle\App\Mahir\product\11.2.
    0\oraclient\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windo
    s\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\QuickTime\QTSystem\and set your PATH enviriment like my %PATH%.
    C:\Oracle\App\Mahir\product\11.2.0\oraclient\bin; - my oracle client home + BIN path sqlplus is there
    Edited by: Mahir M. Quluzade on May 5, 2011 11:56 AM

  • Error using sqlplus when not oracle

    I've been able to duplicate this same problem on two machines
    running RedHat 6.0. Everything works great when I call the
    Oracle binaries as oracle. Any other user priduces the following
    errors.
    [jkinney@hal jkinney]$ echo $ORACLE_HOME
    /opt/oracle
    [jkinney@hal jkinney]$ echo $ORACLE_SID
    ORCL
    [jkinney@hal jkinney]$ echo $LD_LIBRARY_PATH
    /opt/oracle/lib
    [jkinney@hal jkinney]$ sqlplus
    SQL*Plus: Release 8.1.5.0.0 - Production on Thu Jul 22 23:07:01
    1999
    (c) Copyright 1999 Oracle Corporation. All rights reserved.
    Enter user-name: scott
    Enter password:
    oracleORCL: error in loading shared libraries: libskgxp8.so:
    cannot open shared object file: No such file or directory
    ERROR:
    ORA-12547: TNS:lost contact
    [jkinney@hal lib]$ ls -al /opt/oracle/lib/libskgxp8.so
    -rw-r--r-- 1 oracle dba 4847 Jun 14 16:20
    /opt/oracle/lib/libskgxp8.so
    jkinney : dba users
    [jkinney@hal lib]$
    Any ideas?
    Thanks,
    Jamie
    null

    I've had the exact same thing happen. I expected that
    LD_LIBRARY_PATH would have taken care of this.
    Anyways, the following commands worked for me:
    (as root)
    # cd /usr/lib
    # ln -s /u01/app/oracle/product/8.1.5/lib/libskgxp8.so .
    # ln -s /u01/app/oracle/product/8.1.5/lib/libobk.so .
    # ln -s /u01/app/oracle/product/8.1.5/lib/libjox8.so .
    Replace the /u01/app/oracle/product/8.1.5 above with the
    ORACLE_HOME on your system.
    Jeff
    Jamie Kinney (guest) wrote:
    : I've been able to duplicate this same problem on two machines
    : running RedHat 6.0. Everything works great when I call the
    : Oracle binaries as oracle. Any other user priduces the
    following
    : errors.
    : [jkinney@hal jkinney]$ echo $ORACLE_HOME
    : /opt/oracle
    : [jkinney@hal jkinney]$ echo $ORACLE_SID
    : ORCL
    : [jkinney@hal jkinney]$ echo $LD_LIBRARY_PATH
    : /opt/oracle/lib
    : [jkinney@hal jkinney]$ sqlplus
    : SQL*Plus: Release 8.1.5.0.0 - Production on Thu Jul 22 23:07:01
    : 1999
    : (c) Copyright 1999 Oracle Corporation. All rights reserved.
    : Enter user-name: scott
    : Enter password:
    : oracleORCL: error in loading shared libraries: libskgxp8.so:
    : cannot open shared object file: No such file or directory
    : ERROR:
    : ORA-12547: TNS:lost contact
    : [jkinney@hal lib]$ ls -al /opt/oracle/lib/libskgxp8.so
    : -rw-r--r-- 1 oracle dba 4847 Jun 14 16:20
    : /opt/oracle/lib/libskgxp8.so
    : jkinney : dba users
    : [jkinney@hal lib]$
    : Any ideas?
    : Thanks,
    : Jamie
    null

  • Error launching sqlplus

    I just installed oracle9i client for linux and I run SUSE8.1 After the installation, I tried launching sqlplus from $ORACLE_HOME/bin and I get this message:
    error while loading shared libraries:linInstsh.so.9.0: cannot open shared object file: No such file or directory.
    I checked my $ORACLE_HOME/lib and I can't find that file too. Any help please ?

    Pls check if you have set ORACLE_SID, and ORACLE_HOME environment variables.
    hth

  • Export error from sqlplus 10.2.0.1.0

    I'm trying to export using 10g exp utility into a 9i database but i have problems.
    my command is:
    exp userid=system/password file=/backup/my_exp_db.dmp log=/backup/my_exp_db.log full=yThe error is:
    Export: Release 10.2.0.1.0 - Production on Mar Abr 20 10:52:52 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    EXP-00056: ORACLE error 6550 encountered
    ORA-06550: line 1, column 41:
    PLS-00302: component 'SET_NO_OUTLINES' must be declared
    ORA-06550: line 1, column 15:
    PL/SQL: Statement ignored
    EXP-00000: Export terminated unsuccessfullyhow can i resolve this issue?

    guif wrote:
    I'm trying to export using 10g exp utility into a 9i database but i have problems.http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/exp_imp.htm#i1013164
    The version of the Export utility must be equal to the earliest version of the source or target database.
    For example, to create an export file for an import into a later release database, use a version of the Export utility that is equal to the source database. Conversely, to create an export file for an import into an earlier release database, use a version of the Export utility that is equal to the version of the target database.>
    how can i resolve this issue?Use the Exp version that came with the 9i database version.

  • SP2-0310 error in sqlplus

    Hi,
    I had a problem opening one of the folders in my C drive from SQL Plus. I was able to connect to SQL Plus but was not able to let connect to that folder and execute the sql script in that folder. I refered metalink documents and googled it but i couldn't troubleshoot it and am not sure what needs to be done yet to fix it.
    Below is my error..
    SQL> @C:\sqlfiles\xxx.sql.txt
    SP2-0310: unable to open file "C:\sqlfiles\xxx.sql.txt"
    Hope some one can help me fixing it. I am not looking for reference guides or some notes or links. I am looking for some ways to figure it out.

    I had a problem opening one of the folders in my C drive from SQL Plus. I was able to connect to SQL Plus but was not able to let connect to that folder and execute the sql script in that folder. I refered metalink documents and googled it but i couldn't troubleshoot it and am not sure what needs to be done yet to fix it.SP2-0310: Unable to Open File from SQL*Plus [ID 124852.1]
    SP2-0310: Unable To Open File "" Running catcpu.sql, catpatch.sql or catupgrd.sql scripts against a database [ID 434438.1]
    Below is my error..
    SQL> @C:\sqlfiles\xxx.sql.txt
    SP2-0310: unable to open file "C:\sqlfiles\xxx.sql.txt"
    Hope some one can help me fixing it. I am not looking for reference guides or some notes or links. I am looking for some ways to figure it out.What if you rename the file to xxx.sql, do you get the same error then?
    Thanks,
    Hussein

  • In sqlplus after a bad compile where does the show errors data exist?

    I am creating an automated deploy of code for project releases. In sqlplus I use the whenever command for sql errors but it doesn't catch bad compiles. When the process runs it runs as a dba user having the stored procs fully qualified causing the compile error not show in the user_errors but in all_errors. While experimenting I saw that another user could get a new record put into all_errors but my session when in sqlplus I still see the error from my compile from SHOW ERRORS. My question is where is the data from the show errors in my session stored and is it available for me to query so I can check for compile errors within sqlplus?
    Hope that was clear .
    Thanks,
    Ken

    In sqlplus ...You are in the wrong forum. This is for Oracle Forms.

  • Error when login to sqlplus

    Hi, I was able to login to sqlplus. But when I ran a sql script which had some errors, the sqlplus exited (crashed??). When I tried to relogin, I got the following errors:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Please tell me how to solve this problem. Thanks.

    the error means you haven't started up your db yet before you run your SQL*Plus script. please log on as sysdba and startup and try again.

  • Sqlplus error in UNIX

    Hello,
    I am having a weird error invoking sqlplus in UNIX. It works fine when I invoke it with the account that I installed Oracle client. However, when I login using a different account, it gives me with the following error:
    Error 6 initializing SQL*Plus
    Message file sp1<lang>.msb not found
    SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
    when I do echo $ORACLE_HOME, it displays the oracle home.
    I tried export ORACLE_HOME=/opt/bin/ssaps/oracle/client
    When I run sqlplus, it still gives me the same error. what am I missing here?
    thanks

    BSK wrote:
    Hello,
    I am having a weird error invoking sqlplus in UNIX. It works fine when I invoke it with the account that I installed Oracle client. However, when I login using a different account, it gives me with the following error:
    Error 6 initializing SQL*Plus
    <font face="tahoma,verdana,sans-serif" size="1" color="#000">Message</font> file sp1<LANG>.msb not found
    SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
    when I do echo $ORACLE_HOME, it displays the oracle home.
    I tried export ORACLE_HOME=/opt/bin/ssaps/oracle/client
    When I run sqlplus, it still gives me the same error. what am I missing here?
    thanksIt will be better for helping you, You can give a more complete description of your needs.

Maybe you are looking for

  • Oracle to SQL server connection - not working

    Hi Friends, OS version : R Linux EL5 Oracle version : 10.2.0.4 i had followed http://www.databasejournal.com/features/oracle/article.php/10893_3442661_2/Making-a-Connection-from-Oracle-to-SQL-Server.htm document and modified tnsnames.ora, listener.or

  • [Prime Access Registrar 6.0] Minimum System Requirements

      Dear, CSC: In the installation requirements it says the following: Table 1     Minimum Hardware and Software Requirements for Cisco Prime AR Server Component Operating System Solaris Linux OS version Solaris 10 RHEL 5.3/5.4/5.5/6.0/6.1/6.2 Model SP

  • CL_RSR_QUERY_VARIABLES

    Hi SDN Community, When queries get executed, The function module runs rrs_var_values_exit_after and also important is the CL_RSR_QUERY_VARIABLES Basically, I require a way of getting a certain code to run after any query is run. This will then be use

  • WAD and Reportdesigner Errors

    Hi, Please anyone help me to solve this issue when am trying execute my WAD and Report designer am getting below error message. Message Class: RSBOLAP MNO : 017 Description:  Java Communication error : An Unknown Error Occured During Portal Communica

  • Problem in business service

    hai, i have created a simple idoc to file application. i have got a problem in technical routing and the error category is "outbinding", error ID id "CO_TXT_OUTBINDING_NOT_FOUND" the sender service is not one which i 've created.  it is displaying th