Redirecting error message on SQL Plus

When using SQL Plus, is there a way to send error messages to my c:\ drive vs. the server?

Hi grama16,
From what I've noticed, that error message shows up sometimes for ink or printhead issues. Please follow as many steps as you can in the guide below, it should help fix the issue for your printer
'Ink System Failure' or a '0x ...' Error Message Displays on the Control Panel
*** If my reply was helpful, please click on the "Kudos Thumbs-Up" on the right, as a way to say "Thanks!".
If this reply also fixed your issue - please click the "Accept as Solution" button, so that others can find the same answer. ***

Similar Messages

  • Concurrent manager encountered an error while running sql*plus for your concurrent request create internal order

    Hi
    We have a big problem, We can't create internal orders, when I run the CREATE INTERNAL ORDER, it finish with ERROR:
    Concurrent Manager encountered an error while running SQL*Plus for your concurrent request 134980682.
    Review your concurrent request log and/or report output file for more detailed information.
    this is the log:
    +---------------------------------------------------------------------------+
    Purchasing: Version : 12.0.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    POCISO module: Create Internal Orders
    +---------------------------------------------------------------------------+
    Current system time is 26-JUL-2013 09:21:09
    +---------------------------------------------------------------------------+
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    +---------------------------------------------------------------------------+
    Start of log messages from FND_FILE
    +---------------------------------------------------------------------------+
    Begin create internal sales order
    Updating Req Headers
    14 Reqs selected for processing
    Top of Fetch Loop
    Source Operating Unit: 82
    Selecting Currency Code
    Currency Code : MXP
    Selecting Order Type
    Order Type ID:1001
    Selecting Price List from Order Type
    Deliver To Location Id: 196
    Inserting Header : 3908784
    Getting the customer id
    Getting the customer id: 15334
    Unhandled Exception : ORA-01403: no data found
    +---------------------------------------------------------------------------+
    End of log messages from FND_FILE
    +---------------------------------------------------------------------------+
    Concurrent Manager encountered an error while running SQL*Plus for your concurrent request 134980682.
    Review your concurrent request log and/or report output file for more detailed information.
    +---------------------------------------------------------------------------+
    Executing request completion options...
    Output file size:
    78
    Output is not being printed because:
    The print option has been disabled for this report.
    Finished executing request completion options.
    +---------------------------------------------------------------------------+
    Concurrent request completed
    Current system time is 26-JUL-2013 09:21:14
    +---------------------------------------------------------------------------+
    Some suggestion for resolve it??
    Thanks & Regards.

    In the document 294932.1 Section 4 there are no pre-installation patches or update for OS RedHat LinuxAS4.
    When I type echo $LD_ASSUME_KERNEL it doesn't display any value so do I need to set the LD_Assume_Kernal value manually.
    If yes, please let me know the path and command to set the kernel value.
    Thanks
    Amith

  • Error 57 initializing SQL*Plus

    i am not able to start sql plus. It gives me the below mentioned error message. I did not have any problem when i worked a month back but now when i am going to start again, it gives me this error. In between, the only change i brought into my PC is the installation of Kaspersky Antivirus and doing the full scan?
    Error 57 initializing SQL*Plus
    Error loading message shared library
    thanks

    hick wrote:
    i am not able to start sql plus. It gives me the below mentioned error message. I did not have any problem when i worked a month back but now when i am going to start again, it gives me this error. In between, the only change i brought into my PC is the installation of Kaspersky Antivirus and doing the full scan?
    Error 57 initializing SQL*Plus
    Error loading message shared library
    thanksThis error is raised during the early startup processing for sqlplus and is, by nature, rather generic. Since it is raised during initialization, it's quite possible that not all libraries that might be needed for additional details (such as localized error messages) are loaded.
    As the only thing you mention has changed is installation of Kaspersky, that suggests it is blocking a required library from being loaded. This error can also be raised when there is insufficient memory available (which would also prevent loading of required libraries, etc).
    Here's a simple test you can do to illustrate this (obviously not on a production system, etc!):
    $ cd \Oracle\11.2\database\BIN
    $ dir /s /b oraclient11.dll
    C:\Oracle\11.2\database\BIN\oraclient11.dll
    $ rem temporarily rename the Oracle RDBMS Client Library for testing
    $ ren oraclient11.dll oraclient11.dll.save
    $ rem this will raise error 57 since a required library could not be loaded during initialization
    $ sqlplus.exe /nolog
    Error 57 initializing SQL*Plus
    Error loading message shared library
    $ rem be sure to change back!
    $ ren oraclient11.dll.save oraclient11.dllRegards,
    Mark

  • Error 45 initializing SQL*Plus

    Hi All,
    When I try to execute a create view script, I encounter a "Error 45 initializing SQL*Plus Internal Error".
    When googled for it. The BUG 3039738 is associated with this error message.
    My question is, When the Metalink has explained the scenario in BUG description that. This error is encountered when a shell script is trying to invoke the sqlplus.
    I donno why I am getting it when I try to run a SQL create view script.
    Details:
    OS:Red Hat Linux 5.2
    DB:Oracle 10g (10.2.0.4)
    SQL> @EXP_HR_UK_EMPLOYEE_DETAIL_V.txt
    Error 45 initializing SQL*Plus
    Internal errorRegards,
    SAM

    Hi Robert,
    We use eChangeMan for scripts transfer.
    The scripts are uploaded into eChangeMan and then sent for approval. Once Approved. The eChangeMan automatically transfers the scripts to specific location on server, from where we execute them.
    In one link I found this
    Cause: The issue is identified as Bug:3039738. This typically reproduces when SQL script file is on a OCFS filesystem created on shared device (for example, SAN storage).
    Fix: The only workaround, until bug is fixed, is to copy the SQL script file to a local disk (in case of Linux, a ext3 filesystem).
    But this is the first time I have encountered this error. When i did a vi on script, It looks fine, without any spl characters.
    Regards,
    SAM

  • Error 7 initializing SQL*Plus

    Hi,
    when I laucnh sqlplus I obtain this error:
    oracle@gami7ot1:/grid/app/9.2.0>sqlplus
    Error 7 initializing SQL*Plus
    Message file sp2<lang>.msb not found
    oracle@gami7ot1:/grid/app/9.2.0>which sqlplus
    /grid/app/9.2.0/bin/sqlplus
    I have these environment settings:
    oracle@gami7ot1:/grid/app/9.2.0>env
    _=/usr/bin/env
    LANG=en_US
    LOGIN=oracle
    SSH_TTY=/dev/pts/0
    PATH=/grid/app/9.2.0/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/home/oracle/bin:/usr/bin/X11:/sbin:.:
    NLS_LANG=AMERICAN_AMERICA.UTF8
    ORACLE_BASE=/grid/app
    LC__FASTMSG=true
    EDITOR=vi
    LOGNAME=oracle
    MAIL=/usr/spool/mail/oracle
    ORACLE_SID=TEST
    LOCPATH=/usr/lib/nls/loc
    USER=oracle
    AUTHSTATE=compat
    SHELL=/usr/bin/ksh
    ODMDIR=/etc/objrepos
    HOME=/home/oracle
    SSH_CONNECTION=172.27.1.176 8799 172.27.13.210 22
    SSH_CLIENT=172.27.1.176 8799 22
    TERM=xterm
    MAILMSG=[YOU HAVE NEW MAIL]
    ORACLE_HOME=/grid/app/9.2.0
    PWD=/grid/app/9.2.0
    TZ=Europe/Rome
    A__z=! LOGNAME
    NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat
    LIBPATH=/grid/app/9.2.0/lib:/grid/app/9.2.0/lib32:/usr/dt/lib:/usr/openwin/lib:/grid/app/9.2.0/ctx/lib
    LD_LIBRARY_PATH=/grid/app/9.2.0/lib:/grid/app/9.2.0/lib32:/usr/dt/lib:/usr/openwin/lib:/grid/app/9.2.0/ctx/lib
    this is my oratab:
    oracle@gami7ot1:/grid/app/9.2.0>cat /etc/oratab
    +ASM1:/grid/11.2.0:N            # line added by Agent
    #TEST:/grid/app/product/10.2.0:N
    TEST:/grid/app/9.2.0:N
    What I'm doing wrong?

    Hi BelMan,
    this works fine:
    oracle@gami7ot1:/home/oracle>export ORACLE_HOME=/grid/11.2.0
    oracle@gami7ot1:/home/oracle>export ORACLE_SID=+ASM
    oracle@gami7ot1:/home/oracle>/grid/11.2.0/bin/sqlplus
    SQL*Plus: Release 11.2.0.1.0 Production on Tue Jul 27 12:51:44 2010
    Copyright (c) 1982, 2009, Oracle. All rights reserved.
    Enter user-name:
    But I need to use 9.2.0.8 home!

  • Error 5 Initializing SQL*Plus

    Hi, I've Oracle 9.2.0.5 over Solaris 9. I've set NLS_LANG=spanish_spain.WE8ISO8859P15
    and when I try to start sqlplus (sqlplus "/as sysdba") I receive the next error:
    $ sqlplus "/as sysdba"
    Error 5 initializing SQL*Plus
    NLS initialization error
    I'm getting this error from this morning, when I delete the file $ORACLE_HOME/ocommon/nls/admin/data/lx10006.nlb and I restore the same file but from version 9.2.0.1, may it be the cause?
    Any idea? I haven't a copy of this file of version 9.2.05...
    Thank you,

    I only can access to the database if I unset NLS_LANG or if I set NLS_LANG=american_america.WE8ISO8859P1

  • [Emergency] sqlplus gets "Error 5 initializing SQL*Plus NLS initialization"

    Hi, all.
    I issued sqlplus, but I got the following error.
    What could be the reasons for the following error?
    Thanks in advance.
    Best Regards.
    [esumedi(ngwapt1):/GXS/esumedi] sqlplus
    Error 5 initializing SQL*Plus
    NLS initialization error
    cat .profile
    export ORACLE_BASE=/ora_client
    export ORACLE_HOME=$ORACLE_BASE/OraHome_1
    export ORACLE_TERM=vt100
    export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
    export NLS_LANG=American_america.KO16KSC5601
    export TNS_ADMIN=$ORACLE_HOME/network/admin
    export PATH=$PATH:$ORACLE_HOME/bin:.:/bin:/usr/bin:/usr/sbin:/usr/ccs/bin:/usr/ucb:/opt/perf/bin:$ORACLE_HOME/OPatch:/oracle/app/oracle10/product/102
    0/bin:.
    export SHLIB_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/lib32:$ORACLE_HOME/network/lib:/usr/lib
    export DISPLAY=172.23.19.134:0.0
    export PATH=$PATH:/opt/java1.5/bin:/opt/java1.5/jre/bin
    --------------------------------------------------------------------------

    Thanks for your reply.
    I solved this problem by adding "esumedi" user to dba group.
    [esumedi(ngwapt1):/GXS/esumedi] cat /etc/group
    adm::4:root,adm
    dba::107:anylink,almnp,albat,alon,almnp180,alon180,albat180
    ngwapt1:/ora_client/OraHome_1/bin>ll sql*
    -rwxr-x--x 1 oracle dba 1748248 Sep 17 2009 sqlldr*
    -rwxr-x--x 1 oracle dba 1748248 May 6 2008 sqlldrO*
    -rwxr-x--x 1 oracle dba 72048 Sep 17 2009 sqlplus*
    -rwxr-x--x 1 oracle dba 72048 May 6 2008 sqlplusO*
    ngwapt1:/ora_client/OraHome_1/bin>
    My guess is that a oracle client user needs "read" and "excute" privilege.
    Before I add "esumedi" to dba group, the user of esumedi could not read some file in the $ORACLE_HOME.
    After I added "esumedi" to dba group, the user of esumedi was able to read some file in the $ORACLE_HOME.
    This is my guess.
    Is my guess right?
    If I change "file access mode" under $ORACLE_HOME directory, it could be the another solution??
    Thanks.
    Best Regards.

  • 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 message using SQL import and Export Wizard with Excel spread sheet

    I am trying to import an Excel spreadsheet using the Import export wizard that is provided with SQL 2014.  
    Everything seems to set up OK but then when I go to do the transfer "error message" comes up saying:
    External Table is not in the expected format.(Microsoft Jet Database Engine).   
    This is a spreadsheet and there is no database, that is why I want to import it into a database!!  So the reference to JET is a tad disappointing.
    So why the error and how do I fix the problem?
    As there are over 100 variables in the spread sheet rows, it would be great to have this automatically create the database and populate the fields.
    I am using SQL 2014  Express and Office Excel 2013.
    Thank you in  advance for taking the time to read this, and hopefully sheading some light on the issue.

    Hi AWlcurrent,
    When import a .xlsx file to SQL Server using SQL Server Import and Export Wizard, you see a “External Table is not in the expected format.(Microsoft Jet Database Engine).” error message. This error message seems that the Microsoft JET Database Engine is
    unable to handle something that is contained in the file.
    So please make sure there is no unsupported content in the Excel file. Alternatively, we can use ‘Microsoft Excel’ as the Data Source, then Select ‘Microsoft Excel 2007’ as the Excel version to import the excel file.
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • Oracle error message at sql prompt

    Dear,
    what is the command that is used to display the error message and action at the sql command prompt.....
    Thanks and regards
    Vijay

    I thought OERR tool is missing or not installed with my Oracle9i version in
    WindowsXP likewise I'm unable to use TKPROF utility also which is not
    been provided in Oracle9i-R1.
    I presumed OERR and TKPROF utilities are not provided in 9i for Windows,
    until you clarified that OERR executes under Unix only.
    Thanks Pierre,

  • How to retrive error message for sql agent job failure

    My sql server agent job failed and didn't store any error message in the job history. Is there any other table from where I can get the error info????
    The job has sql_message_id = 16389 and sql_severity = 16. What does they mean????

    this link will solve your problem
    http://www.sqlservercentral.com/articles/SQL+Server+Agent/67726/
    ebro
    CREATE PROCEDURE pr_GetStepFailureData
    @JobName VARCHAR(250)
    AS
    This procedure gets failure log data for the failed step of a SQL Server Agent job
    DECLARE @job_id UNIQUEIDENTIFIER
    SELECT @job_id = job_id FROM dbo.sysjobs WHERE [name] = @JobName
    SELECT 'Step ' + CAST(JH.step_id AS VARCHAR(3)) + ' of ' + (SELECT CAST(COUNT(*) AS VARCHAR(5)) FROM dbo.sysjobsteps WHERE job_id = @job_id) AS StepFailed,
    CAST(RIGHT(JH.run_date,2) AS CHAR(2)) + '/' + CAST(SUBSTRING(CAST(JH.run_date AS CHAR(8)),5,2) AS CHAR(2)) + '/' + CAST(LEFT(JH.run_date,4) AS CHAR(4)) AS DateRun,
    LEFT(RIGHT('0' + CAST(JH.run_time AS VARCHAR(6)),6),2) + ':' + SUBSTRING(RIGHT('0' + CAST(JH.run_time AS VARCHAR(6)),6),3,2) + ':' + LEFT(RIGHT('0' + CAST(JH.run_time AS VARCHAR(6)),6),2) AS TimeRun,
    JS.step_name,
    JH.run_duration,
    CASE
    WHEN JSL.[log] IS NULL THEN JH.[Message]
    ELSE JSL.[log]
    END AS LogOutput
    FROM dbo.sysjobsteps JS INNER JOIN dbo.sysjobhistory JH
    ON JS.job_id = JH.job_id AND JS.step_id = JH.step_id
    LEFT OUTER JOIN dbo.sysjobstepslogs JSL
    ON JS.step_uid = JSL.step_uid
    WHERE INSTANCE_ID >
    (SELECT MIN(INSTANCE_ID)
    FROM (
    SELECT top (2) INSTANCE_ID, job_id
    FROM dbo.sysjobhistory
    WHERE job_id = @job_id
    AND STEP_ID = 0
    ORDER BY INSTANCE_ID desc
    ) A
    AND JS.step_id <> 0
    AND JH.job_id = @job_id
    AND JH.run_status = 0
    ORDER BY JS.step_id
    EXEC pr_GetStepFailureData 'JobName'

  • Error al ejecutar SQL plus y error ORA-03114

    Instali Oracle 9i 9.2 cliente sobre windows 98 para conectarme a la base Oracle 7.3.4. La instalacisn fue exitosa y la configuracion del Net tambiin results exitosa, sin embargo, al ejecutar el sql plus me envma un error y hace referencia a product_user_profile, ademas, no puedo ejecutar mi aplicacisn en VB enviando el error ORA-03114: no conectado a ORACLE.
    ?Qui me falta por configurar?.
    Al instalar Oracle 8i no presenta ningun error, funcionando todo exitosamente.

    Babblefish believes that your question translates to English as:
    "I installed Oracle 9i 9,2 client on Windows 98 to connect me to the base Oracle 7.3.4. The installation was successful and the configuration of the Net also was successful, nevertheless, when executing the SQL extra sends an error to me and makes reference to product_user_profile, in addition, I cannot execute my application in VB sending the Ora-03114 error: not connected to ORACLE. What I need to form. When installing Oracle 8i does not present/display ningun successful error, working everything."
    Assuming that's a proper translation, there are a couple of points:
    - The 9.2 client ins't certified to connect to a 7.3.4 database. There may well be random issues with this configuration.
    - product_user_profile indicates to me that your DBA may have set something up that prevents certain users/machines/applications/etc. from logging into the database. I'd try speaking with your DBA to see whether this is the case, and what you need to do to have the system changed.
    Justin

  • Error : SP2-0642: SQL*Plus internal error state 2286, context 0:0:0

    Hi all
    I got the following error while starting a database.please help me
    SP2-0642: SQL*Plus internal error state 2286, context 0:0:0 Unsafe to proceed

    Hi,
    Please look at the notes.
    SP2-0642: SQL*Plus Internal Error State 2130 ORA-24315: Illegal Attribute Type [ID 1060880.1]
    "SP2-0642: SQL*Plus internal error state 2090, context 0:0:0" Error Encountered While Running Select Statement [ID 555757.1]
    SP2-0642: SQL*Plus internal error state 2090, context 0:0:0" Error Encountered While Running Select Statement [ID 555757.1]
    They are either Windows related or general.
    Regards,

  • Please help!..redirecting error messages

    I'm developing an application and I wish to redirect all error messages to a separate .txt file. Is this possible??
    This is very urgent, if anyone can help!
    Thanks.

    String sSysLog = "MySystemLogFile.txt";
    PrintStream stream = new PrintStream(new FileOutputStream(sSysLog, true), true);
    System.setErr(stream);     // Set System.err to output to specified log file.

  • Redirect the output of SQL*Plus to the file

    Hi all,
    I have the following command to run:
    sqlplus username/password @myfile.sql
    I don't know how to redirect the output to the file.
    Also in the script myfile.sql I have the defined variable, &VP and
    How can I substitute this variable(&VP) at the run time.
    Thanks,
    JP

    Assumed you like to replace your defined variable VP by number 4. SInce it is posintional parameter,instead of wrinting &VP, write
    VP:=&1
    sqlplus>spool redirect.txt
    sqlplus>@myfile.sql 4
    sqlplus>spool off

Maybe you are looking for

  • Problem in confirming quantity in sales order

    Hi, Quantities are not confiming in sales order after releasing the QM LOT by transaction QA16. Here the stock is posted to unrestricted stock but the table QALS is not updated accordingly which causes the problem in confirming the quantity in sales

  • Outlook express and blackberry

    Hi - I am new to blackberry and I am sure you have all figured this out but I need some help. I use outlook for my calendar but only that. I use outlook express for my email and addresses.  I currently have my outlook calendar, memo, tasks, etc all s

  • IPod Touch wifi issue?

    My iPod Touch's wifi is playing up; When I got home today, the ipod picked up the wifi connection, with 2 bars signal, yet when I went on facebook and weather they both said 'update failed' and 'error' etc... The signs that there is no connection. Th

  • Wireless bridge re-association

    Hey Guys, Need help with a 1252 in bridge mode. The 1252's are not re-associating after the non-root is dropped. Previously at the same location, the 1310 bridge would re-associate without issue. Is there a command I'm missing somewhere? Should I up

  • I cannot open any documents in Indesign after downloading Yosemite.  Says I need Java 6.  I have Java 8 and still doesn't work.  Please suggest.

    I cannot open any documents in InDesign after downloading Yosemite.  Says I need Java 6.  I have Java 8 and still doesn't open.