Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: User datafiles and index on separate disks
Rainer Herbst wrote:
> Howard J. Rogers schrieb:
>>>Peter schrieb: >>> >>>>Is it a must to place datafiles, undo segments and table index on >>>>separate disks? If not, what are the benefits of doing so? >>>> >>>>Thanks >>>> >>>> >>> >>>No, you can have all files on one disk. >>>The benefit is performance - when e.g. indices and data files are on the >>>same disk, and oracle will use an index to locate a row, the disk header >>>should go to the index file first, read some blocks, than go to the >>>datafile and read the data block. The movement of the header is very >>>expensive in terms of time! >>> >>>Regards! >>>Rainer >>>
> > How many users are working on your database server? I am in the lucky > position to have only oracle and apache running on the server, so the > disk heads are not jumping left and right for other users. And spreading > the files to more than one disk _did_ make a difference! Of course, > there is no need to separate the indices from the tables, but spreading > the load on more than one disk normally lead to performance gains. >
Come off it, Rainer. I didn't say 'Don't separate things onto more than one disk'. I said 'separating indexes from tables, simply because one's an index and one's a table, is daft'.
Besides, I don't really think your experience of single-user systems is particularly applicable to 99.9% of production databases out there, do you?
And also besides, yes your disk heads will be jumping left and right even in a single user system because, as I said, not even the blocks of a single extent are actually contiguous on disk.
Separate things which contend for I/O. Don't fall into the trap of thinking that indexes and tables inherently contend for I/O, because they (demonstrably) don't.
Regards
HJR
Received on Tue Sep 30 2003 - 15:19:58 CDT