473,320 Members | 2,180 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Oracle Export/Import in XML/ASCII format

1
Hi,

I would like to know if Oracle provides any feature to import data in ASCII/XML files directly.

I would not wish to go for Oracle import in Binary format.

I found such provision provided by MYSQL.Please refer the below URL for further details.

http://dev.mysql.com/doc/refman/5.0/en/mysqlimport.html

I am looking for some similar feature in Oracle.

Please do let me know if any such feature exists in Oracle.
Oct 25 '06 #1
3 6906
debasisdas
8,127 Expert 4TB
Qestion moved to Oracle Forum.
Nov 3 '07 #2
amitpatel66
2,367 Expert 2GB
Hi,

I would like to know if Oracle provides any feature to import data in ASCII/XML files directly.

I would not wish to go for Oracle import in Binary format.

I found such provision provided by MYSQL.Please refer the below URL for further details.

http://dev.mysql.com/doc/refman/5.0/en/mysqlimport.html

I am looking for some similar feature in Oracle.

Please do let me know if any such feature exists in Oracle.
SPOOL command will help you to create data file in ascii format..
Nov 4 '07 #3
Exporting data as XML can be done as follows:
SET SERVEROUTPUT ON
DECLARE
v_file Utl_File.File_Type;
v_xml CLOB;
v_more BOOLEAN := TRUE;
BEGIN
-- Create XML document from query.
v_xml := DBMS_XMLQuery.GetXML('SELECT table_name, tablespace_name FROM user_tables WHERE rownum < 6');

-- Output XML document to file.
v_file := Utl_File.FOpen('C:\Development\XML', 'test1.xml', 'w');
WHILE v_more LOOP
Utl_File.Put(v_file, Substr(v_xml, 1, 32767));
IF Length(v_xml) > 32767 THEN
v_xml := Substr(v_xml, 32768);
ELSE
v_more := FALSE;
END IF;
END LOOP;
Utl_File.FClose(v_file);

EXCEPTION
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE(Substr(SQLERRM,1,255));
Utl_File.FClose(v_file);
END;
/

HTH
Roel Hogendoorn
http://www.altasen.com Oracle Application Books: Workflow, System Administration and BI Publisher
Nov 5 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Dave Irick | last post by:
We are looking for assistance in setting up export/import jobs that will use DLT tapes managed by Netbackup. The issue seems to be how to specify the "file" parameter of export/import so that it is...
1
by: Alessio Pompigna | last post by:
Hello, I'm going to setup a basic update between two DB2 instances (ver 4 and ver 8) via the export/import functionalities. I'm very new to DB2, so any ideas is welcome. I'm wandering if...
6
by: Michael | last post by:
Hi, Is there a straightforward way to export/import an entire schema in DB2 UDB? I am looking for the something similar to Oracle exp/imp. Thanks, Michael
1
by: Ganesh Bansal | last post by:
hi In C#, I am using CrystalRportViewer to show reports made using Crystal Report. Now, I need to export my reports to txt format while CrystalReportViewer allows only doc, pdf, rtf and some other...
2
by: mattc66 via SQLMonster.com | last post by:
I have data that comes from a legacy system. I can obtain the data in an ASCII format. Currently I have created scripts in ACCESS to import the data into tables. What I would like to do is...
0
by: Julie Warden | last post by:
Group, I'm running Oracle 8.05 with Solaris 6. I have a database with several schemas, and I want to create a test schema from one of the other ones. I'm having a problem with my...
2
by: othellomy | last post by:
What are the ways to export/import data in/out of SQL Server 2005? I used to use DTS for 2000 to do such thing and now I can't even find the wizard in 2005!
0
by: Gregor =?UTF-8?B?S292YcSN?= | last post by:
Hi! I know this is a bit off topic, but.... Does anyone know how to do a Oracle export that can be handled by DB2 IMPORT/LOAD utility? I don't care about the format. I know that probably I...
5
by: sumanta123 | last post by:
Dear Sir, How to export/import the excel file in oracle database using sql promt. Please guide me the command(export/import) for the neddful. Thanks in Adavance. Regards Sumanta Panda
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.