SQLPLUS returns TNS12560

Hi,
I am facing a problem in connecting to an Oracle server. We have two servers, production and test. From the same client I am able connect to test server and not to prod. I am able tnsping both servers but the prod server gives a time of 1800ms as against 40ms for test. The tracert command also shows about 10 hops. Is there anything I can do? say in tnsnames, listener or sqlnet or elsewhere. Please help.
Thanks
Chandra

Mmm...I am sure...let me ask you one thing.?
where is you test machine, and production, are they on the same network??
where do they reside???
if all this typical where both your server are on the same network..then I would look at the networking side...
let me know...
good luck
shah

Similar Messages

  • No TNS after Migration. SQLPLUS returns 12545, DAD-Connect shows ora-12505

    Hello World,
    actually we're having some trouble after oracle migration.
    Our HTMLDB HOME is located on Machine one named linux.mydomain.de ip x.x.16.83. ORACLE-VERSION is 9.2.0.7.
    Our STANDALONE OHS-HOME is located on Machine two named linux2.mydomain.de. This one is comletely renewed.
    After system change from Standalone OHS 9.x to 10.2.0.1 on machine two we do not get the connection to the ORACLE_HOME.
    Trying to connect via SQLPLUS returns ORA-12545;
    Connection attempt via DAD returns ora-12505, even the ohs-page is acceptet.
    Before upgrading nearly everything went ok.
    Badly the older version of OHS does not accept the new OS.
    I'm not yet very well trained in 10g-Systems.
    I guess, the main problem is in network area, but im not shure...
    My primary question:
    How can I establish an oracle-connection from machine two towards machine one?
    hoping for some guidance
    regards
    Franz Langner

    Hello,
    thank you for replying me.
    1) Of course I had a close look into the local help before posting this into forum
    - ORA-12505 = NLS_LANG ; settings are identical ;
    but OHS-Standalone OS LANG shows AMERICA_AMERICAN.WEISO8815P15 instead of AMERICA_AMERICAN.WEISO8815P1 which is shown by the ORACLE NLS_PARAM.
    - ORA-12545 = there is a problem with TNS.
    This ones is from the beginning of the new system.
    I copied TNSNAMES.ORA from the backup of the former installation ( Elder OS, elder version)
    2) - hosts are known by each other
    3) Unfortunately OHS Standalone 10.2.0.1 from Companion CD doesnt use tnsping. The tool isn't included neither from Install CD Set nor from the downloaded version.
    So tnsping from OHS-Host to DB-Host does not work.
    I'm not shure that there is tns on the OHS Standalone Host, there is no database instance, $ORACLE_HOME/network doesn't contain necessary files..
    4)Posting tnsnames.ora and sqlnet.ora will do a little efford, caused by intranet location of both Hosts.
    Here we are:
    ENVIRONMENT of the Datatbase Host
    HOSTNAME=linux
    HOSTTYPE=i386
    ORACLE_BASE=/opt/oracle
    ORACLE_HOME=/opt/oracle/product/9ir2
    ORACLE_SID=oemrep
    ORA_NLS33=/opt/oracle/product/9ir2/ocommon/nls/admin/data
    OSTYPE=linux
    PAGER=less
    PATH=/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome2/bin:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/java/jre/bin:/opt/gnome/bin:/opt/oracle/product/9ir2/bin
    TNS_ADMIN=/opt/oracle/product/9ir2/network/admin
    ENVIRONMENT of the OHS Host
    ## AGENT_HOME=/opt/oracle/product/agent
    CLASSPATH=/opt/oracle/oracle/product/10.2.0/db/JRE:/opt/oracle/oracle/product/10.2.0/db/jlib:/opt/oracle/oracle/product/10.2.0/db/rdbms/jlib:/opt/oracle/oracle/product/10.2.0/db/network/jlib
    HOSTNAME=linux2
    HOSTTYPE=i386
    LD_LIBRARY_PATH=/opt/oracle/oracle/product/10.2.0/db/lib:/opt/oracle/oracle/product/10.2.0/dbnetwork/lib
    NLS_LANG=AMERICAN_AMERICA.WEISO8859P15
    ORACLE_BASE=/opt/oracle
    ORACLE_HOME=/opt/oracle/oracle/product/10.2.0/db
    ORACLE_SID=LKADB
    ORA_NLS10=/opt/oracle/oracle/product/10.2.0/db/nls/data
    ORA_NLS_33=/opt/oracle/oracle/product/10.2.0/db/nls/data
    TNS_ADMIN=/opt/oracle/oracle/product/10.2.0/db/network/admin
    /*** TNSNAMES.ORA of the DATABASE HOST
    # TNSNAMES.ORA Network Configuration File: /opt/oracle/product/9ir2/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    LKADB.LINUX.mydomain.DE =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = linux.mydomain.de)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = lkadb.lka.polizei.nrw.de)
    # this one is in use for jobs that need exclusive privs
    LKA_DED.LINUX.mydomain.DE =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = linux)(PORT = 1521))
    (CONNECT_DATA =
    (SID = lkadb)
    (SERVER = DEDICATED)
    /*** TNSNAMES.ORA of the OHS HOST
    HTMLDB =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = linux.mydomain.de)(PORT = 1521)
    (CONNECT_DATA =
    (SERVICE_NAME = lkadb)
    /**** SQLNET.ORA of the DATABASE HOST
    # SQLNET.ORA Network Configuration File: /opt/oracle/product/9ir2/network/admin/sqlnet.ora
    # Generated by Oracle configuration tools.
    NAMES.DEFAULT_DOMAIN = linux.duesseldorf-lka.polizei.nrw.de
    NAMES.MESSAGE_POOL_START_SIZE = 15
    NAMES.DIRECTORY_PATH= (ONAMES, TNSNAMES, HOSTNAME)
    NAMES.MAX_OPEN_CONNECTIONS = 5
    /*** SQLNET.ORA of the OHS HOST ( copied from former version )
    # SQLNET.ORA Network Configuration File: /opt/oracle/product/9ir2/network/admin/sqlnet.ora
    # Generated by Oracle configuration tools.
    NAMES.DEFAULT_DOMAIN = lka.polizei.nrw.de
    NAMES.DIRECTORY_PATH= (TNSNAMES, HOSTNAME)
    regards
    Franz Langner
    Message was edited by:
    [email protected]

  • Sqlplus returns 0/SUCCESS on CONNECT failure

    Consider ..
    $ sqlplus /nolog <<EOF
    connect sys as foobar
    EOF$ echo $?
    0
    sqlplus returns success on a connect failure. I have tried to coax it to return non-0 exit code using
    sqlplus /nolog<<EOF
    whenever sqlerror exit 1
    whenever oserror exit 1
    connect sys as foobar
    EOFBut this doesn't work, looks like sqlplus disconnects after the connect failure and both the 'whenever' clauses don't fire.
    How can I get sqlplus to report a failure exit code. I understand I can parse the response from sqlplus, but that is not desirable at the moment.
    -srp

    srp
    I wonder if this is port specific? I only have access to Windows at the moment so can't tell.
    From the docs, it looks like expected behaviour; WHENEVER SQLERROR only fires if a SQL or PL/SQL fails - and CONNECT doesn't really count as SQL.
    A workaround would be to explicitly EXIT with a success code != 0 when you safely get to the end of your script. Then you could assume that 0 means a failed login.
    Alternatively, you can create a marker file when you successfully login; if the file isn't there, then you didn't log in:
    rm -rf /tmp/mydiagfile
    sqlplus /nolog <<EOF
        connect sys as foobar
        host touch /tmp/mydiagfile
        SQL statements
        EXIT
    EOF
    result=$?
    if [ result -eq 0 ]
    then
       # did we get in
       if [ ! -e /tmp/mydiagfile]
       then
          # login must have failed
          echo ERROR - ... etc
       fi
    fiAny help? At least it's simpler than parsing the log file...
    HTH
    Regards Nigel

  • SQLPlus Return Values

    Hi there. I am writing a DOS batch script that calls SQLPlus and I want to be able to have SQLPlus return a value back to the DOS batch script. My sql calls a User-defined function that returns different values based on various inputs. I have seen examples of how to return error codes (not values) in Unix, but NOT values in DOS. Any help would be appreciated.
    Mike

    Try a script like mytest.bat:
      @echo off
      sqlplus -s /nolog @mytest.sql
      echo Error is %ERRORLEVEL%Where mytest.sql is:
      prompt In mytest.sql
      exit 1

  • SQL query works in the SQLPlus, but fires parse error after being cut and pasted into

    One of our client has a SQL query like this:
    SQL> SELECT LNAME,
    2 QUOTA/12,
    3 (SELECT SUM(CAMT) FROM CONSULTING WHERE CONSULTANT = P.EMPLOYEE
    4 AND ACTIVITYCODE = 'C'AND
    5 CDATE BETWEEN '01-JAN-2001' AND '31-JAN-2001') AS SUM,
    6 (SELECT SUM(CAMT) FROM CONSULTING WHERE CONSULTANT = P.EMPLOYEE
    7 AND ACTIVITYCODE = 'C'AND
    8 CDATE BETWEEN '01-JAN-2001' AND '31-JAN-2001') -
    QUOTA/12 AS PL
    9 FROM PERSONNEL P
    10 ORDER BY LNAME;
    Running the above query in the SQLPlus returns appropriate resultsets to the
    user. After the same SQL being cut and pasted into a portal report
    component, running the report component fires the following error:
    Failed to parse query
    Error:ORA-00911: invalid character (WWV-11230)
    Failed to parse as XXX - SELECT LNAME, QUOTA/12, (SELECT SUM(CAMT) FROM
    CONSULTING WHERE CONSULTANT = P.EMPLOYEE AND ACTIVITYCODE = 'C'AND CDATE
    BETWEEN '01-JAN-2001' AND '31-JAN-2001') AS SUM, (SELECT SUM(CAMT) FROM
    CONSULTING WHERE CONSULTANT = P.EMPLOYEE AND ACTIVITYCODE = 'C'AND CDATE
    BETWEEN '01-JAN-2001' AND '31-JAN-2001') - QUOTA/12 AS PL FROM PERSONNEL P
    ORDER BY LNAME; (WWV-08300)
    Cursor is not open
    Is this because of the multi-table queries, or something else? Is there any
    way around this? Any information regarding this will be highly appreciated.
    Thanks.
    null

    Sunny,
    From the error message that you posted it seems that you are putting a semicolon ";" at the end of your query. I checked the query that you have posted. It is working fine for me. (I am using 3.0.8) but I feel it will work in your version also. I tried the query without a ";" at the end --It worked.
    I tried with ";" at the end -- It gave the error that you have posted. So remove the ";" at the end and it should work. If you are still getting the same error then pls write down the version you are using. I will check in that version.
    Thanx,
    Chetan.

  • 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

  • Use function which returns clob in proceudre

    Hello,
    I need some help with a function call i am using.
    I have a SYSMAN function which i like to call in procedure.
    The output from the function is a CLOB.
    Executing the statement in SqlPlus returns 2 lines of data, but written into a procedure returns in an error.
    The procedure looks like this:
         CREATE OR REPLACE PROCEDURE large_val as
         cSql_text          CLOB;
         sSql_stmt           varchar2(200);
         job_id          varchar2(80);
         exec_id          varchar2(80);
         parm          varchar2(50);
         begin
         job_id := '82A11DD897876D29E0400A0A8A1051A7';
         exec_id := '0000000000000000';
         parm := 'large_sql_script';
         sSql_stmt := 'SELECT SYSMAN.MGMT_JOBS.get_large_param(' || ''''||job_id||'''' ||',' ||''''||exec_id||''''||','||''''||parm|| '''' || ') FROM DUAL;';
         dbms_output.put_line(sSql_stmt);
         execute immediate sSql_stmt into cSql_text;
         END large_val;
    The output from dbms_output i am able to run a statement in SqlPlus without error:
         SELECT SYSMAN.MGMT_JOBS.get_large_param('82A11DD897876D29E0400A0A8A1051A7','0000000000000000','large_sql_script') FROM DUAL ;
    and it returns 2 lines.
    Running it as a procecure show's an error i don't understand.
    exec large_val;
    BEGIN large_val; END;
    ERROR at line 1:
    ORA-00911: invalid character
    ORA-06512: at "SCHEMTS.LARGE_VAL", line 23
    ORA-06512: at line 1
    Hope anyone can help me.
    Any help is appreciated.
    Regards,
    Ben

    Kiran wrote:
    you cannot use CLob with select query.Yes you can. At least since 10gR1, but possibly in earlier versions too.
    @OP:
    Why aren't you using bind variables? And why are you using dynamic sql at all?
    You could just do
      cSql_text := SYSMAN.MGMT_JOBS.get_large_param(job_id, exec_id, parm);

  • Sqlplus not exiting w/ error code

    When I run sqlplus like the following I would have expected it to return a status 1 instead of a 0:
    sqlplus /nolog
    SQL*Plus: Release 10.2.0.2.0 - Production on Mon Jan 8 08:41:39 2007
    Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
    SQL> whenever SQLERROR EXIT 1 rollback;
    SQL> select * from dual;
    SP2-0640: Not connected
    SQL>
    SQL>exit
    echo $?
    0
    Why wouldn't sqlplus return me a 1 return code, and exit the script automatically?

    WHENEVER SQLERROR EXIT forces SQL*Plus to exit whenever SQL exception occurs. SP2-XXXX errors are internal SQL*Plus errors (not SQL errors) and they don't force SQL*Plus to exit regardless of WHENEVER SQLERROR setting.
    Consider:
    C:\>sqlplus /NOLOG
    SQL*Plus: Release 10.1.0.2.0 - Production on Mon Jan 8 17:41:41 2007
    Copyright (c) 1982, 2004, Oracle.  All rights reserved.
    SQL> connect max
    Enter password:
    Connected.
    SQL>
    SQL> whenever sqlerror exit
    SQL>
    SQL> set echo on
    SQL>
    SQL> -- I won't exit on SP2-errors...
    SQL> set some_illegal_setting off
    SP2-0735: unknown SET option beginning "some_illeg..."
    SQL>
    SQL> totally_illegal_command
    SP2-0734: unknown command beginning "totally_il..." - rest of line ignored.
    SQL>
    SQL> select dummy from dual;
    D
    X
    SQL> -- I am gonna make SQL error, I will exit...
    SQL> select illegal_column from dual;
    select illegal_column from dual
    ERROR at line 1:
    ORA-00904: "ILLEGAL_COLUMN": invalid identifier
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production
    With the Partitioning, Oracle Label Security, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.6.0 - Production
    C:\>Regards.

  • Instant Client sqlplus: error while loading shared libraries: libsqlplus.so

    os : Linux ch5dlfp090 2.6.18-128.el5 #1 SMP Wed Dec 17 11:58:23 EST 2008 ppc64 ppc64 ppc64 GNU/Linux
    Oracle : Instant client
    [oracle@ch5dlfp090 instantclient_10_2]$ pwd
    /shared/instantclient/64bit/instantclient_10_2
    [oracle@ch5dlfp090 instantclient_10_2]$ ls -ltr
    total 108288
    -rwxrwxr-x 1 oracle dba 72658720 Dec 27  2008 libociei.so
    -rwxrwxr-x 1 oracle dba    41007 Dec 27  2008 genezi
    -rw-rw-r-- 1 oracle dba      237 Dec 27  2008 BASIC_README
    -r-xr-xr-x 1 oracle dba  3790338 Dec 27  2008 libnnz10.so
    -rwxrwxr-x 1 oracle dba 23543028 Dec 27  2008 libclntsh.so.10.1
    -r--r--r-- 1 oracle dba  1555682 Dec 27  2008 ojdbc14.jar
    -r-xr-xr-x 1 oracle dba   164432 Dec 27  2008 libocijdbc10.so
    -rwxrwxr-x 1 oracle dba  3014136 Dec 27  2008 libocci.so.10.1
    -r--r--r-- 1 oracle dba  1609607 Dec 27  2008 classes12.jar
    -r--r--r-- 1 oracle dba  1646178 Dec 27  2008 orai18n.jar
    -r-xr-xr-x 1 oracle dba    48473 Dec 27  2008 libheteroxa10.so
    -rw-rw-r-- 1 oracle dba      235 Dec 27  2008 JDBC_README
    -rw-rw-r-- 1 oracle dba      241 Dec 27  2008 SQLPLUS_README
    -r-xr-xr-x 1 oracle dba    15629 Dec 27  2008 sqlplus
    -r-xr-xr-x 1 oracle dba  1183998 Dec 27  2008 libsqlplus.so
    -r-xr-xr-x 1 oracle dba  1443102 Dec 27  2008 libsqlplusic.so
    -r--r--r-- 1 oracle dba     1525 Dec 27  2008 glogin.sql
    drwxrwxr-x 4 oracle dba    16384 Dec 27  2008 sdk
    [oracle@ch5dlfp090 instantclient_10_2]$
    Issue : When I tried to connect Sqlplus
    [oracle@ch5dlfp090 instantclient_10_2]$ sqlplus
    sqlplus: error while loading shared libraries: libsqlplus.so: wrong ELF class: ELFCLASS64
    When I connect with 32 bit instant client of Power Linux version I am able to connect
    When Hardware is 64 os 64 Bit Instnat client 64 bit not working
    what could be the reason ? How to resolve this ?

    Pl post in the Instant Client forum - Instant Client
    What does "which sqlplus" return ?
    This thread may be relevant - Instant client for Solaris AMD x64
    HTH
    Srini

  • Batch file / SQLPLUS automation Error message

    All,
    I have a batch file process that runs my sql script in sqlplus. I have error handling / whenever statements in the sql script. I ran into an issue when the database admin accidently changed my directory path for one of my scripts. The script failed, however it did not send me an email. I want to get an email if the path name for the script is incorrects. When I run the batch file manually with an incorrect path, the process hangs. It logs into sqlplus. Once it cannot find the file, I can find a way to exit sqlplus and send a error code back to the batch file. Below is the batch file. I also want to be notified if I can't connect to the database or the login/password is incorrect. As long as the directory is fine and the tns names and database are fine the code runs. I just want to capture the error if it does not run. Can someone help me?
    Note: If file does not exist, I can capture the error. However, the batch file hangs. I want to go the the next step and email the content of the captured error.
    sqlplus command line:
    SQLPLUS -s xxxx/xxxx@database @C:\test_error\test_error.sql > C:\test_error\sql_logs\%SortDate%_sql_log_file1.txt 2>&1
    Batch file:
    @ECHO on
    VERIFY ON
    SET SortDate=%date%
    :START_SQL
    SQLPLUS -s xxxx/xxxx@database @C:\test_error\test_error1.sql > C:\test_error\sql_logs\%SortDate%_sql_log_file1.txt 2>&1
    IF %ERRORLEVEL% == 0 GOTO SQL_SUCESSFUL
    IF %ERRORLEVEL% NEQ 0 GOTO SQL_ERROR
    :SQL_ERROR
    echo "THE SQL SCRIPT FAILED!!!"
    c:\bmail -s 0.0.0 -t [email protected] -f [email protected] -h -a "THE SQL SCRIPT FAILED!!!" -m C:\test_error\sql_logs\%SortDate%_sql_log_file1.txt -c
    GOTO END
    :SQL_SUCESSFUL
    ECHO "SQL WAS SUCESSFUL"
    c:\test_error\test_dribble_merger_perl.pl > C:\test_error\perl_logs\%SortDate%_PERL_ERROR.log 2>&1
    IF %ERRORLEVEL% == 0 GOTO PERL_COMPLETE
    IF %ERRORLEVEL% NEQ 0 GOTO PERL_ERROR
    GOTO End
    :PERL_ERROR
    echo "THE PERL SCRIPT FAILED!!!"
    c:\bmail -s 0.0.0 -t [email protected] -f [email protected] -h -a "THE PERL SCRIPT FAILED!!!" -m C:\test_error\perl_logs\%SortDate%_PERL_ERROR.log -c
    GOTO END
    :PERL_COMPLETE
    ECHO "PERL WAS SUCESSFUL. PROCESS COMPLETE"
    GOTO End
    :END
    Thanks,
    CC

    Hi Experts,
    I also have the same scenario.
    if i gave invalid tnsname it disconnects from the sqlplus connection but the output errorlevel is 0 which should be 1 as there was an error
    echo before %errorlevel% >>abc.txt
    (echo whenever oserror exit FAILURE
    ) | sqlplus scott/tiger@[email protected] >>abc.txt
    echo after %errorlevel% >>abc.txt
    if i give invalid tnsname also,
    For me after gives 0.
    which is not correct
    how to identify is the sqlplus returned without any error?

  • Formatting sqlplus

    Dear all,
    Below query in sqlplus returns the output in 2 rows . I want the output to be in the same row
    select DISTINCT ORIGINATING_TIMESTAMP,MESSAGE_TEXT from sys.X$DBGALERTEXT WHERE MESSAGE_TEXT LIKE 'ORA-%' or MESSAGE_TEXT LIKE '%Fatal%' AND ORIGINATING_TIMESTAMP > SYSDATE-4;
    sample output :
    28-APR-10 07.03.29.925 PM +03:00
    ORA-28 : opiodr aborting process unknown ospid (18707_1)
    I tried using set linesize and column format also. but, the output is not displaying in single row
    Any idea what I need to set
    Kai

    KaiS wrote:
    Dear all,
    Below query in sqlplus returns the output in 2 rows . I want the output to be in the same row
    select DISTINCT ORIGINATING_TIMESTAMP,MESSAGE_TEXT from sys.X$DBGALERTEXT WHERE MESSAGE_TEXT LIKE 'ORA-%' or MESSAGE_TEXT LIKE '%Fatal%' AND ORIGINATING_TIMESTAMP > SYSDATE-4;
    sample output :
    28-APR-10 07.03.29.925 PM +03:00
    ORA-28 : opiodr aborting process unknown ospid (18707_1)
    I tried using set linesize and column format also. but, the output is not displaying in single row
    Any idea what I need to set
    KaiThere is actually a forum for SQL*PLUS, but it doesn't get much traffic (frowny emoticon following will probably not appear) :(
    Assuming that the output in your example is the message and not an error that you are asking for help with you can use the FOLD_AFTER command to force columns to appear on different lines, something like
    column one fold_after
    select 1 one, 2 two
      from dual;
    one
    two
             1
             2you can get better appearance by turning headings off
    Edited by: riedelme on Jun 27, 2011 12:50 PM
    oops, op wanted to eliminate the folding, not force it

  • Access to sqlplus using Putty

    Does anybody know if it's possible to access sqlplus using Putty? I downloaded Putty, ran and I could access the server and got the ORACLE_HOME. However, when I issue the command sqlplus I get the follow message:
    -bash: sqlplus: command not found
    Thanks a lot.

    Hi Bruno,
    As mentioned, be sure you have your $PATH set correctly.
    The error you received is because the command you entered was not found in your current path.
    Normally, this is defined in your .bash_profile.
    But, you can also set up your path at the command prompt by putting in:
    First*, you need to set your ORACLE_HOME. This is the home directory as defined by Oracle where the binaries for the software are installed.
    Example:
    $ export ORACLE_HOME=/oracle/product/11.1
    Then*, you need to either set your Oracle bin directory in your path, or run it from the bin directory
    Examples:
    Set PATH to include the Oracle bin directory
    export PATH=$ORACLE_HOME/bin:$PATH
    You can also change directory to your *$ORACLE_HOME/bin* directory and run the command from there as:
    ./sqlplus <return>
    or run it with the fully qualified path from any location as:
    /oracle/product/11.1/bin/sqlplus <return>
    Also, be sure to set your ORACLE_SID before your run SQL*Plus, or you will get an error SP2-0750.
    example: export ORACLE_SID=<db_name>
    HTH...

  • ERROR in SAP System Installation

    Hi gurus!!
    We are trying to install a SRM system (EBP4.0) into existing database (oracle 9.2) -  MCOD mode - but when we run the installation the process terminates with the next error in sapinst.log
    ERROR 2008-08-29 11:16:50
    CJS-00084  SQL Statement or Script failed. Error Message: Executable /oracle9/app/product/9.2/bin/sqlplus returns 1.
    We also see in the ora_sql_results.log the next error:
    2008-08-29, 11:16:50 SAPINST ORACLE start logging for
    connect  / as sysdba ;
    @@"/tmp/sapinst_instdir/oradbusr.sql"
    exit;
    Output of SQL executing program:
    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
    SAPINST: End of output of SQL executing program /oracle9/app/product/9.2/bin/sqlplus.
    SAPINST found errors.
    SAPINST The current process environment may be found in sapinst_ora_environment.log.
    2008-08-29, 11:16:50 SAPINST ORACLE stop logging
    We think that the problem is that the installation process set the oracle_home environment variable as "/oracle/<SID>/920_64" although we specified in the input fields of the installation screens that the oracle_home must be other one (we can see the environment variables set up by the installation process in the sapinst_ora_environment.log file)
    2008-08-29, 11:16:50 SAPINST Current process environment:
    _=./sapinstexe
    LANG=en_US
    LOGIN=root
    MAQ=oracle2desa
    PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java14/jre/bin:/usr/java14/bin:/usr/local/bin:/usr/opt/ifor/ls/os/aix/
    bin:/oracle9/app/product/9.2/bin
    LC__FASTMSG=true
    EDITOR=/usr/bin/vi
    HISTFILE=//.history/root_U233767
    LOGNAME=root
    MAIL=/usr/spool/mail/root
    ORACLE_SID=BYD
    LOCPATH=/usr/lib/nls/loc
    PS1=$MAQ ($LOGNAME) $PWD->
    USER=root
    AUTHSTATE=compat
    DEFAULT_BROWSER=netscape
    DISPLAY=HOR491702K:0.0
    SHELL=/usr/bin/ksh
    ODMDIR=/etc/objrepos
    JAVA_HOME=/usr/java14/jre
    HOME=/
    TERM=vt220
    MAILMSG=[YOU HAVE NEW MAIL]
    ORACLE_HOME=/oracle/BYD/920_64
    PWD=/tmp/sapinst_instdir
    TZ=NFT-1DFT,M3.5.0,M10.5.0/03:00
    TTYUSER=U233767
    A__z=! LOGNAME
    NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat
    LIBPATH=/tmp/sapinst_instdir:/sapmnt/BYD/exe
    dbms_type=ORA
    dbs_ora_schema=SAPR3
    dbs_ora_tnsname=BYD
    DIR_LIBRARY=/sapmnt/BYD/exe
    NLS_LANG=AMERICAN_AMERICA.WE8DEC
    ORACLE_BASE=/oracle
    SAPDATA_HOME=/oracle/BYD
    SAPSYSTEMNAME=BYD
    SAPINST: End of current process environment.
    Maybe if we changed the control.xml file we could solve the problem but we have already try it without luck, so can anybody tell us wich line of control.xml file must we change?
    Anybody knows other solution for this issue?
    Thank you very much in advanced,
    Edorta Ramos

    IF it is windows OS. Please right click on My computer icon on the desktop> properties>Advanced --> Environmental Variables > Click on NEW> Give variable name as JAVA_HOME and variable value as path of jre (Ex: C:\j2sdk1.4.2_04\jre) Once entered say OK.
    In System variables section. select for path and click on edit. go the last and enter ";" and give the path for bin directory (Ex: C:\j2sdk1.4.2_04\bin).
    Hope it is help full.

  • Error in calling SQL plus program with parameter from Shell script

    This is my Shell script. I am trying to call in the SQL plus program with the parameter and the shell script is registered as a concurrent program.
    PARAMETERS=`echo $1 |tr -d '\"'`
    DB_USER_ID=`echo $PARAMETERS|cut -d" " -f3|cut -d"=" -f2`
    CONN_STRING=$DB_USER_ID
    REQ_DATE=`echo $PARAMETERS|cut -d" " -f9|cut -d"=" -f2`
    timestamp=`date +%m-%d-%y-%H:%M:%S-%Z`
    timestam=`date +%y-%m-%d`
    sqlplus -s $CONN_STRING @ar_statement.sql $REQ_DATE
    chmod 755 statement.sh
    . statement.sh
    My Sql plus program is like this.
    set pagesize 0
    set heading off
    set feedback off
    spool $GEC_TOP/log/ge_ar_statement.sh
    select output_file_name
    from fnd_concurrent_requests
    where trunc(actual_completion_date) = '&2';
    spool off;
    exit;
    When i run the concurrent program, i am getting the following error:
    ar_statement: line 14: REQ_DATE: command not found
    Enter value for 2:
    User requested Interrupt or EOF detected.
    ar_statement.sh: line 1: Enter: command not found
    ar_statement.sh: line 2: User: command not found
    ar_statement
    Program exited with status 127
    I am not strong at Unix Porgamming and i would request someone who can
    help me out as soon as possible.
    I need this solution quickly and thank everyone in advance.
    Thanks.

    Can you put your coding between code statements, like shown in the FAQ. It will be easier to read.
    Looking at your script, my first guess is that crontab will not find your sqlplus since your script does not have $HOME/bin in the $PATH. From what I understand, running .profile in your script will not work either because variables are exported to sub-shells, not to the shell above. You can call your script with a dot like . ./script which means that the script will run like it was typed at the command prompt. But it will be less confusing to define appropriate variables in the script. eg.
    ORACLE_SID=my_instance_name
    ORACLE_HOME=/my_path_to_oracle_home_directory
    LD_LIBRARY_PATH=$ORACLE_HOME/lib
    PATH=$ORACLE_HOME/bin:$PATH
    I remember some slightly different way of coding to handle the sqlplus return codes.
    For instance:
    sqlplus -s /nolog > /dev/null <<-EOF
    connect system/manager
    @ssm.sql
    whenever oserror exit failure
    whenever sqlerror exit failure
    EOF
    sql_err=$?
    if [ $sql_err -ne 0 ]; then
       echo "FAILURE"
    else
       echo "SUCCESS"
    fiThe - in -EOF supresses tab's
    Using connect will prevent ps from showing your login credentials
    In some versions of bash the ending EOF needs to be at the beginning of the line to work.
    Edited by: waldorfm on Jul 14, 2010 7:05 PM
    complaining about putting code between code delimiters and forgot myself ;-)
    Edited by: waldorfm on Jul 14, 2010 7:08 PM
    Btw, if you "source" a script running it like . .script, than an exit in that script will log you out.

  • Error while installing the SAP J2EE add-on for SAP NW XI installation

    Error while installing the SAP J2EE add-on for SAP NW XI installation  
    Posted: Jan 24, 2007 5:23 PM         Reply      E-mail this post 
    Hello,
    When I am installing the SAP SAP J2EE add-on for SAP NW XI installation I am getting the follwing error:
    CJS-00084 SQL statement or script failed. DIAGNOSIS: Error message: Executable /oracle/XID/920_64/bin/sqlplus returns 127.. SOLUTION: See ora_sql_results.log and the Oracle documentation for details
    Could some one help me to resolve this error and install the SAP J2EE add-on?
    Thanks,
    George

    Hi George,
    Kindly use the latest installation Masted in Service market place. That will possibly solve your problem.
    Regards
    Vivek

Maybe you are looking for

  • Late 2011 17" Macbook Pro upgrade advice needed

    Hey everybody, I would like to u[grade my Late 2011 17" Macbook Pro. 8GB DDR3 RAM 750GB HDD OSX 10.7.4 So after reading on Crucial.com that I could house 16gb ram, despite what apple said, I investigated this and according to people this is tr So my

  • Can't get dual monitors to come back up when docking. T500 with mini dock & XP

    I have a T500 with XP installed. I am using it docked into a mini dock attached to two 20inch Viewsonic monitors. One connected via VGA and the other DVI. I setup the dual monitors just fine. Anytime after I undock and boot up the laptop I can't get

  • Does photoshop elements 11 support CMYK

    Does new version support CMYK? Or I need to buy something different... Lightroom for example?

  • STO Process

    Dear Guru's, Can I know the step wise process for depot to depot transfer and what are the accounting documents that will be genarated? I am also getting error while creating G.R, Maintain vendor for excise invoice, for this I have given vendor code

  • New iPhone question (picture mail)

    Just got the 3G iPhone and I was wondering why I cannot recieve pictures via text message, (picture mail). Is there something I need to download, or is it not possible?