XMLTABLE to relational hierarchy

I have a XML structure that has a hierarchy that is stored in a schema of EAB, with one of the tables to store the hierarchy with column parent_id.  XML is generated from tables with some DBMS_XMLGEN.newcontextfromhierarchy, but I'm struggling with XML-to-VAE.

Levels can contain several elements, as in this example

Is there a better way to deal with the hierarchy that he stringing along like that? There is a practical limit to the number of hierarchical levels in my data (~ 5), but this doesn't seem right:

with x as (select xmltype ('))

< data >

< rank level = "1" >

< rank level = "1a2a" >

< rank level = "1a2a3a" / >

< rank level = "1a2a3b" / >

< / row >

< rank level = "1a2b" >

< rank level = "1a2b3a" / >

< rank level = "1a2b3b" / >

< / row >

< / row >

< rank level = "2" >

< rank level = "2a1a" >

< rank level = "2a1a3a" / >

< rank level = "2a1a3b" / >

< / row >

< / row >

((< / data > ') in the XML of the double)

Select t1.l1, t2.l2, t3.l3

x

, xmltable ('/ / data line ')

by the way x

path varchar (20) columns l1 '. / @level'

, xmltype l2x path '. / row '

) t1

, xmltable ('. / row ')

in passing t1.l2x

path of columns l2 varchar2 (20) '. / @level'

, xmltype l3x path '. / row '

) t2

, xmltable ('. / row ')

in passing t2.l3x

path of l3 varchar2 columns (20) '. / @level'

) t3

So, to be clear, what is the expected release of the query?

What is the version of db?

Would this be something like this do?

SQL > with t as)

2 Select xmltype (')

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19 ') in xml format

20 of the double

21)

22. Select x.*

23 t

24, xmltable)

25 ' declare function local: getChildren ($pid as XS: String, as item (row) $rows *)

26 as {item (r) *}

27 for $r in $rows

28 as $id: = data ($r/@level)

29 return element {} r

30 item parent_id {$pid}

31, the id of the element {$id}

32            }

33            | local: getChildren($id, $r/row)

34         }; "for $i in/data/local back row: getChildren (" ", $i") "

passage 35 t.xml

path of varchar2 (30) 36 columns parent_id 'parent_id '.

37, path of varchar2 (30) id 'id. '

(38) x

39;

PARENT_ID ID

------------------------------ ------------------------------

2B

1a                             1a2a

1a2a 1a2a3a

1a2a 1a2a3b

1a                             1a2b

1a2b 1a2b3a

1a2b 1a2b3b

2A

2a                             2a1a

2A1a 2a1a3a

2A1a 2a1a3b

11 selected lines

Post edited by: odie_63

Tags: Database

