Exp/imp under Oracle

Source: Internet
Author: User

In peacetime to do backup of Oracle is usually to do a logical hot backup, and do a logical hot backup is generally used Exp/imp, here is simple to say.

Export Data using EXP IMP import data operation as follows:

Exp Username/password owner=backup file=backup.dmpimp username/password file=backup.dmp ignore=y full=y

Explain here that ignore=y means ignoring the creation error and continuing with the subsequent operation, which in full=y means that all imports include table constraints, which is important when importing.

However, one thing to note here is that after the beginning of the Oracle 11g version, a new feature is added when the table has no data, the segment is not allocated to save space, and the lack of this feature is turned on and can be viewed in the following ways:

Sql> Show parameter deferred_segment_creation;

Therefore, after the 11g version to use EXP export also need to do the appropriate check, of course, because this feature makes the 11g version when using EXP export encountered empty table will not be exported, this problem has a lot of solutions, of course, the personal more acceptable method should be closed before export deferred_ The Segment_creation function then checks all empty tables and then allocates space for all the empty tables found, as follows:

Sql> alter SYSTEM SET deferred_segment_creation=false;sql> SELECT table_name from user_tables where num_rows=0;sql > select ' ALTER TABLE ' | | table_name| | ' allocate extent; ' from User_tables where num_rows=0

At this point, you can export with exp

This article from the "Technical essay" blog, reproduced please contact the author!

Exp/imp under Oracle

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.