Use this procedure to find and fix table fragmentation. It is recommended that you periodically check for fragmentation on your production database.
This tutorial assumes you have created the test database, app_profiling.db, required to use the application profiling tutorials. If you have not, see Create a test database for the application profiling tutorials.
Connect to app_profiling.db as follows:
In Sybase Central, in the SQL Anywhere 12 plug-in, choose Connections » Connect With SQL Anywhere 12.
In the Connect window, complete the following fields to connect to the test database, app_profiling.db, and then click Connect:
User ID DBA
Action Start A Database On This Computer
Database File C:\AppProfilingTutorial\app_profiling.db
Start Line dbeng12 -x tcpip
In Sybase Central, choose Mode » Application Profiling.
If the Application Profiling Wizard does not appear, choose Application Profiling » Open Application Profiling Wizard.
On the Profiling Options page, select Overall Database Performance Based On The Database Schema.
On the Analysis File page, save the analysis file in the appropriate directory. For example, C:\AppProfilingTutorial. If you are prompted to replace the file because it already exists, click Yes.
A list of recommendations appear in the Application Profiling Details pane.
If you see Fragmented Tables, double-click it. A Recommendation window appears containing a SQL statement you can run to resolve the table fragmentation.
You have completed the tutorial on using application profiling to identify and fix table fragmentation.
You can also identify and fix table fragmentation using SQL. See Identifying and fixing table fragmentation using SQL.
Discuss this page in DocCommentXchange.
|Copyright © 2010, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.0|