(Ep. 20) - Db2 REORG

  Рет қаралды 6,106

DISCOVER.DB2

DISCOVER.DB2

Күн бұрын

The Db2 REORG is a fundamental command and a best practice for regular maintenance. On smaller tables, the process can be quick and painless, but what about large tables, or tables that require 24x7 access? Then things get a little tricky.
In this episode we will discuss why you would call a reorg, the different kinds of reorgs, benefits and drawbacks, syntax, and monitoring the process.
Timestamps:
00:58 - Why are REORGs needed?
01:28 - Repercussions of not doing a regular REORG
02:26 - Advantages/Disadvantages of Offline Reorg
03:47 - Phases of an Offline Reorg
05:51 - Advantage/Disadvantage of Online Reorg
07:53 - Phases of an Online Reorg
09:38 - Command Syntax
- Minor Syntax Correction:
REORG TABLE TABLENAME [PAUSE | STOP]
11:00 - Monitoring Reorg Progress
13:56 - Aborted Reorg Recovery
Useful Links:
(KC) Compare/Contrast Types of Reorg - tinyurl.com/yadaoeue
(KC) Phases of Offline Reorg - tinyurl.com/ya9o8jyc
(KC) Phases of Online Reorg - tinyurl.com/yanpxn6s
(Technote) Aborted Reorg Recovery - tinyurl.com/y9pr7gjc
(Blog) Best Practices for Reorg/Runstats - tinyurl.com/ycnbvf5z

Пікірлер: 16
@Affflex
@Affflex 8 ай бұрын
Very clear explanation. Thank you!
@sssdf816
@sssdf816 11 ай бұрын
AWESOME !
@i.f.7788
@i.f.7788 5 жыл бұрын
Really good explanation! Thank you!
@myunderstanding9904
@myunderstanding9904 5 жыл бұрын
Awesome content... good explanation... recommended for professionals
@kalpanamanoj8495
@kalpanamanoj8495 3 жыл бұрын
Good Explanation .. Thank you very much ..
@CHANDANDCMS
@CHANDANDCMS 4 жыл бұрын
Thank you So much .
@hanurao8078
@hanurao8078 4 жыл бұрын
Good info.Please clarify me at what phase we can interrupt online/offline reorg without impacting to table and db
@MrVieV
@MrVieV 5 жыл бұрын
Many thanks! Very few channels for DB2 are also in good English) P.S. Do you answer questions on the channel?
@DISCOVERDB2
@DISCOVERDB2 5 жыл бұрын
I always try to answer comments, feel free to ask away.
@monishpatil3420
@monishpatil3420 4 жыл бұрын
Hey Nice explanatory video on reorg, i had one doubt, what if i accidentally perform an offline reorg in Prod environment during working hours, and what if i abort it in between without waiting for it to complete... Will database crash in such scenario?? if yes how do i get back the database running in Prod.
@shubhamshahane6532
@shubhamshahane6532 2 жыл бұрын
Hello Sir, Very usefull information about reorg. I have one question : During offline reorg system get down or get crashed what happen will we able to access table ? Or we have to restore from tempspace1 (mostly this will not happend but senario asking in interview question)
@yashtiwari4348
@yashtiwari4348 5 жыл бұрын
Thank you... it was a very well explained video... After Online reorg do we need to run reorg index command every-time... ?**
@DISCOVERDB2
@DISCOVERDB2 5 жыл бұрын
Not necessarily, many people lean on REORGCHK to tell them when to reorganize what tables or indexes (a script could be written to interpret the output and automatically kick off a reorg). But if I am manually running a reorg on a specific table I normally do both table and index and follow up with a runstats.
@yashtiwari4348
@yashtiwari4348 5 жыл бұрын
Ohhkay... thank you...
@aravindachalla4398
@aravindachalla4398 5 жыл бұрын
What if offline reorg interrupt ?
@DISCOVERDB2
@DISCOVERDB2 5 жыл бұрын
I’m not sure I understand your question? If the offline reorg was interrupted and stopped abnormally, you can just issue the same reorg command again and it should start over from the beginning.
(Ep. 21) - Db2 REDUCE MAX Command
16:34
DISCOVER.DB2
Рет қаралды 2 М.
(Ep. 02) - Catalog a Node/Database
18:21
DISCOVER.DB2
Рет қаралды 1,7 М.
NERF WAR HEAVY: Drone Battle!
00:30
MacDannyGun
Рет қаралды 53 МЛН
I CAN’T BELIEVE I LOST 😱
00:46
Topper Guild
Рет қаралды 107 МЛН
Мы никогда не были так напуганы!
00:15
Аришнев
Рет қаралды 6 МЛН
5. DB2 Tutorial: Reorg Tables
9:02
Braham Creation 2 go
Рет қаралды 342
DB2 SQL Tuning Tips for Developers
55:04
Themis Education
Рет қаралды 9 М.
db2top: Troubleshoot Locks in DB2 LUW/UDB
13:25
Ravi Nandigam
Рет қаралды 7 М.
(Ep. 13) - Troubleshooting Slow Backups
6:43
DISCOVER.DB2
Рет қаралды 1,2 М.
(Ep. 18) - Db2 Performance Tuning With IREF
10:52
DISCOVER.DB2
Рет қаралды 768
Writing SQL with Examples on DB2 10.5 System Views and Table Functions
49:47
IDUG: International Db2 Users Group
Рет қаралды 11 М.
Apache Kafka 101: Partitioning (2023)
4:23
Confluent
Рет қаралды 119 М.
(Ep. 11) - Exploring the Db2 Error Log
16:05
DISCOVER.DB2
Рет қаралды 2,3 М.
Db2 LUW Administration Basic Commands
1:42:53
Database Guy
Рет қаралды 29 М.
Здесь упор в процессор
18:02
Рома, Просто Рома
Рет қаралды 247 М.
iPhone 15 Pro в реальной жизни
24:07
HUDAKOV
Рет қаралды 179 М.
Мой инст: denkiselef. Как забрать телефон через экран.
0:54
Samsung Galaxy Unpacked July 2024: Official Replay
1:8:53
Samsung
Рет қаралды 23 МЛН