Oracle 11g cannot export empty tables

Source: Internet
Author: User

Friends who use Oracle 11G may have struggled with this problem. The data exported by the exp command may be inexplicably missing some tables, during the analysis, we will find that these tables are empty tables with no records inserted. The cause is that oracle 11g introduces a new feature. When the new table is not inserted, the server does not create a segment for this table by default to save storage space, therefore, when exporting data, empty table information cannot be exported, resulting in program errors.

Solution:

Modify configuration parameters

Sqlplus/nolog

SQL> connect system/password as sysdba;

SQL> show parameter deferred_segment_creation;

The default value is true.

SQL> alter system set deferred_segment_creation = false;

Restart the oracle service.

A new table created later can be exported without inserting data. However, the empty table before changing the parameters still does not have a segment. You need to manually insert data to the table to generate a segment.

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.