This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Cycle through a list of partitions (members) in a table with numerous deleted rows and submit | |
-- a job to RGZPFM those deleted rows out, if there are no locks on that member. | |
-- Cautions: | |
-- One: If you rely upon relative record number (RRN) then you should not use RGZPFM on that table. | |
-- Not normally a technique often used anymore. | |
-- Two: If someone tries to access the file while it is being reorganized it will be locked. | |
-- Three: There are ways to "reorg while active" but it has side effects you need to understand. | |
-- I did not try reorg while active for this procedure. | |
-- Getting the list of members from syspartitionstat is pretty efficient. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Used to see if a session is inactive | |
-- Run one capture | |
create or replace table rob.slot_one as ( | |
select | |
current time as initial_time, | |
j.authorization_name, | |
j.remote_address, | |
j.job_type, | |
j.remote_port, |