How do I Load a clob from an XML field in an XMLTYPE using XMLTABLE ?

I am trying to load data into a CLOB from a XML field using XMLTABLE.
I have a SUMMARY xml field with over 100 K of data (potentialy)
and I can load all the other datatype fields to columns but can not load the xml fields over 4000 characters.
example
First I create a table of XMLTYPE. I need to sqlload new files in at regular intervals.
Create table WEB_XML of XMLTYPE;
Then I create my relational table....
create table WEB_WORKING
request_id varchar(10),
ref_number varchar(20),
summary clob
The I use the .ctl file to sqlload the xml data in
LOAD DATA
INFILE *
INTO TABLE WEB_XML
append
xmltype(XMLDATA)
ext_fname filler char(90),
XMLDATA LOBFILE(ext_fname) TERMINATED BY EOF
BEGINDATA
XMLFILE1.xml
After loading the WEB_XML table using sqlldr, I try to load my relational table using XMLTable
INSERT into WEBBAR_WORKING
request_id ,
ref_number ,
summary
SELECT X.* FROM WEB_XML P2,
XMLTable ( '//Request//REQUESTVIEW'
PASSING P2.object_value
COLUMNS
"request_id" VARCHAR(10) PATH 'REQUEST_ID',
"ref_number" VARchar(20) PATH 'REF_NUMBER',
"SUMMARY" clob PATH 'SUMMARY'
) AS X;
This gives an error saying its not expecting clob
My XML looks somthing like
-<Request>
-<REQUESTVIEW>
<REQUEST_ID>3140</REQUEST_ID>
<ref_number>2003-04-02</RECEIVED_DATE>
<SUMMARY>
OVER 100 K of data
</SUMMARY>
</REQUESTVIEW>
</Request>

ok
that helped lot, im getting there however some more help please
This SQL
SELECT request_id, recieved_by, X.SUMMARY.getClobVal()
FROM WEB_XML P2,
XMLTable
'//Request//REQUESTVIEW'
PASSING P2.object_value
COLUMNS
"request_id" VARCHAR(10) PATH 'REQUEST_ID',
"received_by" VARCHAR(10) PATH 'RECEIVED_BY',
"SUMMARY" xmltype PATH 'SUMMARY'
) AS X;
SELECT request_id, recieved_by, X.SUMMARY.getClobVal()
ERROR at line 1:
ORA-00904: "RECIEVED_BY": invalid identifier
If I use the X.request_id, X.received_by ......
i get the error message
Package or function is in aan invalid state.
But this SQL was successful in getting the clob by itself but with the XML tgs around it still, how do I strip the XML tags from around this result ?
SELECT X.SUMMARY.getClobVal()
FROM WEBBAR_XML P2,
XMLTable
'//Request//REQUESTVIEW'
PASSING P2.object_value
COLUMNS
"SUMMARY" XMLTYPE PATH 'SUMMARY'
) AS X;
----------------------------------------------------------

