Web Development
3 replies
by bob sellman
I'm going to assume that when you say "files" you actually mean data records added to tables.
Data records may or may not be in physical sequential order as far as where they are stored. Oracle manages space available for deleted records within each tablespace, so that you don't have to run a procedure comparable to the Access "compact" operation (under Tools, Database Utilities). When you delete records in Access it creates holes in the database file that are never used and can slow down the database. This is the reason the compact operation needs to be run periodically, depending upon the deletion activity in the Access database. Oracle does the management of space from deleted records itself because each file used for the database is a predefined size and the DBA must add a new file when the database begins to fill up.
The indexes for tables contain pointers to the physical record locations based on the order dictated by the index (including the primary key, which is another index).
If you need to have the ability to look at records based on the sequence that they were added, an autonumber column can provide that capability, since every time a record is added the autonumber column is incremented (usually by 1). If a record is deleted or not actually added, the autonumber column may contain "holes" in its sequence, but the higher the number, the more recently the record was added to the table.
by d_hainline
by d_hainline
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending