Monitoring and Controlling Deferred Indexing
The dfkctl utility can be used to monitor and control deferred indexing threads.
Usage:
dfkctl operation [-s svn] [-u uid] [-p upw] [-i int [cnt]] [-h frq]
[-d] [-m] [-t]
Operations:
Options:
Examples of maintenance and monitoring with dfkctl
1. Display deferred indexing statistics:
# dfkctl -getstats -h 10
succcessful operations: failed operations: skipped operations:
qcnt open add delete update open add delete update add delete update
0 30004 93242 0 0 0 0 0 0 3000 0 0
0 30004 93242 0 0 0 0 0 0 3000 0 0
2. Display deferred indexing thread state:
# dfkctl -getstate -h 10
non-tran thread: tran thread:
current op qcnt current op lognum logpos
readop 0 readop 19 18460903
readop 0 readop 19 18460903
readop 0 readop 19 18460903
readop 0 readop 19 18460903
3. Clear deferred indexing statistics:
# dfkctl -clearstats
Successfully reset deferred indexing statistics.
4. Pause deferred indexing threads:
# dfkctl -pause
Successfully paused deferred indexing threads.
5. Resume deferred indexing threads:
# dfkctl -resume
Successfully resumed deferred indexing threads.
6. Queue a background index load:
# dfkctl -queueidxload <datafilename> <indexno> <indexno> ...
Where
Queue loading of the first two indexes for data file mark.dat:
# dfkctl -queueidxload mark.dat 1 2 -u ADMIN -p ADMIN -s FAIRCOMS
Queue loading of all of the indexes for data file mark.dat:
# dfkctl -queueidxload mark.dat all -u ADMIN -p ADMIN -s FAIRCOMS