Ora-22950 OBIEE OE.CUST_ADDRESS_TYP OBJECT

Hi,
I'm working with OBIEE with OE(orders Entry) scheme. In the phisical layer of the administration tool, the customers table have a column named CUST_ADRESS and this
column is an OE.CUST_ADDRESS_TYP object, what can I do to populate this column? becouse when I select the update row count option, the admin tool give me this error:
*ORA-22950: cannot ORDER objects without MAP or ORDER method at OCI call OCIStmtExecute. [nQSError: 17010] SQL statement preparation failed. (HY000)....*
Thanks

Hi,
I'm working with OBIEE with OE(orders Entry) scheme. In the phisical layer of the administration tool, the customers table have a column named CUST_ADRESS and this
column is an OE.CUST_ADDRESS_TYP object, what can I do to populate this column? becouse when I select the update row count option, the admin tool give me this error:
*ORA-22950: cannot ORDER objects without MAP or ORDER method at OCI call OCIStmtExecute. [nQSError: 17010] SQL statement preparation failed. (HY000)....*
Thanks

Similar Messages

  • ODI-1228: ORA-22950: cannot ORDER objects without MAP or ORDER method

    Simple interface between two schemas in the same oracle database (10g)
    I am trying to copy one table and do one simple lookup (in a table located in 3rd schema on the same database)
    Integration task fails on
    ODI-1228: Task messagexml_document (Integration) fails on the target ORACLE connection S2_P1.
    Caused By: java.sql.SQLException: ORA-22950: cannot ORDER objects without MAP or ORDER method
    Can anybody tell me, what I am doing wrong? Code that generate this error is just a simple INSERT with SELECT and sub SELECT with JOIN?
    I just can't find anything about this error.
    I'm stuck :-(

    I discovered that one of my fields is an XMLType field and is a part of comparison ODI do when it tries to do incremental update. The error message here is just a message from db that it can't compare XMLType fields to each other.
    Is there any way to learn ODI to not to compare by XMLType field?

  • ORA-22950 when selecting geometry and using union

    Any query where results are UNIONed where an sdo_geometry is in the selection list (such as the one below) gives me "ORA-22950 cannot ORDER objects without MAP or ORDER method".
    select p.point_id id, p.geom from point p
    union
    select l.line_id id, l.geom from line l
    Perhaps it's possible to define a map or order method for sdo_geometry (or perhaps not), but I don't want to order by geometry.
    I'm running this within SQL Plus (either 8.1.5.0.0 or 8.1.6.0.0 will do it)
    and am connecting to
    "Oracle8i Enterprise Edition Release 8.1.6.0.0 - Production
    With the Partitioning option
    JServer Release 8.1.6.0.0 - Production"
    I tried adding an order by clause to order by id, to no effect.
    Any ideas?

    Hi Ben,
    The use of the union operator tells Oracle only to return a unique set of rows, hence a sort is done (in this case attempted, since there is no geometry sorting routine).
    If you choose union all, then no sort will be attempted.
    Hope this helps,
    dan

  • Ora-22950 when comparing XML

    Hi,
    I want to compare two tables for differences using MINUS, but this does an implicit ORDER BY. So I get the error:
    ORA-22950: cannot ORDER objects without MAP or ORDER method
    Does anyone know how to get round this ? Convering to CLOB (col1.getclobval()) also doesn't work:
    CREATE TABLE dunc1 (col1 XMLTYPE);
    CREATE TABLE dunc2 (col1 XMLTYPE);
    SELECT col1 FROM dunc1
    MINUS
    SELECT col1 FROM dunc2;
    TIA, Duncan

    Hi
    I get the same error (ORA-22950: cannot ORDER objects without MAP or ORDER method) when I try to fetch values from individual nodes in xmltype column from 2 tables with a union.
    select tbl1.xmlcol.extract('//abc/ns1:def','xmlns:ns1="http://xy.z.org/"').getStringVal() col1,
    tbl1.xmlcol.extract('//abc/ns1:ghi/text()','xmlns:ns1="http://abc.def.org/"') as col2
    from table1 tbl1
    union
    select tbl2.xmlcol.extract('//xyz/ns1:def','xmlns:ns1="http://xy.z.org/"').getStringVal() col1,
    tbl2.xmlcol.extract('//xyz/ns1:ghi/text()','xmlns:ns1="http://abc.def.org/"') as col2
    from table2 tbl2;
    What am I doing wrong here?
    Thx!

  • Getting ORA-20001: Creation of new object is not allowed: !!

    Hi Am getting ORA-20001: Creation of new object is not allowed while enabling constraints after importing the dumps from source to target datbase,can anyone assist me to fix this issue.

    Hi Osama/Mustafa,Thanks for your quick response,can you please explain me the following things-
    1)As i don't have privilege to run the DBA_XX views,am not able to run those queries-
    SELECT OWNER, TRIGGER_NAME, TRIGGER_BODY FROM DBA_TRIGGERS WHERE TRIGGER_TYPE IN ('AFTER EVENT', 'BEFORE EVETN') AND TRIGGERING_EVENT LIKE '%CREATE%';
    can you tell me what output it'll throw,based on this output how will we fix the issue.
    2)SELECT * FROM dba_sys_privs WHERE privilege = 'UNLIMITED TABLESPACE';
    why we need to check this privilege?as i don't have privilege to run this one in my db.
    3)select * from dba_source where upper(text) like upper('%Creation of new object is not allowed%');
    as i don't have privilege to run this one in my db,already i got the object name from my logfile
    and more you have quoted"This is an error of someone that coded purposely on your database, probably dba or a developer who has privilege and again it is in a database event trigger"
    4)can you explain me much more deeper about the root cause and as already sent note to my DBA,can you explain me the solution to fix this issue ?

  • How to set user preferred timezone in OBIEE for all objects.

    How to set user preferred timezone in OBIEE for all objects based on users TZ(may be from @{session.timeZone}). without changing My Account -> Preferences

    Check
    Time Zone Specification from http://docs.oracle.com/cd/E12844_01/doc/bip.1013/e12187/T421739T481157.htm#4535403
    just in case https://blogs.oracle.com/xmlpublisher/entry/how_to_keep_your_dates_from_go

  • Poblem with union/union all giving ORA-22950

    I am using a select statement with xmlelement to create an xml file.
    It has bout 5 different unions in it but I only ever bring one row through.
    I do it like this as then i can use this as one cursor in my plsql without having to create lots of cursors when i only need to use one.
    ie.
    SELECT  xmlelement("QUOTATION",xmlagg(xmlelement(Quotation,
                          xmlelement(CUSTOMERNAME, customername),
                          xmlelement(QUOTE,quoteid )))xmlfile
    From cust, quote
    where custid=quotecustid
    and ptype = 'Q'
    UNION
    SELECT  xmlelement("SALES",xmlagg(xmlelement(SALES,
                          xmlelement(CUSTOMERNAME, customername),
                          xmlelement(QUOTE,salesid )))xmlfile
    From cust, sales
    where custid=salescustid
    and ptype = 'S'Then I use a cursor to run it to a ftp file the one record i have selected by passing in ptype as a parameter.
    if i use union i get ORA-22950 - i have seen other people say use UNION all to get round this.
    if i use union all i will get a value for SALES of no rows i.e.
    Any ideas how i can get round this as dont want to keep creating cursors

    Using different cursors is still the best approach IMO.
    All things considered, it should be more efficient than using only an appearing "smarter" one.
    And it doesn't need to be explicit cursors, it could just be SELECT INTOs wrapped in a PL/SQL CASE statement, with the proper exception handler (if necessary).
    Anyway, if you want to stick with the single-cursor method, there are different ways to do it :
    1) Adding a selector column :
    SELECT xmlfile
    FROM (
      SELECT 'Q' as selector
           , xmlelement("QUOTATION",xmlagg(xmlelement(Quotation,
                      xmlelement(CUSTOMERNAME, customername),
                      xmlelement(QUOTE,quoteid )))xmlfile
      From cust, quote
      where custid=quotecustid
      and ptype = :1
      UNION ALL
      SELECT 'S'
           , xmlelement("SALES",xmlagg(xmlelement(SALES,
                      xmlelement(CUSTOMERNAME, customername),
                      xmlelement(QUOTE,salesid )))xmlfile
      From cust, sales
      where custid=salescustid
      and ptype = :1
    WHERE selector = :1
    ;2) Adding a GROUP BY clause, so that XMLAgg doesn't return anything if no rows are selected :
    SELECT xmlelement("QUOTATION",xmlagg(xmlelement(Quotation,
                    xmlelement(CUSTOMERNAME, customername),
                    xmlelement(QUOTE,quoteid )))xmlfile
    From cust, quote
    where custid=quotecustid
    and ptype = :1
    GROUP BY null
    UNION ALL
    SELECT xmlelement("SALES",xmlagg(xmlelement(SALES,
                    xmlelement(CUSTOMERNAME, customername),
                    xmlelement(QUOTE,salesid )))xmlfile
    From cust, sales
    where custid=salescustid
    and ptype = :1
    GROUP BY null
    ;3) Subqueries :
    SELECT case :1
            when 'Q' then ( SELECT ... )
            when 'S' then ( SELECT ... )
          end as xmlfile
    FROM dual
    ;

  • ORA-21780: Maximum number of object durations exceeded

    Hi,
    I have configured workflow now.Workflow Background Process is completing with below error.
    ORA-21780: Maximum number of object durations exceeded.
    I have gone also through API as below but error is coming same.
    SQL> exec wf_engine.background(itemtype=>'HXCEMP',process_deferred=>true,process
    timeout=>false,processstuck=>false);
    BEGIN wf_engine.background(itemtype=>'HXCEMP',process_deferred=>true,process_tim
    eout=>false,process_stuck=>false); END;
    ERROR at line 1:
    ORA-21780: Maximum number of object durations exceeded.
    Thanks

    Hi;
    What is your OS,EBS and Db?
    Please check below and see its helpful:
    Bug 5924384 - ORA-21780 in PLSQL [ID 5924384.8]
    Recieving ORA-21780 when trying to create a large number of synonyms. [ID 726550.1]
    Also check:
    Unplanned Depreciation Errors with ORA-21780: Maximum Number Of Object Durations Exceeded. [ID 886986.1]
    Workflow Background Process Fails With ORA-21780: Maximum Number of Object Durations Exceeded [ID 790909.1]
    FRM-40735 POST-FORM-COMMIT Trigger Raised Unhandled Exception ORA-21780 When Trying To Adjust Basic Rate [ID 811754.1]
    Regard
    Helios

  • ORA-12839: cannot modify an object in parallel after modifying it

    Hi,
    I am facing a Problem when I am trying to Update a Table:
    ORA-12839: cannot modify an object in parallel after modifying it
    How to rectify it?
    Any help will be highly needful
    Thanks and Regards

    Or if it needs to be the same transaction leave away any parallelization part as e.g. an append hint:
    SQL> create table emp2 as select * from emp where 1=2
    Table created.
    SQL> insert /*+ append */ into emp2 select * from emp
    14 rows created.
    SQL> update emp2 set sal=200 where empno=7788
    Error at line 11
    ORA-12838: cannot read/modify an object after modifying it in parallel

  • ORA-22950: cannot Order Objects without MAP or ORDER method (line 15)

    Hi
    I have created a function
    create type att_con.ind_field_value as object (s_owner varchar2(50), s_table varchar2(50), s_field varchar2(50));
    create type att_con.ind_field_value_table as table of att_con.ind_field_value;
    create or replace function fn_find_field_entries
    (s_entry IN varchar2)
    return ind_field_value_table
    IS
    found_count integer;
    t_return ind_field_value_table := ind_field_value_table();
    begin
    for cur in (select owner, table_name, column_name
    from all_tab_columns
    where owner 'SYS'
    and owner 'SYSTEM')
    loop
    execute immediate
    'select count(' || cur.column_name || ') from ' || cur.owner || '.' || cur.table_name || ' where ' || cur.column_name || ' = ' || s_entry
    into found_count;
    if found_count 0 then
    t_return.extend;
    t_return(t_return.last) := (cur.owner, cur.table_name, cur.column_name);
    end if;
    end loop;
    return t_return;
    end;
    and i am getting the above error when i try and run it with
    select * from table(att_con.fn_find_field_entries('NDUNNE'))
    anyone know what this error might mean?
    thanks in advance

    22950, 00000, "cannot ORDER objects without MAP or ORDER method"
    // *Cause:  an object type must have a MAP or ORDER method defined for
    //          all comparisons other than equality and inequality comparisons.
    // *Action: Define a MAP or ORDER method for the object type
    //

  • ORA-22950 cannot ORDER objects without MAP or ORDER method

    Hello
    I'm receiving the above error message at the BULK COLLECT point. I've pasted all relevant code below - any help much appreciated. This has got me stumped....
    Thanks in advance
    Tim
    create or replace type PROG_MEDIA_TYP as object
    (episode_id number,
    house_number varchar2))
    create or replace type t_all_prog_medias as TABLE of PROG_MEDIA_TYP
    v_All_Prog_Media t_All_Prog_Medias ;
    SELECT DISTINCT Prog_Media_Typ(Pm.Episode_Id,
    Substr(Pm.House_Number, 1, 8)) BULK COLLECT
    INTO v_All_Prog_Media
    FROM Prog_Media Pm;

    This has to do with your "distinct" keyword. If you don't use distinct, everything is OK, but if you want to use distinct, you have to tell, HOW Oracle can distinguish between two "object members".
    First, we just select any record with bulk collect:
    SQL> create or replace type emp_media_type
      2    as object (
      3      empno    number,
      4      ename    varchar2(30)
      5    )
      6  /
    Type created.
    SQL> create or replace type t_emp_media_type as table of emp_media_type;
      2  /
    Type created.
    SQL> get t
      1  declare
      2    l_all_emp_media_type    t_emp_media_type;
      3  begin
      4    select emp_media_type(empno, ename)
      5    bulk collect into l_all_emp_media_type
      6    from   emp;
      7* end;
    SQL> /
    PL/SQL procedure successfully completed.This is working nicely. But if we want to have only distinct records, we first have to tell Oracle, how this distinction can be made. That is where the ORDER function comes into play.
    SQL> drop type t_emp_media_type;
    Type dropped.
    SQL> get tt
      1  create or replace type emp_media_type
      2    as object (
      3      empno    number,
      4      ename    varchar2(30),
      5      order member function sortorder(p_emp emp_media_type) return number
          -- this is now the order function to tell Oracle how two objects can be ordered
      6*   )
    SQL> /
    Type created.
    SQL> get type2.sql
      1  create or replace type body emp_media_type as
      2    order member function sortorder(p_emp emp_media_type) return number is
      3    begin
      4      if p_emp.empno < empno then
      5        return 1;
      6      elsif p_emp.empno > empno then
      7        return -1;
      8      else
      9        return 0;
    10      end if;
    11    end;
    12* end;
    SQL> /
    Type body created.
    SQL> create or replace type t_emp_media_type as table of emp_media_type;
      2  /
    Type created.
    SQL> get t
      1  declare
      2    l_all_emp_media_type    t_emp_media_type;
      3  begin
      4    select distinct emp_media_type(empno, ename)
      5    bulk collect into l_all_emp_media_type
      6    from   emp;
      7* end;
    SQL> /
    PL/SQL procedure successfully completed.
    SQL> You see how nicely it works once you have the order function defined?

  • Ora-23454 when add an objects to the materialized view group

    Hi, All,
    I tend to create a distributed MV, when add an objects to the materialized view group using:
    BEGIN
    DBMS_REPCAT.CREATE_MVIEW_REPOBJECT (
    gname => 'hr_repg',
    sname => 'hr',
    oname => 'departments_mv1',
    type => 'SNAPSHOT',
    min_communication => TRUE);
    END;
    I got the follwoing errors:
    ORA-23454: flavor not defined for object group "PUBLIC"."HR_REPG"
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105
    ORA-06512: at "SYS.DBMS_REPCAT_UTL", line 452
    ORA-06512: at "SYS.DBMS_REPCAT_UTL", line 468
    ORA-06512: at "SYS.DBMS_REPCAT_SNA_UTL", line 5599
    ORA-06512: at "SYS.DBMS_REPCAT_SNA", line 82
    ORA-06512: at "SYS.DBMS_REPCAT", line 1332
    ORA-06512: at line 2
    Does anybody know what is the problem?
    Thanks in advance for any advice.
    Sharon.Ni

    Are you trying to replicate an existing materialized view called "departments_mv1" ? That is what the implication of the arguments you are supplying.
    If it is an MV, you have to supply the DDL (in the DDL_TEXT) as well.
    Hemant K Chitale

  • Getting ora-904 error when create objects for the 2DayPlus apex 3.1 demo

    Searched metalink and the forum and can't determine the cause of my error below.
    CREATE TABLE oehr_categories_tab OF oehr_category_typ
    ( category_id PRIMARY KEY)
    NESTED TABLE TREAT
    (OBJECT_VALUE AS oehr_leaf_category_typ).product_ref_list
    STORE AS oehr_prod_ref_list_ntab
    NESTED TABLE TREAT
    (OBJECT_VALUE AS oehr_composite_category_typ).subcategory_ref_list
    STORE AS oehr_subcat_ref_list_ntab
    ORA-00904: : invalid identifier
    DB Version: 9.2.0.7
    Any help would be appreciated.

    Hi,
    I believe the issue is with a new pseudocolumn reference introduced in 10gR2. Kindly refer to the Oracle Database SQL Language Reference on [OBJECT_VALUE Pseudocolumns.|http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/pseudocolumns006.htm]
    A quick workaround for those using Oracle Database 9iR2 or 10gR1 would be to edit the "Installation Script" (under "Supporting Objects"). Edit the "OEHR_CATEGORIES_TAB" DDL to the following:
    bq.      CREATE TABLE oehr_categories_tab OF oehr_category_typ \\     ( category_id PRIMARY KEY) \\     NESTED TABLE TREAT \\     (SYS_NC_ROWINFO$ AS oehr_leaf_category_typ).product_ref_list \\     STORE AS oehr_prod_ref_list_ntab \\     NESTED TABLE TREAT \\     (SYS_NC_ROWINFO$ AS oehr_composite_category_typ).subcategory_ref_list \\     STORE AS oehr_subcat_ref_list_ntab;
    Reinstall the Supporting Objects.
    Hope this helps.
    -Amitabh

  • ORA-01840 error on inserting row trough object browser

    Dear Oracle Community,
    I'm getting the ORA-01840: Input value not long enough for date format error when I try to insert a row with the date value 24-MAY-10 with my object browser.
    This is the problem column:
    Column Name | Data Type| Nullable| Default | Primary Key
    SIGNUPDATE |DATE |No | - | -
    Now this will look like I'm using the wrong date format so I have googled and found that I should use the following query to check for the correct date format my database uses.
    select * from nls_session_parameters where parameter = 'NLS_DATE_FORMAT';
    This returns the DD-MON-RR format so I think I'm inserting the correct date format here.
    What am I doing wrong?
    I have already tried inserting with the following formats and tried replacing the - sign with the / sign.
    DD-MON-RR
    DD-MON-YY
    DD-MON-YYYY
    I have also tried using the SYSDATE is in the DD-MON-RR format trough the SQL commandline.
    I'm feeling like an idiot this should be simple right?
    Please help me out here this is frustrating, many thanks in advance.
    J Nijman

    using the SYSDATE is in the DD-MON-RR format trough the SQL commandlineIn sqlplus try:
    insert into <tablename> ( <date columnname> [, ... ] ) values ( sysdate [, ...] );
    To get a sysdate date value added. Or specify the format string with a to_date expression:
    insert into <tablename> ( <date columnname> [, ... ] ) values ( to_date( '24-may-10', 'dd-mon-yy') [, ... ] );
    The engine isn't picky about separators agreeing with the format string, most any character in place of the '-' dash is acceptable.
    Now to get an ora-1840 out of the object browser (Table/Data/Insert Row), I'm not having any luck trying to duplicate that. With the default nls_date_format 'DD-MON-YY' even trying bad dates (i.e. 30-feb-10 or 30-feb-2010, or even 31-apr-10) it either does an ora-1839: date not valid for month specified, or with a four digit year it gives an ora-1830: date format picture ends before converting entire input string.
    Any RDBMS presents programmers with date and datetime challenges, its not just an oracle-frustration thing ;)

  • Getting ORA-22805 when trying to load XML file using SQLLDR

    I'm trying to learn the basics of XML since we'll be getting XML files in the near future. I'm using one of the sample schemas that comes with XMLSPY. I loaded this schema into an 11g Oracle DB using XMLSPY:
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- edited with XML Spy v4.0 NT beta 1 build Jun 13 2001 (http://www.xmlspy.com) by Alexander Falk (Altova, Inc.) -->
    <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:ipo="http://www.altova.com/IPO" targetNamespace="http://www.altova.com/IPO" elementFormDefault="unqualified" attributeFormDefault="unqualified">
         <annotation>
              <documentation>
    International Purchase order schema for Example.com
    Copyright 2000 Example.com. All rights reserved.
    </documentation>
         </annotation>
         <!-- include address constructs -->
         <include schemaLocation="address.xsd"/>
         <element name="purchaseOrder" type="ipo:PurchaseOrderType"/>
         <element name="comment" type="string"/>
         <complexType name="PurchaseOrderType">
              <sequence>
                   <element name="shipTo" type="ipo:Address"/>
                   <element name="billTo" type="ipo:Address"/>
                   <element ref="ipo:comment" minOccurs="0"/>
                   <element name="Items" type="ipo:Items"/>
              </sequence>
              <attribute name="orderDate" type="date"/>
         </complexType>
         <complexType name="Items">
              <sequence>
                   <element name="item" minOccurs="0" maxOccurs="unbounded">
                        <complexType>
                             <sequence>
                                  <element name="productName" type="string"/>
                                  <element name="quantity">
                                       <simpleType>
                                            <restriction base="positiveInteger">
                                                 <maxExclusive value="100"/>
                                            </restriction>
                                       </simpleType>
                                  </element>
                                  <element name="price" type="decimal"/>
                                  <element ref="ipo:comment" minOccurs="0"/>
                                  <element name="shipDate" type="date" minOccurs="0"/>
                             </sequence>
                             <attribute name="partNum" type="ipo:Sku"/>
                        </complexType>
                   </element>
              </sequence>
         </complexType>
         <simpleType name="Sku">
              <restriction base="string">
                   <pattern value="\d{3}-[A-Z]{2}"/>
              </restriction>
         </simpleType>
    </schema>
    Then I created an XMLType table:
    CREATE TABLE purchaseOrder OF XMLType
    XMLSCHEMA "ipo.xsd" ELEMENT "purchaseOrder"
    I'm trying to load the sample XML file ipo.xml into purchaseOrder using SQLLDR. This is ipo.xml:
    <?xml version="1.0"?>
    <!-- edited with XMLSPY v2004 rel. 4 U (http://www.xmlspy.com) by Mr. Nobody (Altova GmbH) -->
    <ipo:purchaseOrder xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ipo="http://www.altova.com/IPO" orderDate="1999-12-01" xsi:schemaLocation="http://www.altova.com/IPO
    ipo.xsd">
         <shipTo export-code="1" xsi:type="ipo:EU-Address">
              <ipo:name>Helen Zoe</ipo:name>
              <ipo:street>47 Eden Street</ipo:street>
              <ipo:city>Cambridge</ipo:city>
              <ipo:postcode>126</ipo:postcode>
         </shipTo>
         <billTo xsi:type="ipo:US-Address">
              <ipo:name>Robert Smith</ipo:name>
              <ipo:street>8 Oak Avenue</ipo:street>
              <ipo:city>Old Town</ipo:city>
              <ipo:state>AK</ipo:state>
              <ipo:zip>95819</ipo:zip>
         </billTo>
         <Items>
              <item partNum="833-AA">
                   <productName>Lapis necklace</productName>
                   <quantity>2</quantity>
                   <price>99.95</price>
                   <ipo:comment>Need this for the holidays!</ipo:comment>
                   <shipDate>1999-12-05</shipDate>
              </item>
              <item partNum="748-OT">
                   <productName>Diamond heart</productName>
                   <quantity>1</quantity>
                   <price>248.90</price>
                   <ipo:comment>Valentine's day packaging.</ipo:comment>
                   <shipDate>2000-02-14</shipDate>
              </item>
              <item partNum="783-KL">
                   <productName>Uncut diamond</productName>
                   <quantity>7</quantity>
                   <price>79.90</price>
                   <shipDate>2000-01-07</shipDate>
              </item>
              <item partNum="238-KK">
                   <productName>Amber ring</productName>
                   <quantity>3</quantity>
                   <price>89.90</price>
                   <ipo:comment>With no inclusions, please.</ipo:comment>
                   <shipDate>2000-01-07</shipDate>
              </item>
              <item partNum="229-OB">
                   <productName>Pearl necklace</productName>
                   <quantity>1</quantity>
                   <price>4879.00</price>
                   <shipDate>1999-12-05</shipDate>
              </item>
              <item partNum="128-UL">
                   <productName>Jade earring</productName>
                   <quantity>5</quantity>
                   <price>179.90</price>
                   <shipDate>2000-02-14</shipDate>
              </item>
         </Items>
    </ipo:purchaseOrder>
    This is what's in the control file:
    LOAD DATA
    INFILE *
    INTO TABLE purchaseOrder TRUNCATE
    xmltype(xmldata)
    FIELDS
    xmldata LOBFILE (CONSTANT ipo.xml)
    BEGINDATA
    0
    The load fails with:
    Record 1: Rejected - Error on table PURCHASEORDER.
    ORA-22805: cannot insert NULL object into object tables or nested tables
    Another question I have is, how do we know how many records (0's) to specify in the control file? In this case there's only one but when real files are used we won't know how many are in the file.
    Thanks for your help!

    The concept was "Don't use SQL*Loader to parse XML".
    You can use SQL*Loader to load an entire XML document into the DB. That is fine. You can do the same via BFILENAME to read in files from disk as well.
    If you want to parse XML, do that from within Oracle via PL/SQL and/or SQL. The solution depends upon your version of Oracle and what is good enough for you in terms of performance.
    So the basics are
    a) How am I getting the information?
    b) How am I getting in into Oracle?
    c) How do I want to parse it?
    As I see the schema, it only allows for one ipo:purchaseOrder node in the document, since that is the root node. If you have multiple in the incoming file, you no longer have valid XML, both per the schema and because you have no single root node. You have an XML fragment, which must be treated different.
    Just trying to understand the question since I now realize it does not agree with what the schema in your initial example shows.

Maybe you are looking for

  • DELL 2713 USB hub Issue on MacBook Pro Retina 15

    Hello, I have a new MacBook pro retina 15" and Dell 2713 monitor. the Dell works fine with the MacBook with supplied DP cable. BUT the USB hub doesn't work, the monitor is connected to the computer with original dell usb 3.0 cable. Note: on PC & win7

  • How use different email to get replies upon sent email

    how use different email to get replies to, upon sent email, than the email i check mail for/mail server???

  • Error MEQ006 - no user specific selection variant found in VL31N

    Dear gurus, in VL31N I get an error message MEQ006 - no variant found. Where from system takes user specific selection variant in tx VL31N? P.

  • Change a job User Id

    Hi, I wanted to know if it is possible to change user id of a job that is already created in sm37. Can anyone help me? Thanks in advance.

  • How to dynamically insert UI to View

    i need dynamically create link, like HTML Tag <a href='URL' >text</a> public void wdDoInit() ArrayList al = .... (URL String List) for(int i =0;i<al.size(); i++) ..... HOW  TO CODING?? Dynamically Insert UI to View or Dynamically Insert UI to View Li