Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > Oracle > Datafile fragmentation

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-11-03, 03:59
Megan Megan is offline
Registered User
 
Join Date: Oct 2001
Posts: 18
Datafile fragmentation

Hi Oracle gurus!

I was hoping someone might be able to give me some advice or point me in the right direction...

I've recently done some maintenance work on one of our machines (RAID 5, Win2K o/s) and this included installing Oracle 9.1.0 and importing some schemas.
I created a 2gb datafile and ran a defrag, and it all looked nice and contiguous. However, as soon as I started importing data, the new datafile fragmented heavily and defragmenting doesn't help.

I'll be the first to admit there's a lot I don't know, so if there's a simple answer to this problem I'd be greatly appreciative if someone would share it with me!

Thanks,
Megan
Reply With Quote
  #2 (permalink)  
Old 02-11-03, 07:21
AlanP AlanP is offline
Registered User
 
Join Date: Mar 2002
Location: Reading, UK
Posts: 1,098
If you mean the datafile grew after you imported data and thus created fragments in the file system then the solution would be to create a bigger initial datafile and also set a larger autoincrement size for the datafile.

Alan
Reply With Quote
  #3 (permalink)  
Old 02-11-03, 16:50
clio_usa clio_usa is offline
Registered User
 
Join Date: Apr 2002
Location: California, USA
Posts: 482
Smile

Next time when taking export use compress=y . That should take care of the import fragmentation.

Hope that helps,

clio_usa - OCP - DBA
Reply With Quote
  #4 (permalink)  
Old 02-11-03, 22:18
Megan Megan is offline
Registered User
 
Join Date: Oct 2001
Posts: 18
Many thanks for the responses!


AllanP - Yes, this is pretty much exactly what I mean - after importing data to the newly created file, the file system became fragmented.
Sorry, I should've mentioned in my initial post that I had created a 2gb datafile knowing that the total data would be around 1.5gb, so datafile growth wasn't really a factor in disk fragmentation.

clio_usa - All the exports are done with compress=y, so that doesn't seem to be the problem. But it was good advice anyway.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On