Solved

Oracle Export

Posted on 2012-03-23
3
551 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 77

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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

CCModeler offers a way to enter basic information like entities, attributes and relationships and export them as yEd or erviz diagram. It also can import existing Access or SQL Server tables with relationships.
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…

749 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