(Ep. 11) - Exploring the Db2 Error Log

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ก.พ. 2025

ความคิดเห็น • 4

  • @donbryan5551
    @donbryan5551 6 ปีที่แล้ว

    I did not know about the PD_GET_DIAG_HIST, Thanks

  • @technicalknowledge9828
    @technicalknowledge9828 2 ปีที่แล้ว

    Could you please me the query which you are using

  • @donbryan5551
    @donbryan5551 6 ปีที่แล้ว

    Can you talk about managing the db2diag log file size (DIAGSIZE) in a future. I have seen diag files get to several GB and they are difficult to open in an editor.

    • @DISCOVERDB2
      @DISCOVERDB2  6 ปีที่แล้ว +1

      Don Bryan in hindsight, most old school DBA’s wouldn’t even think of this. Someone established like me would have a script that runs nightly to rename the db2diag.log to db2diag.date.log and holds 30 days worth of logs before pruning. So your log is never more than 24 hours. I know there are DB CFG parameters for this now as well but I like the format I have and the auto-pruning. This script should be accessible in my GitHub account if you need something similar. (GitHub: mkrafick). But yeah, I have seen the multi-gig log as well. All you need is one crazy dump and your file system is hosed.