Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (中文) » SQL Anywhere 服务器 - SQL 的用法 » 监控和提高数据库性能 » 应用程序分析教程 » 教程:诊断死锁

 

第 1 课:创建测试数据库

按照以下过程使用示例数据库中的数据创建测试数据库 app_profiling.db。该测试数据库用于所有应用程序分析教程。

♦  创建测试数据库
  1. 创建目录 C:\AppProfilingTutorial

  2. 打开命令提示符,键入以下命令来创建测试数据库 app_profiling.dbsamples-dir 是您的示例目录的位置:

    dbunload -c "UID=DBA;PWD=sql;DBF=samples-dir\demo.db" -an C:\AppProfilingTutorial\app_profiling.db 

    例如,在默认位置安装了 Windows XP 和 SQL Anywhere 的计算机上,该命令为:

    dbunload -c "UID=DBA;PWD=sql;DBF=C:\Documents and Settings\All Users\Documents\SQL Anywhere 11\Samples\demo.db" -an C:\AppProfilingTutorial\app_profiling.db

    有关 samples-dir 位置的详细信息,请参见示例目录

提示

在应用程序分析教程中,跟踪信息就存储在要进行分析的同一数据库 (app_profiling.db) 中。但如果您要进行分析的数据库承受的负荷很重,则应考虑将跟踪数据存储到另一个单独数据库中,以避免影响生产数据库的性能。

另请参见