By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,322 Members | 1,182 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,322 IT Pros & Developers. It's quick & easy.

Fragmented database

P: n/a
Hi All,

I created a script to defragment a database. To test this script I
need a fragmented database. Does anyone knows a way to fragment a
database easily?

Thanks in advanched,

Janneke
Jul 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Ja**************@logicacmg.com (Janneke) wrote in message news:<d1**************************@posting.google. com>...
Hi All,

I created a script to defragment a database. To test this script I
need a fragmented database. Does anyone knows a way to fragment a
database easily?

Thanks in advanched,

Janneke


Since version 8.1 and the introduction of locally managed tablespaces
why bother?

Buy if you must just create a create table script that use a
pctincrease factor in the storage clause and the insert records to
load it. Duplicate the script a dozen times and change the tablename
in each one and manipulate the storage clause initial/next extents in
a couple of them. Open multiple windows and fire off the scripts all
at once. Once all the scripts complete then drop a couple of the
objects to create some holes.

HTH -- Mark D Powell --
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.