Home » RDBMS Server » Server Administration » how to convert oracle table data into text file
how to convert oracle table data into text file [message #62912] Tue, 24 August 2004 03:29 Go to next message
t dharmaraj
Messages: 1
Registered: August 2004
Junior Member
i have one requirement of converting the oracle table data into plain text file.Is it possible.

I know the the reverse process that is from text file to table data through the oracle utility sqlldr.

but i want to know the utility for converting table data into text file.

My Oracle version 8i. on AIX platform.

such as MsAcess allows us to convert the access file into text file, or excel file etc.

 

 

 

 
Re: how to convert oracle table data into text file [message #62913 is a reply to message #62912] Tue, 24 August 2004 03:42 Go to previous messageGo to next message
Frank Naude
Messages: 4587
Registered: April 1998
Senior Member
This is a FAQ - see http://www.orafaq.com/faq/sql_loader

Best regards.

Frank
Re: how to convert oracle table data into text file [message #62915 is a reply to message #62912] Tue, 24 August 2004 06:12 Go to previous messageGo to next message
dilip kumar
Messages: 111
Registered: December 2003
Senior Member
you can do that simply with the help of select statement and spool that result in separate file.

like

select col1||','||col2 from tname;

here i have used comma as a separated if u want you use any other character within single quotes

Regards

Dilip
Re: how to convert oracle table data into text file [message #62954 is a reply to message #62912] Fri, 27 August 2004 21:11 Go to previous messageGo to next message
Balaji
Messages: 102
Registered: October 2000
Senior Member
hi dharmaraj ,

you have an other way too .

1.Take a windows machine and configure the ODBC to the database you have the tables in .now this machine must have the msaccess too.
2.every time you need a table from oracle into access just go to iport in the file menu and select the ODBC file format and get the tables created,data inserted into this access database.
3.Access gives you a lot of freedom to juggle with the data like you can create .csv file or enclose the values in quotes whether with a valid data or a null or change the data format .this way you can start juggling data .

ofcourse like our other friends said you can use the select col1||col2.... but take care to see the null cols .
with best wishes .
balaji
Re: how to convert oracle table data into text file [message #62958 is a reply to message #62954] Sat, 28 August 2004 05:27 Go to previous messageGo to next message
k.selvaraj
Messages: 1
Registered: August 2004
Junior Member
i want oracle 8i data is converted into text data
Re: how to convert oracle table data into text file [message #63197 is a reply to message #62954] Thu, 16 September 2004 21:25 Go to previous messageGo to next message
ashwani singla
Messages: 1
Registered: September 2004
Junior Member
could u send me the reply is that how to conver the oracle data into formatted text file
how to convert text file to oracle 8i database format [message #64089 is a reply to message #63197] Mon, 13 December 2004 22:49 Go to previous message
nuwan
Messages: 1
Registered: December 2004
Junior Member
I have details of text file BAT format So I want to retrive those into oracle 8i database. I want you to give me sample coding for this problem.
Previous Topic: stored procedure problem
Next Topic: Export Utility gives errors "Temporary Tablespace empty"
Goto Forum:
  


Current Time: Thu Jan 09 22:31:46 CST 2025