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 6988561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:05:51+00:00 2026-05-27T19:05:51+00:00

Is there any subprogram similar to DBMS_METADATA.GET_DDL that can actually export the table data

  • 0

Is there any subprogram similar to DBMS_METADATA.GET_DDL that can actually export the table data as INSERT statements?

For example, using DBMS_METADATA.GET_DDL('TABLE', 'MYTABLE', 'MYOWNER') will export the CREATE TABLE script for MYOWNER.MYTABLE. Any such things to generate all data from MYOWNER.MYTABLE as INSERT statements?

I know that for instance TOAD Oracle or SQL Developer can export as INSERT statements pretty fast but I need a more programmatically way for doing it. Also I cannot create any procedures or functions in the database I’m working.

Thanks.

  • 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-27T19:05:52+00:00Added an answer on May 27, 2026 at 7:05 pm

    As far as I know, there is no Oracle supplied package to do this. And I would be skeptical of any 3rd party tool that claims to accomplish this goal, because it’s basically impossible.

    I once wrote a package like this, and quickly regretted it. It’s easy to get something that works 99% of the time, but that last 1% will kill you.

    If you really need something like this, and need it to be very accurate, you must tightly control what data is allowed and what tools can be used to run the script. Below is a small fraction of the issues you will face:

    • Escaping
    • Single inserts are very slow (especially if it goes over a network)
    • Combining inserts is faster, but can run into some nasty parsing bugs when you start inserting hundreds of rows
    • There are many potential data types, including custom ones. You may only have NUMBER, VARCHAR2, and DATE now, but what happens if someone adds RAW, BLOB, BFILE, nested tables, etc.?
    • Storing LOBs requires breaking the data into chunks because of VARCHAR2 size limitations (4000 or 32767, depending on how you do it).
    • Character set issues – This will drive you ¿¿¿¿¿¿¿ insane.
    • Enviroment limitations – For example, SQL*Plus does not allow more than 2500 characters per line, and will drop whitespace at the end of your line.
    • Referential Integrity – You’ll need to disable these constraints or insert data in the right order.
    • “Fake” columns – virtual columns, XML lobs, etc. – don’t import these.
    • Missing partitions – If you’re not using INTERVAL partitioning you may need to manually create them.
    • Novlidated data – Just about any constraint can be violated, so you may need to disable everything.

    If you want your data to be accurate you just have to use the Oracle utilities, like data pump and export.

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

Sidebar

Related Questions

Is there any way that I can export dia diagram into html (I know
Is there any ConcurrentHashMap for c++ implementation or something of similar anywhere? I can't
Is there any free or commercial component written in .NET (no COM interop) that
Is there any query which can return me the number of revisions made to
Is there any efficiency difference in an explicit vs implicit inner join? For example:
Is there any way to move that scroll indicator to the right by some
Are there any .NET classes/functions that are optimized for multiple cores? I know that
Is there any way of having mercurial automatically create hgrc , so that I
Is there any way to delay calling a superclass constructor so you can manipulate
Here is my dilemma: The Problem I have SubProgram (a DLL) that uses System.Data.SQLite

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.