Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 484231
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T01:16:43+00:00 2026-05-13T01:16:43+00:00

i have a table in a oracle database in which one of the field

  • 0

i have a table in a oracle database in which one of the field is a clob field.
the clob field is having several xml file.
now if i want to export that xml file into a text file on unix how do i do it?

NOTE: i dont have any gui like toad installed for the server and i have to only use the unix environment for it.
could you please tell me how to do it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T01:16:43+00:00Added an answer on May 13, 2026 at 1:16 am

    Assuming the machine you want the file on is not the database server itself, you should probably write a program to do this. In Perl, for example, it’s quite simple:

    use DBI;
    my $db = DBI->connect('dbi:Oracle:tnsname','user','password',{RaiseError=>1});
    my $txt = ($db->selectrow_array('select my_clob_col from my table where ...'))[0];
    $db->close;
    open my $fh, '>out.txt' or die $!;
    print $fh $txt;
    close $fh;
    

    Crude but it will work for simple cases. The point is that in any modern database client API, fetching a CLOB will automatically return you a string value which you can then do what you want with.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have 3 columns in Oracle database having table mytable and i want records
I have an Excel file (which has data imported from Oracle 10G Database) one
we have a table in an Oracle Database which contains a column with the
We have a Oracle 9i database and OrderDetails table which has a column to
I have a table in Oracle 11.2 database. I want the database to run
I do have an oracle 8 database from which I want to fetch data
Folks, I have a oracle database table which has name value pairs. A set
I have an Oracle (10.2.0.4) database table with a column which is encrypted by
We have a table already existing in oracle 11g database which allows read as
I have a table in an Oracle Database that has, among others, a DATE

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.