DBMS_XMLSAVE - insert - propagateOrginalException - ORA 29540

The use of DBMS_XMLSave.propagateOriginalException causes my insert of an XML row to fail with the following error:
ORA-29540: class oracle/xml/sql/save/OracleXMLStaticSave does not exist
I would like to use the propagateOriginalException and getexceptioncontent procedures so that I can raise simple error messages like ORA-00001 unique constraint violated.
Here is the PL/SQL block:
declare
xml_ins_row1 VARCHAR2(32000) := '<ROWSET><ROW><REG_ID>54398</REG_ID><NAME>SOMEWHERE</NAME><ACTIVE>Y</ACTIVE></ROW></ROWSET>' ;
xml_ins_row2 VARCHAR2(32000) := '<ROWSET><ROW><REG_ID>54399</REG_ID><NAME>SOMEWHERE</NAME><ACTIVE>Y</ACTIVE></ROW></ROWSET>' ;
vn_rows BINARY_INTEGER := 0 ;
saveCtx DBMS_XMLSave.ctxType;
vi_err INTEGER := 0;
vc_msg VARCHAR2(4000) ;
begin
-- set up the save context...!
saveCtx := DBMS_XMLSave.newContext('REGIONS');
DBMS_XMLSave.setRowTag(saveCtx, 'ROW');
DBMS_XMLSave.clearKeyColumnList(saveCtx);
-- set propagate original exception to true to get the original exception..!
-- DBMS_XMLSave.propagateOriginalException(saveCtx, TRUE);
vn_rows := DBMS_XMLSave.insertXML(saveCtx, xml_ins_row1);
DBMS_XMLSave.closeContext(saveCtx) ;
EXCEPTION
WHEN OTHERS THEN
DBMS_XMLSave.getExceptionContent(saveCtx, vi_err, vc_msg);
DBMS_XMLSave.closeContext(saveCtx); -- you must close the context.
DBMS_OUTPUT.PUT_LINE('Error num: ' || TO_CHAR(vi_err)) ;
DBMS_OUTPUT.PUT_LINE('Error msg: ' || vc_msg) ;
end;
Here is the tabledef:
CREATE TABLE REGIONS (      REG_ID NUMBER (38) NOT NULL,
               NAME VARCHAR2 (50) NOT NULL,
               ACTIVE CHAR (1) DEFAULT 'Y' NOT NULL,
               CONSTRAINT REG_ACTIV_001 CHECK (ACTIVE IN ('Y', 'N')) ,
               CONSTRAINT REG_UK1 UNIQUE (NAME) USING INDEX ,
               CONSTRAINT REG_PK PRIMARY KEY ( REG_ID ) USING INDEX )
Thanks in advance for you thoughts!
Mark

It seems to be related to an insert/update for the same context
having different columns with "values" in it.
I have 3 rows. For the AMT column the first row has 151.56,
the second row has 100.00, the third row has .00
The third row fails with this error :
ERROR at line 1:
ORA-06502: PL/SQL: numeric or value error
ORA-06512: at "MTRSTEST.KIM_RTL_XML_PKG", line 150
ORA-29532: Java call terminated by uncaught Java exception:
oracle.xml.sql.OracleXMLSQLException:
Invalid context handle specified.
ORA-06512: at "SYS.DBMS_XMLQUERY", line 170
ORA-06512: at "MTRSTEST.KIM_RTL_XML_PKG", line 193
ORA-29532: Java call terminated by uncaught Java exception:
oracle.xml.sql.OracleXMLSQLException:
Expected 'EOF'.
ORA-06512: at "MTRSTEST.KIM_TEST", line 197
ORA-06512: at line 1
If I change the third row to say 10.00, for example, it works
fine.
We had not been on xdk9 yet, I'm having them install xdk9 and
we'll see if the problem persists.

