简体   繁体   中英

Oracle export: table doesn't exist

I am trying to export data in oracle 11g

exp user/password file=dump.dmp tables = (table1)

via sqlplus.

And i get the following error:

About to export specified tables via Conventional Path ...
EXP-00011: USER.TABLE1 does not exist
Export terminated successfully with warnings.

But when i check who is the owner of this table:

SELECT owner, table_name from dba_tables where table_name = 'TABLE1';

I get that the owner of TABLE1 is USER

What should i do to export this table?

UPDATE

Actually, i found a solution. I hope it will help someone else. Since version 11g Oracle has introduced new feature that is called deferred segment creation. Thus oracle doesn't create table segment if there are now rows in it. So i recreated my table with option 'segment creation immediate'

Actually, i found a solution. I hope it will help someone else. Since version 11g Oracle has introduced new feature that is called deferred segment creation. Thus oracle doesn't create table segment if there are no rows in it. And my table didn't contain any data. So i recreated my table with option 'segment creation immediate'

The solution was found here . There are more options how to fix the problem and an explanation why this thing happens to be in oracle 11g. :)

In addition to the posted answer from Olivia i would like to add some code:

SELECT 'alter table ' ||  table_name || ' allocate extent;'
from dba_tables where SEGMENT_CREATED = 'NO';

Execute the output and exp again. Your schema will be exported including empty tables.

EDIT: similar question here , maybe you'll find your solution there.

Change this:

exp user/password file=dump.dmp tables = (table1);

to this:

exp user/password tables = (table1) file=dump.dmp;

您可以使用以下查询从特定用户获取表级别导出。

exp user/password file=dump.dmp tables = user.table1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM