显示数据库服务器状态

使用 ccmsrv status 命令显示数据库服务器状态。

本主题包含针对 Windows 和 UNIX 的步骤。

确保在尝试使用命令之前满足相关要求。

有关更多信息,请参阅:

Windows:ccmsrv status

UNIX(基于 Informix®):ccmsrv status

UNIX(基于 Oracle):ccmsrv status

Windows

开始之前

请阅读 Windows 上的预安装

过程

  1. 在数据库服务器所在的机器上,运行 ccmsrv status 命令。
  2. 请求状态。例如,请求名为 joe 的数据库服务器上所有选项的状态。
    > ccmsrv status /all
    *** database server joe ***
    server number:         0
    state:                 online mode
    maximum users allowed: 100
    number of users:       4
    archive device:        NUL
    network service:       turbo
    
    --- logical logs ---
    
    log size:             1024 KBytes
    maximum logs allowed: 38
    total number of logs: 34
    number of free logs:  0
    
    --- dbspace rootdbs ---
    
    chunk files:
    h:\ifmxdata\rootdbs.000  102400 Kbytes total,  89744 Kbytes free.
    total free space:       89744 Kbytes
    
    --- dbspace log ---
    
    chunk files:
    h:\ifmxdata\log.000  51200 Kbytes total,  16172 Kbytes free.
    total free space:       16172 Kbytes
    
    --- dbspace ccm ---
    
    chunk files:
    h:\ifmxdata\ccm.000  819200 Kbytes total,  624540 Kbytes free.
    total free space:       624540 Kbytes
    
    --- dbspace temp ---
    
    chunk files:
    h:\ifmxdata\tempdbs.000  102400 Kbytes total,  102188 Kbytes free.
    total free space:       102188 Kbytes
    
    Database List:
    Informix Dbname      Version    Database Path
    ==================== ========== =======================
    agincourt@irvine5    7.2         \\irvine5\devccmdb\agincourt
    ccm_nt@irvine5       7.2         \\irvine5\devccmdb\ccm_nt
    
    There is a total of 2 databases.

UNIX

开始之前

请阅读 UNIX 上的预安装

过程

  1. 在数据库服务器所在的机器上,运行 ccmsrv status 命令。
  2. 请求状态。

    例如,如下所示请求 hydra1 服务器的逻辑日志和数据库空间的状态:

    $ ccmsrv status -log -dbspace -s hydra1


反馈