Fragmented database

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Janneke

    Fragmented database

    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
  • Mark D Powell

    #2
    Re: Fragmented database

    Janneke.Huizing a@logicacmg.com (Janneke) wrote in message news:<d1806df0. 0307180603.2595 5d8a@posting.go ogle.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 --

    Comment

    Working...