Solved

Oracle Export

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
TypeError: Users.save is not a function 3 54
ORA-00923: FROM keyword not found where expected 3 62
Question about DB Schema 27 56
Email query results in HTML 6 19
This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
This article explains all about SQL Server Piecemeal Restore with examples in step by step manner.
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

773 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