Enabling procedure profiling

Procedure profiling tracks the usage of procedures and triggers by all connections. You can enable profiling in either Sybase Central or Interactive SQL. You must have DBA authority to enable and use procedure profiling.

StepsTo enable profiling (Sybase Central)

  1. Connect to your database as a user with DBA authority.

  2. Select the database in the left pane.

  3. From the File menu, choose Properties.

    The Database property sheet appears.

  4. On the Profiling tab, select Enable Profiling on This Database.

  5. Click OK to close the property sheet.

Note

You can also right click your database in Sybase Central to enable profiling. From the popup menu, choose Profiling > Start Profiling.

StepsTo enable profiling (SQL)

  1. Connect to your database as a user with DBA authority.

  2. Call the sa_server_option stored procedure with the ON setting.

    For example, enter:

    CALL sa_server_option ( 'procedure_profiling', 'ON')
    

If necessary, you can see what procedures a specific user is using, without preventing other connections from using the database. This is useful if the connection already exists, or if multiple users connect with the same userid.

StepsTo filter procedure profiling by user

  1. Connect to the database as a user with DBA authority.

  2. Call the following procedure:

    CALL sa_server_option ('ProfileFilterUser','userid')
    

    The value of userid is the name of the user being monitored.