You can use the Fragmentation tab to:
View the fragmentation of base tables and indexes on those tables.
Reorganize tables and indexes.
Open the Fragmentation tab:
Connect to the database.
In the left pane, select the database.
In the right pane, click the Fragmentation tab.
Select an object from the top pane. The fragmentation information appears in a dbspace map in the bottom pane:
When you select a base table, the table, its extension pages, and applicable index pages appear in the dbspace map in the bottom pane.
When you select an index, its index pages appear in the dbspace map in the bottom pane.
Click Checkpoint & Refresh to perform a checkpoint and see the most recent fragmentation information.
View the page indexes.
In the dbspace map in the bottom pane, hover your cursor over a colored-vertical bar to see the first and last page indexes at that position.
In the dbspace map, press and hold the Ctrl key while hovering the mouse over a colored-vertical bar to see all the page indexes at that position.
Open the Fragmentation tab.
Connect to the database as a user with DBA authority.
In the left pane, select the database.
In the right pane, click the Fragmentation tab.
Select an object from the top pane. The fragmentation information appears in a dbspace map in the bottom pane:
Choose one of the following methods to reorganize the object.
Click Reorganize to execute a REORGANIZE TABLE statement on the selected object.
Drag an object from the top pane into an Interactive SQL SQL Statements pane. A REORGANIZE TABLE statement for the object appears in the SQL Statements pane. Execute the statement.
This method is useful when you want to reorganize the objects at a later time or when you want to continue using Sybase Central while reorganizing the objects.
Select an object from the top pane, right-click, and choose Copy to copy a REORGANIZE TABLE statement for the object into the clipboard. Then, in Interactive SQL paste the statement into SQL Statements pane and execute the statement.
This method is useful when you want to reorganize the objects at a later time or when you want to continue using Sybase Central while reorganizing the objects.
Discuss this page in DocCommentXchange.
|
Copyright © 2010, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.0 |