Oracle exports empty tables (tables that have never been used)

Source: Internet
Author: User

oracle11g default to Empty table is not assigned segment, so when using exp export oracle11g database, empty table will not export! 1, set the deferred_segment_creation parameter to false, whether it is an empty table or a non-controlled table, assign segment. In the Sqlplus command window, execute: SQL>Show parameter Deferred_segment_creationname TYPE VALUE------------------------------------ ----------- ------------------------------Deferred_segment_creation Boolean Truesql> AlterSystemSetDeferred_segment_creation=false2  ; System Alteredsql>Show parameter Deferred_segment_creationname TYPE VALUE------------------------------------ ----------- ------------------------------Deferred_segment_creation Boolean Falsesql>This value is set only after the newly added table, which has no effect on the previously established empty table! 2, using allocate extent to find empty table informationSelect *  fromUser_tableswhereNum_rows=0 orNum_rows is NULL; form a valid execution SQL statementSelect 'ALTER TABLE'||table_name||'allocate extent;'  fromUser_tableswhereNum_rows=0 orNum_rows is NULL; execute AS table ABCAlter TableABC allocate extent;

Oracle exports empty tables (tables that have never been used)

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.