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

SAP Sybase SQL Anywhere 16.0 (中文) » SQL Anywhere 服务器 - 数据库管理 » 数据库监控 » SQL Anywhere 监控器 » 备份监控器

 

恢复监控器数据库的备份副本

可以将监控器数据库替换为备份副本。

前提条件

您必须拥有一个有效的监控器数据库备份副本。

 任务
  1. 停止监控器(如果正在运行)。

  2. 从备份目录中,复制 samonitor.db 数据库文件和 samonitor.log 事务日志文件。

  3. 将这些文件粘贴到当前监控器数据库和事务日志文件所在的目录。当出现提示时,覆盖现有的文件。

    版本 16.0 监控器数据库文件的缺省位置在下表中列出:

    操作系统 监控器目录

    Windows XP(与 SQL Anywhere 一起安装)

    C:\Documents and Settings\All Users\Documents\SQL Anywhere 16\Monitor\samonitor.db
    Windows XP(在单独的计算机上安装)
    C:\Documents and Settings\All Users\Documents\SQL Anywhere 16 Monitor\samonitor.db
    Windows Vista 和更高版本(与 SQL Anywhere 一起安装)
    C:\Users\Public\Documents\SQL Anywhere 16\Monitor\samonitor.db
    Windows Vista 和更高版本(在单独的计算机上安装)
    C:\Users\Public\Documents\SQL Anywhere 16 Monitor\samonitor.db
    Linux(与 SQL Anywhere 一起安装)
    /opt/sqlanywhere16/samonitor.db
    Linux(在单独的计算机上安装)
    /opt/sqlanywhere16/samonitor.db
  4. 重新启动监控器。

结果

将从备份副本恢复数据库。