1024programmer Blog Importing a table in oracle says that the table does not exist, Oracle 11g plsql cannot export an empty table, exp EXP-00011: The table does not exist

Importing a table in oracle says that the table does not exist, Oracle 11g plsql cannot export an empty table, exp EXP-00011: The table does not exist

Oracle 11g plsql cannot export empty tables, exp EXP-00011: The table does not exist

89addcc5b501d0d9716fbca8dd3f9e4e.png

oracle11g has a new feature, adding a new feature “deferred_segment_creation” meaning segment delay creation, the default is true, if this parameter is set to true, you create a new Table, and do not insert data into it, then this The table does not allocate extend immediately, that is, it does not occupy data space, that is, the table does not allocate segments to save space, so these tables cannot be exported. If the segment_treated field in the table is “NO” or “YES”, it indicates whether a table is allocated a segment.

Check whether the table is assigned a segment

SELECT TABLE_NAME,SEGMENT_CREATED FROM USER_TABLES

See deferred_segment_creation

show parameter deferred_segment_creation;

Modify deferred_segment_creation

alter system set deferred_segment_creation=false;

Note: After modifying to false, the created table will allocate space immediately, but the table before adjustment will not change, you need to manually modify the allocated space

1.SELECT ‘ANALYZE TABLE ‘ || TABLE_NAME || ‘ COMPUTE STATISTICS;’ from USER_TABLES where NUM_ROWS=0;

2. Execute query results

3. SELECT ‘alter table ‘||TABLE_NAME||’ allocate extent;’ from USER_TABLES where NUM_ROWS=0;

4. Execute query results

or

1.SELECT ‘ANALYZE TABLE ‘ || TABLE_NAME || ‘ COMPUTE STATISTICS;’ from USER_TABLES where NUM_ROWS=0 OR NUM=ROWS IS NULL;

2. Execute query results

2d05129a10b07e951200245dc361b4e1.png

After completion, you can use exp to export the empty table normally

6630e8a05e2745ce0c12fd98f6620d7b.png

This article is from the internet and does not represent1024programmerPosition, please indicate the source when reprinting:https://www.1024programmer.com/importing-a-table-in-oracle-says-that-the-table-does-not-exist-oracle-11g-plsql-cannot-export-an-empty-table-exp-exp-00011-the-table-does-not-exist/

author: admin

Previous article
Next article

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索