The onstat -g scn command displays the status and detail of a current scan. This information can be used to determine how long a long-running scan will take to complete. For tables, the onstat -g scn command output identifies whether a scan is a light or bufferpool scan.
[Table Information] Light Scan Info descriptor address next_lpage next_ppage ppage_left bufcnt look_aside RSAM batch sequential scan info SesID Thread Partnum Rowid Rows Scan'd Scan Type Lock Mode Notes 2370448 2890168 200145 452909 87235 Light Table Look aside, 2370440 2890147 20013d 101 0 Buffpool +Test Must copy [Index Information] RSAM batch index scan info SesID Thread Partnum Scan Type Lock Mode Notes 2370436 2890156 20019a SLock+Test Start Key GT :-2147483648: Stop Key EQ :1500: Current key :170: Current position: buffp 0x10a4bc0c8 pagenum 4 slot 11 rowoff 4 flags 0
Option | Description |
---|---|
descriptor (decimal) | Light scan ID |
address (hex) | Memory address of the light scan descriptor |
next_lpage (hex) | Next logical page address to scan |
next_ppage (hex) | Next physical page address to scan |
ppage_left (decimal) | Number of physical pages left to scan in the current extent |
bufcnt | Number of light scan buffers used for this light scan |
look_aside | Whether look aside is needed for this light scan (Y = yes, N = no). Look asides occur when a thread needs to examine the buffer pool for existing pages to obtain the latest image of a page being light scanned. |
SesID | Session ID |
Thread | Thread ID |
Partnum | Partition number |
Rowid | Current row ID |
Rows Scan'd | Number of rows that have been scanned |
Scan Type | For tables, either:
|
Lock Mode | The type of acquired lock or no lock:
|
Start key | Start key of the scan |
Stop key | End key of the scan |
Current key | The current key in the scan |
Current position | The current location of the scan in the index, for example, the page, slot, and offset |
To discuss how Oninit ® can assist please call on +1-913-674-0360 or alternatively just send an email specifying your requirements.