473,656 Members | 2,793 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Oracle Export/Import in XML/ASCII format

1 New Member
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.htm l

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 6946
debasisdas
8,127 Recognized Expert Expert
Qestion moved to Oracle Forum.
Nov 3 '07 #2
amitpatel66
2,367 Recognized Expert Top Contributor
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.htm l

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
Altasen.com
8 New Member
Exporting data as XML can be done as follows:
SET SERVEROUTPUT ON
DECLARE
v_file Utl_File.File_T ype;
v_xml CLOB;
v_more BOOLEAN := TRUE;
BEGIN
-- Create XML document from query.
v_xml := DBMS_XMLQuery.G etXML('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(SQ LERRM,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
3142
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 written by bpbackup or read by bprestore. We are transitioning to Veritas from an older and very different tape management system. If anyone has excerpts of export/import scripts that they may share that show how to do this it would be greatly...
1
3361
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 something like incremental features exist to do this job. What I would like to do is: - at time t0 a full export from A is performed and loaded into B; - at time t1 a incremental export is performed and loaded.
6
23135
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
2472
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 formats only but not txt format. Can anybody tell me how to export to txt format from CrystalReportViewer?? Regards, Ganesh Bansal
2
6362
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 create an automated import function in SQL. I am new to SQL, can anyone point me in the direction I should look to find out how I could perform this task? Using SQL 2005.
0
3721
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 export/import procedures. I created the schema: grant connect,resource to tst identified by tst;
2
3419
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
1282
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 cannot get IXF from Oracle, but CSV is fine too. Best regards, Kovi
5
7337
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
8382
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8816
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8600
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6162
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4150
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1930
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1600
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.