oracle11g command Line Export table not fully resolved

Source: Internet
Author: User

    1. Because ORACLE11G has a new feature, command line exp will only export tables that have been assigned segment, and if the number of table data bars in the database is 0 o'clock not assigned segment, it cannot be exported to solve this problem there are many ways to combine online and own practice, Give me a personal solution, with some tips ...
    1. Modify Deferred_segment_creation to False to disable this feature, but the existing table is not affected, and the modification is guaranteed to be valid only for the table created later
    2. alter system set DEFERRED_SEGMENT_CREATION=FALSE;
    1. First, check which tables are empty:
    2. Select table_name from user_tables where num_rows=0;
    1. Let's create an ALTER statement using SELECT
    2. Select ' ALTER TABLE ' | | table_name| | ' allocate extent; ' from User_tables where num_rows=0
    3. The function of this sentence is to generate some statements that help us to assign segment to the empty table above, so we are going to execute the following result SQL statement
    1. Here's a little trick, how many W records do you have to join the query? Is it a single piece of execution?
    2. We can do this.
    3. Click Export result set to generate a SQL file
    1. You can get this result by finding a replacement to put the public insert into User_tables (' altertable ' | | table_name| | ' All), values (', '), replace them with null characters, and execute the statements

oracle11g command Line Export table not fully resolved

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.