(Ep. 11) - Exploring the Db2 Error Log

  Рет қаралды 2,329

DISCOVER.DB2

DISCOVER.DB2

Күн бұрын

The error log can be intimidating. Sometimes the error log seems to have too much information to parse, sometimes it doesn't seem to have enough. This episode will cover how to find the error log, how to effectively mine information found inside, and some oddball tips to help you along.
Timestamps:
00:44 - Where is it the error log?
02:16 - What is in the error log?
03:43 - Cool ways to look up error codes
06:35 - Command line walkthrough
09:59 - How to use PD_GET_DIAG_HIST
GitHub Repository:
github.com/MKrafick/DiscoverDB2
PARSE_DIAG.ksh
A quick script that takes a database name and pulls 24 hours of
DB2DIAG.log details via PD_GET_DIAG_HIST.
Useful Links:
(Blog) DB2 Error Logging - tinyurl.com/ybxgzzs8
(Blog) db2diag tool for Parsing the Diagnostic Log - tinyurl.com/7q3pnqu

Пікірлер: 4
@donbryan5551
@donbryan5551 6 жыл бұрын
I did not know about the PD_GET_DIAG_HIST, Thanks
@technicalknowledge9828
@technicalknowledge9828 Жыл бұрын
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 жыл бұрын
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.
(Ep. 20) - Db2 REORG
15:32
DISCOVER.DB2
Рет қаралды 6 М.
(Ep. 21) - Db2 REDUCE MAX Command
16:34
DISCOVER.DB2
Рет қаралды 2 М.
Clown takes blame for missing candy 🍬🤣 #shorts
00:49
Yoeslan
Рет қаралды 46 МЛН
Как бесплатно замутить iphone 15 pro max
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 8 МЛН
db2top: Troubleshoot Locks in DB2 LUW/UDB
13:25
Ravi Nandigam
Рет қаралды 7 М.
Elon Musk update on 2nd human who got Neuralink implant
9:12
Lex Clips
Рет қаралды 11 М.
(Ep. 28) - Four Types of Database Bottlenecks
19:19
DISCOVER.DB2
Рет қаралды 1,2 М.
What if my Intel CPU explodes??
14:20
Paul's Hardware
Рет қаралды 62 М.
(Ep. 14) - DB2 Database Locking Concepts
6:57
DISCOVER.DB2
Рет қаралды 3,4 М.
How To Make Viral Ai History Shorts (tutorial)
13:22
تجربة أغرب توصيلة شحن ضد القطع تماما
0:56
صدام العزي
Рет қаралды 63 МЛН