Similar Messages

  • ORA-29540: class oracle/xquery/OXQServer does not exist

    I'm running 10g and initially had a problem when running XMTABLE that the error :-
    "identifier 'SYS.DBMS_XQUERYINT' must be declared"
    came up when I tried to execute anything relating to XQUERY
    One of our DBAs very kindly looked into this and found the script :-
    "$ORACLE_HOME/rdbms/admin/initxqry.sql"
    This was executed, but now I get the error :-
    ORA-29540: class oracle/xquery/OXQServer does not exist
    Does anyone know what I am still missing out?
    Thanks in anticipation of any advice anyone can offer

    Thanks mdrake, we seem to gradually be getting there.
    One thing I've now come across is :-
    oracle.jdbc.driver.OracleSQLException: ORA-06550: line 1, column 7:
    PLS-00201: identifier 'DBMS_LOB' must be declared
    O
    This is a "demo" trigger that caused this problem :-
    CREATE OR REPLACE TRIGGER xml_inbox_trigger AFTER INSERT ON xmlinbox
    FOR EACH ROW
    DECLARE
    XMLRECORD XMLType;
    BEGIN
    XMLRECORD := :new.XMLDATA;
    INSERT INTO all_children
    (childname) VALUES
    (extractvalue (XMLRECORD, '*/child/name'));
    IF :new.xmlfilename like 'boys%' THEN
    INSERT INTO boys
    (childname) VALUES
    (extractvalue (XMLRECORD, '*/child/name'));
    END IF;
    IF :new.xmlfilename like 'boys%' THEN
    INSERT INTO boys_wishlist SELECT
    childname , artno , description ,price FROM
    XMLTABLE (
    '*/child' passing XMLRECORD
    columns
    childname varchar2(25) path '/name'
    , artno number path '/wishlist/artno'
    , description varchar2(25) path '/wishlist/description'
    , price varchar2(10) path '/wishlist/price'
    END IF;
    IF :new.xmlfilename like 'girls%' THEN
    INSERT INTO girls
    (childname) VALUES
    (extractvalue (XMLRECORD, '*/child/name'));
    END IF;
    END;
    Do you think the above error is caused by something wrong with the above code, or something else wrong with our installation??
    Thank you so much for your continued assistance

  • ORA-29540: class oracle/xml/sql/query/OracleXMLStaticQuery does not exist

    I am getting below error when trying to generate xml. Browsing on google did not help me. I would appreciate if someone can provide the solution.
    SQL> select dbms_xmlquery.getxml('select * from dual', 2) from dual;
    ERROR:
    ORA-29540: class oracle/xml/sql/query/OracleXMLStaticQuery does not exist
    ORA-06512: at "SYS.DBMS_XMLQUERY", line 19
    ORA-06512: at "SYS.DBMS_XMLQUERY", line 271
    ORA-06512: at line 1

    Then it is probably not the case that you are affected by the issue described in Metalink document 185857.1, but if I were you I would check it anyway, since it might be the problem.

  • ORA-29540: class oracle/jpub/runtime/dbws/DbwsProxy does not exist

    Hi ,
    We are getting below error while executing webservice from PL/SQL block. Please help what would be wrong in below code. Thanks in advance.
    ORA-29540: class oracle/jpub/runtime/dbws/DbwsProxy does not exist
    ORA-06512: at "SYS.UTL_DBWS", line 318
    ORA-06512: at "FUSION.ADD_NUMBERS", line 21
    29540. 00000 - "class %s does not exist"
    *Cause:    Java method execution failed to find a class with the indicated name.
    *Action:   Correct the name or add the missing Java class.
    PL/SQL Code
    CREATE OR REPLACE FUNCTION add_numbers (username IN VARCHAR, password IN VARCHAR)
    RETURN NUMBER
    AS
    l_service SYS.UTL_DBWS.service;
    l_call SYS.UTL_DBWS.call;
    l_wsdl_url VARCHAR2(32767);
    l_namespace VARCHAR2(32767);
    l_service_qname SYS.UTL_DBWS.qname;
    l_port_qname SYS.UTL_DBWS.qname;
    l_operation_qname SYS.UTL_DBWS.qname;
    l_xmltype_in SYS.XMLTYPE;
    l_xmltype_out SYS.XMLTYPE;
    l_return NUMBER;
    returnVal BOOLEAN;
    boolean_type_qname sys.utl_dbws.QNAME;
    string_type_qname sys.utl_dbws.QNAME;
    BEGIN
    sys.UTL_DBWS.SET_PROPERTY(l_call,'USERNAME','fusion');
    sys.UTL_DBWS.SET_PROPERTY(l_call,'PASSWORD','fusion');
    l_wsdl_url := 'http://adcdab06.us.oracle.com:10217/xmlpserver/services/PublicReportWSSService?wsdl';
    l_namespace := 'http://xmlns.oracle.com/oxp/service/PublicReportService/';
    l_service_qname := SYS.UTL_DBWS.to_qname(l_namespace, 'PublicReportWSSServiceService');
    l_port_qname := SYS.UTL_DBWS.to_qname(l_namespace, 'PublicReportWSSService');
    l_operation_qname := SYS.UTL_DBWS.to_qname(l_namespace, 'validateLogin');
    l_service := SYS.UTL_DBWS.create_service (URIFACTORY.getURI(l_wsdl_url),l_service_qname);
    l_call := SYS.UTL_DBWS.create_call (l_service,l_port_qname,l_operation_qname);
    sys.utl_dbws.set_target_endpoint_address(l_call, 'http://adcdab06.us.oracle.com:10217/xmlpserver/services/PublicReportWSSService');
    boolean_type_qname :=sys.utl_dbws.to_qname ('http://www.w3.org/2001/XMLSchema', 'boolean');
    string_type_qname :=sys.utl_dbws.to_qname ('http://www.w3.org/2001/XMLSchema', 'string');
    sys.utl_dbws.add_parameter(l_call, 'BI_Admin', string_type_qname, 'ParameterMode.IN');
    sys.utl_dbws.add_parameter(l_call, 'Welcome1', string_type_qname, 'ParameterMode.IN');
    -- sys.utl_dbws.add_parameter (l_call,returnVal,boolean_type_qname,'ParameterMode.OUT');
    sys.utl_dbws.set_return_type (l_call, string_type_qname);
    -- utl_dbws.add_parameter(l_call_, 'ubiNum', string_type_qname, 'ParameterMode.IN');
    --sys.utl_dbws.add_parameter(l_call, 'TEST', string_type_qname, 'ParameterMode.IN');
    --l_xmltype_in := SYS.XMLTYPE('<?xml version="1.0" encoding="utf-8"?>
    --<validateLogin xmlns="' || l_namespace || '">
    --<validateLoginInput>' || p_int_1 || '</validateLoginInput>
    --</validateLogin>');
    l_xmltype_out := SYS.UTL_DBWS.invoke(call_Handle => l_call, request => l_xmltype_in);
    SYS.UTL_DBWS.release_call (call_handle => l_call);
    SYS.UTL_DBWS.release_service (service_handle => l_service);
    dbms_output.put_line('WS Executed successfully...');
    -- l_return := l_xmltype_out.extract('//return/text()').getNumberVal();
    RETURN 11;
    END;
    /

    Check if this helps:
    ORA-29540: class oracle/jpub/runtime/dbws/DbwsProxy does not exist

  • ORA-29540:class oracle/pub/runtime/dbws/DbwsProxy does not exist

    Hi we are getting below error while calling UTl_DBWS package.
    Database version 11.2.0.2
    package definition
    create or replace function xxpvn_ws_test
    return varchar2
    is
      service_           sys.utl_dbws.SERVICE;
      call_              sys.utl_dbws.CALL;
      service_qname      sys.utl_dbws.QNAME;
      port_qname         sys.utl_dbws.QNAME;
      xoperation_qname   sys.utl_dbws.QNAME;
      xstring_type_qname sys.utl_dbws.QNAME;
      response           sys.xmltype;
      request            sys.xmltype;
    begin
      service_qname := sys.utl_dbws.to_qname(null, 'getJoke');
      service_ := sys.utl_dbws.create_service(service_qname);
      call_ := sys.utl_dbws.create_call(service_);
      sys.utl_dbws.set_target_endpoint_address(call_, 'http://interpressfact.net/webservices/getjoke.asmx');
      sys.utl_dbws.set_property( call_, 'SOAPACTION_USE', 'TRUE');
      sys.utl_dbws.set_property( call_, 'SOAPACTION_URI', 'http://interpressfact.net/webservices/getJoke');
      sys.utl_dbws.set_property( call_, 'OPERATION_STYLE', 'document');
      request := sys.xmltype(
           '<getJoke xmlns="http://interpressfact.net/webservices/">'
        || '<Category>Excuses-10</Category>'
        || '</getJoke>');
      response :=sys. utl_dbws.invoke(call_, request);
      return response.extract('//getJokeResult/child::text()',
        'xmlns="http://interpressfact.net/webservices/"').getstringval();
    end ;error message
    SQL> select xxpvn_ws_test from dual;
    select xxpvn_ws_test from dual
    ERROR at line 1:
    ORA-29540: class oracle/jpub/runtime/dbws/DbwsProxy does not exist
    ORA-06512: at "SYS.UTL_DBWS", line 144
    ORA-06512: at "SYS.XXPVN_WS_TEST", line 14
    Thanks
    Jitendra

    This error related to jave since its not installed in database user schema
    Logout of sqlplus and run:
    loadjava -u / -r -v -f -s -grant public -genmissing dbwsclientws.jar dbwsclientdb102.jar
    Check this
    https://kr.forums.oracle.com/forums/thread.jspa?threadID=2264325

  • ORA-29540 during full database export

    Hi,
    Anyone encounter this error ORA-29540 during full database export. Have check out the web site for solution. Have check that the init file compatible is set to 8.1.0, the public synonym dba_java is been removed. However after the above remedies, the problem still occured. My database version is 8.1.5. Please let me know if there is other solution to this problem.
    Thank You ...
    regards,
    lbs

    Hi,
    Thanks...Any idea how to check whether the installation for the initjvm.sql is successful. cos I just took over from the previous DBA and he too have no idea...
    Thank You..

  • Fnd_web_sec.validate_login returns ORA-29540

    Hi guys,
    when i'am executing
    select fnd_web_sec.validate_login('user123', 'pass123')
    from dual;
    with 'apps' DB user every thing works well and i get 'Y' as a result for the query.
    now i have new DB user 'XX'
    when i login using user 'XX and executing
    select fnd_web_sec.validate_login('user123', 'pass123')
    from dual;
    i get 'N' as a result for the query.
    so i run the following query
    select fnd_message.get from dual;
    and the message i got is :
    Oracle error -29540: ORA-29540: class oracle/apps/fnd/security/WebSessionManagerProc does not exist has been detected in FND_WEB_SEC.VALIDATE_LOGIN(u,p).
    obviously there is no problem with the class since it works with 'apps' user so i suspect
    it's a privileges issue.
    thx in advance for anyone who helps.

    Issue was solved by creating the following synonyms under the Required User :
    create synonym fnd_languages for apps.fnd_languages;
    create synonym fnd_user for apps.fnd_user;
    create synonym fnd_application for apps.fnd_application;
    create synonym fnd_lookup_types for apps.fnd_lookup_types;
    create synonym fnd_product_groups for apps.fnd_product_groups;
    create synonym fnd_web_sec for apps.fnd_web_sec;
    CREATE SYNONYM FND_USER_PREFERENCES FOR APPS.FND_USER_PREFERENCES;
    CREATE SYNONYM FND_USER_PREFERENCE FOR "APPLSYS"."FND_USER_PREFERENCES";
    Best regards,
    Ahmed Shokry

  • Error ORA-29540

    Hi,
    I tried to send email with stored procedure.
    It run correctly just I connect with system/manager.
    If I change user/password don't run my procedure and I see this error:
    ERROR at line 1:
    ORA-29540: class oracle/plsql/net/TCPConnection does not exist
    ORA-06512: at "SYS.UTL_TCP", line 533
    ORA-06512: at "SYS.UTL_TCP", line 199
    ORA-06512: at "SYS.UTL_SMTP", line 99
    ORA-06512: at "SYS.UTL_SMTP", line 121
    ORA-06512: at "AFM.SPEDISCI_MAIL", line 17
    ORA-06512: at line 1
    is normal???
    i run this scripts (as internal/oracle - sys/change_on_install - myuser/password):
    @c:\oracle\ora81\rdbms\admin\initplsj.sql
    @c:\oracle\ora81\j avavm\install\initjvm.sql
    @c:\oracle\ora81\javavm\install\init_security.sql
    thanks!!!
    Raffaele

    According to Tom Kyte, some of the installer scripts fail to load the needed jar file for TCP/IP support in PLSQL. It looks like that is your problem. To solve the problem:
    cd plsql/jlib
    loadjava -user sys/password plsql.jar

  • ORa-29540

    I am trying to set up JVM and getting errors
    'ORa-29540 class oracle/aurora/server/tools/loadjava' does not exist.
    db ver : 8.1.7 on Win 2000
    Any ideas,

    The error:
    29540, 00000, "class %s does not exist"
    // *Cause: Java method execution failed to find a class with the indicated name.
    // *Action: Correct the name or add the missing Java class.The missing class name should have been in the original error message. What do you get when you query:
    select object_name, owner
    from all_objects
    where object_type='JAVA CLASS' and
          object_name = <class name from error message>John

  • Installing JVM - ORA-29540:

    When I run the jvminst I get the following error:
    "ORA-29540: class
    oracle/aurora/rdbms/security/PolicyTableManager does not exist"
    I have read what I can on what may cause this and have upped the
    Java pool to 100MB and the shared pool to over 100MB and
    restarted the database but still get this error. There is a
    120MB free on the tablespace SYSTEM and this is driving me nuts!
    Can anyone help me? I am running 8.1.6 on HP-UX V11.
    Thanks,
    Robert

    Hi Robert,
    Did you get this one resolved? I'm having a similar problem when running INITJVM.SQL on Oracle 8.1.7 on NT and would be interested in knowing the answer to the problem.
    Darren.

  • Send mail with pl/sql error ORA -29540

    Hi everybody
    I try to use a procedure to send emails. I've got the procedure here in this forum from Kiron Rao (thanks). When I execute this procedure I get this error message :
    [1]: (Error): ORA-29540: class oracle/plsql/net/TCPConnection does not exist ORA-06512: at line 8
    any idea ?
    here is the script :
    CREATE PROCEDURE MAILTEST
    IS
    conn UTL_SMTP.CONNECTION;
    mailhost VARCHAR2(64) := 'mailhost.server.com';
    abcd VARCHAR2( 2 ):= CHR( 13 ) || CHR( 10 );
    mesg VARCHAR2(4000);
    usrname VARCHAR2(30);
    usraddr VARCHAR2(100);
    subj VARCHAR2(100);
    body_of_msg VARCHAR2(100);
    recaddr VARCHAR2(100);
    BEGIN
    usrname:= 'Alain Smaili';
    usraddr:= '[email protected]';
    recaddr:= '[email protected]';
    subj:= 'This is a PL/SQL Email Test';
    body_of_msg := '<HTML><BODY><B><I>This is a PL/SQL Email Test from oradb1p</I></B></BODY></HTML>';
    mesg:= 'Date: ' || TO_CHAR(SYSDATE, 'dd Mon yy hh24:mi:ss') || utl_tcp.crlf ||
    'From: ' || usrname || ' <' || usraddr || '>' || utl_tcp.crlf ||
    'Subject: ' || subj || utl_tcp.crlf ||
    'Content-Type: text/html' || utl_tcp.crlf ||
    'X-Priority: 1' || utl_tcp.crlf ||
    'Return-Receipt-To: [email protected]' || utl_tcp.crlf;
    mesg:= mesg || utl_tcp.crlf || body_of_msg;
    conn:= utl_smtp.open_connection(mailhost, 25);
    utl_smtp.helo(conn,mailhost);
    utl_smtp.mail(conn, usraddr);
    utl_smtp.rcpt(conn,recaddr);
    utl_smtp.data(conn, mesg);
    utl_smtp.quit(conn);
    EXCEPTION
    WHEN others THEN
    RAISE;
    END;

    Some of the class files are missing ? did U load plssql.jar files succesfully?
    Cehck the asktom.oracle.com site for more detailed information regarding this error
    Ashok

  • AFTER INSERT TIGGER, ora-01403: no data found error

    Hi all,
    I'm trying to create a fairly simple trigger which fires after an insert on a table.
    The trigger is based on a function, defined within a package. The function is as follows...
    FUNCTION check_contract_length (V_playerId IN NUMBER)
    RETURN BOOLEAN
    IS
    months NUMBER;
    months2 NUMBER;
    BEGIN
    SELECT months_between(contract_end, contract_start), contract_length
    INTO months, months2
    FROM player
    WHERE playerId = v_playerId;
    IF months <> months2 THEN
    RETURN (true);
    END IF;
    RETURN (false);
    END check_contract_length;The trigger operates when an insert is made on to the player table, it as defined as follows...
    CREATE OR REPLACE TRIGGER play_ins_con
    AFTER INSERT ON player
    FOR EACH ROW
    DECLARE
    isover BOOLEAN;
    BEGIN
    IF INSERTING THEN
    isover := player_constr_pkg.check_contract_length(:new.playerId);
    IF isover THEN
    RAISE_APPLICATION_ERROR(-30001, 'Contract length incorrect');
    END IF;
    END IF;
    END play_ins_con;My problem is, is that every time I try to insert a row into the player table, the trigger fires and produces a "ora-01403: no data found" error. I was under the impression that as the trigger fires after an insert, this shouldn't be a problem.
    I'm also aware that this constraint can probably be implemented using a CHECK constraint, however it would be a learning curve for me to work it out this way.
    Any help would be much appreciated!!
    Cheers guys.

    I'm also aware that this constraint can probably be implemented using a CHECK constraint,
    however it would be a learning curve for me to work it out this way.Starting out by doing stuff the wrong way only increases the learning curve when it comes to doing things the right way. A check constraint is definitely the best way of doing it. However, if you must do it with a trigger this is the way to go:
    CREATE OR REPLACE TRIGGER play_ins_con BEFORE INSERT ON player
    FOR EACH ROW
    BEGIN
        IF months_between(:NEW.contract_end, :NEW.contract_start) <> :NEW.contract_length
        THEN
            RAISE_APPLICATION_ERROR(-30001, 'Contract length incorrect');
        END IF;
    END play_ins_con;
    /Incidentally, as CONTRACT_LENGTH is wholly derivable from the other columns your table structure is obviously insufficiently normalised.
    Also, note that only errors between -20999 and -20000 are reserved for our use. Any other number may be used by Oracle for its own purposes.
    Cheers, APC

  • Loading data into XMLType column using dbms_xmlsave.insertxml get ORA-29532

    The following simple test case succeeded in 9.2.0.1 but failed in 9.2.0.2.
    CREATE OR REPLACE procedure InsertXML(xmlDoc IN VARCHAR2, tableName IN VARCHAR2) is
    insCtx DBMS_XMLSave.ctxType;
    rows number;
    begin
    insCtx := DBMS_XMLSave.newContext(tableName); -- get the context handle
    rows := DBMS_XMLSave.insertXML(insCtx,xmlDoc); -- this inserts the document
    dbms_output.put_line(to_char(rows) || ' rows inserted');
    DBMS_XMLSave.closeContext(insCtx); -- this closes the handle
    end;
    CREATE TABLE XMLtable
    (column1 xmltype)
    exec insertxml('<?xml version = "1.0"?><ROWSET><ROW><COLUMN1><TEST>HELLO</TEST></COLUMN1></ROW></ROWSET>', 'XMLTABLE');

    Hi,
    For your XML file I think you just need to enclose XML elemnts in ROWSET AND ROW TAGS - so xml should look like :
    <ROWSET>
    <ROW>
    <DEPT>
    </DEPT>
    and just pass it as CLOB to dbms_xmlsave.insertXML proc.
    I hope it should work.
    I am also trying to insert XML file but with a bit complex structure having multiple nested elements.
    I am not sure how to transform the external XML file to wrap it in ROWSET/ROW using XSLT. It's mandatory to use ROWSET/ROW tags to be able to insert in oracle tables. I am facing this problem right now. I am using object views to accomplish the purpose but still needs to figure out the way to apply stylesheet to incoming XML file.
    If you come to know of any way, pls do let me know also.
    Thanks

  • Rawtohex  - How to Insert ? ORA-12899: value too large for column

    Hi,
    Can any one please help me to resolve the following issue ?
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    Name Null? Type
    ABC_OID NOT NULL RAW(8)
    ABC_NAME NOT NULL VARCHAR2(30 CHAR)
    UPDATE_TIME NOT NULL DATE
    UPDATE_BY_WORKER_NO NOT NULL NUMBER
    I'm able to insert 1st 2 records but when am inseerting 3rd one am getting error:-
    insert into caps.ABC_LOOKUP values( rawtohex('SERIES'), 'SERIES','19-FEB-09','1065449')
    insert into caps.ABC_LOOKUP values(rawtohex('FAMILY'),'FAMILY','19-FEB-09','1065449')
    Insert into caps.ABC_LOOKUP values(rawtohex('CONNECTOR'),'CONNECTOR','19-FEB-09','1065449')
    ERROR at line 1:
    ORA-12899: value too large for column
    "XYZ"."ABC_LOOKUP"."ABC_OID" (actual: 9, maximum: 8)
    Thanks in Advance.....

    Yes, Done...
    Actually I suggested same thing to them (application), But they did not agree with me then i got confused :-)
    Now the same thing worked well..Thanks a lot for your time

  • Cannot insert PS_TXN ORA-00942 table or view does not exist

    We are using jdev 11.1.1.4.0
    We have two users in the database and various application modules which connect to these users using datasources
    We have tested the application with applicatin module pooling enabled off to test for passivation and activation errors and the application works fine.
    Also on our internal test enviorment which has more then 10 concurrent users the application works fine
    But at UAT it has started suddenly to give errors Cannot insert in PS_TXN ORA-00942 table or view does not exist
    When I see the data in PS_TXN tables in various users I can see that passivation has taken place for the same day when there sporadic errors have been reported all having the cause as ORA-00942 table or view does not exist.
    But one strange thing that I have observed is that the COLLID column has sequence numbers interchanged for the users randomly, database user 1 has sequence number from database user 2 seq and vice a versa in COLLID
    As far as this problem goes the passivation should have failed with ORA-00001 primary key voilated but that is not the case
    May be the keys have still not got to a number where they collide.
    But I am totally taken aback on such a behaviour and I am not sure how to correct it.
    So we have two porblems here
    1) why did this error come in first place PS_TXN ORA-00942 table or view does not exist
    2) Why are the sequence numbers interchanged for the databse users ?
    Edited by: user3067156 on Jun 19, 2012 3:12 AM

    I got reply to my second question
    It looks like a bug in the framework and the suggestions are to use only one ps_txn and ps_txn_seq by modifying the internal connection
    But the first problem is not yet known why did it appear suddenly
    Edited by: user3067156 on Jun 19, 2012 3:12 AM

Maybe you are looking for