Get the App
SLTechnology News&Howtos  ›  Database  › 

Db2 emptying the table causes the table to appear Unavailable

Shulou Source: shulou.com Published: 2022-06-01 06:44:41 10月02日 Update

Possible reasons

1 、 bad page

2. Rollback emptying occurs in transaction without logging.

Test for the second case

Four windows are opened, and the test log is full, which leads to the failure of emptying the table until the table state changes to Unavailable.

Session 1: analog real-time business, appid 800,

Session 2: perform online backup, appid 1721

Session 3: execute emptying table, appid 1498

Session 4: open db2top

Session 5: view appid holding the oldest transaction log, appid 1922

Start execution:

Tags: Log test business reason backup real-time situation mode status online Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Linux Huawei Apple Redmi