GBase 8s
运维管理
文章

GBase8s 查看逻辑日志使用情况

发表于2026-01-08 09:23:2820次浏览2个评论

使用数据库管理员用户执行onstat -l命令用于监控物理日志及逻辑日志的使用情况,需关注已使用的逻辑日志是否及时备份。

[gbasedbt@node13 ~]$ onstat -l
Your evaluation license will expire on 2021-08-27 00:00:00

GBase Database Server Version 12.10.FC4G1TL -- On-Line (Prim) -- Up 00:31:28 -- 2023104 Kbytes

Physical Logging
Buffer bufused  bufsize  numpages   numwrits   pages/io
  P-1  0        1024     5965       18         331.39
      phybegin         physize    phypos     phyused    %used   
      2:53             495000     248287     0          0.00    

Logical Logging
Buffer bufused  bufsize  numrecs    numpages   numwrits   recs/pages pages/io
  L-3  0        512      300095     16300      3956       18.4       4.1     
        Subsystem    numrecs    Log Space used
        OLDRSAM      300088     26684432      
        HA           7          308           

address          number   flags    uniqid   begin                size     used    %used
552b2f88         1        F------  0        3:53                50000        0     0.00
5769f970         2        F------  0        3:50053             50000        0     0.00
5769f9d8         7        F------  0        3:100053            50000        0     0.00
5769fa40         8        U-B----  79       3:150053            50000     5770    11.54
5769faa8         9        U-B----  80       3:200053            50000    12130    24.26
5769fb10         10       U-B----  81       3:250053            50000    12569    25.14
5769fb78         11       U-B----  82       3:300053            50000    50000   100.00
5769fbe0         12       U-B----  83       3:350053            50000    36646    73.29
5769fc48         13       U-B----  84       3:400053            50000    50000   100.00
5769fcb0         14       U---C-L  85       3:450053            50000    39834    79.67
5769fd18         3        A------  0        3:500053           100000        0     0.00
 11 active, 11 total


 

评论

登录后才可以发表评论
用户头像
GBase用户28017发表于 6个月前
学习。
用户头像
柒柒天晴发表于 2个月前
向大佬学习