Home > Ask the Oracle Database / Applications Experts > Oracle Application Server Questions & Answers > Pre-creating tables in 9i
Ask The Oracle Expert: Questions & Answers
EMAIL THIS

Pre-creating tables in 9i

John Garmany EXPERT RESPONSE FROM: John Garmany

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: 15 July 2005
I am creating a new 9i database and then pre-creating the tables, importing the user data from an 8i database. I don't have the application details such as rate of growth or the frequency of the insert, update and delete. There are no chained rows.

I have gathered the following information for all tables: table size (sum bytes of the segment), number or rows, blocks, empty blocks, average space and average row length. Table sizes vary from 3 gig, 2 gig, 1 gig . . . 40960. Under 9i, I would like to know if I should have tablespaces created with different uniform size. Once I pre-create the table, I also have the opportunity to adjust the table extent (by dropping and recreating the table prior to the import). Should I specify initial and next or default to uniform size for all the tables?


>
You should build your new tablespaces using locally managed tablespaces with ASSM. You can create them with auto-allocate extents or fixed size extents. I almost always opt for fixed uniform size extents. This way all the extents are the same size in the tablespace and can be reused by any object.

As far as sizing, you have to remember that an extent can only hold one object. If you create large extents and place indexes in them, there could be a lot of wasted space. On the other hand, locally managed tablespaces do not hit the data dictionary for extent information and having many extents will not impact performance.

There is no need to try and import a table into one extent. My recommendation is to create one tablespace for indexes and another for tables. Make the table tablespace extent size equal to the smallest table you are going to place in it (if you have some large tables with very small tables you might need to make larger extents and have some wasted space with the small tables). Make the index tablespace extents smaller since the objects are smaller. Don't worry about a table that ends up with 100 extents; it will not impact performance.

Another alternative is to create small, medium and large tablespaces and divide up your objects into these tablespaces depending on object size.


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



RELATED CONTENT
Oracle Application Server
Database objects becoming invalid
How to solve ORA-04076 error?
Receiving ORA-12541 error trying to connect through Forms/Reports
Problems connecting to database after installing Forms
Button trigger raising exception
Cause of access violation while connecting from Forms
Migrating a database to 10g and a new server
Best OS for installing database and application server on same server
Accessing an application through the Internet
Testing the accessibility of an application from outside U.A.E.

Oracle Application Server
Oracle to acquire application service management firm
Don't wait for clarity on Oracle's VM strategy, experts say
Oracle's 10 steps to get to Fusion rely on Oracle investments
Oracle Fusion Middleware: Top five headlines
Oracle-BEA deal gets the green light
Oracle adds Data Integration Suite to middleware family
Oracle-BEA deal means tough choices for middleware buyers
Oracle to buy BEA Systems
Oracle bids for BEA Systems
Oracle challenges IBM, Microsoft with application server platform
Oracle Application Server 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