Solved

Oracle Export

Posted on 2012-03-23
3
553 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Azure Functions is a solution for easily running small pieces of code, or "functions," in the cloud. This article shows how to create one of these functions to write directly to Azure Table Storage.
In this blog post, we’ll look at how ClickHouse performs in a general analytical workload using the star schema benchmark test.
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…
This video shows how to recover a database from a user managed backup

617 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