Similar Messages

  • I have hierarchy data in R/3 side how will i load that data from R/3 to BW

    Hi all,
    i have my hierarchy data in the R/3 side how will i load that data from  R/3 to BW side
    Regard
    Kiran Kumar

    Hi Kiran,
    Here is the procedure:
    1.      In the Data Warehousing Workbench under Modeling, select the InfoSource tree.
    2.      Select the InfoSource (with direct update) for the InfoObject, to which you want to load the hierarchy.
    3.      Choose Additional Functions® Create Transfer Rules from the context menu of the hierarchy table object for the InfoObject. The Assign Source System dialog box appears.
    4.      Select the source system from which the hierarchy is to be loaded. The InfoSource maintenance screen appears.
    ○       If the DataSource only supports the transfer method IDoc, then only the transfer structure is displayed (tab page DataSource/Transfer Structure).
    ○       If the DataSource also supports transfer method PSA, you can maintain the transfer rules (tab page Transfer Rules).
    If it is possible and useful, we recommend that you use the transfer method PSA and set the indicator Expand Leaf Values and Node InfoObjects. You can then also load hierarchies with characteristics whose node name has a length >32.
    5.      Save your entries and go back. The InfoSource tree for the Data Warehousing Workbench is displayed.
    6.      Choose Create InfoPackage from the context menu (see Maintaining InfoPackages). The Create InfoPackage dialog box appears.
    7.      Enter the description for the InfoPackage. Select the DataSource (data element Hierarchies) that you require and confirm your entries.
    8.      On the Tab Page: Hierarchy Selection, select the hierarchy that you want to load into your BI system.
    Specify if the hierarchy should be automatically activated after loading or be marked for activation.
    Select an update method (Full Update, Insert Subtree, Update Subtree).
    If you want to load a hierarchy from an external system with BAPI functionality, make BAPI-specific restrictions, if necessary.
    9.      If you want to load a hierarchy from a flat file, maintain the tab page: external data.
    10.      Maintain the tab page: processing.
    11.      Maintain the tab page: updating.
    12.      To schedule the InfoPackage, you have the following options:
    ○       (Manually) in the scheduler, see Scheduling InfoPackages
    ○       (Automatically) using a process chain (see Loading Hierarchies Using a Process Chain)
    When you upload hierarchies, the system carries out a consistency check, making sure that the hierarchy structure is correct. Error messages are logged in the Monitor. You can get technical details about the error and how to correct it in the long text for the respective message.
    For more info visit this help pages on SAP Help:
    http://help.sap.com/saphelp_nw04s/helpdata/en/80/1a6729e07211d2acb80000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/3d/320e3d89195c59e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/80/1a6729e07211d2acb80000e829fbfe/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4dae0795-0501-0010-cc96-fe3a9e8959dc
    Cheers,
    Habeeb

  • How can i load a VI from LABVIEW ver 6.0.1b3 to LABVIEW ver 6.1

    How can i load a VI from LABVIEW ver 6.0.1b3 to LABVIEW ver 6.1......I want to load a vi but i'm getting this error:
    LabVIEW load error code 9:VI version (6.1) is newer than LabVIEW version (6.0.1b3)
    My LabVIEW ver is 6.1
    Please help ......it's important
    Thanks

    I am having similar issues with a *.exe from LV6.1.  I have the runtime engine for 6.1 and recently upgraded to 8.2 from 7.1.  I've never had 6.1 on my machine.  I am able to install this executible and runtime engine on a machine with 7.1 and can run the *.exe fine. 
    I get a load error and am not sure why.  I have had similar issues with old VI's that I have written in 7.1 executing on this machine w/ 8.2
    any suggestions.
    Attachments:
    error.zip ‏14 KB

  • How do I load a movie from my iTunes library to my ipad?

    How do I load a video from my iTunes library on my desktop to my iPad

    Sync the movie with iTunes.
    Connect the iPad to the computer, launch iTunes, Select your iPad on the left side. Click on the Movies Pane in iTunes on the right. Click on the movie that you want to sync. Make sure that the Sync Movies headings is selected as well. Click on Sync - or Apply - in the lower right corner of iTunes.

  • How do I load photo's from a mac running OS X10.4 to my IPad 3?

    How do I load photo's from my Mac running OS X 10.4 to my IPad 3?

    Get an SD card, an SD card reader for your mac, and get the SD card reader adapter (camera connection kit) for the iPad. You can then upload your photos from the Mac to the SD card using the card reader. Then plug in the SD card reader adapter for the iPad and stick your SD card into it. You can then upload the photos to your iPad.
    You want a camera connection kit (for ipad); you can get it on the apple store.

  • How do i load selected pics from my mac to my ipod touch?, How do i load selected pics from my mac to my ipod touch?

    How do i load selected pics from my Macpro to my ipod touch?

    You really need to read the manual.
    Open itunes, connect ipod, go to photos tab, select what you want, sync.
    iPod touch User Guide (For iOS 5.0 Software)

  • Does anyone know how to down load a photo from the ipad2 to an amazon seller account to sell an item?  Do I have to download an app for this?

    Does anyone know how to down load a photo from the ipad2 to an amazon seller account to sell an item?  Do I have to download an app for this?

    You can use 3rd party apps like Photo Transfer App.
    http://i1224.photobucket.com/albums/ee374/Diavonex/Album%205/79b3173fda7b6a6e148 5b463198f6acf.jpg

  • How do I load music videos from my computer to my iPad when I don't have import in my iTunes

    How do I load music videos from my computer on to my iPad when I don't have "import" on my iTunes?

    Could you explain more? WHat do you mean that you do not have "import" on iTunes? Are you trying to find an import command to add the videos to your iTunes media library? It is called Add to library and is found in the iTunes File menu.
    But you can add files to the iTunes media library by just dropping the files onto the iTunes icon.

  • Loading multiple data from a XML file?

    Hi,
    I'm having trouble loading multiple data from the same XML file. In this XML file I have a list of dishes I want to add into a menu. So, how can I load multiple data from different branches of the XML file into my text fields?
    Thanks in advance,
    Rafael Carignato

    I'm not quite sure what you are trying to do.  I have this working with a .JSON file that loads "multiple" date into "multiple" fields in Edge - Is that what you mean?
    Here's an example:
    $.getJSON('slides.json', function(data) {
              for(var i=0;  i<data.length;  i++)
                                  var s = sym.createChildSymbol("slide", "stage");
                                  s.$("photo").css({"background-image":"url('"+data[i].image+"')"});
                                  s.$("title").html(data[i].title);
                                  s.$("price").html(data[i].price);
                                  s.getSymbolElement().css({"position":"absolute",
                                                      "left": i*225+50+"px",
                                                      "top":"100px"});
    Each name above (photo, title, price) has an element on the stage (or in my case, a symbol) and my .JSON file has has a "branch" for each of these:
    "image" : "images/7783.jpg",
    "title" : "SNOCONUTS",
    "price" : "12.00"
    Hope that helps...
    James

  • How can i detach the video from a clip so i can only use the audio when using imovie?

    how can i detach the video from a clip so i can only use the audio when using imovie?

    First, go to iMovie/Preferences and enable the Advanced Tools.
    Import the video clip into an iMovie Event. When you get ready to use it in an iMovie Project, select the clip in the Event and drag & drop it on top of a video or photo clip in the project at the place where you want it to begin. When the pop-up menu appears, choose Audio Only.

  • How I can delete my account from Itunes Store? [I am not using it anymore and will not]]

    How I can delete my account from Itunes Store? [I am not using it anymore and will not]

    Just stop using it and remove your payment info.
    There is no need to do more.

  • How can i remove unwanted bookmarks from bookmark bar on MAC I'm using firefox 4.0.1 and on previous version Ff 3.6 I had organize bookmark button on this version I don't

    how can i remove unwanted bookmarks from bookmark bar on MAC I'm using firefox 4.0.1 and on previous version Ff 3.6 I had organize bookmark button on this version I don't

    http://support.mozilla.com/en-US/kb/Deleting%20Bookmarks?s=delete+bookmark&as=s
    follow the above link it explains it all

  • How do I de register Photoshop from 2 computers that I no longer use?  Both computers hard drives have died and I need to use Photoshop CS4 on another machine

    How do I de register Photoshop from 2 computers that I no longer use?  Both computers hard drives have died and I need to use Photoshop CS4 on another machine

    You will need to contact Activation Support:
    http://helpx.adobe.com/x-productkb/policy-pricing/activation-deactivat ion-products.html
    Click the Chat Now button at the end of the page and talk with a live agent who would resolve it ASAP.
    Regards,
    Ashutosh

  • How do I get music (downloaded from CD to PC) to my Iphone using Itunes?

    how do I get music (downloaded from CD to PC) to my Iphone using Itunes?
    Iphone 4S
    Windows 7

    Sync it the same way any other content in iTunes is put on the device.

  • How to transfer service ticket data from ECC6.0 to CRM 7.0 using LSMW?

    how to transfer service ticket data from ECC6.0 to CRM 7.0 using LSMW?
    Plz suggest me any BAPI or IDOC for that ..
    thanks in Advance .

    You have to convert your long string to a table of shorter strings.
    There may be other ways, but one possibility is to use a loop to process you string.
    while (there is something left)
       put the next e.g. 1024 characters in a new row of your table
    endwhile
    If you need to reconstruct your string from the table, don't use simple concatenation since it will remove blanks at the end of lines. Believe me (from experience) sooner or later this will happen.
    Instead you need to either set the subsections of your long string, or insert from the end of your table and keep shifting the contents (probably less efficient) right

Maybe you are looking for

  • Adobe Cloud membership - I am stuck in the loop of Licensing VERY Frustrating!!!

    I have an Adobe Cloud membership - I am stuck in the loop of Licensing as well VERY Frustrating - I have a project due and have been troubleshooting for days - Un Installing - Re installing - NIGHTMARE  - Please someone help me!!! Thanks in advance -

  • Run time error while creating billing doc.

    Hi all, While saving a billing document I am facing runtime error every time. Can any one help me what are the possible reasons and possible solution to overcome this. Since it is on high priority, expecting response at the earliest. Sunanda.P

  • New Yahoo or any other IM Settings for Nokia in-bu...

    Until the last year, this server and all the related settings worked fine! "Enter your yahoo account (user, password etc) then put in: imps.msg.yahoo.com as server/web address." But now, it always gives me "Login Failed Error". I think Yahoo has chan

  • Regarding printing word file using smartforms

    Hi SAP Gurus, My requirement is as follows, I need to print an xls file or a word file from pc using smartforms. ie, uploading into internal table convert to smartforms format and print. Please suggest. Thanks & Regards, Pavan.

  • Anybody using MS SQL Server as dehydration store?

    anybody using MS SQL Server 2005 as dehydration store? Please give me a reply. I am facing lot of issues with this. Thanks V Kumar Edited by: user640551 on Oct 15, 2008 5:51 AM