Oracle 11G uses EXP to export empty table problem resolution

Source: Internet
Author: User
There is a new feature in ORACLE 11G that does not allocate segment when the table has no data to save space.

The parameter value is true by default, and segment is assigned when false, whether it is an empty table or a non-empty table.
It is important to note that this value is set to no effect on previously imported empty tables, and still cannot be exported, but can only work on the new tables that are created later.
Querying empty tables that have been created before
Select ' ALTER TABLE ' | | table_name| | ' allocate extent; ' from User_tables where num_rows=0
Export the query results and execute the exported statement
' ALTER TABLE ' | | table_name| | ' ALLOCATE EXTENT; '
If the table is small, you can insert a row in the empty table and then delete, so that the database table will be allocated segment ...

Oracle 11G uses EXP to export empty table problem resolution

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.