Solved

Oracle Export

Posted on 2012-03-23
3
548 Views
Last Modified: 2012-03-23
Hi,
OS: Windows
DB Version: Oracle 11.2

I'm trying to export my schema TOM.

exp TOM/TOM@ORCL file=c:\exp_tom.dmp log=c:\exp.log

but I can export only tables with rows. Each table with zero rows is not exported.

Should I set some parameter to export all the tables?

Thanks in advance!
0
Comment
Question by:ralph_rea
3 Comments
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 37756680
I just test using the exact command you provided on a schema I just created and it works:

Can you post your log?


C:\>exp bob/bob file=bob log=bob

Export: Release 11.2.0.2.0 - Production on Fri Mar 23 08:00:08 2012

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.


Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit
Production




. about to export BOB's tables via Conventional Path ...
. . exporting table                           TAB1          0 rows exported

Open in new window

0
 
LVL 5

Expert Comment

by:Bajwa
ID: 37756938
"Each table with zero rows is not exported."  With 11gR2 the segments with 0 rows only get their DDL exported.  Segments with 0 bytes are treated differently in 11gr2.
0
 
LVL 1

Accepted Solution

by:
db_senior earned 500 total points
ID: 37757088
With 11g there may not be extents allocated.
Try this:

 Alter table  TABLENAME to allocate extents

You can also create a script for all tables:

select 'alter table '||table_name||' allocate extent;'
from user_tables
where segment_created = 'NO'
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now