Solved

oracle, database, 10, exporting to xml -export to file

Posted on 2008-06-13
3
563 Views
Last Modified: 2013-12-19
folks
how can I export this following query using the DBMS_XMLGEN.GETXML function to a file in my C:\temp drive

Select DBMS_XMLGEN.GETXML (
      'select WORKORDER.wonum,ASSET.ASSETNUM,WORKORDER.DESCRIPTION,
      (SELECT LOCATIONS.LOCATION FROM LOCATIONS WHERE WORKORDER.LOCATION=LOCATIONS.LOCATION)AS GG
      from workorder,ASSET
     where WORKORDER.ASSETNUM=ASSET.ASSETNUM AND WORKORDER.status =''COMP'' AND
    WORKORDER.WORKTYPE=''PM''')
  from dual;

all help will do
0
Comment
Question by:rutgermons
3 Comments
 
LVL 29

Accepted Solution

by:
MikeOM_DBA earned 500 total points
Comment Utility

You could use the UTL_FILE package.
0
 

Author Comment

by:rutgermons
Comment Utility
have u got an example?

r
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now