Use this procedure to find and fix index 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 complete the application profiling tutorials.
Connect to app_profiling.db as follows:
In Sybase Central, in the SQL Anywhere 12 plug-in, click Connections » Connect With SQL Anywhere 12.
In the Connect window, complete the following fields to connect to the test database, app_profiling.db.
User ID DBA
Action Start A Database On This Computer
Database File C:\AppProfilingTutorial\app_profiling.db
Start Line dbeng12 -x tcpip
Click Mode » Application Profiling.
If the Application Profiling Wizard does not appear, click Application Profiling » Open Application Profiling Wizard.
On the Welcome page, click Next.
On the Profiling Options page, click Overall Database Performance Based On The Database Schema, and then click Next.
On the Analysis File page, in the Save The Analysis To The Following File field, type C:\AppProfilingTutorial\analysis.
A list of recommendations appears in the Application Profiling Details pane.
If you see Fragmented Indexes, double-click it. A Recommendation window appears containing a SQL statement you can run to resolve the index fragmentation.
You have completed the tutorial on using application profiling to identify and fix index fragmentation.
You can also identify and fix index fragmentation using SQL.
Discuter à propos de cette page dans DocCommentXchange.
|Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1|