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 16 - 更改和升级 » 如何升级到 SQL Anywhere 16

 

升级 SQL Anywhere 监控器并迁移资源

使用迁移实用程序将资源从一个监控器迁移到新安装的监控器。

前提条件

小心

卸载监控器将删除应用程序以及资源和收集的度量。要保留当前的监控器资源,您必须:

  1. 安装新版本的监控器。

  2. 迁移资源。

  3. 卸载旧版本的监控器。

为避免意外警告,应在关闭服务器之前,在 SQL Anywhere 监控器中为它们计划一个封锁期。

 任务
  1. 创建现有监控器数据库文件的备份副本 samonitor.db

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

    操作系统 监控器类型 11.0.1 和 12 版目录 16.0 版目录

    Windows XP

    监控器开发人员版
    C:\Documents and Settings\All Users\Documents\SQL Anywhere 11\Monitor\samonitor.db
    C:\Documents and Settings\All Users\Documents\SQL Anywhere 12\Monitor\samonitor.db
    C:\Documents and Settings\All Users\Documents\SQL Anywhere 16\Monitor\samonitor.db
    Windows XP 监控器生产版
    C:\Documents and Settings\All Users\Documents\SQL Anywhere 11 Monitor\samonitor.db
    C:\Documents and Settings\All Users\Documents\SQL Anywhere 12 Monitor\samonitor.db
    C:\Documents and Settings\All Users\Documents\SQL Anywhere 16 Monitor\samonitor.db
    Windows Vista 和更高版本的 Windows 监控器开发人员版
     C:\Users\Public\Documents\SQL Anywhere 11\Monitor\samonitor.db
     C:\Users\Public\Documents\SQL Anywhere 12\Monitor\samonitor.db
    C:\Users\Public\Documents\SQL Anywhere 16\Monitor\samonitor.db
    Windows Vista 和更高版本的 Windows 监控器生产版
     C:\Users\Public\Documents\SQL Anywhere 11 Monitor\samonitor.db
     C:\Users\Public\Documents\SQL Anywhere 12 Monitor\samonitor.db
    C:\Users\Public\Documents\SQL Anywhere 16 Monitor\samonitor.db
    Linux 监控器开发人员版
    /opt/sqlanywhere11/samonitor.db
    /opt/sqlanywhere12/samonitor.db
    /opt/sqlanywhere16/samonitor.db
    Linux 监控器生产版
    /opt/samonitor11/samonitor.db
    /opt/samonitor12/samonitor.db
    /opt/sqlanywhere16/samonitor.db
  2. 安装新监控器。运行安装介质的 Monitor 目录下的 setup.exe 文件,并遵照提供的说明进行安装。当安装完成时,停止新监控器(如果它正在运行)。

    计算机上同一时间只能运行一个版本的监控器。

    当在正在运行旧版监控器的计算机上安装 16.0 版监控器时,安装程序将停止旧版监控器。

  3. 在命令提示符处,运行迁移实用程序。

    使用以下选项运行迁移实用程序:

    • -t temporary-directory   指定临时文件的目录。在缺省情况下,在 run_migrator 文件所在的目录创建临时文件。

      注意

      监控器迁移程序创建的临时文件会在迁移进程结束时删除。使用 -t 选项为这些临时文件指定一个目录。临时文件占用的空间量与旧版监控器数据库文件相当。确保指定的目录具有足够的空间。

    • source-filename   指定旧版监控器数据库文件的路径和文件名。例如,11.0.1 版 samonitor.db 文件的路径。

    • destination-filename   指定装载了资源和配置设置的新监控器文件的路径和文件名。例如,16.0 版 samonitor.db 文件的路径。

    例如:

    C:\Program Files\SQL Anywhere 16\run_migrator.cmd -t c:\monitorbackup c:\Program Files\SQL Anywhere 11\Monitor\samonitor11.db C:\Program Files\SQL Anywhere 16\Monitor\samonitor16.db

    使用下表确定迁移实用程序的位置。

    操作系统 监控器类型 迁移实用程序的缺省位置
    Windows 监控器开发人员版 C:\Program Files\SQL Anywhere 16\Bin32\run_migrator.cmd
    监控器生产版 C:\Program Files\SQL Anywhere 16\Bin32\run_migrator.cmd
    Linux 监控器开发人员版 /opt/sqlanywhere16/bin32/run_migrator.sh
    监控器生产版 /opt/sqlanywhere16/bin32/run_migrator.sh

结果

监控器已升级。

下一个

启动监控器

 另请参见