Oracle 11G Note: A workaround for an empty table cannot be exported

Source: Internet
Author: User

Recently in Oracle 11G. An issue was found when importing data exports: Oracle does not export empty tables with no data. The data found that this is the case only in Oracle 11g, the process is as follows:


  • Sqlcommand:alter system set Deferred_segment_creation=false;

This means that it is forbidden to postpone the creation of a segment of a table, that is, when the table is created, regardless of whether there is data. This parameter is modified to be useless for tables created before that point in time. So you still have to allocate space for the previous table.


  • Sql:select ' ALTER TABLE ' | | table_name| | ' allocate extent; ' from User_tables where num_rows=0 or num_rows is null

    The above-spelled SQL can be bulk-generated to modify a table with empty allocation space. Perform the following for the results of the query. The Export command for exp or EXPDP is now available.


Oracle 11G Note: A workaround for an empty table cannot be exported

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.