The Database Tracing Wizard is used to create a diagnostic tracing session. The tracing session captures processing statement data which includes duration times.
This tutorial assumes you have created the test database, app_profiling.db, required for 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:
Authentication Database
User ID DBA
Password sql
Action Start A Database On This Computer
Database File C:\AppProfilingTutorial\app_profiling.db
Start Line dbeng12 -x tcpip
Click Connect.
Start the Database Tracing Wizard as follows:
In Sybase Central, click Mode » Application Profiling. If the Application Profiling Wizard appears, click Cancel.
Click File » Tracing.
On the Welcome page, click Next.
On the Tracing Detail Level page, click High Detail (Recommended For Short-Term, Intensive Monitoring), and then click Next.
On the Edit Tracing Levels page, click Next.
On the Create External Database page, click Do Not Create A New Database, and then click Next.
On the Start Tracing page, click Save Tracing Data In This Database.
To allow no limits on the amount of stored tracing data, click No Limit, and then click Finish.
In the left pane, click app_profiling - DBA, and then click File » Open Interactive SQL.
Interactive SQL starts and connects to the app_profiling.db database.
In Interactive SQL, execute the following SQL statement.
SELECT SalesOrderItems.ID, LineID, ProductID, SalesOrderItems.Quantity, ShipDate FROM SalesOrderItems, SalesOrders WHERE SalesOrders.CustomerID = 105 AND SalesOrderItems.ID=SalesOrders.ID; |
Exit Interactive SQL.
To stop the tracing session, in Sybase Central click app_profiling - DBA and click File » Tracing » Stop Tracing With Save.
Click this link to continue the tutorial: Lesson 2: Reviewing statements processed by the database server.
Discuss this page in DocCommentXchange.
|
Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |