How to Capture Database Activity for Troubleshooting IM Manager Issues
Question/Issue:
Troubleshooting IM Manager sometimes requires logging database activity. The SQL Server Profiler tool that is included with SQL server installations can perform this logging. In addition, ODBC connections can also be logged to assist in troubleshooting and IM Manager database.
Solution:
Depending on the type of trace that needs to be done, follow the steps provided.
SQL Server 2000 Using SQL Profiler
Use these steps to run a SQL 2000 Profiler trace to capture information about the IM Manager database.
SQL Server 2000 Trace Template: TraceTemplate.tdf
To capture a trace:
1. Download and copy the template to a machine that has the SQL Profiler installed.
2. Open SQL Profiler application.
3. Click on New Trace, and connect to the SQL Server that hosts the IM Manager database.
4. In the Trace Template field, click on the folder button.
5. Browse to the Trace Template you previously downloaded.
6. Click OK.
7. Click Run.
8. When you have collected enough data, click the red Stop button to finish collecting data.
9. In the Menu, click Save to save the SQL data as a .trc file.
SQL Server 2005 Using SQL Profiler
Use these steps to run a SQL 2005 Profiler trace to capture information about the IM Manager database.
SQL Server 2005 Trace Template: IMManagerSQL2005TraceTemplate.tdf
To capture a trace:
- Download and copy the template to a machine that has the SQL Server Profiler installed.
- Open SQL Profiler application.
- Click on File > Templates > Import Trace..., and select the downloaded trace file.
- Click on File > New Trace, and connect to the SQL Server that hosts the IM Manager database.
- In the Use the Template drop-down list, select IMManagerSQL2005TraceTemplate.
- Click on the Events Selection Tab, click on the Column Filters button.
- Click on the DatabaseName filter option, update the "Like" field to reflect the name of your IM Manager database (default is IMManagerDB).
- Press OK.
- Press Run.
- When you have collected enough data, click the red Stop button to finish collecting data.
- In the Menu, click Save to save the SQL data as a .trc file.
ODBC Trace on the IM Manager Server Machine
Use these steps to run an ODBC trace to capture information about the IM Manager database.
To capture a trace:
- Log into the server as the IM Manager service account
- Stop the appropriate IM Manager service to be traced.
- Start the ODBC administration console. by clicking Start > All Programs > Adminstrative Tools > Data Sources (ODBC).
- Click the Tracing tab.
- Change the value of the Log File Path as appropriate.
- Click the Start Tracing Now button.
- Start the appropriate IM Manager service to be traced.
- When you have collected enough data, click Stop Tracing Now to stop the ODBC tracing.
Capture Deadlock Trace Information in the SQL Server Error Logs
Use these steps to capture SQL deadlocks occuring in the IM Manager database. The errors are logged to the SQL server error log.
1. Run the following SQL against the IM Manager database:
DBCC TRACEON(1204, 1222)
go
DBCC TRACEON(1205, -1)
go
DBCC TRACEON(3605, -1)
2. When the problem occurs collect the SQL Server error logs.
Document ID: 2007251188516698
Last Modified: 11/06/2008
Date Created: 06/13/2007
Product(s): IM Manager
Release(s): IM Manager 2007 8.3, IM Manager 7.5, IM Manager 8, IM Manager 8.1, IM Manager 8.2, IM Manager 8.4