Oracle  - Using XML in Oracle/ SORRY double Post

SORRY for double Post!
Good Morning!
I wanted to insert some xml Data into my Orcale XML DB:
First of all I registered 2 Schemas required for the XML, like this:
Begin
DBMS_XMLSCHEMA.registerSchema(
schemaURL => 'Mailpiece_Processing/oif_dtypes',
schemaDoc => bfilename('XML_TEST','oif_dtypes.xsd'));
End;
then Created a table:
Create table XML_default auf XMLType
then inserted XML like this:
insert into xml_default
values
XMLTYPE
Bfilename ('XML_TEST', 'Test.xml'),
nls_charset_id('AL32UTF8'
Now to my question: Oracle is offering more than one possebility to save XML into its DB. If I import XML like this, is it called CLOB Storage or object relational?
Thanks in advance
runkel
Message was edited by:
user623693
Message was edited by:
user623693

Hi ,
I can only give u a few examples here but for the full sytanx and features of this powerful feature u may have to refer to some documentation online or read a book on XML within Oracle Database.
Let me try a few examples here
1) To extract the data from XML document an SQL plus command is available in XML DB. This feature is available from 10G onwards
example : select xmlelement(name,ename) from emp
Output will look like
<NAME>SMITH </NAME>
<NAME> JOHN </NAME>
<NAME> JONES </NAME>
2) CREATE TABLE FAMILIES (F_ID NUMBER(3), F_XML XMLTYPE);
insert into families values(1,xmltype('<XML.....>'));
or
insert into families values(1,''<XML>......' ));
Hope this helps !!!
Regards
Faiz

Similar Messages

  • Double Post, Ignore

    Sorry, double post. I don't see a delete option

    I wonder why Adobe didn't decide to go with a forum like
    vBulletin. There are so many quarks like that in forum building, it
    would seem to be more cost effective to implement an existing
    system.

  • Double Post --Discard this

    Sorry double post accidently.
    Edited by: Cole1988 on Apr 18, 2008 10:57 PM

    Haven't you had all your cappos today Karsten (or maybe too many)?
    John

  • Using Native Oracle XML DB Web Services - REST POST web service possible?

    My goal is to expose some pl/sql procedures as a REST web services.
    The Database is 11gR2
    The request method needs to be a POST (not GET as a request will perform insert/updates ) - the request body will contain a xml structure
    Have setup XMLDB Database-native Web Services as per
    11g documentation "Using Native Oracle XML DB Web Services"
    It seems this setup support only SOAP requests!?
    RESTful webservice with GET is (sort of) supported using
    Embedded PL/SQL Gateway as describer here:
    http://ora-00001.blogspot.com/2009/07/creating-rest-web-service-with-plsql.html
    Although no support for POST
    Obviously the post is from 2009 so just want to know if anything changed since.
    Has anyone found a way to expose pl/sql procedures using XML DB or other approach as a REST POST web services?
    (As the relative low number of calls/hour and also the aim to have the least amount of moving parts therefor looking for a DB centric solution)
    Thanks
    Pete

    I think the post referred to was more an exercise of what could be achieved. The quickest way, nowadays, to get this done with not too much hassle is via APEX
    http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35128/restful_svc.htm
    M.

  • Using XML DB with Oracle Drive as Webdav client

    Hi all -
    I'm looking into using XML DB (10g) to store files so we can query their content via SQL/XPATH and then access/edit them via Webdav.
    Windows Vista makes this easy, since it can map a drive to a Webdav URL. Mac OSX can do a similar thing.
    Windows XP however can't do the drive mapping for WebDav on a port other than port 80, which is our setup.
    So I tried out Oracle Drive, which I stumbled across on some site somewhere, and it worked. But it was an old version, so I downloaded the "official" version from Oracle, which is v10.2.0.0.22. This version refuses to connect to XML DB no matter what I do. I've fiddled with authentication, proxies, and so on (there are several posts elsewhere with hints on this) but so far no joy.
    Has anyone had any experience making the latest version of Oracle Drive talk to XML DB?
    Many Thanks

    Thanks for replying.
    Yes, we may decide to move XML DB to port 80, but there are other services running on our server and such a move would be a significant hassle.
    As for Windows XP, it is not possible to do this: net use * http://server:8080/public
    This works on Vista, but it only works on XP if you use port 80.
    Note that XP has TWO built in Webdav clients: Web Folders (= Network Places) which is a feature in Explorer, and the Webdav Mini-Director which works at the file-system level. I don't think Web Folders can work for us since we need to be able to create a real filepath to give to our editor application. Maybe I'm wrong on that, but I can't figure it out.
    Oracle Drive seems to be a great solution, but I can't make the most recent version work (the old version worked but was buggy).
    Edited by: user10775425 on Jan 9, 2009 12:03 AM

  • Help needed, double post-submit on Oracle 9iAS ?

    Hi,
    I am working on a project where we make use of Oracle Application Server 9.0.3 in combination with OC4J and struts. During development we have made use of JDeveloper 9.0.3 and its integrated server for testing the application. Unfortunately we have been waiting too long with deploying the app on the 'real' (Oracle IAS) server, and now we found out that when deploying the application on IAS, some parts of our application do not seem to work anymore.
    After a little investigation we found out that all POST submits of our forms seem to be submitted twice.
    Since we did some Javascript-evaluation before submitting, we first thought that that the problem was client-side, but after adding code to make sure that the submit will only occur once (flag set to 1 before submit, and only submit when flag = 0 etc..), the problem still persists...so the submit does not come from our document.formx.submit() command...
    Let me restate that this double posting does not occur within the JDeveloper-test-environment using the same browser.
    Now convinced that the problem was server-side, we thought we could focus on this side. Unfortunately, after an occasional test with a Mozilla-browser (our default (customer) browser is IE6), the problem did NOT occur !
    So, to sum things up :
    - Javascript does not submit twice
    - On the server, the logging indicates a double post-action
    - On client-side, only a single-post is allowed...
    - mozilla does not seem to cause problems, while IE6 does.
    - JDeveloper runtime environment does not expose the problem (with either browser, it goes smooth), while deploying on the IAS 9.0.3 server does...
    Can anyone shed some light on this ? We've been looking into it for a day already, and need to get it fixed asap (as always ;o))...
    Thanks for any info,
    Bas van Driel

    This sounds like a strange java problem not IAS
    From the sun site
    "When I try to open a file through my Java Web Start application, a message box pops up with the title "javaw.exe - No Disk". Why does this happen?
    This is a bug in the Java 2 SDK v1.2.2 or v1.3 . This bug will be fixed in a future Java 2 SDK release. In the meantime, there are a couple workarounds: "
    Id be very tempted to remove any JDK/JRE installations, or even better start with a clean machine.
    Hope this helps.

  • Printing Arabic text in Oracle Application(R12i) using XML Publisher.

    Hi,
    I am using Oracle Application R12i version with Oracle database as 10g, base language as English and installed language as Arabic.
    I am trying to print the data which is there in English/Arabic in Oracle Application(using XML Publisher).
    I've created a rdf using Report Builder 10g and registered as concurrent program (XML as Output format). There after i executed the concurrent program and generated the XML file.
    Based on the XML file, i created a rtf file using XML Desktop(in Ms word) and register the same rtf file in XML Publisher Administrator for creating the XML definition and Template and Output as PDF.
    After creating a XML template, when i executed the Concurrent program, english text is shown in english but arabic text is shown some ascii characters like Question Mark(up side down).
    Could anyone please let us know the steps for doing the same or plz let us know are we missing any step.
    Quiet urgent.
    You could also reply to [email protected]
    Thanks in advance
    Your help will be appreciated.
    Edited by: user10772035 on Aug 20, 2009 10:23 PM

    Same Problem here, if you are able to solve it, please also help me.

  • Generating multi-level XML in Oracle 8i using XML-SQL utility

    Oracle 8i has a limitation when it comes to the object types. Only one-level nesting of collection is allowed. Oracle 9i apparently removes this limitation.
    I am trying to generate XML for a hierarchical (conceptually) structure. To do that I am using XML-SQL utility (XSU) running agains an object view build on top of the relational data. The problem is the limit to onelevels of colelction nesting. Oracle 8i gives you a way to create a view with more levels of nesting by using references (REF). The problem is that when XSU runs agains a view with the references, it inserts the references into the XML document (instead of dereferencing them).
    Is there a way to generate XML with Oracle 8i with more than two levels of collection nesting?
    Thank you.
    Michael

    Oracle 8i has a limitation when it comes to the object types. Only one-level nesting of collection is allowed. Oracle 9i apparently removes this limitation.
    I am trying to generate XML for a hierarchical (conceptually) structure. To do that I am using XML-SQL utility (XSU) running agains an object view build on top of the relational data. The problem is the limit to onelevels of colelction nesting. Oracle 8i gives you a way to create a view with more levels of nesting by using references (REF). The problem is that when XSU runs agains a view with the references, it inserts the references into the XML document (instead of dereferencing them).
    Is there a way to generate XML with Oracle 8i with more than two levels of collection nesting?
    Thank you.
    Michael

  • Using XML extraction from Oracle and XSLT data transformation

    Hi
    How can transfer data ie: Using XML extraction from Oracle and XSLT data transformation with java application?
    usually i use to do querying sql, getting data from table assinging to model class then send it to UI. how can i go for XML extraction form oracle?
    thanks

    Sorry, I don't understand what exactly you want to do. And I'm under the impression that you might not know exactly what you want to do as well. Could you explain a bit more detailed what you want to achieve?

  • Problem while using XML with Oracle

    I have a problem using XML with oracle applications
    The process I am following
    1. Making a XML string.
    2. Parsing it to get a document
    3. Free the parser using xmlparser.freeparser
    4. Traversing through nodes .
    5. Freeing the document.
    The whole Process is executed in batch mode.
    The problem occurs after executing the procedure for 5000 records and I get the error
    ORA-04031: unable to allocate 4176 bytes of shared memory ("shared pool","unknown object","sga
    heap","library cache")
    Can you please help me out to overcome this problem
    It's urgent
    I have
    Oracle version 8.1.7.0.0
    XML version 1.2
    OS Windows NT
    To resolve the problem I have increase shared memory size and java initialization parameters ,which seems OK
    Looking forward for your answer.

    Hello, Reena
    Your process flow seems to be correct in term of getting/freeing memory.
    Following error
    The problem occurs after executing the procedure for 5000 records and I get the error
    ORA-04031: unable to allocate 4176 bytes of shared memory ("shared pool","unknown object","sga
    heap","library cache")may be caused by memory leaks in xdk or memory fragmentation(due to get/free memory cycle)
    To find out if this is an memory leak issue you could try to monitor V$SGASTAT from one session while running your batch process in another session.
    To prevent (or lower its impact) fragmentation issues try to PIN objects, and adjust java_pool_size and shared_pool_reserved_size.
    Anyway, counsult your Oracle DBA.
    Oracle version 8.1.7.0.0I think, you should apply database patch first of all. The latest one (8.1.7.4.x) could be accured from Metalink.

  • Accessing Oracle 7.3 database using XML-RPC

    Hi All
    I am a beginner to XML. I am looking for a solution to access my database oracle 7.3 using XML-RPC. Has anybody already tried to do this. Please! Could anybody help me by giving a tip?
    Thanks.
    Marcelo R. Braga.
    Sao Jose dos Campos - Brazil.

    You should check in 9iAS XML-RPC support in mid-tier

  • How to achive in this data in oracle using xml tag ?

    hi All ,
    i am using sql 3.1
    i have one question that how can i achieve this below XML tag using XML query. this below  whatever i am showing here data is one table . how can i achieve this things using XML tag like xml forest or whatever may be
    please help me .
    ---code
    <Metadata>
    <Dept Deptno="10">
      <Name>Administration</Name>
      <Location>Seattle</Location>
      <Employees>
       <Emp empid="200">
        <FirstName>Jennifer</FirstName>
        <LastName>Whalen</LastName>
       </Emp>
      </Employees>
    </Dept>
    <Dept Deptno="20">
      <Name>Marketing</Name>
      <Location>Toronto</Location>
      <Employees>
       <Emp empid="201">
        <FirstName>Michael</FirstName>
        <LastName>Hartstein</LastName>
       </Emp>
       <Emp empid="202">
        <FirstName>Pat</FirstName>
        <LastName>Fay</LastName>
       </Emp>
      </Employees>
    </Dept>
    </metadata>
    Thanks
    Damby

    please reply

  • Curve 9300 problem ..... Please Help ! (SORRY FOR DOUBLE POST)

    SORRY FOR DOUBLE POST GUYS, it bugged and I don't know how to delete it ! I don't want to get an infraction :/ ..
    Hey Guys ! First of all, I'm new to the community and looking forward to be as active as possible to help people and get help from professionals ! (And sorry for my bad english tho :/..)
    So here's the problem ...... I bought a blackbery Curve 9300 today, and what happens, is when I try to update it, it gave me at first, error 507 (Which means there's no OS in the device I suppose) ... when I tried to update it again, it gets stuck on ''Reconnecting to JVN'' or ''JVM'' can't remember ..... ive been trying to find a solution for hours and stil no luck .... i tried pulling the battery out and putting it back in, but doesnt work ..... a pop up message told me to go to control panel, check for USB Root hub and put a check mark on a certain option, but they were already checked ..... this situation is extremely frustrating because the guy from whom i bought the phone doesn't answer anymore, and I don't really want to take it to a store to repair it for like 60-80 $ or whatever ..... if possible, I'd like to get some help please !!!
    Thank-You in advance guys !

    Hi 12khaled21,
    Welcome to the community.
    Error code 507  comes when there is no OS   installed in your device. 
    Try downloading appropriate OS and install it.
    Check this link KB10144 and reply back.
    Raj
    Click " Like " if you want to Thank someone.
    If Problem Resolves mark the post(s) as " Solution ", so that other can make use of it.

  • Does Oracle address ANY posts here?

    Does Oracle address ANY posts here?
    Seems like the only valuable information is from other users and not from Oracle in these forums which means if you really have an Oracle problem/bug like I do then you are SOL.
    Would be nice if Oracle would address some of the post/issues in these forums.
    At least the DB2 UDB folks actually answer there forums...

    Hi Nedf,
    As Wendy stated in your other thread in this forum, you need to use the link below to get help from or give feedback to HP.  This is a community where users assist other users.
    http://welcome.hp.com/country/us/en/wwcontact_us.html
    This user-to-user community is not a venue to receive direct help or feedback from HP. If you have any further questions or concerns, please feel free to send me a Private Message.
    Clicking the "Kudos star" to the left is a great way to say thanks!
    When your problem has been solved, accept the solution by clicking the "Accept as Solution" button to help other members in the future!
    Rules of Participation

  • (edited)pls delete this. sorry for double post.

    pls delete. sorry for double post.

    the many options in 'Export with Quicktime...' offer you .aiff as format.. which is the audio-only of your project.. drag that into iTunes/Toast/Jam/whatever CD-authoring you're using and you get an audioCD of the iM-project..
    but that is a single-track, whole-gig-in-once CD ... little convenient (I would prefer seperate tracks).. so, I guess, you have to edit that .aiff export first in some app, ... I'm just an average iLife User, my preferred tool is Garageband... but, for sure, any other audio-processor, as Logic, is able to handle that with a snap..
    just to feed my curiosity: what spurred you to give yourself such a nic??

Maybe you are looking for