Home > Ask the Oracle Database / Applications Experts > Oracle database backup and recovery Questions & Answers > How to precreate Oracle table extents and define extent size
Ask The Oracle Expert: Questions & Answers
EMAIL THIS

How to precreate Oracle table extents and define extent size

Brian Peasland1 EXPERT RESPONSE FROM: Brian Peasland1

Pose a Question
Other Oracle Categories
Meet all Oracle Experts
Become an Expert for this site


Oracle tips, scripts, and expert advice
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


>
QUESTION POSED ON: 18 June 2009
I have exported an Oracle 9i database (UNIX - Solaris) and I need to import it to an Oracle 9i database on a Windows server. I am using the Enterprise Management Console on the Windows server to do the export and import. The exported file is approx. 300 MB in size.

The exported file seems to be OK, however when importing the file, the data files in the target database increase far beyond what I expected and filled the disk space.

The original data file is just over 1 GB in size. My available disk space is 28GB, and this is being maxed out. E.g. After importing the first 28 tables, and only approximately 2,500 rows of data, the data file was 8GB in size.

What am I doing wrong?


>
When you export the table's contents, Oracle takes a look at the total space of the table and generates a CREATE TABLE statement with an INITIAL extent at least as large as the table's size. Depending on your allocation rules for your destination database's tablespace, your tables can be larger on import than they were on export. To stop this from happening, run the import statement as follows:

imp file=my_dump.dmp full=y show=y log=create.sql

The above will generate a file called create.sql which will contain the SQL statements Oracle will execute when creating the tables. Use these to precreate the tables in the destination database with a good INITIAL extent size, not the one in the generated file. Then import with IGNORE=Y.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google



RELATED CONTENT
Oracle database backup and recovery
Can I perform an Oracle server backup through a client machine?
How to execute DML in an Oracle trigger with EXECUTE IMMEDIATE
How to restore a dump file with the Oracle SHOW=Y option
Why do I get an Oracle not available error with Oracle 8i on Windows?
How to perform Oracle database recovery with a corrupt online redo log
Can I create an Oracle Catalog Database with the Enterprise Console?
Do I need to recreate views after an Oracle table reorg?
Client-based apps vs. web-based apps in Developer 2000
How to perform an Oracle 8i to 10g migration
Can I move the tablespace online with missing datafiles in Oracle?

Oracle database backup and recovery
Can I perform an Oracle server backup through a client machine?
How to execute DML in an Oracle trigger with EXECUTE IMMEDIATE
How to restore a dump file with the Oracle SHOW=Y option
Why do I get an Oracle not available error with Oracle 8i on Windows?
Oracle tutorial library: SearchOracle.com's learning guides
How to perform Oracle database recovery with a corrupt online redo log
Can I create an Oracle Catalog Database with the Enterprise Console?
Do I need to recreate views after an Oracle table reorg?
Can I move the tablespace online with missing datafiles in Oracle?
How to perform an Oracle 8i to 10g migration
Oracle database backup and recovery Research

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



Oracle White Papers: Fusion Middleware
HomeNewsTopicsTipsAsk the ExpertsMultimediaWhite PapersProductsBlogs
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2003 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts