Solved

select xml data from local file in OS

Posted on 2013-11-10
1
378 Views
Last Modified: 2013-11-18
Is this posslbe?

I have a xml file

"/home/oracle/output.xml"

I would like to select the xml data and insert it into a table.

if it is possible, How can i achieve this?
0
Comment
Question by:FutureDBA-
1 Comment
 
LVL 22

Accepted Solution

by:
Ivo Stoykov earned 500 total points
ID: 39638015
try loading it directly:

CREATE DIRECTORY xmldir AS '/home/oracle/';
INSERT INTO my_table(XML_Column_name) VALUES (XMLType(bfilename('XMLDIR', 'output.xml'), nls_charset_id('AL32UTF8')));

Open in new window


HTH

Ivo Stoykov
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

Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

708 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

17 Experts available now in Live!

Get 1:1 Help Now