1

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'

8
  • did u try: tables=user.table1
    – tbone
    May 24, 2012 at 10:32
  • Do: exp user/password@DBNAME file=dump.dmp tables=(table1) to make sure you're connecting to the correct database.
    – Phil
    May 24, 2012 at 11:30
  • thanks, but it didn't help. Actually, maybe i should have mentioned that i have a lot of tables in schema and when i'm trying to export some other tables, everything is okay.
    – Yulia
    May 24, 2012 at 11:37
  • Sounds like a permissions issue. Can you read data from this table, as in SELECT * FROM USER.TABLE1 when logged in with the same user and password used in the exp command? May 24, 2012 at 11:41
  • Yes, i can. Actually there is no data, but i can get access.
    – Yulia
    May 24, 2012 at 11:48

4 Answers 4

2

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. :)

1
  • 1
    Oh good job, thanks for the feedback on that then. In 11g though I'd definitely look at using datapump as an alternative to exp/imp, particularly when 10g+ features are in use. There's a learning curve in there of course and in some ways it's less convenient (needing a directory object for example) but if you follow the usual principle of "get a script that works then modify it for future needs" then you should be good. May 25, 2012 at 8:20
1

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.

0

Change this:

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

to this:

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

You Can Use below query to take table level export from specific user.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.