PL/SQL ERROR MESSAGE

HI,
I TYPE THE FOLLOWING QUERY FOR THE ORDER_INFO VIEW
INSERT INTO orders
(id, orderdate, status, c_id)
VALUES(1, TO_DATE('18-JUN-2006', 'DD-MON-YYYY'), 'B', 1);
ORACLE RETURNED THE ERROR MESSAGES AS FOLLOWS:
ERROR AT LINE 1:
ORA-00001: unique constraint (HANDSONXE05.ORDERS_PK) violated

Normally, primary keys will be generated by a sequence, in which case your INSERT statement would use <<sequence name>>.nextval for the ID column. Otherwise, you would have to use an ID that hadn't been used before in the table.
Justin

Similar Messages

  • How to check the SQL error message to address the application issue

    Dears,
    The application runs SQLs against Oracle via oracle client(actually the app is IBM Cognos which shows report and the data is from oracle database). So, for a report which fails to run, I want to check the sql and the error message for this failed sql statement. Where is the message stored, client or server and How to get it?
    I know there is a view v$log used to check the sqls ran in database but here I mean the failed sqls....
    Thanks,
    Ricky Ru

    969543 wrote:
    The application only presents the application error message.. And it is not helpful for me to get the root cause..The application uses the Oracle Call Interface to communicate with the database server. OCI calls return a result code to the client. The client is expected to call OCIErrorGet() to get the full error text.
    If the client does not do this, or obfuscate the server error, or suppress the server error? Crappy client. The lack of the client to play its role as client, correctly within the documented client-server architecture, is solely the client's problem. Not the server.
    For DB2, I could use db2diag to check the log. why oracle can not do this? any thoughts?Because Oracle is not stupid? Why on sweet mother earth waste server resources to track client application errors, on behalf of clients? How does this make ANY sense!?
    Oracle server's handles 1000's of SQL executions per second. Just where is it to find sufficient space to log application errors (not database system errors) at that rate? How do you justify that overhead? Using the argument that the application is poorly designed or written? Come on!

  • SQL Error Message.

    When on a message board, and I try to post a comment, this Error Message comes up:
     AN ERROR OCCURED WITH THE SQL SERVER. This is not a problem with the
    IPS Community Suite, but rather with your SQL server.  Please contact your host and copy the
    message shown.
    What is causing this?    Thank you 

    Hi gingerlee003,
    If I understand correctly, you are log on a website or a system. The error message occurs when you trying to post a comment on it.
    This issue may occur if the website is not available or under maintenance. The problem seems to be on the website's end, not yours. Either the database is down and their "data" is not retrievable at the moment or the webmaster coded something wrong.
    Once their database is back up and running you will be able to see the website again. You can do is wait a bit and try again or contact the webmaster to check for the issue. If you want to troubleshoot this issue, please refer to the log file.By default, the
    error log is located at Program Files\Microsoft SQL Server\MSSQL.n\MSSQL\LOG\ERRORLOG and
    ERRORLOG.n files.
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Changing SQL error Message

    Hi,
    I want to return a relevant Error Message whenever an SQL Exception occurs. For e.g. If a unique Constraint exists i want to return a relevant message like "A record already exists." Can i do the same?
    Maybe a good feature to have in the next version of Oracle, if it doesnt exist :)
    Regards,

    As 3360 points out, you cannot do this at the sql level (and a good thing too), but if you encapsulate all of your DML logic into packages (which is generally a good thing to do), then you can return wehat ever you want as an error message.
    SQL> CREATE TABLE t (id NUMBER PRIMARY KEY, descr VARCHAR2(10));
    Table created.
    SQL> CREATE PACKAGE t_pkg AS
      2     PROCEDURE ins_t (p_id IN NUMBER,
      3                      p_descr IN VARCHAR2);
      4     PROCEDURE upd_t (p_id IN NUMBER,
      5                      p_descr IN VARCHAR2);
      6     PROCEDURE del_t (p_id IN NUMBER);
      7  END;
      8  /
    Package created.
    SQL> l
      1  CREATE PACKAGE BODY t_pkg AS
      2  null_id EXCEPTION;
      3  no_record EXCEPTION;
      4  PRAGMA EXCEPTION_INIT (null_id, -1400);
      5
      6  PROCEDURE ins_t (p_id IN NUMBER,
      7                   p_descr IN VARCHAR2) IS
      8  BEGIN
      9     INSERT INTO t VALUES(p_id, p_descr);
    10  EXCEPTION
    11     WHEN dup_val_on_index THEN
    12        RAISE_APPLICATION_ERROR (-20001, 'what do u think u r trying to do!!!');
    13     WHEN null_id THEN
    14        RAISE_APPLICATION_ERROR (-20002, 'gimme a break I need an ID');
    15     WHEN OTHERS THEN
    16        RAISE_APPLICATION_ERROR (-20003, 'now I''m really confused');
    17  END;
    18
    19  PROCEDURE upd_t (p_id IN NUMBER,
    20                   p_descr IN VARCHAR2) IS
    21  BEGIN
    22     UPDATE t
    23     SET descr = p_descr
    24     WHERE id = p_id;
    25     IF sql%ROWCOUNT = 0 THEN
    26        RAISE no_record;
    27     END IF;
    28  EXCEPTION
    29     WHEN no_record THEN
    30        RAISE_APPLICATION_ERROR (-20004, 'It''s not there so I''m not doing it');
    31     WHEN OTHERS THEN
    32        RAISE_APPLICATION_ERROR (-20003, 'now I''m really confused');
    33  END;
    34
    35  PROCEDURE del_t (p_id IN NUMBER) IS
    36  BEGIN
    37     DELETE FROM t
    38     WHERE id = p_id;
    39     IF sql%ROWCOUNT = 0 THEN
    40        RAISE no_record;
    41     END IF;
    42  EXCEPTION
    43     WHEN  no_record THEN
    44        RAISE_APPLICATION_ERROR (-20004, 'It''s not there so I''m not doing it');
    45     WHEN OTHERS THEN
    46        RAISE_APPLICATION_ERROR (-20003, 'now I''m really confused');
    47  END;
    48  END;
    49  /
    Package body created.
    SQL> exec t_pkg.ins_t(1, 'One');
    PL/SQL procedure successfully completed.
    SQL> exec t_pkg.ins_t(1, 'One');
    BEGIN t_pkg.ins_t(1, 'One'); END;
    ERROR at line 1:
    ORA-20001: what do u think u r trying to do!!!
    ORA-06512: at "OPS$ORACLE.T_PKG", line 12
    ORA-06512: at line 1
    SQL> exec t_pkg.upd_t(2, 'Two');
    BEGIN t_pkg.upd_t(2, 'Two'); END;
    ERROR at line 1:
    ORA-20004: It's not there so I'm not doing it
    ORA-06512: at "OPS$ORACLE.T_PKG", line 30
    ORA-06512: at line 1
    SQL> exec t_pkg.upd_t(1, 'Way too long for the field');
    BEGIN t_pkg.upd_t(1, 'Way too long for the field'); END;
    ERROR at line 1:
    ORA-20003: now I'm really confused
    ORA-06512: at "OPS$ORACLE.T_PKG", line 32
    ORA-06512: at line 1TTFN
    John
    P.S. 3360, thanks for the IM error message, I just might use it.

  • Hnadling sql error messages in forms

    Hi there,
    I have a multi block application. I have a check constraint in the database which checks for value > 0 and not null.
    Now in the form if i try to insert/update a null into the column, i get FRM-40735 Onerror raised unhandled exception. When i click on Display error it shows the constraint violated. I want to show the constraint when user clicks on save button i.e commits form.
    In the on error trigger, both block and form level i have
    DECLARE
         lv_errcod NUMBER := ERROR_CODE;
         lv_errtyp VARCHAR2(300) := ERROR_TYPE;
         lv_errtxt VARCHAR2(800) := ERROR_TEXT;
    BEGIN
    if lv_errcod = 40509 or 40508 then
              message(' bad update');
    else     
    Message(lv_errtyp||'-'||to_char(lv_errcod)||': '||lv_errtxt);
         Raise form_trigger_failure;
    end if;
    END;
    I dunno why i get unhandled exception.
    Any help is appreciated.
    Thanks

    I'm not sure what your question is but if it's how to get the same error as
    display error, then put in:
    display_error in an on_error trigger on the block(s):
    for example on_error trigger:
    declare
         errnum number := ERROR_CODE;
         errtxt varchar2(80) := ERROR_TEXT;
         errtype varchar2(3) := ERROR_TYPE;
         field_name varchar2(30);
    begin
         field_name := substr(:system.trigger_field,instr(:system.trigger_field,'.') + 1);
         mess( 'ERROR ' || field_name || ': ' ||errtxt);
         display_error;
         raise form_trigger_failure;
         end;
    **** mess is a routine I include for which you need to define an alert of style NOTE.
    PROCEDURE mess (mymess varchar2) is
    alert_value number;
    BEGIN
    set_alert_property('DATA_ALERT',ALERT_MESSAGE_TEXT,
    mymess);
         synchronize;
         bell;
         alert_value := SHOW_ALERT('DATA_ALERT');
    END;

  • @/vobs/oracle/rdbms/admin/catproc.sql  error message

    After setting up 9i DB manually when i ran this script all went well with few errors , i am wondering these errors are ignoreable ....
    @/vobs/oracle/rdbms/admin/catproc.sql
    Grant succeeded.
    drop package body sys.diana
    ERROR at line 1:
    ORA-04043: object DIANA does not exist
    drop package sys.diana
    ERROR at line 1:
    ORA-04043: object DIANA does not exist
    Package created.
    Package body created.
    drop package body sys.diutil
    ERROR at line 1:
    ORA-04043: object DIUTIL does not exist
    drop package sys.diutil
    ERROR at line 1:
    ORA-04043: object DIUTIL does not exist
    Package created.
    ERROR at line 1:
    ORA-04043: object PSTUBT does not exist
    Procedure created.
    Grant succeeded.
    drop procedure sys.pstub
    ERROR at line 1:
    ERROR at line 1:
    ORA-04043: object SUBPTXT2 does not exist
    Procedure created.
    drop procedure sys.subptxt
    ERROR at line 1:
    ORA-04043: object SUBPTXT does not exist
    ERROR at line 1:
    ORA-04043: object DBMS_XPLAN_TYPE_TABLE does not exist
    drop type dbms_xplan_type
    ERROR at line 1:
    ORA-04043: object DBMS_XPLAN_TYPE does not exist
    Type created.
    ERROR at line 1:
    ORA-00942: table or view does not exist
    DROP TABLE ODCI_WARNINGS$
    ERROR at line 1:
    ORA-00942: table or view does not exist
    Type created.
    Table truncated.
    drop sequence dbms_lock_id
    ERROR at line 1:
    ORA-02289: sequence does not exist
    Sequence created.
    drop table SYSTEM.AQ$_Internet_Agent_Privs
    ERROR at line 1:
    ORA-00942: table or view does not exist
    drop table SYSTEM.AQ$_Internet_Agents
    ERROR at line 1:
    ORA-00942: table or view does not exist
    Table created.
    DROP SYNONYM def$_tran
    ERROR at line 1:
    ORA-01434: private synonym to be dropped does not exist
    DROP SYNONYM def$_call
    ERROR at line 1:
    ORA-01434: private synonym to be dropped does not exist
    DROP SYNONYM def$_defaultdest
    ERROR at line 1:
    DROP TYPE SYS.ExplainMVMessage FORCE
    ERROR at line 1:
    ORA-04043: object EXPLAINMVMESSAGE does not exist
    Type created.
    drop view sys.transport_set_violations
    ERROR at line 1:
    ORA-00942: table or view does not exist
    PL/SQL procedure successfully completed.
    drop table sys.transts_error$
    ERROR at line 1:
    ORA-00942: table or view does not exist
    drop operator XMLSequence
    ERROR at line 1:
    ORA-29807: specified operator does not exist
    drop function XMLSequenceFromXMLType
    ERROR at line 1:
    ORA-04043: object XMLSEQUENCEFROMXMLTYPE does not exist
    drop function XMLSequenceFromRefCursor
    ERROR at line 1:
    drop function XMLSequenceFromRefCursor2
    ERROR at line 1:
    ORA-04043: object XMLSEQUENCEFROMREFCURSOR2 does not exist
    drop type XMLSeq_Imp_t
    ERROR at line 1:
    ORA-04043: object XMLSEQ_IMP_T does not exist
    drop type XMLSeqCur_Imp_t
    ERROR at line 1:
    ORA-04043: object KU$_IND_PART_T does not exist
    drop type ku$_ind_part_list_t force
    ERROR at line 1:
    ORA-04043: object KU$_IND_PART_LIST_T does not exist
    drop type ku$_piot_part_t force
    ERROR at line 1:
    Grant succeeded.
    Synonym created.
    Grant succeeded.
    Package altered.
    Package altered.
    PL/SQL procedure successfully completed.

    These errors are ignorable, Oracle just trying to drop the package before creating them. If this is the first time you run catproc.sql, the errors are expected.

  • SQL error message - help

    On our new install when I try to start the DB with either dbstart or sqlplus I get the following error:
    SQLPlus : error while loading shared libraries
    /usr/opt/oracle/product/9.2.0/libclntsh.so.9.0 ; invalid ELF header.
    We have Oracle 9 on RH linux 8
    Any ideas?
    Thanks

    this indicates a corrupted ORACLE client library. please reinstall or contact customer service.

  • Error message in triggers

    i hav created a trigger which does not allow to delete rows on a particular day of the week. in the trigger body i hav given the raise_application_error with a user defined error number . now when somebody tries to delete a row on that day the the trigger is fired , it gives the error message 'cannot delete on this day with the appropriate user exception numberr.
    But after taht it also gives 2 more error codes (error number 6512 and 4088) . why r these generated. This happens only when i use the raise_application_error.

    Hi,
    ORA - 06512 is a PL/SQL Error Message.
    It is possible that your trigger is raising
    another exception other then the User Defined.
    (Try using SQLERRM and SQLCODE to catch this exception ).
    ORA - 04088 is a Trigger Error Message.
    This error is generated becuase of the above error. This is a Runtime error which occurs during the execution of a Trigger
    HTH
    Naresh
    null

  • 'ora-' error messages

    We're using 6i, and I'm trying to find the pl/sql error messages, such as ORA-04098. I can never seem to find these and searching on them is no help. Can you point me in the right direction?
    Thanks,
    Tom

    Oracle's messages are listed in the 'Oracle9i Database Error Messages' manual. Also available at:
    http://download-west.oracle.com/docs/cd/B10501_01/nav/docindex.htm

  • Related to the '40508' PL/SQL Error

    WHEN I DELETE A RECORD IN THE RUNTIME , IT SHOWS THE '40508' PL/SQL ERROR MESSAGE, WICH SAYS THAT I CAN'T TO INSERT INTO ANY TABLE, BUT I'M NOT INSERTING ANY RECORD IN THAT TRANSACTION, I'M DELETING.
    IT HAPPENS WHEN I OPEN A QUERY INTO A GRID LINK TO THE DATA BASE.
    I WONDER ?WHY IT HAPPENS?.
    null

    Is there a trigger for delete on the table you delete from? That one might try to insert something in a table and that record doesn't respect the constrtaints.
    Or is there some trigger within your form that tryes to insert something somewhere.
    Or have you by mistake created some records in your form before deleting? If that is the case, then FORMS sees those records as records to be inserted and, by default, attempts an insert, that, in your case happens to fail for some reasons.
    Best of luck,
    BD

  • Exclude ORA-06512 from error message

    Hi all,
    Lets have a simple example:
    declare
    EXP_FRZN_VER EXCEPTION;
    begin
    if (1=1) then
    raise EXP_FRZN_VER;
    end if;
    exception
    when EXP_FRZN_VER then
    raise_application_error (-20303, 'Frozen version cannot be modified!');
    when OTHERS then
    dbms_output.put_line('TEST');
    end;
    I want to send error message to my web application through raise_application_error.
    Error message looks like:
    Error report:
    ORA-20303: Frozen version cannot be modified!
    ORA-06512: at line 12
    Question: Is there a way to exclude string "ORA-06512: at line 12" from that message? I need to handle it on DB side...
    Thanks
    Finec

    Your calling code shouldn't get that line as you haven't passed back the error stack in your raise_application_error...
    e.g.
    SQL> ed
    Wrote file afiedt.buf
      1  declare
      2    EXP_FRZN_VER EXCEPTION;
      3    v_err varchar2(200);
      4    procedure x is
      5    begin
      6      if (1=1) then
      7        raise EXP_FRZN_VER;
      8      end if;
      9    exception
    10      when EXP_FRZN_VER then
    11        raise_application_error (-20303, 'Frozen version cannot be modified!');
    12    end;
    13  begin
    14    x;
    15  exception
    16    when others then
    17      v_err := SQLERRM;
    18      dbms_output.put_line('Error Message received is actually: '||v_err);
    19* end;
    SQL> /
    Error Message received is actually: ORA-20303: Frozen version cannot be modified!
    PL/SQL procedure successfully completed.If you did pass back the whole stack, then you'd get the whole thing...
    SQL> ed
    Wrote file afiedt.buf
      1  declare
      2    EXP_FRZN_VER EXCEPTION;
      3    v_err varchar2(200);
      4    procedure x is
      5    begin
      6      if (1=1) then
      7        raise EXP_FRZN_VER;
      8      end if;
      9    exception
    10      when EXP_FRZN_VER then
    11        raise_application_error (-20303, 'Frozen version cannot be modified!', true); -- pass back whole error stack
    12    end;
    13  begin
    14    x;
    15  exception
    16    when others then
    17      v_err := SQLERRM;
    18      dbms_output.put_line('Error Message received is actually: '||v_err);
    19* end;
    SQL> /
    Error Message received is actually: ORA-20303: Frozen version cannot be modified!
    ORA-06512: at line 11
    ORA-06510: PL/SQL: unhandled user-defined exception
    PL/SQL procedure successfully completed.

  • Logging SQL error

    I want to create a permanent file (SQLError.log) where i will be logging all SQL error messages. How can I designate such a file in my code and how to write to it?
    Thanks

    well you could write a class something like this:
    public class MySQLLog {
    static String filename = "\logs\sql.log";
    public static logError(String err)
    File f = new File(filename);
    if( !f.exists() )
    f.createNewFile();
    FileOutputStream fos = new FileOutputStream(f.toString(),true);
    fos.write(err.getBytes());
    fod.close();
    of course you should probably get the file name from a props file instead of hard coding it. the problem here is you have no log file roll over and other nice features you get with logging packages.

  • Need help to debug SQL Tuning Advisor Error Message

    Hi,
    I am getting an error message while try to get recommendations from the SQL Tuning Advisor.
    Environment:
    Oracle Version:  11.2.0.3.0
    O/S: AIX
    Following is my code:
    declare
    my_task_name  varchar2 (30);
    my_sqltext    clob;
    begin
    my_sqltext := 'SELECT DISTINCT MRKT_AREA AS DIVISION, PROMO_ID,
                    PROMO_CODE,
                    RBR_DTL_TYPE.PERF_DETL_TYP, 
                    RBR_DTL_TYPE.PERF_DETL_DESC,
                    RBR_DTL_TYPE.PERF_DETL_SUB_TYP,
                    RBR_DTL_TYPE.PERF_DETL_SUB_DESC,
                    BU_SYS_ITM_NUM,
                    RBR_CPN_LOC_ITEM_ARCHIVE.CLI_SYS_ITM_DESC,
                    PROMO_START_DATE,
                    PROMO_END_DATE,
                    PROMO_VALUE2,
                    PROMO_VALUE1,
                    EXEC_COMMENTS,
                    PAGE_NUM,
                    BLOCK_NUM,
                    AD_PLACEMENT,
                    BUYER_CODE,
                    RBR_CPN_LOC_ITEM_ARCHIVE.CLI_STAT_TYP,
                    RBR_MASTER_CAL_ARCHIVE.STATUS_FLAG
    FROM  (PROMO_REPT_OWNER.RBR_CPN_LOC_ITEM_ARCHIVE
    INNER JOIN PROMO_REPT_OWNER.RBR_MASTER_CAL_ARCHIVE
    ON (RBR_CPN_LOC_ITEM_ARCHIVE.CLI_PROMO_ID = PROMO_ID)
    AND (RBR_CPN_LOC_ITEM_ARCHIVE.CLI_PERF_DTL_ID = PERF_DETAIL_ID)
    AND (RBR_CPN_LOC_ITEM_ARCHIVE.CLI_STR_NBR = STORE_ZONE)
    AND (RBR_CPN_LOC_ITEM_ARCHIVE.CLI_ITM_ID = ITM_ID))
    INNER JOIN PROMO_REPT_OWNER.RBR_DTL_TYPE
    ON (RBR_MASTER_CAL_ARCHIVE.PERF_DETL_TYP = RBR_DTL_TYPE.PERF_DETL_TYP)
    AND (RBR_MASTER_CAL_ARCHIVE.PERF_DETL_SUB_TYP = RBR_DTL_TYPE.PERF_DETL_SUB_TYP)
    WHERE ( ((MRKT_AREA)=40)
    AND ((RBR_DTL_TYPE.PERF_DETL_TYP)=1)
    AND ((RBR_DTL_TYPE.PERF_DETL_SUB_TYP)=1) )
    AND ((CLI_STAT_TYP)=1 Or (CLI_STAT_TYP)=6)
    AND ((RBR_MASTER_CAL_ARCHIVE.STATUS_FLAG)=''A'')
    AND ( ((PROMO_START_DATE) >= to_date(''2011-10-20'', ''YYYY-MM-DD'')
    And (PROMO_END_DATE) <= to_date(''2011-10-26'', ''YYYY-MM-DD'')) )
    ORDER BY MRKT_AREA';
    my_task_name := dbms_sqltune.create_tuning_task
                                 (sql_text => my_sqltext,
                                  user_name => 'PROMO_REPT_OWNER',
                                  scope     => 'COMPREHENSIVE',
                                  time_limit => 3600,
                                  task_name  => 'Test_Query',
                                  description  => 'Test Query');
    end;
    begin
      dbms_sqltune.execute_tuning_task(task_name => 'Test_Query');
    end;
    set serveroutput on size unlimited;
    set pagesize 5000
    set linesize 130
    set long 50000
    set longchunksize 500000
    SELECT DBMS_SQLTUNE.REPORT_TUNING_TASK('Test_Query') FROM DUAL;
    Output:
    snippet .....
    FINDINGS SECTION (1 finding)
    1- Index Finding (see explain plans section below)
    The execution plan of this statement can be improved by creating one or more
    indices.
    Recommendation (estimated benefit: 71.48%)
    - Consider running the Access Advisor to improve the physical schema design
    or creating the recommended index.
    Error: Cannot fetch actions for recommendation: INDEX
    Error: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    Rationale
    Creating the recommended indices significantly improves the execution plan
    of this statement. However, it might be preferable to run "Access Advisor"
    using a representative SQL workload as opposed to a single statement. This
    will allow to get comprehensive index recommendations which takes into
    account index maintenance overhead and additional space consumption.
    snippet
    Any ideas why I am getting ORA-06502 error?
    Thanks in advance
    Rogers

    Bug 14407401 - ORA-6502 from index recommendation section of DBMS_SQLTUNE output (Doc ID 14407401.8)
    Fixed:
    The fix for 14407401 is first included in
    12.1.0.1 (Base Release)

  • Sql@loader-704  and ORA-12154: error messages when trying to load data with SQL Loader

    I have a data base with two tables that is used by Apex 4.2. One table has 800,000 records . The other has 7 million records
    The client recently upgraded from Apex 3.2 to Apex 4.2 . We exported/imported the data to the new location with no problems
    The source of the data is an old mainframe system; I needed to make changes to the source data and then load the tables.
    The first time I loaded the data i did it from a command line with SQL loader
    Now when I try to load the data I get this message:
    sql@loader-704 Internal error: ulconnect OCISERVERATTACH
    ORA-12154: tns:could not resolve the connect identifier specified
    I've searched for postings on these error message and they all seem to say that SQL Ldr can't find my TNSNAMES file.
    I am able to  connect and load data with SQL Developer; so SQL developer is able to find the TNSNAMES file
    However SQL Developer will not let me load a file this big
    I have also tried to load the file within Apex  (SQL Workshop/ Utilities) but again, the file is too big.
    So it seems like SQL Loader is the only option
    I did find one post online that said to set an environment variable with the path to the TNSNAMES file, but that didn't work..
    Not sure what else to try or where to look
    thanks

    Hi,
    You must have more than one tnsnames file or multiple installations of oracle. What i suggest you do (as I'm sure will be mentioned in ed's link that you were already pointed at) is the following (* i assume you are on windows?)
    open a command prompt
    set TNS_ADMIN=PATH_TO_DIRECTOT_THAT_CONTAINS_CORRECT_TNSNAMES_FILE (i.e. something like set TNS_ADMIN=c:\oracle\network\admin)
    This will tell oracle use the config files you find here and no others
    then try sqlldr user/pass@db (in the same dos window)
    see if that connects and let us know.
    Cheers,
    Harry
    http://dbaharrison.blogspot.com

  • Error message in TRFC 'An SQL error occurred when accessing a table'

    Hi all,
    Can any one tell what this below error message is about in while go into TRFC
    'An SQL error occurred when accessing a table'.
    and please tell me how to solve this problem.

    Hi
    Try to see what all tables are accessed by data source. and see if there is any lock on that..
    If some other job is accessing that table - then there might be lock on that which is causing failure..
    1) Try looking at ST22 dump also..
    2) Try to do RSA3 in R/3 and if see if its is fetching any records or not..
    Hoep it helps
    --SA

