| Home | About Us | Sybase Training | Synergy | Consulting | Job Openings | Tech Videos | Rules and Disclaimer | Search |
![]() |
| Home | About Us | Sybase Training | Synergy | Consulting | Job Openings | Tech Videos | Rules and Disclaimer | Search |
|
Sybase ASE table fragmentation issues
|
|
10-04-2011, 09:09 AM
Post: #7
|
|||
|
|||
|
RE: Sybase ASE table fragmentation issues
Guys & Dolls Anyone watching this thread. I have published a major upgrade now V2.0 to my Sybase Data Storage Basics, Fragmentation, and Index Type doc this weekend. It answers some of the questions I have recvd. Most important, the three previous docs are now integrated into one doc, and normalised. 13 pages. Lots of links. Sybase should be paying me, but I won't hold my breath. Visit again and enjoy Ashirvad to my Shishyas, Cheers to the others Derek Asirvadem Information Architect / Sr Sybase DBA Website Selection of Useful Documents for the Sybase DBA |
|||
|
10-04-2011, 10:36 AM
Post: #8
|
|||
|
|||
RE: Sybase ASE table fragmentation issues (09-14-2011 03:12 PM)sybdba Wrote: Anyone care to comment how use of a SAN with volumes striped across disks ... Where to begin ? SAN Consideration
Quote:changes or mitigates the fragmentation issues ...SAN Mitigation ?!? If some EMC/IBM/HP salesman told you that, just remember that it is technically impossible, he was lying, he sells boxes. None whatsoever. What happens in the SAN is invisible to ASE; what happens in ASE is invisible to the SAN. ASE does not know if the LV is mirrored, striped, cross-hatched, slow, fast, or screwed, it just sees a RP. The SAN does not know if the Sybase Device is contiguous or fragmented, or fragmented at level I but not Level II, or fragmented at all levels.
If you fix the fragmentation within Sybase, the SAN volumes do not get unstriped, they do not change, only the content changes. Quote:or the solutions to those fragmentation issuesI can write a book on that subject. I have published a new version of the doc, please read. That tells you only the structures and considerations. You need to have some experience in (a) IT in general (b) Sybase in particular © Database design, Normalisation (d) physical Db design, table structures, lockschemes, fragmentation prevention (before it happens), fragmentation correction (after it happens). Then there are considerations such as, is the Db a real Relational Db, or is it a bucket of fish, used merely as a storage location for records ? The reason this is important is, a real Db is highly Normalised; has real Relational Keys, which are multiple-column, and which lends itself to data distribution ... that means APL tables, and low maintenance. A record filing system has ID[iot] "keys"; poor Normalisation (or none); far more Indices; lots of duplication; far more locking and contention ... that means DPL/DRL tables (not that that helps), and high maintenance. I know which woman I would marry. APL, not alone, but in concert with the other aspects of a real RDb, results in far less fragmentation than DPL/DRL. Level III is a peculiar form of fragmentation that only DPL/DRL tables have. So I have to worry about Levels I and II only, never III. I have 1TB RDbs that need de-fragmentation once every two years. No REORG. Ever. Identification Fragmentation is identified by:
Prevention First we will handle the prevention. This affects Levels I and II, there is no prevention for Level III:
Now there is a big gap before we get to number six ... ie. this point has little effect, compared with the five points above, each of which has substantial effect:
Now we will handle the de-fragmentation (after it happens) operations. Level I You need Segments and experience to correct Level I. However for purposes of explanation re the differences between Level I and Levels II & III, an overview, a simple method is: - Analyse your table usage, and table competition (within transactions) - That will produce a Segment Plan - Create a new target db on the number of Devices required for the Segment Plan - Create the Segments - Create all db objects ON the relevant Segments, except the indices - Either bcp-out source db/bcp-in target db or SELECT INTO target FROM source - Create Indices ON the relevant Segment - script and test the entire process - then divide the scripts by the number of engines, so that they can run in parallel without interfering with each other - execute all Levels II & III This needs to be planned as part of your regular maintenance scripts, your downtime window, just like UPDATE STATS.
If there is anything not completely clear, please post a specific question. Ashirvad to my Shishyas, Cheers to the others Derek Asirvadem Information Architect / Sr Sybase DBA Website Selection of Useful Documents for the Sybase DBA |
|||
|
01-17-2013, 04:58 AM
Post: #9
|
|||
|
|||
|
RE: Sybase ASE table fragmentation issues
Hi Derek, Can you please tell us how to defragment a trillion record table and not having space in database, equal to the table size. |
|||
|
« Next Oldest · Next Newest »
|