Similar Questions

  • Insertion of XMLTABLE to RELATIONAL table

    Hello

    I have a Realational table


    CREATE TABLE VALU_RSLT)
    VALU_RSLT_ID NUMBER OF NON-NULL,
    NUMBER OF FRD_RQST_INFO_ID
    NUMBER OF CERT_NBR (12: 0),
    VALUATIONMETHODTYPE VARCHAR2 (4000).
    VALUATIONMODEL VARCHAR2 (4000).
    EARNED NUMBER (20: 5).
    NUMBER OF VALUATIONLOW (20: 5),
    NUMBER OF VALUATIONHIGH (20: 5),
    NUMBER OF CONFIDENCESCORE
    CONFIDENCEDESC VARCHAR2 (255),
    CRT_BY_USR_ID VARCHAR2 (255),
    CRT_TMST TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
    LAST_UPD_BY_USR_ID VARCHAR2 (255),
    LAST_UPD_TMST TIMESTAMP DEFAULT CURRENT_TIMESTAMP
    );



    VALU_RSLT_ID - is a sequence object.


    Select tx. FRD_RQST_INFO_ID, CERT_NBR, temp.*
    OF FRD_XML_TEST1 tx.
    XMLTABLE ('/ DRIVEResponse/loan/assessments/ValuationResult ')
    TX OF PASSAGE. RSP_XML
    PATH of COLUMNS 'ValuationMethodType' VARCHAR2 (4000) "@ValuationMethodType."
    Path of 'ValuationModel' VARCHAR2 (4000) "@ValuationModel."
    "Assessment" PATH of NUMBER (20.5) "@Valuation."
    Path of "ValuationLow" NUMBER (20.5) "@ValuationLow."
    Path of "ValuationHigh" NUMBER (20.5) "@ValuationHigh."
    PATH of NUMBER "ConfidenceScore" "@ConfidenceScore"
    PATH of VARCHAR2 (255) 'ConfidenceDesc' '@ConfidenceDesc '.
    ) in the temp


    Is a very good job.


    What I try to achieve is to insert the data from the XML for this relational Table (VALU_RSLT) and also to increment the Sequence (VALU_RSLT_ID) and others
    check the fields in the table. (CRT_BY_USR_ID, CRT_TMST, LAST_UPD_BY_USR_ID, LAST_UPD_TMST).

    How can I do this?


    I tried something like this

    INSERT into VALU_RSLT (VALU_RSLT_ID, FRD_RQST_INFO_ID, CERT_NBR, VALUATIONMETHODTYPE, VALUATIONMODEL, EARNED,
    VALUATIONLOW, VALUATIONHIGH, CONFIDENCESCORE, CONFIDENCEDESC, CRT_BY_USR_ID, CRT_TMST, LAST_UPD_BY_USR_ID, LAST_UPD_TMST)
    VALUES (VALU_RSLT_ID_SEQ1.nextval (), select tx. FRD_RQST_INFO_ID, CERT_NBR, temp.*
    OF FRD_XML_TEST1 tx.
    XMLTABLE ('/ DRIVEResponse/loan/assessments/ValuationResult ')
    TX OF PASSAGE. RSP_XML
    PATH of COLUMNS 'ValuationMethodType' VARCHAR2 (4000) "@ValuationMethodType."
    Path of 'ValuationModel' VARCHAR2 (4000) "@ValuationModel."
    "Assessment" PATH of NUMBER (20.5) "@Valuation."
    Path of "ValuationLow" NUMBER (20.5) "@ValuationLow."
    Path of "ValuationHigh" NUMBER (20.5) "@ValuationHigh."
    PATH of NUMBER "ConfidenceScore" "@ConfidenceScore"
    PATH of VARCHAR2 (255) 'ConfidenceDesc' '@ConfidenceDesc '.
    (), Temp, NULL, NULL, NULL, NULL);



    gave me the following error message

    Error in the command line: 3 column: 35
    Error report:
    SQL error: ORA-00936: lack of expression
    00936 00000 - "missing expression.
    * Cause:
    * Action:


    How can I do this insert work?

    You mix styles of syntax INSERT. VALUES is for a single line. You want something like

    INSERT into VALU_RSLT(VALU_RSLT_ID, FRD_RQST_INFO_ID, CERT_NBR, VALUATIONMETHODTYPE, VALUATIONMODEL, VALU,
    VALUATIONLOW, VALUATIONHIGH, CONFIDENCESCORE, CONFIDENCEDESC, CRT_BY_USR_ID, CRT_TMST, LAST_UPD_BY_USR_ID, LAST_UPD_TMST)
    select VALU_RSLT_ID_SEQ1.nextval(),
           tx.FRD_RQST_INFO_ID,CERT_NBR,temp.*,
           NULL,NULL,NULL,NULL
    FROM FRD_XML_TEST1 tx,
         XMLTABLE('/DRIVEResponse/Loan/Valuations/ValuationResult'
                  PASSING TX.RSP_XML
                  COLUMNS
                  "ValuationMethodType" VARCHAR2(4000) PATH '@ValuationMethodType',
                  "ValuationModel" VARCHAR2(4000) PATH '@ValuationModel',
                  "Valuation" NUMBER(20,5) PATH '@Valuation',
                  "ValuationLow" NUMBER(20,5) PATH '@ValuationLow',
                  "ValuationHigh" NUMBER(20,5) PATH '@ValuationHigh',
                  "ConfidenceScore" NUMBER PATH '@ConfidenceScore',
                  "ConfidenceDesc" VARCHAR2(255) PATH '@ConfidenceDesc');
    
  • How to get the previous group on XML element

    My XML structure goes like this.

    <? XML version = "1.0" encoding = "UTF-8"? >
    < SA321 >
    PT BOOK < P_BOOK > < / P_BOOK >
    < P_YEAR > 2009 < / P_YEAR >
    < LIST_G_FAMILY >
    < G_FAMILY >
    < PARENT_FAMILY > 2240 < / PARENT_FAMILY >
    < FAM_CODE_DESC > Cruiser informatico < / FAM_CODE_DESC >
    < SUBTOT_FLAG > Y < / SUBTOT_FLAG >
    < NEW_USED > NEW < / NEW_USED >
    < LIST_G_ASSET >
    < G_ASSET >
    < ASSET_DESCR > 2240 - Cruiser informatico < / ASSET_DESCR >
    < ACQUISITION_YEAR > 2009 < / ACQUISITION_YEAR >
    JANUARY < EFFECTIVE_MONTH > < / EFFECTIVE_MONTH >
    < EFFECTIVE_YEAR > 2009 < / EFFECTIVE_YEAR >
    < ASSET_AMOUNT > 3000 < / ASSET_AMOUNT >
    < EXEMPT_GAIN_AMOUNT > 450 < / EXEMPT_GAIN_AMOUNT >
    < EXPECTED_LIFE_YRS / >
    < PRV_FY_NBV > 0 < / PRV_FY_NBV >
    < RATES_DEC > 37.5 < / RATES_DEC >
    < RATE_FROM_LAW > 50 < / RATE_FROM_LAW >
    < RATES_DEC1 / >
    < 1 > 0 < / 1 >
    < FISCAL_LIMIT > 1275 < / FISCAL_LIMIT >
    < DEPRN_RATE > 25 < / DEPRN_RATE >
    < PY_DEPRN_RESERVE > 0 < / PY_DEPRN_RESERVE >
    < YTD_DEPRN > 749.99 < / YTD_DEPRN >
    < ACCUM_DEPRN > 749.99 < / ACCUM_DEPRN >
    < NET_BOOK_VALUE > 2250.01 < / NET_BOOK_VALUE >
    < YTD_IMPAIRMENT > 0 < / YTD_IMPAIRMENT >
    < IMPAIRMENT_RESERVE > 0 < / IMPAIRMENT_RESERVE >
    < ACCUM_LOST_RATES > 0 < / ACCUM_LOST_RATES >
    < DEPR_REINT_LOSS_NOTEXP > 0 < / DEPR_REINT_LOSS_NOTEXP >
    < GAIN_AMOUNT > 600 < / GAIN_AMOUNT >
    < GAIN_YEAR > 2006 < / GAIN_YEAR >
    < > 110270 ASSET_ID < / ASSET_ID >
    < > 110270 ASSET_ID < / ASSET_ID >
    < REINT_NOT_ACC > 437.5 < / REINT_NOT_ACC >
    < PY_COL15 > 0 < / PY_COL15 >
    < LIST_G_COL15 >
    < G_COL15 >
    < COL15_TOT > 0 < / COL15_TOT >
    < COL16_TOT / >
    < COL_16 > 0 < / COL_16 >
    < / G_COL15 >
    < / LIST_G_COL15 >
    < / G_ASSET >
    < G_ASSET >
    < ASSET_DESCR > 2240 - Cruiser informatico < / ASSET_DESCR >
    < ACQUISITION_YEAR > 2009 < / ACQUISITION_YEAR >
    JUNE < EFFECTIVE_MONTH > < / EFFECTIVE_MONTH >
    < EFFECTIVE_YEAR > 2009 < / EFFECTIVE_YEAR >
    < ASSET_AMOUNT > 1500 < / ASSET_AMOUNT >
    < EXEMPT_GAIN_AMOUNT > 0 < / EXEMPT_GAIN_AMOUNT >
    < EXPECTED_LIFE_YRS / >
    < PRV_FY_NBV > 0 < / PRV_FY_NBV >
    < RATES_DEC > 40 < / RATES_DEC >
    < RATE_FROM_LAW > 50 < / RATE_FROM_LAW >
    < RATES_DEC1 / >
    < 1 > 0 < / 1 >
    < FISCAL_LIMIT > 750 < / FISCAL_LIMIT >
    < DEPRN_RATE > 20 < / DEPRN_RATE >
    < PY_DEPRN_RESERVE > 0 < / PY_DEPRN_RESERVE >
    < YTD_DEPRN > 316.95 < / YTD_DEPRN >
    < ACCUM_DEPRN > 166.95 < / ACCUM_DEPRN >
    < NET_BOOK_VALUE > 1333.05 < / NET_BOOK_VALUE >
    < YTD_IMPAIRMENT > 150 < / YTD_IMPAIRMENT >
    < IMPAIRMENT_RESERVE > 150 < / IMPAIRMENT_RESERVE >
    < ACCUM_LOST_RATES > 2.92 < / ACCUM_LOST_RATES >
    < DEPR_REINT_LOSS_NOTEXP > 0 < / DEPR_REINT_LOSS_NOTEXP >
    < GAIN_AMOUNT > 0 < / GAIN_AMOUNT >
    < GAIN_YEAR / >
    < > 110289 ASSET_ID < / ASSET_ID >
    < > 110289 ASSET_ID < / ASSET_ID >
    < REINT_NOT_ACC > 89,32 < / REINT_NOT_ACC >
    < PY_COL15 > 0 < / PY_COL15 >
    < LIST_G_COL15 >
    < G_COL15 >
    < COL15_TOT > 0 < / COL15_TOT >
    < COL16_TOT / >
    < COL_16 > 0 < / COL_16 >
    < / G_COL15 >
    < / LIST_G_COL15 >
    < / G_ASSET >
    < / G_FAMILY >
    < / LIST_G_FAMILY >
    < / SA321 >

    Now, I have a query like the following.

    Select *.
    FROM (SELECT sap_getFileContent ('o5875854.xml', 'DIR') report_data)
    T FROM dual)
    xmltable)
    "SA321/LIST_G_FAMILY/G_FAMILY/LIST_G_ASSET/G_ASSET.
    by the way of xmltype (t.report_data)
    path of VARCHAR2 (50) column column1 ' / SA321, LIST_G_FAMILY, G_FAMILY, PARENT_FAMILY.
    , path VARCHAR2 (100) Column2 "ASSET_DESCR."
    , Column3 VARCHAR2 (50) path 'EFFECTIVE_MONTH '.
    , NUMBER column4 path 'EFFECTIVE_YEAR '.
    , path NUMBER column 5 "ASSET_AMOUNT".
    , path NUMBER column6 "EXEMPT_GAIN_AMOUNT".
    , path NUMBER column7 'EXPECTED_LIFE_YRS '.
    , path NUMBER column8 'YTD_DEPRN '.
    , path NUMBER column9 "PY_DEPRN_RESERVE".
    , path NUMBER column10 'RATE_FROM_LAW '.
    , column11 NUMBER path '1 '.
    , path NUMBER column12 'FISCAL_LIMIT '.
    , path NUMBER column13 'YTD_IMPAIRMENT '.
    , path NUMBER column14 'ACCUM_LOST_RATES '.
    , path NUMBER column15 'YTD_IMPAIRMENT '.
    , path NUMBER column16 ' LIST_G_COL15/G_COL15/COL_16.
    ) x ;

    the query always returns NULL for collumn1. Can someone help me please.

    Concerning
    SAP

    Hello

    Your example of XML code is not correct, there is no LIST_G_ASSET element closing tag.
    But I guess that's not the real problem.

    the query always returns NULL for collumn1.

    The important thing to understand is that the paths that you declare in the COLUMNS clause are relative to the context item is past the main XQuery expression. He knows more about the rest of the document, in particular of his ancestors.
    In this case, you try to process a node whose absolute path would be

    /SA321/LIST_G_FAMILY/G_FAMILY/PARENT_FAMILY
    

    in a document which the node root is G_ASSET.

    The solution is to divide the query into two parts, the first one finds PARENT_FAMILY and the collection of G_ASSET and the second more shreds the collection G_ASSET is passed the first XMLTable in relational lines:

    SQL> SELECT x1.column1
      2       , x2.*
      3  FROM XMLTable(
      4         '/SA321/LIST_G_FAMILY/G_FAMILY'
      5         passing xmltype(bfilename('TEST_DIR','o5875854.xml'), nls_charset_id('AL32UTF8'))
      6         columns
      7           column1     VARCHAR2(50)  path 'PARENT_FAMILY'
      8         , assets      XMLType       path 'LIST_G_ASSET'
      9       ) x1
     10     , XMLTable(
     11         '/LIST_G_ASSET/G_ASSET'
     12         passing x1.assets
     13         columns
     14           column2 VARCHAR2(100) path 'ASSET_DESCR'
     15         , column3 VARCHAR2(50)  path 'EFFECTIVE_MONTH'
     16         , column4 NUMBER        path 'EFFECTIVE_YEAR'
     17         , column5 NUMBER        path 'ASSET_AMOUNT'
     18         , column6 NUMBER        path 'EXEMPT_GAIN_AMOUNT'
     19         , column7 NUMBER        path 'EXPECTED_LIFE_YRS'
     20         , column8 NUMBER        path 'YTD_DEPRN'
     21         , column9 NUMBER        path 'PY_DEPRN_RESERVE'
     22         , column10 NUMBER       path 'RATE_FROM_LAW'
     23         , column11 NUMBER       path 'CASE1'
     24         , column12 NUMBER       path 'FISCAL_LIMIT'
     25         , column13 NUMBER       path 'YTD_IMPAIRMENT'
     26         , column14 NUMBER       path 'ACCUM_LOST_RATES'
     27         , column15 NUMBER       path 'YTD_IMPAIRMENT'
     28         , column16 NUMBER       path 'LIST_G_COL15/G_COL15/COL_16'
     29       ) x2
     30  ;
    
    COLUMN1    COLUMN2                          COLUMN3        COLUMN4    COLUMN5    COLUMN6    COLUMN7    COLUMN8    COLUMN9   COLUMN10   COLUMN11   COLUMN12   COLUMN13   COLUMN14   COLUMN15   COLUMN16
    ---------- -------------------------------- ----------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ----------
    2240       2240-Equipamento informatico     JANUARY           2009       3000        450                749,99          0         50          0       1275          0          0          0          0
    2240       2240-Equipamento informatico     JUNE              2009       1500          0                316,95          0         50          0        750        150       2,92        150          0
     
    
  • With the help of ora: view with XMLTable to query a relational table in XML

    I have a relational table called Oracle DOCTYPE with columns ID, DOCTYPE, subtype.
    When I run the following statement in Oracle SQL Developer
    SELECT * FROM XMLTable('for $i in ora:view("LAZ", "DOCTYPES")/ROW
                            return $i/SUBTYPE')
    I retrieve the results between the tags as expected. But when I run the following statement I get an error:
    SELECT * FROM XMLTable('for $i in ora:view("LAZ", "DOCTYPES")/ROW
                            return <SUBTYPE="{$i/SUBTYPE}"/>')
    LPX-00801: XQuery syntax to '=' error. I do not understand why the second statement does not work.

    I thank very you much for your help in advance.

    Oracle 11.2.0.1.0

    Hello

    It does not work because the XQuery syntax is incorrect.

    Do you want something like this:

    SELECT * FROM XMLTable('for $i in ora:view("LAZ", "DOCTYPES")/ROW
                            return {data($i/SUBTYPE)}')
    

    or

    SELECT * FROM XMLTable('for $i in ora:view("LAZ", "DOCTYPES")/ROW
                            return {$i/SUBTYPE/text()}')
    

    ?

  • Recursive data xml with xmltable()?

    Hi all

    I have the following XML and want to store in a relational manner, preserving the hierarchy...

    The problem is, each line item can have a number any of 'name of the rowset = 'content' ' children. And the line items in there may have once again any number of children of 'content '. And so on. Depth is unknown, unlimited.

    Is this feasible?

    I'm looking for is to get the hierarchical data, sort of itemid locationid parent_itemid - so that I can process the data normally in a relational manner using hierarchical queries to Oracle.

    Any ideas would be greatly appreciated!

    See you soon

    Stefan

    <? XML version = "1.0" encoding = "UTF-8"? >
    < eveapi version = "1" >
    < currentTime > 2007-12-01 17:55:07 < / currentTime >
    < result >
    < name of the rowset = 'active' key = "itemID" columns = "itemID, locationID, typeID, quantity, flag, singleton" >
    < line itemID = locationID "150354641" = "30000380" typeID = quantity "11019" = "1" flag = "0" singleton = "1" >
    < rowset name = "content" key = "itemID" columns = "itemID, typeID, quantity, flag, singleton" >
    < line itemID = typeID "150354709" = "16275" quantity = flag "200000" = "5" singleton = "0" / >
    < line itemID = typeID "150354710" = "16272" quantity = flag "150000" = "5" singleton = "0" / >
    < line itemID = typeID "150354711" = "16273" quantity = flag "150000" = "5" singleton = "0" / >
    < line itemID = "150354712" typeID = quantity "24597" = "1000" flag = singleton '5' = '0' / >
    < line itemID = "150354713" typeID = quantity "24596" = "1000" flag = singleton '5' = '0' / >
    < line itemID = "150354714" typeID = quantity "24595" = "1000" flag = "5" singleton = "0" / >
    < line itemID = "150354715" typeID = quantity "24594" = "1000" flag = "5" singleton = "0" / >
    < line itemID = "150354716" typeID = quantity "24593" = "1000" flag = "5" singleton = "0" / >
    < line itemID = "150354717" typeID = quantity "24592" = "1000" flag = "5" singleton = "0" / >
    < line itemID = typeID "150354718" = "16274" quantity = flag "450000" = "5" singleton = "0" / >
    < line itemID = typeID = "150354719" '9848' quantity = "1000" flag = singleton '5' = '0' / >
    < line itemID = typeID "150354720" = "9832" quantity = flag "8000" = "5" singleton = "0" / >
    < line itemID = typeID = "150354721" "3689" quantity = flag "5000" = "5" singleton = "0" / >
    < line itemID = typeID "150354722" = "3683" quantity = "25000" flag = singleton '5' = '0' / >
    < line itemID = "150354723" typeID = quantity "44" = "4000" flag = singleton '5' = '0' / >
    < / lines >
    < / row >
    < line itemID = locationID "150354706" = "30001984" typeID = quantity "11019" = "1" flag = "0" singleton = "1" >
    < rowset name = "content" key = "itemID" columns = "itemID, typeID, quantity, flag, singleton" >
    < line itemID = "150354741" typeID = quantity "24593" = "400" flag = "5" singleton = "0" / >
    < line itemID = "150354742" typeID = quantity "24592" = "400" flag = "5" singleton = "0" / >
    < line itemID = typeID "150354755" = "16275" quantity = flag "199000" = "5" singleton = "0" / >
    < line itemID = "150354837" typeID = quantity '24597' = '400' flag = singleton '5' = '0' / >
    < line itemID = "150354838" typeID = quantity '24596' = '400' flag = singleton '5' = '0' / >
    < line itemID = "150354839" typeID = quantity "24595" = "400" flag = "5" singleton = "0" / >
    < line itemID = "150354840" typeID = quantity "24594" = "400" flag = "5" singleton = "0" / >
    < line itemID = "150356329" typeID = quantity "14343" = "1" flag = "5" singleton = "0" / >
    < / lines >
    < / row >
    < line itemID = locationID "150212056" = "60001078" typeID = quantity "25851" = "10" flag = "4" singleton = "0" / >
    < line itemID = locationID "150212057" = "60001078" typeID = quantity "20424" = "20" flag = "4" singleton = "0" / >
    < line itemID = locationID "150212058" = "60001078" typeID = quantity "20421" = "20" flag = "4" singleton = "0" / >
    < line itemID = "150357641" locationID = typeID "30001984" = "23" quantity = "1" flag = "0" singleton = "1" >
    < rowset name = "content" key = "itemID" columns = "itemID, typeID, quantity, flag, singleton" >
    < line itemID = typeID "150357740" = "16275" quantity = flag "9166 tons" = "0" singleton = "0" / >
    < / lines >
    < / row >
    < line itemID = locationID "150212062" = "60001078" typeID = quantity "944" = "1" flag = "4" singleton = "1" / >
    < line itemID = "150212063" locationID = "60001078" typeID = quantity '597' = '1' flag = singleton "4" = "0" / >
    < / lines >
    < / result >
    < cachedUntil > 2007-12-02 16:55:07 < / cachedUntil >
    < / eveapi >

    Hello Stefan,

    First of all, please always give your version of the database (all four digits).
    You can use XMLTable so I guess you're on 10 gr 2 or higher.

    Here's a solution involving an XQuery query to retrieve the parent row, assuming that the XML file resides in the variable 'v_xmldoc' of XMLType:

    SELECT x.*
    FROM XMLTable(
         'for $i in /eveapi/result//rowset/row
          return element r {
            $i,
            element parentID { data($i/../../@itemID) }
          }'
          passing :v_xmldoc
          columns
            itemID        number path 'row/@itemID',
            parent_itemID number path 'parentID',
            locationID    number path 'row/@locationID',
            typeID        number path 'row/@typeID',
            quantity      number path 'row/@quantity',
            flag          number path 'row/@flag'
         ) x
    ;     
    
    ITEMID     PARENT_ITEMID LOCATIONID TYPEID     QUANTITY   FLAG
    ---------- ------------- ---------- ---------- ---------- ----------
     150354641                 30000380      11019          1          0
     150354706                 30001984      11019          1          0
     150212056                 60001078      25851         10          4
     150212057                 60001078      20424         20          4
     150212058                 60001078      20421         20          4
     150357641                 30001984         23          1          0
     150212062                 60001078        944          1          4
     150212063                 60001078        597          1          4
     150354709     150354641                 16275     200000          5
     150354710     150354641                 16272     150000          5
     150354711     150354641                 16273     150000          5
     150354712     150354641                 24597       1000          5
     150354713     150354641                 24596       1000          5
     150354714     150354641                 24595       1000          5
     150354715     150354641                 24594       1000          5
     150354716     150354641                 24593       1000          5
     150354717     150354641                 24592       1000          5
     150354718     150354641                 16274     450000          5
     150354719     150354641                  9848       1000          5
     150354720     150354641                  9832       8000          5
     150354721     150354641                  3689       5000          5
     150354722     150354641                  3683      25000          5
     150354723     150354641                    44       4000          5
     150354741     150354706                 24593        400          5
     150354742     150354706                 24592        400          5
     150354755     150354706                 16275     199000          5
     150354837     150354706                 24597        400          5
     150354838     150354706                 24596        400          5
     150354839     150354706                 24595        400          5
     150354840     150354706                 24594        400          5
     150356329     150354706                 14343          1          5
     150357740     150357641                 16275       9166          0
    
    32 rows selected
     
    
  • Call subVIs. Absolute or relative paths?

    Hello

    How can I know what are called the subVIs? I would like to know what type of path is used; absolute or relative.

    The brilliant solution would be if I could choose a VI and a list of its subVIs with the path close to.

    K.

    All paths are relative (even on different drives: /.. /.. / D / data / *) except for the symbolic paths (user.lib and vi.lib)

    The OpenG Toolkit has a feature called list VI hierarchy that returns an array of all VI within the call tree:

    Tone

  • Problems of the Sansa e250 file hierarchy

    Hello

    I'm looking for assistance or advice I tried everything I know to fix this problem and although I looked at related discussions none of them solve my specific problem. I don't know if it's a problem with Sansa or WMPlayer but this is...

    THE PROBLEM

    I want to store music files to the player on the SD card, but they do not appear always on the reader in the correct production hierarchy (songs in the album folder, artist) for example

    (1) Kings of Leon 'only by the night'-1 of 11 tracks appears under the name of the album and the remaining 10 under the name of the artist

    (2) Duran Duran 'Duran Duran' and 'Rio' - all tracks appear only under the name of the artist

    (3) 'The best of Björk' Björk - 50% of tracks appear under the artist = unknown but with the correct album title and the other 50% under the exact title of the artist and album.

    THE ONLY TIME that the files are properly organized on the player is when syncd WMplayer using of PSG but only in the player as this car is the only visible. Subsequently the use MSC to move the music files on the SD card causes problems to appear.

    Using MSC mode to drag and drop files directly on the disc from the drive or the SD card also causes these problems if I using the file manager or of WMPlayer.

    I checked the file 'properties' on the drive or the SD card and in the library of WMPlayer (resident of PC hard drive) and checked the ID3 - tag using Dr Tag and WMPlayer. In both cases, as well as examples 3 details are correct. They all appear correctly in the WMPlayer library and in the correct hierarchy in file manager.

    I tried in vain to solve the problem in the two disks of formatting and deleting the folder 'Data' in the folder 'System '.

    At this rate, in order to properly navigate the reader, I will be limited to 2 GB of disc from the drive... bah humbug!

    & DEVICES

    Device = Sansa 250 2 GB model v.1 with latest firmware installed successfully. Connected via the USB 2.0 port on the back of the PC

    Extended with 2 GB micro SD card memory (works correctly with a card reader)

    WMPlayer v.11 with last port of the MTP Protocol

    Windows XP Home Edition with Service pack 3

    The information may be correct in ID3 tags, but is the correct type tags? If you use the tagging program has several parameters version, set it to write tags in ID3v2.3 ISO-8859-1. He is the only one that works reliably with Sansas.

    If your program does not support, you can free download MP3Tag . It is overwhelmingly the favorite of people here on the forum.

    And since you have a v1, the only way to add content to your card is through MSC. To avoid confusion, I would delete everything on the player (drafted in MTP mode) and re-transfer back in MSC.

  • Urgent: how to create a shortcut with a relative path?

    I put a set of files and folders nested on a server on a network location.  (Use of office machines Vista; I don't know that the server is running.  The files are a text file and two Office 2007 files).  Users will copy this set-up files on their computer (there is a program of VBA macro in a Word document, they need).  They need tomorrow (Friday) and the shortcut path gives me fits!

    The hierarchy looks like:

    MainDir
    File.txt
    SubDir1
    Shortcut to the Word file
    SubDir2
    Word file
    Excel file

    I don't think even the paths associated with the shortcut until I looked a little deeper.  Because I put all the files and folders together on my computer, when I did a drag - move in the folder on the server, the target properties and start in the shortcut always pointed at my computer!  So now, I'm afraid that a user copy this on their machine will have a shortcut that points to ~ my ~ computer, instead of the file on their computer.

    I deleted the shortcut located on the server and creates a new one from the Word file in the directory on the server.  Better - I think - but it still points to the location of the server.  And it is even more likely that, when the user opens the shortcut, it will try to open the file on the server, vice the file on their computer.

    How can I create a shortcut to this Word file that will pick up the relative path from around where to reside?  I can just click > properties and change the target and start in paths?  Or do I need a VBScript or VBA?

    I have to get this done fast!  A kick - in the right direction is greatly appreciated.

    Ed

    Hi Ed,

    It is not possible to create a shortcut with a relative path.

    You can try the following allows to bypass and check if it helps:

    Create a shortcut to cmd.exe running the start command to open the current directory. Then set the MDC in the

    The shortcut properties.

    a. make a new shortcut to: cmd.exe /c start.

    b. now right-click on it and get the properties of the shortcut (shortcut tab).

    c. the shortened full path must have been set to this:

    %windir%\system32\CMD.exe /c start.

    d. set the directory of "start in" (i.e. DLG) to be a relative path:

    (Example for a shortcut on the desktop)

    ...\SendTo

    e. click on "change icon...". "and set" look for icons in this file: "to: %SystemRoot%\system32\SHELL32.dll and press ENTER.

    Standard folder icon will probably be in the lower right.

    f. now you can copy this file and simply change the "start in:" to make new related shortcuts directory.

    NOTE: The above steps are just an example, so try this at your own risk. And check if it works.

    You can also read the following article and check:

    Folder redirection fails when you specify the mapped network drive or the Environment Variable

    http://support.Microsoft.com/kb/321805

    You can check out the following link and also post your request in the Technet forum for further assistance:

    http://social.technet.Microsoft.com/forums/en-us/winserverPN/threads

    Hope this information is useful.

  • Restart: Machine Check Exception Cache hierarchy error (18 events)

    I'm getting reboots on my machine all night (I have a few tasks planned during the night) which means that when I wake up scheduled tasks have not taken place.  Windows reports he had an unexpected restart and verification of that event viewer indicates that there are 18 of the WHEA-Logger event.

    Note: the machine is overclocked, but synchronization is a conservative OC using presets on the motherboard (4.6Gz was not stable so it is on 4.4, I have not tried to manually tweak it more because it's not worth the effort), with the RAM OC below the XMP profile supported.  A 4-hour race with Prime95 test complete instruction set (105W) showed no problems and a CPU temperature has not managed 60 c with considerably lower than that of the RAM, so I'm sure no problem with cooling.  In addition he has not been seen when running anything, only nights that has suspect me something in the States of sleep or power-saving modes is not responding well to a software or settings of the OC.

    System details:

    CPU: Intel i7 - 4770K 3.5Gz 3.9 thrust OC to 4.4 boost Haswell

    MoBo: ASUS Maximus formula VI

    RAM: 16GB TeamGroup XTreme 2600 to 2400

    GFX: NVidia GTX680 CUII Direct

    Drive system: Corsair Force 3 240GB SDD

    Data disk: Barracuda 3 TB Samsung

    OS: Windows 7 Ultimate with SP1 and updates

    Utility MoBo: HAVE suite 3

    Error details:

    Source: WHEA-Logger

    EventID: 18

    A fatal hardware error occurred.

    Reported by component: Processor Core
    Source of the error: Machine Check Exception
    Error type: error in Cache hierarchy
    Processor ID: 6

    Details of the event:


     
       
        18
        0
        2
        0
        0
        0 x 8000000000000000
       
        13356
       
       
        System
        Aurelie-PC
       
     

     
        3
        6
        1
        0xbf80000000000124
        0x415d01780
        0 x 86
        9
        1
        256
        2
        256
        0
        256
        256
        256
        928

        435045521002FFFFFFFF03000100000002000000A0030000190B000006060E140000000000000000000000000000000000000000000000000000000000000000BDC407CF89B7184EB3C41F732CB57131FE6FF5E89C91C54CBA8865ABE14913BB64FE19D81B81CF0102000000000000000000000000000000000000000000000058010000C00000000102000001000000ADCC7698B447DB4BB65E16F193C4F3DB0000000000000000000000000000000001000000000000000000000000000000000000000000000018020000800000000102000000000000B0A03EDC44A19747B95B53FA242B6E1D0000000000000000000000000000000001000000000000000000000000000000000000000000000098020000080100000102000000000000011D1E8AF94257459C33565E5CC3F7E8000000000000000000000000000000000100000000000000000000000000000000000000000000007F010000000000000002010000000000C30603000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000 000000000000000000000000000000000000000000000000000000000000000000000000007000000000000000600000000000000C306030000081006BFFBDA7FFFFBEBBF0000000000000000000000000000000000000000000000000000000000000000F50157A5EFE3DE43AC72249B573FAD2C03000000000000009F000906000000008017D0150400000000000000000000000000000000000000000000000000000001000000010000009A920CDB1B81CF0106000000000000000000000000000000000000000100000024010000000080BF8017D0150400000086000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
     

    I downloaded the minidump in my google docs to share:

    https://drive.Google.com/file/d/0BwKeBQWlRiHlNU5Md2VCWGpqSjA/edit?USP=sharing

    Any support you can give to help understand the cause would be useful

    Hello

    Thanks for the reply.

    I suggest you to post the question on the link below. His link of Windows 7 for the TechNet Support forums. They are the team who work for the issue that you are facing.

    http://social.technet.Microsoft.com/forums/Windows/en-us/home?category=w7itpro

    Feel free to write us if you still encounter problems related to Windows.

  • Hierarchy in a single column, with a hole more

    Hello
    I have the following query, which built a hierarchy:

    with it_dept (orga3) as
    (
    Select '0305' across double Union
    Select "03050202" of any double union
    Select "03050105" of any double union
    Select "03050001" of any double union
    Select "03050106" of any double union
    Select "03050203" of any double union
    Select "03050107" of any double union
    Select "0305000101" of any double union
    Select "0305000102" of any double union
    Select "0305000103" of any double union
    Select "0305020201" of any double union
    Select "0305020202" of any double union
    Select "0305020203" of any double union
    Select "0305020301" of any double union
    Select "0305020302" of any double union
    Select "03050204" of any double union
    Select "0305020401" of any double union
    Select "0305020402" of any double union
    Select "0305010501" of any double union
    Select "0305010502" of any double union
    Select "0305010601" of any double union
    Select "0305010602" of any double union
    Select "0305010701" of any double union
    Select "0305010702" of any double union
    Select "030501" of any double union
    Select '030502' double
    )
    Select parent_org,
    child_org,
    level lvl
    Of
    (
    Select parent_org null,
    child_tbl.orga3 child_org
    of it_dept child_tbl
    where length (child_tbl.orga3) = (select min (length (orga3))
    of it_dept
    )
    the Union / * cover the hole * /.
    Select '0305' parent_org,
    '030500' child_org
    of the double
    Union
    Select parent_tbl.orga3 parent_org,
    child_tbl.orga3 child_org
    of it_dept parent_tbl
    outer join left it_dept child_tbl
    on parent_tbl.orga3 = substr (child_tbl.orga3, 1, length (parent_tbl.orga3))
    and (child_tbl.orga3) length = length + 2 (parent_tbl.orga3)
    )
    Connect prior child_org = parent_org
    Start with parent_org set to null.

    1. the data is organized in such a way that they build a hierarchy. Each level of
    This has the same number of digits.
    2. the data of the hierarchy is on a specific data column (i.e.: orga3).
    3. There's a hole in the hierarchy, which means that a member is missing (namely: the 2nd member of '030500' level).

    Issues related to the:
    (1) is there a simpler way to achieve the same result?
    (2) is it possible do not write the missing member, in order to cover the hole?
    (3) is it possible do not write + 2 (as in the line "and length = length + 2 (parent_tbl.orga3) (child_tbl.orga3)") for
    in terms of getting the members of next level?


    Note: I'm using OracleDb 11 g v.2

    Thank you
    SIM

    When I see a problem that really needs a better model of data, I wonder: ' how would I migrate data to a better model?

    Once I wrote the SQL code to migrate the data, the SQL to meet the requirement is simple.

    If you cannot migrate the code, just run the two SQL bits, one after the other.

    For example, the test data:

    create table it_dept(orga3) nologging as
    select '0305'      from dual union all
    select '03050202'  from dual union all
    select '03050105'  from dual union all
    select '03050001'  from dual union all
    select '03050106'  from dual union all
    select '03050203'  from dual union all
    select '03050107'  from dual union all
    select '0305000101' from dual union all
    select '0305000102' from dual union all
    select '0305000103' from dual union all
    select '0305020201' from dual union all
    select '0305020202' from dual union all
    select '0305020203' from dual union all
    select '0305020301' from dual union all
    select '0305020302' from dual union all
    select '03050204'  from dual union all
    select '0305020401' from dual union all
    select '0305020402' from dual union all
    select '0305010501' from dual union all
    select '0305010502' from dual union all
    select '0305010601' from dual union all
    select '0305010602' from dual union all
    select '0305010701' from dual union all
    select '0305010702' from dual union all
    select '030501'    from dual union all
    select '030502'    from dual;
    

    To migrate the data, I have to assume that there is difference of 2 bytes between child and parent. If you introduce a difference of 1 or 3 bytes, we're all lost.

    create or replace view new_it_dept as
    with minlen as (
      select min(length(orga3)) minlen from it_dept
    )
    , filled_hierarchy as (
      select distinct substr(orga3,1,minlen+(level-1)*2) orga3,
      minlen
      from it_dept, minlen
      connect by orga3 = prior orga3
      and prior sys_guid() is not null
      and length(orga3) >= minlen+(level-1)*2
    )
    select
    case when length(orga3) > minlen
      then substr(orga3,1,length(orga3)-2)
    end dad,
    orga3 son
    from filled_hierarchy;
    

    If you create a table with that point of view, you have migrated data. If you cannot migrate, then simply use the view in your query.

    select dad, son, level from new_it_dept
    start with dad is null
    connect by dad = prior son;
    
    DAD SON LEVEL
    0305 1
    0305 030500 2
    030500 03050001 3
    03050001 0305000101 4
    03050001 0305000102 4
    03050001 0305000103 4
    0305 030501 2
    030501 03050105 3
    03050105 0305010501 4
    03050105 0305010502 4
    030501 03050106 3
    03050106 0305010601 4
    03050106 0305010602 4
    030501 03050107 3
    03050107 0305010701 4
    03050107 0305010702 4
    0305 030502 2
    030502 03050202 3
    03050202 0305020201 4
    03050202 0305020202 4
    03050202 0305020203 4
    030502 03050203 3
    03050203 0305020301 4
    03050203 0305020302 4
    030502 03050204 3
    03050204 0305020401 4
    03050204 0305020402 4
  • How do I access LDAP programmatically related information

    In my business, we plan to implement the Microsoft AD as a provider of authentication for our WLS. To my knowledge, once the installation is complete, all company AD user users and groups information will be automatically drawn in WLS and appear under the heading 'Users and groups' of WLS.

    Suppose we have a user belonging to A group and Group A is a child of the B group. When the user connects, using the principles of "Security.getCurrentSubject" (.getPrincipals ()), we can identify that this user belongs to group A. What I want to do is to get additional information such as the parent groups (e.g. Group B). I would like to ask if there is already an API within the ADF I can use to get more LDAP related information such as looking for the Enterprise user groups hierarchy. Or should I use the external LDAP API 3 rd-party like UnboundID LDAP SDK for access to the LDAP server directly to get more information.

    I would be very grateful if you could give me some advice

    You can use the construction in ldap api as shown here Andrejus Baranovskis Blog: Fusion Middleware 11g security - retrieve the ADF 11 g security groups or dive into Oracle: ADF integration with LDAP

    Timo

  • working with the hierarchy

    Hello

    I work with the hierarchy (using start with and plug by front) in order to built a 'tree' of jobs in the application.

    For each job, the hirarchy start with LEVEL 1 to the level "n".

    In the example below, I built the hirarchy for job number 34461, with 4 levels.

    Of curse, I have hundreds of jobs, but for simplicity I shows that the values of a job.

    I need your advice with the following problem:

    In the case wherever one of the lines return "bz" in mach_name column, I need to return ALL of the hirarchy work (in the example below - all 11 lines)

    where "bz" value didn't exists column mach_name - no lines related to the specific job should be returned.

    Please notify.

    < code >

    SQL > fixed line 300

    SQL > with all_data as (SELECT X.JOB_NAME, x.joid, LEVEL,

    x.box_joid,

    mach_name

    OF AEDBADMIN.ujo_job x, AEDBADMIN.ujo_job_tree j

    WHERE X.JOID = J.JOID

    START WITH J.PARENT_JOID = 34461

    CONNECT PRIOR X.JOID = J.PARENT_JOID)

    Select all_data.*

    of all_data;

    JOID'ART BOX_JOID LEVEL MACH_NAME JOB_NAME

    ------------------------------------ ---------- ---------- ---------- ----------

    Ys_Crm_Inv_Push_Load_Ctrl_tr_BOX 31596 1 34461

    Ys_Crm_Inv_Push_Load_Ctrl_tr 31605 2 31596

    Ys_Crm_Inv_BOX 31586 3 31605

    Ys_Crm_Inv 31587 4 31586 bz

    Auto Ys_Crm_Inv_OK 31588 4 31586

    E_Push_Trx_BOX 31594 3 31605

    E_Push_Trx 31595 4 31594 cr

    E_Push_Trx_OK 31597 4 31594 auto

    Ys_Crm_Load_Cntrl_tr_BOX 31599 3 31605

    Ys_Crm_Load_Cntrl_tr 31600 4 31599 bz

    Ys_Crm_Load_Cntrl_tr_OK 31602 4 31599 auto

    11 selected lines.

    < code >

    Thank you

    SELECT DISTINCT *.

    de)

    SELECT mytest.*

    , COUNTY (CASE

    WHEN mach_name = "bz".

    THEN 1

    END

    ) ON (SCORE OF CONNECT_BY_ROOT joid'art) AS good_cnt

    sys_connect_by_path(joid,'/')

    OF mytest

    START WITH lvl = 1

    CONNECT BY box_joid = PRIOR joid'art

    ) t

    ORDER BY road;

  • Application of hierarchy Oracle EBS

    y at - it an easy way to create through SQL for R12 of EBS a hierarchy of all the forms and menus attached to responsibility. The MOS notes 1334930.1 'sensitive administrative pages in Oracle EBS' can list the users who have access to forms called, but these forms are accessible as type sysadmin responsibilities and menus, so I wanted to see what types of claims are related to the responsibilities via a query. The name of form themselves are quite useless.

    Yes, you can add the code for function included in Note 1334930.1 in the query below:

    SELECT DISTINCT u.user_name, rtl.responsibility_name, ff.function_name,

    FFL.user_function_name

    OF fnd_compiled_menu_functions of the FCM.

    fnd_form_functions ff.

    fnd_form_functions_tl ffl,

    fnd_responsibility r,

    fnd_responsibility_tl rtl,

    fnd_user_resp_groups urg,

    fnd_user u

    WHERE cmf.function_id = ff.function_id

    AND r.menu_id = cmf.menu_id

    AND urg.responsibility_id = r.responsibility_id

    AND rtl.responsibility_id = r.responsibility_id

    AND cmf.grant_flag = 'Y '.

    AND r.application_id = urg.responsibility_application_id

    AND u.user_id = urg.user_id

    - and ff .function_id = 19438

    AND ff.function_name ('ALR_ALRALERT', 'ASO_DEFAULT_RULES') - add the functions required here

    AND ff.function_id = ffl.function_id

    AND (NOT IN) rtl.responsibility_name

    SELECT fnd_responsibility_vl.responsibility_name

    OF fnd_resp_functions, fnd_responsibility_vl

    WHERE action_id = 1678

    AND fnd_responsibility_vl.responsibility_id =

    fnd_resp_functions.responsibility_id)

    ORDER BY u.user_name

    -Kj

  • Loading XML into the relational Table data

    Hello

    I get a generated XML file to other tools (Windows), I am trying to create a Linux shell script that will gather the necessary XML file to my Linux server, then ask Oracle to use this file to load the XML data into a relational table. This activity and the data will be needed on an ongoing basis.

    I tried two ways. First, I loaded the XML document into the database and tried to extract the data directly from the document, but it does not work. Now I want to try to read the data directly from the file on the server through select, however I don't get all the returned data. In the Select statement below, I am trying to query the data to see what is returned for my tests.

    Create Table ci_results_table (transactionID Varchar2 (100), //transactionID should be PrimaryKey but became errors in test of insert, PK so deleted NULL value)

    message Varchar2 (200),

    This Varchar2 (50).

    XMLType of the ProcessedDate,

    status Varchar2 (50).

    sourceFile VarChar2 (100));

    Select x.*

    from XMLTable)

    ' TSPLoadResults/results '.

    PASSAGE xmltype (bfilename('CMDB_DEVADHOCRESULTS_DIR','LoadResults-HP_146.results.xml'), nls_charset_id ('AL32UTF8'))

    COLUMNS

    transactionID PATH Varchar2 (100) 'TransactionID '.

    Result XMLType PATH 'result ',.

    Message Varchar2 (200) PATH "Message."

    PrimaryKey Varchar2 (50) PATH "PrimaryKey"

    Date of ProcessedDate path "ProcessedDate."

    Status Varchar2 (50) PATH "Status."

    SourceFile VarChar2 (100) PATH "SourceFileName.

    ) x

    ;

    Eventually, I'll have to build on that to limit the returned data to records where SourceFileName is like '% PA' and insert what is returned in to the ci_results_table. Attached is an example of the XML results file I am trying to load, it is named "ResultsTransformedtoUnix" because I used dos2Unix to convert Unix which can be good or bad. (I send the output file must be converted to the format BACK until the other application can read). Original (before converting Unix) file named in the script is also attached.

    Help, please. Thank you!

    Hello

    I see some bad things in your query.

    (1) obvious one, explaining why you get all the data: there is a typing error in the XQuery expression, there 'result' not'slead.

    (2) ProcessedDate can be extracted as a date (at least not directly) because it actually represents a timestamp, use the TIMESTAMP WITH time ZONE HOURS and cast back to DATE data type in the SELECT clause

    (3) transactionID is an attribute, it must be accessible with ' @' (or ' attribute:' axis)

    (4) if the encoding of file really is ISO-8859-1 as suggested in the prologue, then do not use AL32UTF8 but the name of the corresponding character set: WE8ISO8859P1

    Here is the query to work:

    select x.transactionID
         , x.Message
         , x.Primarykey
         , cast(x.ProcessedDate as date) ProcessDate
         , x.Status
         , x.SourceFile
    from XMLTable(
           '/TSPLoadResults/Result'
           PASSING xmltype(bfilename('XML_DIR','LoadResults-HP_146.results.xml'), nls_charset_id('WE8ISO8859P1'))
           COLUMNS
             transactionID Varchar2(100)            PATH '@transactionID',
             Message       Varchar2(200)            PATH 'Message',
             PrimaryKey    Varchar2(50)             PATH 'PrimaryKey',
             ProcessedDate timestamp with time zone PATH 'ProcessedDate',
             Status        Varchar2(50)             PATH 'Status',
             SourceFile    VarChar2(100)            PATH 'SourceFileName'
         ) x
    ;
    

    Directly on the file using this query will only be decently (for large files) on 11.2.0.4 and beyond.

    On older versions, first load the file into a (temporary) XMLType column with binary XML storage and CHOOSE from there.

    because I used dos2Unix to convert Unix which can be good or bad.

    This conversion should not be necessary.

  • @RELATIVE ({size},-1) feature

    I'm developing a business rule in an environment I can't experiment in particular in and ideally, the technical reference Oracle ignores how the @RELATIVE function works when you specify a level and acting on a level member.

    So my question is: if I correct @RELATIVE ({cost center},-1), then select a level 1 (California) cost center in my form. Which of the following results set?

    R: California

    B: California, Texas, Rhode Island, etc. (all US States)

    C: something else?

    The children of California will be returned.

    I don't know what you have in your hierarchy below California (and my US geography isn't very big!)

Maybe you are looking for

  • How can I move favorites in the any folder of Google Chrome to Mozilla Favorites?

    I imported my favorites of Google Chrome. A folder was created in bookmarks in Mozilla. I want to move some of the bookmarks to my favorites from Mozilla.

  • With Satellite A50 wireless issues

    1. I have WIFI wireless internet, since a week I can net get on the internet, before everything was ok, the internet service provider said the connection with internet is ok, 2 - I try to write DVD (rw) and it doen not work - cd - rw is ok

  • DEXT does not vibrate when you receive a text

    Ive checked all the settings and Yes is checked so that it can vibrate when a message is received, but nothing happens. I also checked that works of vibration function and it seems to be good when you use something like the handcent app. Any suggesti

  • connect to another computer in directory shared

    I have a valid IP and I want to connect to another computer (a valid IP) of shared directory

  • Installer Windows - no operation

    I get the error message windows install is not available.  I followed the instructions for the ONU No. / re registration. also, I went where services are listed and could not find windows install.  any help will be greatly appreciated.