Maybe you are looking for

  • Ultrabeat - how to use it as a drum machine ... any ideas / help

    i want to use logic's ultrabeat as a drum machine/sequencer ... are there any manuals online or can anyone offer help? thanks

  • Grouping of PO for same supplier

    Colleagues, I think some of you have already faced this situation. For some categories, PO automatic creation occurs when a contract exists. That's fine for the purchaser but the supplier is getting several PO within a short time periods and would li

  • Document Checkin

    Hi Guys, Am using BAPI  - >   "BAPI_DOCUMENT_CHECKIN2" to checkin a Document When i use this BAPI in R/3 Backend System, the document get"s checked in without any problem. All problem starts when i use this BAPI in External System to checkin Document

  • The use of variants in MS for VC++

    I have a lot of problems programming nidaq components in VC++. My problem is that I have to interact every 10 msec with 16 input channels, 8 output channels, 8 Digital inputs, and 8 digital outputs. The total time may not be longer than 1 msec in tot

  • SSO error in DBACOCKPIT (and others)

    Hi After migrating to Sybase i have a problem with SSO to Webdynpro applications. First of all in DBACOCKPIT, but i can see it´s a general problem not specific to the DBACOCKPIT... If i call program SAPHTML_SSO_DEMO i get error 00(146) saying: Error