0% found this document useful (0 votes)
7 views

Tables - Manual

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

Tables - Manual

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 340

Reference Manual | PUBLIC

SAP Adaptive Server Enterprise 16.0 SP03


Document Version: 1.0 – 2020-08-11

Reference Manual: Tables


© 2020 SAP SE or an SAP affiliate company. All rights reserved.

THE BEST RUN


Content

1 System Tables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.1 Locations of System Tables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
System Tables in master. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
System Tables in sybsecurity. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
System Table in sybsystemdb. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
System Tables in All Databases. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
The sybdiagdb Database. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10
The syblicenseslog Table. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
1.2 Using System Tables in the Cluster Edition. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
timestamp Columns. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Changed Identity Values. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Controlling Fake-Table Materialization. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
1.3 Rules for Using System Tables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Permissions on System Tables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12
Locking Schemes Used for System Tables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Reserved Columns. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Updating System Tables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Triggers on System Tables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
1.4 ch_events. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
1.5 sysdams. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
1.6 syblicenseslog. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
1.7 sysalternates. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
1.8 sysaltusages. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
1.9 sysattributes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
1.10 sysauditoptions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
1.11 sysaudits_01 – sysaudits_08. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
1.12 syscacheinfo. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
1.13 syscachepoolinfo. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
1.14 syscharsets. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
1.15 syscolumns. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
1.16 syscomments. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32
1.17 sysconfigures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
1.18 sysconstraints. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
1.19 syscoordinations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
1.20 syscurconfigs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
1.21 sysdatabases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41

Reference Manual: Tables


2 PUBLIC Content
1.22 sysdepends. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
1.23 sysdevices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .47
1.24 sysencryptkeys. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
1.25 sysengines. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
1.26 sysgams. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
1.27 sysimrslogs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
1.28 sysindexes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
1.29 sysinstances. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
1.30 sysjars. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
1.31 syskeys. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
1.32 syslanguages. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
1.33 syslisteners. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
1.34 syslocks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
1.35 syslogininfo. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
1.36 sysloginroles. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
1.37 syslogins. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
1.38 syslogs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
1.39 syslogshold. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
1.40 sysmessages. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
1.41 sysmonitors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
1.42 sysobjects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
1.43 sysoptions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
1.44 syspartitionkeys. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
1.45 syspartitions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
1.46 syspoolinfo. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
1.47 sysprocedures. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
1.48 sysprocesses. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
1.49 sysprotects. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
1.50 sysquerymetrics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .92
1.51 sysqueryplans. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
1.52 sysreferences. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .95
1.53 sysremotelogins. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
1.54 sysresourcelimits. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
1.55 sysroles. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
1.56 syssecmechs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
1.57 syssegments. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
1.58 sysservers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
1.59 syssequences. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
1.60 syssessions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
1.61 sysslices. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
1.62 syssrvroles. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105

Reference Manual: Tables


Content PUBLIC 3
1.63 sysstatistics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
1.64 systabstats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
1.65 systhresholds. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
1.66 systimeranges. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
1.67 systransactions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
1.68 systypes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
1.69 sysusages. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
1.70 sysusermessages. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
1.71 sysusers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
1.72 sysversions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .123
1.73 sysxtypes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123

2 dbccdb Tables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125


2.1 dbccdb Workspaces. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
2.2 dbccdb Log. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .126
2.3 dbcc_config. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
2.4 dbcc_counters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
2.5 dbcc_exclusions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
2.6 dbcc_fault_params. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
2.7 dbcc_faults. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .130
2.8 dbcc_operation_log. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
2.9 dbcc_operation_results. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
2.10 dbcc_types. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133

3 Monitoring Tables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142


3.1 monBucketPool. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .142
3.2 monCachedObject. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
3.3 monCachePool. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
3.4 monCachedProcedures. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
3.5 monCachedStatement. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149
3.6 monCIPC. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154
3.7 monCIPCEndpoints. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155
3.8 monCIPCLinks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156
3.9 monCIPCMesh. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
3.10 monCLMObjectActivity. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158
3.11 monClusterCacheManager. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160
3.12 monCMSFailover. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
3.13 monDataCache. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162
3.14 monDBRecovery. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
3.15 monDBRecoveryLRTypes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .166
3.16 monDeadLock. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .167
3.17 monDeviceIO. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .171

Reference Manual: Tables


4 PUBLIC Content
3.18 monDeviceSegmentIO. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172
3.19 monDeviceSpaceUsage. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172
3.20 monDeviceSegmentUsage. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173
3.21 monEngine. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175
3.22 monErrorLog. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .177
3.23 monFailoverRecovery. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .178
3.24 monHADRMembers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179
3.25 monHANANonPushdown. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .180
3.26 monHCBGCTasks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
3.27 monHCBPartitionActivity. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182
3.28 monHCBTuningActivity. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184
3.29 monIMRSCache. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186
3.30 monIMRSCacheActivity. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186
3.31 monIMRSGCTasks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190
3.32 monImrslogRecovery. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .192
3.33 monIMRSPartitionActivity. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195
3.34 monInmemoryStorage. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201
3.35 monIOController. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .202
3.36 monIOQueue. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203
3.37 monLatchFreeIndex. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204
3.38 monLicense. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205
3.39 monLocks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206
3.40 monLockTimeout. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208
3.41 monLogicalCluster. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213
3.42 monLogicalClusterAction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215
3.43 monLogicalClusterInstance. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217
3.44 monLogicalClusterRoute. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218
3.45 monMemoryUsage. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218
3.46 monNetworkIO. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222
3.47 monNVCache. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223
3.48 monOpenDatabases. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224
3.49 monOpenObjectActivity. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225
3.50 monOpenPartitionActivity. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230
3.51 monPCIBridge. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235
3.52 monPCIEngine. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235
3.53 monPCISlots. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236
3.54 monPCM. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237
3.55 monProcedureCache. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239
3.56 monProcedureCacheMemoryUsage. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240
3.57 monProcedureCacheModuleUsage. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241
3.58 monProcELC. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242

Reference Manual: Tables


Content PUBLIC 5
3.59 monProcess. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244
3.60 monProcessActivity. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246
3.61 monProcessLookup. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249
3.62 monProcessMigration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250
3.63 monProcessNetIO. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250
3.64 monProcessObject. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251
3.65 monProcessProcedures. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252
3.66 monProcessSQLText. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254
3.67 monProcessStatement. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255
3.68 monProcessWaits. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257
3.69 monProcessWorkerThread. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257
3.70 monRepCoordinator. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 258
3.71 monRepLogActivity. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 260
3.72 monRepMemoryStatistics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262
3.73 monRepScanners. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264
3.74 monRepScannersTotalTime. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .266
3.75 monRepSchemaCache. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267
3.76 monRepSenders. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .268
3.77 monRepStreamStatistics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .270
3.78 monRepSyncTaskStatistics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273
3.79 monRepTruncationPoint. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277
3.80 monSpinlockActivity. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279
3.81 monSQLRepActivity. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280
3.82 monSQLRepMisses. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281
3.83 monSSLCertInfo. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .282
3.84 monState. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .283
3.85 monStatementCache. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 284
3.86 monSysExecutionTime. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 285
3.87 monSysLoad. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 286
3.88 monSysPlanText. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287
3.89 monSysSQLText. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289
3.90 monSysStatement. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 290
3.91 monSysWaits. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292
3.92 monSysWorkerThread. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .293
3.93 monTableColumns. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 294
3.94 monTableCompression. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 296
3.95 monTableParameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 297
3.96 monTables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 298
3.97 monTableTransfer. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 299
3.98 monTask. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 300
3.99 monTempdbActivity. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 301

Reference Manual: Tables


6 PUBLIC Content
3.100 monThread. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 302
3.101 monThreadPool. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 303
3.102 monThresholdEvent. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 304
3.103 monWaitClassInfo. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 306
3.104 monWaitEventInfo. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 307
3.105 monWorkload. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 307
3.106 monWorkloadPreview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 308
3.107 monWorkloadProfile. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 309
3.108 monWorkloadRaw. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 310
3.109 monWorkQueue. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 311

4 sybpcidb Tables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313


4.1 pca_jre_arguments. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313
4.2 pca_jre_directives. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 314
4.3 pci_arguments. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 315
4.4 pci_directives. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 316
4.5 pci_slotinfo. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 317
4.6 pci_slot_syscalls. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 318

5 Workload Profiler Tables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 319


5.1 wlp_tables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 319
5.2 wlp_table_columns. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 320
5.3 wlp_exec_defaults. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321
5.4 wlp_exec_control. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 322
5.5 wlp_exec_commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 324
5.6 wlp_control. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325
5.7 wlp_valid_features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325
5.8 wlp_exec_cmd_timings. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326
5.9 wlp_exec_cmd_show. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .327
5.10 wlp_unique_collist_for_mda_archive. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .328
5.11 wlp_exec_cmd_generate_deltas. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 329
5.12 wlp_afs_inputs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 330
5.13 wlp_plan_objscores. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 330
5.14 WLP_spaceusage_object. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 332
5.15 WLP_spaceusage_syslogs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 333
5.16 WLP_spaceusage_sysimrslogs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .334
5.17 WLP_monOpenObjectActivity. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 336
5.18 WLP_monDataCache. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 337
5.19 WLP_monSysWaits. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .338

Reference Manual: Tables


Content PUBLIC 7
1 System Tables

System tables are supplied for use with SAP Adaptive Server Enterprise. Most SAP ASE system tables are row-
locked tables. Those that are not, are noted in the individual system table descriptions.

1.1 Locations of System Tables

Some system tables are located only in the master, sybsecurity, or sybsystemdb databases, while others
may be located in all databases.

Most tables in the master database are system tables. Some of these tables also occur in user databases.
They are automatically created when the create database command is issued.

1.1.1 System Tables in master

Certain system tables occur only in the master database.

● syscharsets – one row for each character set or sort order.


● sysconfigures – one row for each configuration parameter that can be set by users.
● syscurconfigs – information about configuration parameters currently being used by the SAP ASE
server.
● sysdatabases – one row for each database on the SAP ASE server.
● sysdevices – one row for each tape dump device, disk dump device, disk for databases, and disk
partition for databases.
● sysengines – one row for each SAP ASE engine currently online.
● syslanguages – one row for each language (except U.S. English) known to the server.
● syslisteners – one row for each type of network connection used by the current SAP ASE server.
● syslocks – information about active locks.
● sysloginroles – one row for each server login that possesses a system role.
● syslogins – one row for each valid SAP ASE user account.
● syslogshold – information about the oldest active transaction and the Replication Server® truncation
point for each database.
● sysmessages – one row for each system error or warning.
● sysmonitors – one row for each monitor counter.
● sysprocesses – information about server processes .
● sysremotelogins – one row for each remote user .
● sysresourcelimits – one row for each resource limit.
● syssecmechs – information about the security services available for each security mechanism that is
available to the SAP ASE server.

Reference Manual: Tables


8 PUBLIC System Tables
● sysservers – one row for each remote SAP ASE server.
● syssessions – used only when the SAP ASE server is configured for failover in a high availability system.
syssessions contains one row for each client that connects to the SAP ASE server with the failover
property.
● syssrvroles – one row for each server-wide role.
● systimeranges – one row for each named time range.
● systransactions – one row for each transaction.
● sysusages – one row for each disk piece allocated to a database.

1.1.2 System Tables in sybsecurity

Two audit-related system tables occur only in the sybsecurity database:

● sysauditoptions – one row for each global audit option.


● sysaudits_01 – sysaudits_08 – the audit trail. Each audit table contains one row for each audit record.

All auditing-related system tables are all-pages locked.

1.1.3 System Table in sybsystemdb

The syscoordinations system table, which consists of one row for each remote participant of a distributed
transaction, occurs only in sybsystemdb.

1.1.4 System Tables in All Databases

Certain system tables occur in all databases.

● sysalternates – one row for each SAP ASE user mapped to a database user.
● sysattributes – one row for each object attribute definition.
● syscolumns – one row for each column in a table or view, and for each parameter in a procedure.
● syscomments – one or more rows for each view, rule, default, trigger, and procedure, giving SQL definition
statement.
● sysconstraints – one row for each referential and check constraint associated with a table or column.
● sysdepends – one row for each procedure, view, or table that is referenced by a procedure, view, or
trigger.
● sysencryptkeys – one row for each key created in a database, including the default key.
● sysgams – allocation bitmaps for an entire database.
● sysindexes – one row for each clustered or nonclustered index, one row for each table with no indexes,
and an additional row for each table containing text or image data.
● sysjars – one row for each Java archive (JAR) file that is retained in the database.
● syskeys – one row for each primary, foreign, or common key; set by user (not maintained by the SAP ASE
server).

Reference Manual: Tables


System Tables PUBLIC 9
● syslogs – transaction log.
● sysobjects – one row for each table, view, procedure, rule, trigger default, log, and (in tempdb only)
temporary object.
● syspartitionkeys – one row for each partition key.
● syspartitions – one row for each partition of a partitioned table or index.
● sysprocedures – one row for each view, rule, default, trigger, and procedure, giving internal definition.
● sysprotects – user permissions information.
● sysquerymetrics – gathers aggregated historical query information in a persistent catalog.
sysquerymetrics is a view, not a table.
● sysqueryplans – abstract query plans and SQL text.
● sysreferences – one row for each referential integrity constraint declared on a table or column.
● sysroles – maps server-wide roles to local database groups.
● syssegments – one row for each segment (named collection of disk pieces).
● sysslices – obsolete, used only during upgrade. Formerly called syspartitions before SAP ASE
version 15.0.
● sysstatistics – one or more rows for each indexed column on a user table. May also contain rows for
unindexed column.
● systabstats – one row for each table, plus one row for each nonclustered index.
● systhresholds – one row for each threshold defined for the database.
● systypes – one row for each system-supplied and user-defined datatype.
● sysusermessages – one row for each user-defined message.
● sysusers – one row for each user allowed in the database.
● sysxtypes – one row for each extended, Java-SQL datatype. Uses row-level locking.

1.1.5 The sybdiagdb Database

SAP Product Support may create the sybdiagdb database on your system for debugging purposes. This
database holds diagnostic configuration data for use by Product Support representatives.

1.1.6 The syblicenseslog Table

The syblicenseslog table is described in syblicenseslog. It is not technically a system table, but you may
need to consult it for license information related to shutting down the SAP ASE server.

Related Information

syblicenseslog [page 16]

Reference Manual: Tables


10 PUBLIC System Tables
1.2 Using System Tables in the Cluster Edition

There are some differences in system tables if you are using a Cluster Edition of SAP ASE.

1.2.1 timestamp Columns

In the SAP ASE server, if a table includes a timestamp column, its value is updated when a row is changed.
Client applications can use this functionality to detect changes to rows using an access method called
“optimistic locking.”

The values in the timestamp column are unique in a database. However, in the Cluster Edition, timestamp
column values are not guaranteed to be in increasing order in a database across tables, but they are
guaranteed to be in increasing order for a particular table.

1.2.2 Changed Identity Values

Identity columns in the Cluster Edition behave differently from those in non-clustered editions of SAP ASE.
Although the Cluster Edition guarantees that identity values are unique, for performance reasons the values
may not monotonically increase.

In a non-clustered SAP ASE server, a set of identity values are burned into memory to reduce disk I/Os as
inserts access the next value from memory. In the Cluster Edition, the same size set is burned into memory,
but the set is split among the cluster instances. In a two-instance cluster with an identity set size of 250000,
the first instance inserts values {1,2,3, and so on}, and the second instance inserts values
{125000,125001,125002, and so on}.

When you restart an instance after a shutdown or a crash, a new block of identity values may be allocated for
that instance when it rejoins the cluster. As a result, you may see a jump in the identity value for the instance.

The next-identity function reports the next identity value for a table from the instance in which next-
identity is executed. For example, next-identity returns 4 for instance 1 and 125003 for instance 2.

The behavior of the identity-burn-max remains the same as for a non-clustered SAP ASE server because
the burn size and burn behavior is unchanged in the Cluster Edition.

1.2.3 Controlling Fake-Table Materialization

Certain stored procedures, such as sp_who and sp_lock, read from fake tables such as sysprocesses and
syslocks. Because their rows are not stored on disk, fake tables present an exception to the shared-data
nature of a shared-disk cluster, and special features apply.

You can control whether a fake-table query returns rows from the local instance or all instances in the cluster
by using the set system_view command. set system_view is a session-level command. In addition, set
system_view also controls monitoring table materialization.

Reference Manual: Tables


System Tables PUBLIC 11
By default, the SAP ASE server retrieves rows only from the local instance.

● To specify that fake-table queries materialize rows for all instances, use the cluster option. For example:

set system_view cluster

● To specify that fake-table queries materialize rows for the local instance, use the instance option. For
example:

set system_view instance

To retrieve the current system_view setting, select the <@@system_view> global variable.

The SAP ASE server supports cluster-wide materialization for these fake tables:

● sysprocesses
● syslocks
● sysengines
● syslisteners
● sysmonitors
● syssecmechs
● syscurconfigs

 Note

sysinstances is always set for cluster-wide materialization, regardless of the system_view setting.

1.3 Rules for Using System Tables

This section describes rules, restrictions, and usage information for system tables.

 Note

By default, a column is defined as NOT NULL. Nullable columns are described using the “null” keyword, and
are listed in the column descriptions for the tables in this book.

1.3.1 Permissions on System Tables

Permissions for use of the system tables can be controlled by the Database Owner, just like permissions on any
other tables.

By default, when SAP ASE is installed, the installmodel script grants select access to “public” (all users)
for most system tables and for most fields in the tables. Instead, the default permissions on the system tables
are assigned when the SAP ASE server builds a new database. However, no access is granted to some system
tables, such as syssrvroles, and no access is granted to certain fields in other system tables. For example, all
users, by default, can select all columns of sysobjects except audflags.

Reference Manual: Tables


12 PUBLIC System Tables
See the Security Administration Guide for more information.

sp_helprotect <system_table_name>

For example, to check the permissions of syssrvroles in master, execute:

use master
go
sp_helprotect syssrvroles
go

1.3.2 Locking Schemes Used for System Tables

In the allpages locking scheme in SAP ASE, locks are acquired on data and index pages.

See the Performance and Tuning Guide: Locking for more information on locking schemes.

All system tables use datarow locking except for the following, which use allpages locking:

● sysusermessages
● sysslices
● sysmessages

In addition, the following system tables are “fake”—or non-row-oriented—catalogs that give the appearance of
using allpages locking:

● syslogs
● sysgams
● sysprocesses
● syslocks
● syscurconfigs
● syssecmechs
● sysmonitors
● sysengines
● systestlog
● syslisteners
● syslogshold

Reference Manual: Tables


System Tables PUBLIC 13
1.3.3 Reserved Columns

The word “reserved” in the column description means that the column is not currently used by the SAP ASE
server.

1.3.4 Updating System Tables

Direct updates on system tables are not allowed – even for the Database Owner. Instead, SAP ASE includes
system procedures that you should use to make any normally needed updates and additions to system tables.

You can allow direct updates to the system tables if it you must modify them in a way that cannot be
accomplished with a system procedure. To allow direct updates, a system security officer must use
sp_configure to reset the configuration parameter called allow updates to system tables. For more
information, see the Security Administration Guide.

1.3.5 Triggers on System Tables

You cannot create triggers on system tables. If you try to create a trigger on a system table, the SAP ASE server
returns an error message and cancels the trigger.

1.4 ch_events

Contains one row for each configuration change event. ch_events is located in the sybmgmtdb database.
ch_events is a view based on the extrainfo columns. You must have the mon_role to view ch_events.

Columns

The columns for ch_events are:

Name Datatype Description

area varchar(10)not Area in which the event occurs. One of:


null ● server – server-level events.
● database – database-level events.
● cache – cache-level events.
● traceflag – dbcc traceflag and set switch events.
● SUSD – for startup/shutdown.
● audit – auditing state changes.

Reference Manual: Tables


14 PUBLIC System Tables
Name Datatype Description

type varchar(30)not Type of auditable event. One of:


null ● sp_configure
● sp_serveroption
● sp_dboption
● sp_cacheconfig
● sp_poolconfig
● create thread pool
● alter thread pool
● drop thread pool
● dbcc traceflag
● set switch
● configuration file change
● startup
● shutdown
● shutdown with wait
● shutdown with nowait
● abrupt shutdown
● global auditing
● config history auditing
.

target varchar(30) null Name of the objects to which the change applies.

element varchar(255) null Configuration parameter or other option name.

oldvalue varchar(255) null Value of event prior to change.

newvalue varchar(255) null Value of event after change.

mode varchar(10) null Status for configuration parameters: static or dynamic.

timestamp datetime not null Date and time the event takes place. For changes to the configuration file
and abrupt shutdowns, timestamp indicates the time the event was de­
tected, not when the event took place.

username varchar(30) null Name of the user who made the change. Set to null for:

● Startup
● Configuration file change
● Abrupt shutdown

instanceid tinyint null (Cluster Edition only) ID of the instance.

Reference Manual: Tables


System Tables PUBLIC 15
1.5 sysdams

sysdams stores the dump allocation map (DAM) for the database. The DAM stores the list of allocation units
that have been modified since the last full database dump. It is a bitmap with one bit per allocation unit in the
database.

A value of:

● 0 – indicates that no page in the allocation unit has changed since the last full database dump.
● 1 – indicates that at least one page in the allocation unit has changed since the last database dump.

sysdams is automatically increased in size by an alter database operation. You cannot select from or view
sysdams.

1.6 syblicenseslog

Applies to master database only. syblicenseslog contains one row for each update of the maximum
number of licenses used in the SAP ASE server per 24-hour period. syblicenseslog is updated every 24
hours. If the SAP ASE server is shut down at any time, License Use Manager logs the number of licenses
currently being used in syblicenseslog before the shutdown is complete. The 24-hour period restarts when
you start the SAP ASE server.

 Note

syblicenseslog is not a system table. Its type is “U” and its object ID is greater than 255.

Columns

The columns for syblicenseslogs are:

Name Datatype Description

status smallint Status of the maximum number of licenses used; one of the following:

● 0 = number of licenses not exceeded


● 1 = number of licenses is exceeded
● -1 = housekeeper is unable to monitor number of licenses

logdate datetime Date and time the log was written

maxlicens int Maximum number of licenses used during the 24-hour period
es

Reference Manual: Tables


16 PUBLIC System Tables
1.7 sysalternates

Applies to all databases. sysalternates contains one row for each SAP ASE user that is mapped or aliased to
a user of the current database. When a user tries to access a database, the SAP ASE server looks for a valid
uid entry in sysusers. If none is found, it looks in sysalternates.suid. If the user’s suid is found there, he
or she is treated as the database user whose suid is listed in sysalternates.altsuid.

Columns

The columns for sysalternates are:

Name Datatype Description

suid int Server user ID of user being mapped

altsuid int Server user ID of user to whom another user is mapped

Indexes

Unique clustered index on suid.

1.8 sysaltusages

Applies to the scratch database. The sysaltusages system table maps page numbers in an archive database
to the actual page within either the database dump and its stripes, or the modified pages section.

Unlike the sysusages table in a traditional database, however, the sysaltusages table does not map every
logical page in the database. sysaltusages maps pages that have been:

● Stored in a database dump


● Modified, and therefore, relocated to the modified pages section

See Archive Database Access in the System Administration Guide, Volume 2.

Reference Manual: Tables


System Tables PUBLIC 17
Columns

The columns for sysaltusages are:

Name Datatype Description

dbid smallint The database ID of the archive database

location int The location of the archive database segment where the physically contiguous block of pa­
ges resides.

In the location column, a value of 5 and 6 means the location is in the database dump,
transaction log dump, or their stripes, and a value of 7 or 8 means that the location is in the
modified pages section. A value of 4 is used to fill the gaps for pages that are not physically
available.

lstart unsigned The logical page number of the start of the block of physically contiguous pages.
int

size unsigned The number of logical pages in the block of physically contiguous pages.
int

vstart int The offset of the start of the contiguous block of pages on the device given by vdevno.

vdevno int The device number on which the contiguous block of pages resides.

segmap int A map of the segments to which this block of pages is allocated.

 Note

Because sysaltusages is a row-locked catalog, you may need to periodically use reorg to reclaim
logically deleted space.

The scratch database stores the new sysaltusages table. The scratch database is used to provide flexibility
as to where the sysaltusages table is located.

The scratch database can be any database (with some exceptions like master and temporary databases).
You should dedicate a database that is used only as a scratch database, because:

● The size of sysaltusages may vary depending on the number of archive databases it supports. You
cannot decrease the size of a database, but if it is too large, you can drop it and re-create a smaller
database when required.
● It allows you to turn on the "trunc log on checkpoint" option so that the database log be
automatically truncated.

Apart from hosting the sysaltusages table, this database is like any other. You can use threshold procedures
and other space management mechanisms to manage space within the database.

You must specify a database that is to be used as a scratch database, by entering:

sp_dboption <db name>, "scratch database", "true"

Reference Manual: Tables


18 PUBLIC System Tables
Each archive database can be assigned to only one scratch database at a time, but multiple archive databases
can use the same scratch database. If you have a large number of archive databases, you may want to define
multiple scratch databases.

sysaltusages includes a unique clustered index named csysaltusages on dbid, location, and lstart.

1.9 sysattributes

Applies to all databases. System attributes define properties of objects such as databases, tables, indexes,
users, logins, and procedures. sysattributes contains one row for each of an object’s attribute definitions
(configured by various system procedures). master..sysattributes defines the complete set of valid
attribute values and classes for the SAP ASE server as a whole. It also stores attribute definitions for server-
wide objects, such as databases and logins.

Use only system procedures to access sysattributes. The permissions required for modifying
sysattributes depend on the system procedure you use.

Columns

The columns for sysattributes are:

Name Datatype Description

class smallint The attribute class ID. This describes the category of the attribute. In
master..sysattributes, the special class 0 identifies all valid classes of attrib­
utes for the SAP ASE server.

attribute smallint The attribute ID, this column specifies a default decrypt on an encrypted column with a
value of 1 (DECRYPT-DEFAULT_ID) for objects with a type of EC and a class of 25.

object_type char(2) A one- or two-letter character ID that defines the type of object to associate with the
attribute.

object_cinfo varchar(2
55) null

object_cinfo varchar(2 A string identifier for the object (forA string identifier for the object (for example, the
2 55) null name of an application) in a SDC environment. This field is not used by all attributes.
example, the name of an application). This field is not used by all attributes.

object int null The object identifier. This may be an object ID, user ID, decrypt default ID, or database
ID, depending on the type of object. If the object is a part of a table (for example, an
index), this column contains the object ID of the associated table.

Reference Manual: Tables


System Tables PUBLIC 19
Name Datatype Description

object_info1 int null Defines additional information required to identify the object. This field is not used by
, all attributes. The contents of this field depend on the attribute that is defined.
object_info2 ● object_info_1 – includes the table ID for a table whose encrypted column de­
, fines the decrypt default.
object_info3
● object_info2 – specifies the <colid> of the encrypted column that includes
the decrypt default.

int_value int null An integer value for the attribute (for example, the display level of a user).

char_value varchar(7 A character value for the attribute (for example, a cache name).
68) null

text_value text null A text value for the attribute.

image_value image An image value for the attribute.


null

comments varchar(2 A string identifier for the object (forComments or additional information about the at­
55) null tribute definition.

object_datet null datetime value for the attribute. Its use depends on the module using the attribute,
ime but it typically refers to the date and time the attribute was created.

The relevant values most frequently used in object_type are:

● D – Database
● I – Index
● L – Login
● LR – Login Profile
● P – Proc
● T – Table
● U – User
● AP – Application
● DC – Dump Condition
● EL – External Login (OMNI)
● OD – Object Definition (OMNI)
● TC – Transaction Coordination (ASTC)
● TG – Temporary Database Group (multi tempdb)
● TP – Text Page (OMNI)
● QP – Query Plans (abstract plans)
● UR – User Role
● GR – Group Role
● LG – Login (for MTDB binding)
● EG – Engine Group

Reference Manual: Tables


20 PUBLIC System Tables
● PS – Password Security
● SP – Keypair Regeneration Period

These values provide additional information for sysattributes, and are not for use as standalone values. For
this reason, use these values only in conjunction with the class ID.

Indexes

● Unique clustered index on class, attribute, object_type, object, object_info1, object_info2,


object_info3, object_cinfo.
● Nonclustered index on object_type, object, object_info1, object_info2, object_info3,
object_cinfo.

1.10 sysauditoptions

Applies to sybsecurity database. sysauditoptions contains one row for each server-wide audit option and
indicates the current setting for that option.
Other types of auditing option settings are stored in other tables. For example, database-specific option
settings are stored in sysdatabases, and object-specific option settings are stored in sysobjects. The
default value for each option is 0, or “off.” Only system security officers can access sysauditoptions.

Columns

The columns for sysauditoptions are:

Name Datatype Description

num smallint Number of the server-wide option.

val smallint Current value; one of the following:

● 0 = off
● 1 = pass
● 2 = fail
● 3 = on

minval smallint Minimum valid value for this option.

maxval smallint Maximum valid value for this option.

name varchar(30) Name of option.

sval varchar(30) String equivalent of the current value: for example, “on”, “off”, “nonfatal”.

Reference Manual: Tables


System Tables PUBLIC 21
Name Datatype Description

comment varchar(255) Description of option.

id int Server user ID (suid) of the login in syslogins.

status int Internal status information.

1.11 sysaudits_01 – sysaudits_08

Applies to sybsecurity database. These system tables contain the audit trail. Only one table at a time is active.
The active table is determined by the value of the current audit table configuration parameter. An
installation can have as many as eight audit tables. For example, if your installation has three audit tables, the
tables are named sysaudits_01, sysaudits_02, and sysaudits_03. An audit table contains one row for
each audit record.

Columns

The columns for sysaudits_01 – sysaudits_08 are:

Name Datatype Description

event smallint Type of event being audited.

eventmod smallint Further information about the event. Possible values are:

● 0 = no modifier for this event.


● 1 = the event passed permission checking.
● 2 = the event failed permission checking.

spid smallint Server process ID of the process that caused the audit record to be written.

int for the Clus­


ter Edition

eventtim datetime Date and time of the audited event.


e

sequence smallint Sequence number of the record within a single event; some events require more than one
audit record.

suid smallint Server login ID of the user who performed the audited event.

dbid int null Database ID in which the audited event occurred or the object/stored procedure/trigger
resides, depending on the type of event.

Reference Manual: Tables


22 PUBLIC System Tables
Name Datatype Description

objid int null ID of the accessed object or stored procedure/trigger.

xactid binary(6) ID of the transaction containing the audited event. For a multidatabase transaction, this is
null the transaction ID from the database where the transaction originated.

loginnam varchar(30) Login name corresponding to the suid.


e null

dbname varchar(30) Database name corresponding to the dbid.


null

objname varchar(255) Object name corresponding to the objid.


null

objowner varchar(30) Name of the owner of objid.


null

extrainf varchar(255) Additional information about the audited event. The extrainfo column contains a se­
o null quence of items separated by semicolons:

● Roles – lists the roles that are active. The roles are separated by blanks.
● For commands supported by full text auditing, full text of an audited command. For
other commands, the name of the keyword or command option that was used for
the event. Multiple keywords or options are separated by commas.
● Previous value – the value prior to the update if the event resulted in the update of a
value.
● Current value – the new value if the event resulted in the update of a value.
● Other information – additional security-relevant information that is recorded for the
event. For example, parameter names and values can be recorded here.
● Proxy information – the original login name, if the event occurred while a set
proxy was in effect.
● Principal information – the principal name from the underlying security mechanism,
if the user’s login is the secure default login, and the user logged in to the SAP ASE
server using unified login. The value of this field is NULL, if the secure default login is
not being used.

nodeid tinyint null Reserved for future use (not available for cluster environments)

instance tinyint ID of the instance (available only for cluster environments)


id

An example of an extrainfo column for the security-relevant event of changing an auditing configuration
parameter might be:

sso_role;suspend auditing when full; 1; 0; ; ; ; ;

Reference Manual: Tables


System Tables PUBLIC 23
This example indicates that a system security officer changed the configuration parameter suspend
auditing when full from 1 (suspend all processes that involve an auditing event) to 0 (truncate the next
audit table and make it the current audit table).

1.12 syscacheinfo

Applies to master Database. Provides information about data caches.

syscacheinfo is a view of the master database that provides information about the configuration of data
caches and pools.

Access to the views is restricted to users with the sa_role role.

Columns

The columns for syscacheinfo are:

Name Datatype Description

cache_name varchar(3 Name of the cache in which this pool is allocated.


0)

cache_status varchar(8 Status of the cache. One of:


) ● Active
● Pend/Act
● Act/Del

cache_type varchar(1 Type of cache. One of:


6) ● Mixed, HK Ignore
● Mixed
● Log Only
● In-Memory Storage
● Default
● Row Storage

config_size float The currently configured size of the cache, in megabytes. May be different from the
actual size of the cache, reported in the run_size column.

run_size float The current amount of memory, in megabytes, allocated to the cache. May be dif­
ferent from the configured size reported by the config_size column.

Reference Manual: Tables


24 PUBLIC System Tables
Name Datatype Description

config_replace varchar(1 Currently configured buffer replacement strategy. None, or one of:
ment 1) ● Strict LRU
● Relaxed LRU

run_replacemen varchar(1 Current buffer replacement strategy for the cache. None, or one of:
t 1) ● Strict LRU
● Relaxed LRU

config_partiti int Configured number of partitions in the data cache.


ons

run_partitions int The current number of partitions in the data cache.

overhead numeric Amount of memory overhead for the data cache.

cacheid int ID of the data cache. A value of -1 for caches of type Row Storage.

instanceid int ID of the instance (zero for non-Cluster Edition servers).

scope varchar(6 Indicates whether the data cache is local or global for Cluster Edition. The value is
) always Global for nonclustered servers.

1.13 syscachepoolinfo

Provides a row for each data cache pool that includes configuration information for the data cache. This view is
a join between the syscacheinfo and syspoolinfo views.

Columns

Access to the views is restricted to users with the sa_role role.

The columns for syscacheinfo are:

Name Datatype Description

cache_name varchar(30 Name of the cache in which this pool is allocated.


)

Reference Manual: Tables


System Tables PUBLIC 25
Name Datatype Description

cache_status varchar(8) Status of the cache. One of:

● Active
● Pend/Act
● Act/Del

cache_type varchar(16 Type of cache. One of:


) ● Mixed, HK Ignore
● Mixed
● Log Only
● In-Memory Storage
● Default

cache_config_size float The currently configured size of the cache, in megabytes. May be different
from the actual size of the cache, reported in the run_size column.

cache_run_size float The current amount of memory allocated to the cache, in megabytes. May
be different from the configured size reported by the config_size col­
umn.

cache_config_replac varchar(11 Currently configured buffer replacement strategy. None, or one of:
ement ) ● Strict LRU
● Relaxed LRU

cache_run_replaceme varchar(11 Current buffer replacement strategy for the cache. None, or one of:
nt ) ● Strict LRU
● Relaxed LRU

cache_config_partit int Configured number of partitions in the data cache.


ions

cache_run_partition int The current number of partitions in the data cache.


s

cache_overhead numeric Amount of memory overhead for the data cache.

pool_io_size varchar(3) The size of the buffers, in kilobytes, used to perform I/O for this pool.

pool_config_size float Configured amount of memory, in megabytes, allocated to the pool. May
be different from the amount reported in the run_size column.

pool_run_size float The current amount of memory, in megabytes, allocated to the pool.

pool_apf_percent int The percentage of buffers in the pool that can be used to hold buffers that
have been read into cache by asynchronous prefetch.

Reference Manual: Tables


26 PUBLIC System Tables
Name Datatype Description

pool_wash_size varchar(10 The size of the wash area, in megabytes, in the pool.
)

cacheid int ID of the data cache.

instanceid int ID of the instance (zero for non-Cluster Edition servers).

scope varchar(6) Indicates whether the data cache is local or global for Cluster Edition. The
value is always Global for nonclustered servers.

1.14 syscharsets

Applies to master database only. syscharsets contains one row for each character set and sort order defined
for use by the SAP ASE server. One of the sort orders is marked in master..sysconfigures as the default
sort order, which is the only one actually in use.

Columns

The columns for syscharsets are:

Name Datatype Description

type smallint The type of entity this row represents. Numbers from 1001 to 1999 represent char­
acter sets. Numbers from 2000 to 2999 represent sort orders.

id tinyint The ID for a character set or sort order. A sort order is defined by the combination of
the sort order ID and the character set ID (csid). The character set is defined by
id, which must be unique. SAP reserves ID numbers 0 – 200.

csid tinyint If the row represents a character set, this field is unused. If the row represents a sort
order, this is the ID of the character set that sort order is built on. A character set
row with this ID must exist in this table.

status smallint Internal system status information bits.

name varchar(30) A unique name for the character set or sort order. Can use only the 7-bit ASCII let­
ters A – Z or a – z, digits 0 – 9, and underscores (_), and must begin with a letter.

descriptio varchar(255) An optional description of the features of the character set or sort order.
n

Reference Manual: Tables


System Tables PUBLIC 27
Name Datatype Description

definition image The internal definition of the character set or sort order. The structure of the data in
this field depends on the type.

sortfile varchar(30) The name of the sort order file.


null

Indexes

● Unique clustered index on id, csid


● Unique nonclustered index on name

1.15 syscolumns

Applies to all databases. syscolumns contains one row for every column in every table and view, and a row for
each parameter in a procedure.

Contains one row for each computed column and function-based index key associated with a table.

Columns

The columns for syscolumns are:

Name Datatype Description

id int ID of table to which this column belongs, or of procedure with which this parame­
ter is associated.

number smallint Sub-procedure number when the procedure is grouped (0 for nonprocedure en­
tries).

colid smallint Column ID.

Reference Manual: Tables


28 PUBLIC System Tables
Name Datatype Description

status tinyint ● Bits 0–2 (values 1, 2, and 4) – indicate bit positioning if the column uses the
bit datatype. If the column uses the text/image datatype, bits 0 and 1
indicate replication status as follows:
○ 01 = always replicate
○ 10 = replicate only if changed
○ 00 = never replicate
● Bit 3 (value 8) – indicates whether NULL values are legal in this column.
● Bit 4 (value 16) – indicates whether more than one check constraint exists
for the column.
● Bits 5 and 6 – are used internally.
● Bit 7 (value 128) – indicates an identity column.

type tinyint Physical storage type; copied from systypes.

length int Physical length of data; copied from systypes or supplied by user.

offset smallint Offset into the row where this column appears; if negative, this is a variable-
length column.

usertype smallint User type ID; copied from systypes.

If the value of type indicates a column is of nullable datatype, the value of


usertype is copied from the usertype of the corresponding base type that
can be specified in DDL statements. For example:

create table t1 (dt datetime, dt_null datetime null)


go
select left(name,6), type, usertype from syscolumns
where id = object_id("t1")
go
type usertype
------------ ---- --------
dt 61 12
dt_nul 111 12

cdefault int ID of the procedure that generates default value for this column.

domain int Constraint ID of the first rule or check constraint for this column.

name varchar(255) Column name


not null

printfmt varchar(255) Reserved


null

prec tinyint null Number of significant digits, if the column uses the numeric datatype.

scale tinyint null Number of digits to the right of the decimal point, if the column uses the
numeric datatype.

Reference Manual: Tables


System Tables PUBLIC 29
Name Datatype Description

remote_typ int null Maps local names to remote names. Required by the access methods of Compo­
e nent Integration Services to allow the software to pass native column datatype
information in parameters to servers of class access_server.

remote_nam varchar(255) Maps local names to remote names. Required by the access methods of Compo­
e null nent Integration Services to construct a query using the proper column names
for a remote table.

xstatus int null The status of a column with extended datatypes. The values are:

● 0 = in row
● 1 = off row

xstatus is NULL for columns that do not have an extended datatype.

xtype int null ID of the class.

Used if a column in a table or a parameter in a procedure has a Java class as its


datatype. When used, fields are not NULL, and the value of type is 0x39. See
Java in Adaptive Server Enterprise for more information.

xdbid int null The database ID of the class. For system classes, the value is -1. Otherwise, the
value is the current database ID.

Used if a column in a table or a parameter in a procedure has a Java class as its


datatype. Fields are not NULL, and the value of type is 0x39. See Java in Adap­
tive Server Enterprise for more information.

accessrule int null The object ID of the access rule in sysprocedures. See “Row-level access
control“ in Chapter 11, “Managing User Permissions” of the Security Administra­
tion Guide for more information.

Reference Manual: Tables


30 PUBLIC System Tables
Name Datatype Description

status2 int null Indicates the parameter mode of a SQLJ stored procedure, and the return type
of a SQLJ function:

● 0x00000001, value 1 – parameter mode “in”


● 0x00000002, value 2 – parameter mode “out”

These internal bits support computed columns:

● 0x00000010, value16 – the column is a computed column.


● 0x00000020, value 32 – the column is a materialized computed column.
● 0x00000040, value 64 – the column is a computed column in a view.
● 0x00001000, value 4096 – the encrypted column has a decrypt default.

The status2 field from syscolumns uses this encoding to indicate a col­
umn’s encryption properties:

● 0x80, value 128 – the column is encrypted.


● 0x100, value 256– the column is encrypted with initialization vector.
● 0x200, value 512 – the column is encrypted with random padding.
● 0x400, value 1024 – the proxy table is encrypted.
● 0x1000, value 4096 – the encrypted column has a decrypt default.
● 0x20000, value 131072– the column is explicitly defined as not com­
pressed.
● 0x00040000, value 262144 – the user-specified, or derived in-row length
for LOB columns created as in-row.

status3 smallint 0x0001, value 1 – Indicates a hidden computed column for a function-based in­
dex key.

computedco int Stores the object ID of the computed column definition.


l

encrtype int null Type of data in encrypted form.

lobcomp_lv tinyint Compression level of the columns defined for large objects.
l

encrlen int null Length of encrypted data.

encrkeyid int null Object ID of key.

encrkeydb varchar(30) Name of the database where the encryption key was created; NULL if it is in the
null same database as the encrypted column.

encrdate datetime null Creation date of encryption key; copied from sysobjects.crdate.

inrowlen smallint Stores the user-specified, or derived in-row length for LOB columns created as
in-row.

Reference Manual: Tables


System Tables PUBLIC 31
Indexes

Unique clustered index on id, number, colid

1.16 syscomments

Applies to all databases. syscomments contains entries for each view, rule, default, trigger, table constraint,
partition, procedure, computed column, function-based index key, and other forms of compiled objects. The
text column contains the original definition statements. If the text column is longer than 255 bytes, the
entries span rows. Each object can occupy as many as 65,025 rows.

It also stores the text of a computed column, function-based index, or partition definition—for example,
“values <= <value_list>” for a range partition.

The create service command stores text in syscomments, as it uses the create procedure
infrastructure.

Columns

The columns for syscomments are:

Name Datatype Description

id int Object ID to which this text applies.

number smallint Sub-procedure number when the procedure is grouped (0 for nonprocedure entries).

colid smallint The low portion of a column counter for this procedure’s comments. Can vary from 0 to
32767. If a procedure has more text than fits in that many rows, this counter works together
with colid2.

texttype smallint Indicates the comment type. Values are:

● 0 – system-supplied comment, for views, rules, defaults, triggers, and procedures


● 1 – user-supplied comment for adding entries that describe an object or column

language smallint Reserved.

text varchar(2 Actual text of SQL definition statement.


55) null

colid2 smallint The high portion of a column counter for this procedure’s comments. Can vary from 0 to
32767. Is only greater than 0 for procedures containing more than 32,768 rows of procedure
text.

Reference Manual: Tables


32 PUBLIC System Tables
Name Datatype Description

status smallint Bits indicating the status of the objects:


null ● 0x1 – SYSCOM_TEXT_HIDDEN indicates that the text is hidden
● 0x2 – Reserved for internal use
● 0x4 – SYSCOM_QUOTED_ID_ON indicates that quoted identifiers were on when the
object was created
● 0x8 – SYSCOM_SHARED_INLINE_DEF indicates the text is for a sharable inline de­
fault

version smallint The version of encryption that encodes the algorithm used to encrypt the hidden text for
null this row. One of:

● Null – no encryption for hidden text


● 1 – (the default) the SAP ASE server obfuscation algorithm used in versions of SAP ASE
15.0 and earlier
● 2 – (optional) Advanced Encryption Standard (“AES”) strong encryption

partitio int null Partition ID. Otherwise, null.


nid

encrkeyi int null The encryption key ID from the key object in sysencryptkeys in the current database
d that the SAP ASE server used to encrypt the hidden text of this object when version has
a value of 2. Otherwise, the SAP ASE server uses a value of null for encrkeyid.

 Note

Do not delete the definition statements from the text column of syscomments. These statements are
required for the SAP ASE upgrade process. To encrypt a definition statement, execute the system
procedure sp_hidetext. To see if a statement created in version 11.5 or later was deleted, execute
sp_checksource. If the statement was deleted, you must either re-create the object that created the
statement or reinstall the application that created the object, which re-creates the statement.

You can protect the text of a database object against unauthorized access by restricting select permission on
the text column of the syscomments table to the owner of the object and the system administrator. This
restriction, which applies to direct access through select statements as well as access through stored
procedures, is required to run SAP ASE in the evaluated configuration. To enact this restriction, a system
security officer must reset the parameter called select on syscomments.text using the system procedure
sp_configure. For information about the evaluated configuration, see the Security Administration Guide:
Volume 1.

Indexes

Unique clustered index on id, number, colid2, colid, texttype

Reference Manual: Tables


System Tables PUBLIC 33
1.17 sysconfigures

Applies to master database only. sysconfigures contains one row for each configuration parameter that can
be set by the user.

Columns

The columns for sysconfigures are:

Name Datatype Description

config smallint Configuration parameter number.

value int The user-modifiable value for the parameter with integer datatype.

comment varchar(25 Name of the configuration parameter.


5)

status int Value that represents the type of configuration parameter.

name varchar(25 Name of the configuration parameter (the same value as comment).
5) null

parent smallint Configuration parameter number of the parent; if more than one parent, the additional
null parent numbers are stored in sysattributes.

value2 varchar(25 The user-modified value for the parameter with the character datatype. Its value is NULL
5) null for parameters with integer datatype. value2 is also used to store the pool size of a
buffer pool and the size of the IMRS cache for entries corresponding to IMRS caches.

value3 int null Stores the wash size of a buffer pool.

value4 int null Stores the number of the cache partition for an IMRS cache. The value for an IMRS cache
is always 1 since IMRS caches are not partitioned.

instancei tinyint ID of the instance. Available only for cluster environments.


d

The value2 column of the sysconfigures table stores the size in terms of string such as 5G, or 20M.

In versions earlier than 16.0 SP02 PL06 the size of cache and pool was stored as an absolute value in terms of
Kilobytes. In versions 16.0 SP02 PL06 and later, the value column of sysconfigures stores the absolute value
in terms of 2K.

For example, if the size of cache is 10MB, then the following will be stored from 16.0 SP02 PL06 and later:

sysconfigures.value = (10 * 1024KB)/2 = 5120 [absolute value in terms of 2K]


sysconfigures.value2 = “10MB” -> String

Reference Manual: Tables


34 PUBLIC System Tables
The following table provides information about the status column:

Status type Decimal Hex Description

CFG_NO_OPTIONS 0 0x0 Parameter has no options.

CFG_SYSTEM_OPTION 1 0x01 Parameter is a system option.

CFG_SYSTEM_GROUP 2 0x02 Parameter is a system group.

CFG_STATIC 4 0x04 Parameter is static.

CFG_DYNAMIC 8 0x08 Parameter is dynamic.

CFG_CALCULATED 16 0x10 Parameter is calculated.

CFG_READONLY 32 0x20 Parameter is read-only.

CFG_MEMORY_USED 64 0x40 Parameter consumes memory.

CFG_CONFIG_FILE 128 0x80 Parameter is externally visible.

CFG_SYSTEM_TAB 256 0x100 Parameter is externally visible only in system table.

CFG_EXTRAS_OPTION 512 0x200 Parameter is for CFG_EXTRAS not DS_CONFIG.

CFG_CFGBLK 1024 0x400 Parameter is stored in the configuration block.

CFG_CACHE_GROUP 2048 0x800 Parameter is a cache group.

CFG_CACHE_OPTION 4096 0x1000 Parameter is a cache option.

CFG_BUFFER_POOL_GROUP 8192 0x2000 Parameter is a buffer pool group.

CFG_BUFFER_POOL_OPTION 16384 0x4000 Parameter is a buffer pool option.

CFG_INTERNAL 32768 0x8000 Parameter is for internal use only.

CFG_FNOF_LPAGESIZE 65536 0x10000 Parameter entry depends on logical pagesize.

Indexes

● Unique clustered index on name, parent, config


● Nonclustered index on config
● Nonclustered index on parent, config

Reference Manual: Tables


System Tables PUBLIC 35
1.18 sysconstraints

Applies to all databases. Whenever a user declares a new check constraint or referential constraint using
create table or alter table, the SAP ASE server inserts a row into the sysconstraints table. The row
remains until a user executes alter table to drop the constraint. Dropping a table by executing drop table
removes all rows associated with that table from the sysconstraints table.

This table also contains one row for each check constraint, referential constraint, rules, computed column,
multiple triggers, and function-based index key associated with a specific table.

Columns

The columns for sysconstraints are:

Name Datatype Description

colid smallint Column number in the table

constrid int Object ID of the constraint

tableid int ID of the table on which the constraint is declared

error int Constraint-specific error message

status int The type of constraint:

0x0040 = a referential constraint


0x0080 = a check constraint
0x0100 = a computed column object constraint

The status of triggers:

0x0080 = a delete trigger


0x0100 = an insert trigger
0x0200 = an update trigger
0x0400 = trigger is disabled

spare2 int Unused

Indexes

● Unique clustered index on tableid, colid


● Nonclustered index on constrid

Reference Manual: Tables


36 PUBLIC System Tables
1.19 syscoordinations

Applies to sybsystemdb Database Only. syscoordinations contains information about remote SAP ASE
servers participating in distributed transactions (remote participants) and their coordination states.

Columns

The columns for syscoordinations are:

Name Datatype Description

particip smallint Participant ID


ant

starttim datetime Date the transaction started


e

coordtyp tinyint Value indicating the coordination method or protocol in the systransactions ta­
e ble definition

owner tinyint Row owner (for internal use)

protocol smallint Reserved for internal use

state int Value indicating the current state of the remote participant:

● 1 – Begun
● 4 – Prepared
● 7 – Committed
● 9 – In AbortTrans

bootcoun int Reserved for internal use


t

dbid smallint Database ID at the start of the transaction.

logvers tinyint Reserved for internal use

spare tinyint Reserved for internal use

status int Reserved for internal use

xactkey binary(14) Unique SAP ASE transaction key

gtrid varchar(255) Global transaction ID for distributed transactions coordinated by the SAP ASE server
null (reserved for internal use)

Reference Manual: Tables


System Tables PUBLIC 37
Name Datatype Description

partdata varbinary(255) Reserved for internal use


null

srvname varchar(30) Name of local server (null for remote servers)


null

nodeid tinyint null Not available for non-cluster environments – reserved for future use

instance tinyint Cluster environments only – ID of the instance


id

Indexes

Unique clustered index on xactkey, participant, owner

1.20 syscurconfigs

Applies to master database only. syscurconfigs is built dynamically when queried. It contains an entry for
each of the configuration parameters, as does sysconfigures, but with the current values rather than the
default values. In addition, it contains four rows that describe the configuration structure.

Columns

The columns for syscurconfigs are:

Name Datatype Description

config smallint Configuration parameter number.

value int The current run value for the parameter with integer datatype. Its value is 0 for
the parameters with character datatype.

comment varchar(255) Comments about the configuration parameter. For internal use.

status int Value that represents the type of configuration parameter.

value2 varchar(255) The current run value for the parameter with the character datatype. Its value
null is NULL for parameters with the integer datatype.

Reference Manual: Tables


38 PUBLIC System Tables
Name Datatype Description

defvalue varchar(255) Default value of the configuration parameter.


null

minimum_valu int null Minimum value of the configuration parameter.


e

maximum_valu int null Maximum value of the configuration parameter.


e

memory_used bigint null Integer value for the amount of memory used by each configuration parameter.
Negative values indicate memory shared.

display_leve int null Display level of the configuration parameter. The values are 1, 5, and 10.
l

datatype int null Datatype of the configuration parameter.

message_num int null Message number of the sp_helpconfig message for this parameter.

apf_percent int null The current run value for the asynchronous prefetch percent for a buffer pool.
Valid only for rows that represent buffer pools.

nodeid tinyint null Reserved for future use (not available in cluster environments)

instanceid tinyint ID of the instance (available only for cluster environments)

Reference Manual: Tables


System Tables PUBLIC 39
Name Datatype Description

unit varchar(20) Unit of the parameter. Values are:

● Not applicable – parameter has no units


● Number – number of items
● Clock ticks – number of clock ticks
● Microseconds
● Milliseconds
● Seconds
● Minutes
● Hours
● Days
● Bytes
● Kilobytes
● Megabytes
● Memory pages (2K)
● Virtual pages (2K)
● Logical pages
● Percent
● Ratio
● Switch – a Boolean value
● ID – ID number
● Name
● Rows

type varchar(10) Specifies whether a configuration parameter is declared dynamic or static in its
null structure definition. Values are:

● Dynamic – takes effect immediately.


● Static – takes effect after restarting the SAP ASE server.

This table describes status types:

Status type Decimal Hex Description

CFG_NO_OPTIONS 0 0x0 Parameter has no options.

CFG_SYSTEM_OPTION 1 0x01 Parameter is a system option.

CFG_SYSTEM_GROUP 2 0x02 Parameter is a system group.

CFG_STATIC 4 0x04 Parameter is static.

CFG_DYNAMIC 8 0x08 Parameter is dynamic.

CFG_CALCULATED 16 0x10 Parameter is calculated.

Reference Manual: Tables


40 PUBLIC System Tables
Status type Decimal Hex Description

CFG_READONLY 32 0x20 Parameter is read-only.

CFG_MEMORY_USED 64 0x40 Parameter consumes memory.

CFG_CONFIG_FILE 128 0x80 Parameter is externally visible.

CFG_SYSTEM_TAB 256 0x100 Parameter is only externally visible in system table.

CFG_EXTRAS_OPTION 512 0x200 Parameter is for CFG_EXTRAS not DS_CONFIG.

CFG_CFGBLK 1024 0x400 Parameter is stored in the configuration block.

CFG_CACHE_GROUP 2048 0x800 Parameter is a cache group.

CFG_CACHE_OPTION 4096 0x1000 Parameter is a cache option.

CFG_BUFFER_POOL_GROUP 8192 0x2000 Parameter is a buffer pool group.

CFG_BUFFER_POOL_OPTION 16384 0x4000 Parameter is a buffer pool option.

CFG_INTERNAL 32768 0x8000 Parameter is for internal use only.

CFG_FNOF_LPAGESIZE 65536 0x10000 Parameter entry depends on logical pagesize.

1.21 sysdatabases

Applies to master database only. sysdatabases contains one row for each database in the SAP ASE server.
When the SAP ASE server is installed, sysdatabases contains entries for the following databases:

● master
● model
● sybsystemprocs
● tempdb database.
● sybsecurity

Columns

The columns for sysdatabases are:

Name Datatype Description

name sysname Name of the database.

Reference Manual: Tables


System Tables PUBLIC 41
Name Datatype Description

dbid smallint Database ID.

suid int Server user ID of Database Owner.

status smallint Control bits.

status5 int Indicates the status of a database:

● 0x00000001 Indicates whether the database is encrypted or not.


● 0x00000002 – The database is being encrypted, and the encryption is
still in progress.
● 0x00000004 – The database is being decrypted, and the decryption is
still in progress.
● 0x00000008 – The database is only partially encrypted, either due to an
error or because the process was suspended by the user.
● 0x00000010 – The database is only partially decrypted, either due to an
error or because the process was suspended by the user.
● 0x00000100 – The imrscache column stores the name of the default
IMRS cache for a database.
● 0x00000200 – Database-wide snapshot isolation and MVCC is enabled.
● 0x00000400 – Database wide DRC is enabled.
● 0x00001000 – Database wide On-disk versioning is enabled.
● 0x00004000 – Version storage is enabled and a valid temporary data­
base name is specified.
● 0x00010000 – ILM partition tuning is enabled.

version smallint Unused.

logptr int Pointer to transaction log.

crdate datetime Creation date.

dumptrdate datetime Date of the last dump transaction.

status2 smallint Additional control bit.

audflags int Audit settings for database.

deftabaud int Bit-mask that defines default audit settings for tables.

defvwaud int Bit-mask that defines default audit settings for views.

defpraud int Bit-mask that defines default audit settings for stored procedures.

def_remote_ty smallint Identifies the default object type to be used for remote tables if no storage loca­
pe tion is provided via the stored procedure sp_addobjectdef.

Reference Manual: Tables


42 PUBLIC System Tables
Name Datatype Description

def_remote_lo varchar(349) Identifies the default storage location to be used for remote tables if no storage
c location is provided via the stored procedure sp_addobjectdef.

status3 int Additional control bits.

status4 int Additional control bits.

audflags2 varbinary(16 Reserved for future use.


)

instanceid tinyint (Cluster Edition only) Instance ID of owning instance of a local temporary data­
bases. For other databases, it remains NULL.
spare
In nonclustered editions of SAP ASE, this is the spare column, and is reserved
for future use.

inrowlen smaillint Database-wide in-row LOB column length.

dcompdefaultl tinyint The level that create table, alter table, or reorg rebuild uses to
set the level of compression for on a table (or partition).
evel

durability int Durability level of the database. Values are:

● 1 – full
● 5 – at_shutdown
● 6 – no_recovery

lobcomp_lvl tinyint LOB compression level.

encrkeyid int Database encryption key ID. A null indicates the corresponding database is not
encrypted.

imrscache varchar(255) Name of the row storage cache assigned to the database.

imrslogptr int Pointer to the start of the imrslog.

imrsloglastpt int Pointer to the end of the imrslog.


r

versiondbid smallint Database ID of the temporary database used for version storage for on-disk
MVCC-enabled databases.

This table lists the bit representations for the status column:

Decimal Hex Status

2 0x02 Database is using signed pages.

Reference Manual: Tables


System Tables PUBLIC 43
Decimal Hex Status

4 0x04 select into/bulkcopy; can be set by user.

8 0x08 trunc log on chkpt; can be set by user.

16 0x10 no chkpt on recovery; can be set by user.

32 0x20 Database created with for load option, or crashed while loading database, instructs re­
covery not to proceed.

64 0x04 Recovery started for all databases to be recovered.

256 0x100 ● Database suspect


● Not recovered
● Cannot be opened or used
● Can be dropped only with dbcc dbrepair

512 0x200 ddl in tran; can be set by user.

1024 0x400 read only; can be set by user.

2048 0x800 dbo use only; can be set by user.

4096 0x1000 single user; can be set by user.

8192 0x2000 allow nulls by default; can be set by user.

This table lists the bit representations for the status2 column:

Decimal Hex Status

1 0x0001 abort tran on log full; can be set by user.

2 0x0002 no free space acctg; can be set by user.

4 0x0004 auto identity; can be set by user.

8 0x0008 identity in nonunique index; can be set by user.

16 0x0010 Database is offline.

32 0x0020 Database is offline until recovery complete.s

64 0x0040 The table has an auto identity feature, and a unique constraint on the identity column.

128 0x0080 Database has suspect pages.

256 0x0100 Table structure written to disk. If this bit appears after recovery completes, server may be un­
der-configured for open databases. Use sp_configure to increase this parameter.

Reference Manual: Tables


44 PUBLIC System Tables
Decimal Hex Status

512 0x0200 Database is in the process of being upgraded.

1024 0x0400 Database brought online for standby access.

2048 0x0800 When set by the user, prevents cross-database access via an alias mechanism.

-32768 0xFFFF8000 Database has some portion of the log which is not on a log-only device.

This table lists the bit representations for the status3 column:

Decimal Hex Status

0 0x0000 A normal or standard database, or a database without a proxy update in the create statement.

1 0x0001 You specified the proxy_update option, and the database is a user-created proxy database.

2 0x0002 Database is a proxy database created by high availability.

4 0x0004 Database has a proxy database created by high availability.

8 0x0008 Disallow access to the database, since database is being shut down.

16 0x0010 Database is a failed-over database.

32 0x0020 Database is a mounted database of the type master.

64 0x0040 Database is a mounted database.

128 0x0080 Writes to the database are blocked by the quiesce database command.

256 0x0100 User-created tempdb.

512 0x0200 Disallow external access to database in the server in failed-over state.

1024 0x0400 User-provided option to enable or disable asynchronous logging service threads. Enable through
sp_dboption enable async logging service option set to true on a particular data­
base.

4096 0x1000 Database has been shut down successfully.

8192 0x2000 A drop database is in progress.

This table lists the bit representations for the status4 column:

Decimal Hex Status

512 0x0200 The in-memory database has a template database with it.

4096 0x1000 Database is an in-memory databases.

Reference Manual: Tables


System Tables PUBLIC 45
Decimal Hex Status

16384 0x4000 64-bit atomic operations have been enabled on this database.

32768 0x00008000 Enforce dump tran sequence. Disallows operations that will fail a
subsequent dump tran.

16777216 0x01000000 All tables in the database are created as page compressed.

33554432 0x02000000 All tables in the database are created as row compressed.

This table lists the bit representations for the status5 column:

Decimal Hex Status

128 0x80 The name of the IMDB template database is stored in the
def_remote_loc column.

256 0x100 A row storage cache is currently assigned to this database.

512 0x200 Timestamp-based snapshot isolation (MVCC) is automatically enabled


for all newly created user tables in this database.

1024 0x400 Data row caching is automatically enabled for all newly created user
tables in this database.

Indexes

● Unique clustered index on name


● Nonclustered index on dbid

Reference Manual: Tables


46 PUBLIC System Tables
1.22 sysdepends

Applies to all databases. sysdepends contains one row for each procedure, view, or table that is referenced by
a procedure, view, or trigger.

Columns

The columns for sysdepends are:

Name Datatype Description

id int Object ID.

number smallint Procedure number.

depid int Dependent object ID.

depnumber smallint Dependent procedure number.

status smallint Internal status information.

selall bit On if object is used in select * statement.

resultobj bit On if object is being updated.

readobj bit On if object is being read.

columns varbinary Stores a bitmap of column IDs of columns that are referenced in the body of a stored
procedure.This bitmap gives column-level dependency tracking information, including
predicated privileges, for compiled objects, and is decoded by sp_depends to re­
port on column-level dependencies for stored procedures, triggers, and views.

Indexes

Unique clustered index on id, number, depid, depnumber

1.23 sysdevices

Applies to master database only. sysdevices contains one row for each tape dump device, disk dump device,
disk for databases, and disk partition for databases. There are four entries in sysdevices in the SAP ASE

Reference Manual: Tables


System Tables PUBLIC 47
distribution media: one for the master device (for databases), one for a disk dump device, and two for tape
dump devices.

 Note

The device identification number is stored in the vdevno column and is not as part of the high or low
column. As a consequence, you may need to modify scripts and stored procedures that determine the
device identification number based on the earlier schema.

Columns

The columns for sysdevices are:

Name Datatype Description

low int (Not used for dump devices) Block offset of virtual page in 2K bytes.

high int Block offset of last virtual page in 2K bytes.

status smallint Bitmap indicating type of device, default, and mirror status.

cntrltyp smallint Controller type:


e ● 0 = Database device
● 2 = Disk dump device or streaming tape
● 3–8 = Tape dump device

name sysname Logical name of dump device, database device, or in-memory storage cache.

phyname varchar(127) Name of physical device or in-memory storage cache.

mirrorna varchar(127) Name of mirror device.


me null

vdevno int Device identification number.

crdate datetime Date on which the device was added.


null

resizeda datetime Date on which disk resize was most recently run for this device.
te null

status2 int Additional status bits for this device.

class varchar(2)

instance tinyint ID of the instance (available only for cluster environments).


id

Reference Manual: Tables


48 PUBLIC System Tables
Name Datatype Description

uuid varbinary(16 Reserved for future use (available only for cluster environments).
)

The bit representations for the status column, shown below, are additive. For example, 3 indicates a physical
disk that is also a default.

Decimal Hex Status

1 0x01 Default disk

2 0x02 Physical disk

4 0x04 (Not used) – logical disk

8 0x08 Skip header

16 0x10 Dump device

32 0x20 Serial writes

64 0x40 Device mirrored

128 0x80 Reads mirrored

256 0x100 Secondary mirror side only

512 0x200 Mirror enabled

1024 0x400 Master device is mirrored

2048 0x800 (Used internally) mirror disabled

4096 0x1000 (Used internally) primary device must be unmirrored

8192 0x2000 (Used internally) secondary device must be unmirrored

16384 0x4000 UNIX file device uses dsync setting (writes flushed to physical media)

The bit representation for the status2 column is:

Decimal Hex Status

1 0x01 Direct I/O is enabled for this device

16 0x0010 Identifies imrslog devices

Reference Manual: Tables


System Tables PUBLIC 49
Indexes

Unique clustered index on name

1.24 sysencryptkeys

Applies to all databases. Each key created in a database, including the default key, has an entry in the
database-specific system catalog sysencryptkeys.

Columns

The columns for sysencryptkeys are:

Field Type Description

id int Encryption key ID.

ekalgori int Encryption algorithm.


thm

type smallint Identifies the key type. The values are:

● 0x1 (decimal 1) – Symmetric key


● 0x4 (decimal 4) – Default key
● 0x10 (decimal 16) – Key copy
● 0x40 (decimal 64) – Recovery key copy

status int Internal status information. The bit representations are:

● 0x1 (decimal 1) – Key uses initialization vector


● 0x2 (decimal 2) – Key uses random pad
● 0x4 (decimal 4) – Key is encrypted for lost password protection
● 0x8 (decimal 8) – Key copy encrypted for login access
● 0x10 (decimal 16) – Key copy encrypted with login password
● 0x20 (decimal 32) – Key copy encrypted with system encryption password
● 0x100 (decimal 256) – Key encrypted with user password

eklen smallint User-specified length of key.

value varbinary(12 Encrypted value of a key. Contains a symmetric encryption of the key. To encrypt keys,
82) the SAP ASE server uses AES with a 128-bit key from the system encryption, user-speci­
fied, or login password.

Reference Manual: Tables


50 PUBLIC System Tables
Field Type Description

uid int null User ID of key copy assignee.

eksalt varbinary(20 Random values used to validate decryption of the encryption key.
)

ekpairid int null Not used.

pwdate datetime null Date the password was last changed.

expdate int null Not used.

ekpwdwar int null Not used.


n

The status bits for sysencryptkeys

Decimal Hex Status

0x00000004 EK_KEYRECOVERY() – keys encrypted for lost password protection.

0x00000008 EK_LOGINACCESS() – key encrypted for login access

0x00000010 EK_LOGINPASS () – key encrypted with login password

0x00000100 EK_USERPWD() – keys encrypted with user-encryption passwords

1.25 sysengines

Applies to master database only. sysengines contains one row for each SAP ASE engine currently online.

Columns

The columns for sysengines are:

Name Datatype Description

engine smallint Engine number.

osprocid int ● Process mode – operating system process ID


● Threaded mode – operating system thread (LWP) ID

Reference Manual: Tables


System Tables PUBLIC 51
Name Datatype Description

osprocname char(32) Operating system process name (may be NULL).

status char(12) One of: online, in offline, in create, in destroy, debug, bad status.

affinitied int Number of SAP ASE processes with affinity to this engine..

cur_kpid int Kernel process ID of process currently running on this engine, if any

last_kpid int Kernel process ID of process that previously ran on this engine.

idle_1 tinyint Reserved.

idle_2 tinyint Reserved.

idle_3 tinyint Reserved.

idle_4 tinyint Reserved.

starttime datetime Date and time engine came online.

nodeid tinyint Reserved for future use (not available for cluster environments).
null

instanceid tinyint ID of the instance (available only for cluster environments).

1.26 sysgams

Applies to all databases. sysgams stores the global allocation map (GAM) for the database. The GAM stores a
bitmap for all allocation units of a database, with one bit per allocation unit. You cannot select from or view
sysgams.

1.27 sysimrslogs

Applies to all in-memory databases. sysimrslogs contains the in-memory transaction log. It is used by the
SAP ASE server for recovery and roll forward.

You can run select queries against the sysimrslogs system table, but you cannot delete from, insert into, or
update sysimrslogs. Every data modification operation is logged, so before you can change sysimrslogs,
the change must be logged. This means that a change operation on sysimrslogs adds a row to
sysimrslogs, which then must be logged, adding another row to sysimrslogs, and so on, producing an
infinite loop. The loop continues until the database becomes full.

Reference Manual: Tables


52 PUBLIC System Tables
Columns

The columns for sysimrslogs are:

Name Datatype Description

xactid binary(6) Transaction ID

op tinyint Number of update operation

1.28 sysindexes

Applies to all databases. sysindexes contains one row for each clustered index, one row for each
nonclustered index, one row for each table that has no clustered index, and one row for each table that
contains text or image columns.This table also contains one row for each function-based index or index
created on a computed column.

Columns

The columns for sysindexes are:

Name Datatype Description

name varchar(255 Index or table name.


) null

id int ID of an index, or ID of table to which index belongs.

indid smallint Valid values are:

● 0 = if a table.
● 1 = if a clustered index on an allpages-locked table.
● >1 = if a nonclustered index or a clustered index on a data-only-locked table.
● 255 = if text, image, text chain, or Java off-row structure (large object—or
LOB—structure).

doampg int Obsolete.

ioampg int Obsolete.

oampgtrips int Number of times OAM pages cycle in the cache without being reused, before being
flushed.

Reference Manual: Tables


System Tables PUBLIC 53
Name Datatype Description

status3 smallint Internal system status information.

status2 smallint Internal system status information.

ipgtrips int Number of times index pages cycle in the cache, without being reused, before being
flushed

first int Obsolete.

root int Obsolete.

distribution int Unused. Formerly used to store the page number of the distribution page for an in­
dex.

usagecnt smallint Reserved.

segment smallint Number of segment in which object resides.

status smallint Internal system status information.

maxrowsperpag smallint Maximum number of rows per page.


e

minlen smallint Minimum size of a row.

maxlen smallint Maximum size of a row.

maxirow smallint Maximum size of a non-leaf index row.

keycnt smallint Number of keys for a clustered index on an allpages-locked table; number of keys,
plus 1 for all other indexes.

keys1 varbinary(2 Description of key columns if entry is an index.


55) null

keys2 varbinary(2 Description of key columns if entry is an index.


55) null

soid tinyint Sort order ID with which the index was created; 0 if there is no character data in the
keys.

csid tinyint Character set ID with which the index was created; 0 if there is no character data in
the keys.

base_partitio int null Obsolete.


n

Reference Manual: Tables


54 PUBLIC System Tables
Name Datatype Description

fill_factor smallint Value for the fillfactor of a table set with sp_chgattribute.
null

res_page_gap smallint Value for the reservepagegap on a table.


null

exp_rowsize smallint Expected size of data rows.


null

keys3 varbinary(2 Description of key columns if entry is an index.


55) null

identitygap int null Identity gap for a table.

crdate datetime Creation date.


null

partitiontype smallint Values are:


null ● 1 = range
● 2 = hash
● 3 or NULL = [default] round robin
● 4 = list

conditionid int null ID of the partition condition. Null if partitiontype is round-robin or hash.

This table lists the bit representations for the status column:

Decimal Hex Status

1 0x1 Abort current command or trigger if attempt to insert duplicate key.

2 0x2 Unique index.

4 0x4 Abort current command or trigger if attempt to insert duplicate row; always 0 for data-only-locked
tables.

16 0x10 Table is an all-pages-locked table with a clustered index.

64 0x40 Index allows duplicate rows, if an allpages-locked table; always 0 for data-only-locked tables.

128 0x80 Sorted object toggle that is being used internally. Can be set by create clustered index,
reorg rebuild, or alter table locking scheme commands.

512 0x200 sorted data option used in create index statement.

2048 0x800 Index on primary key.

Reference Manual: Tables


System Tables PUBLIC 55
Decimal Hex Status

32768 0x8000 Suspect index; index was created under another sort order.

This table lists the bit representations for the status2 column:

Decimal Hex Status

1 0x1 Index supports foreign-key constraint.

2 0x2 Index supports primary key/unique declarative constraint.

4 0x4 Index includes an IDENTITY column.

8 0x8 Constraint name not specified.

16 0x10 Large I/Os (prefetch) not enabled for table, index, or text chain.

32 0x20 Most recently used (MRU) cache strategy not enabled for table, index, or text chain.

64 0x40 Ascending inserts turned on for the table.

256 0x0100 Index is presorted and does not need to be copied to new extents.

512 0x0200 Index is a DOL clustered index.

8192 0x2000 Index on a data-only-locked table is suspect.

32768 0x8000 The index is function-based.

Indexes

Unique clustered index on id, indid

1.29 sysinstances

Applies to the Cluster Edition only. A fake table that reports on the state of the instances. sysinstances
includes a row for each instance defined in the cluster configuration.

Although sysinstances is a fake table, it is not impacted by the setting of set system_view, and always
returns a row for each instance, regardless of the system_view setting.

Reference Manual: Tables


56 PUBLIC System Tables
Columns

The columns for sysinstances are:

Column name Datatype Description

id tiny int ID of the instance

name varchar(30) Name of the instance

state char(17) State of the instance (one of online, offline, joining, leaving,
and initiating)

hostname varchar(255) Name of the operating system host running this instance

starttime datetime Date and time the instance started

connections_activ int Number of active connections on the instance


e

engines_online smallint Number of online engines for this instance

1.30 sysjars

Applies to all databases. sysjars contains one row for each Java archive (JAR) file that is retained in the
database.

For more information about JAR files, Java classes, and Java datatypes, see Java in Adaptive Server Enterprise.

Columns

The columns for sysjars are:

Name Datatype Description

jid int The ID of the JAR.

jstatus smallint Internal status information. Unused.

jname varchar(255) null The JAR name.

jbinary image null The contents of the JAR: the Java classes.

Reference Manual: Tables


System Tables PUBLIC 57
Indexes

● Unique clustered index on jid


● Unique nonclustered index on jname

1.31 syskeys

Applies to all databases. syskeys contains one row for each primary, foreign, or common key.

Columns

The columns for syskeys are:

Name Datatype Description

id int Object ID.

type smallint Record type. Valid values are:

● 1 = primary key
● 2 = foreign key
● 3 = common key

depid int null Dependent object ID.

keycnt int null Number of non-null keys.

size int null Reserved.

key1 ... key8 smallint null Column ID.

depkey1 ... depkey8 smallint null Column ID.

spare1 smallint Reserved.

Indexes

Clustered index on id

Reference Manual: Tables


58 PUBLIC System Tables
1.32 syslanguages

Applies to master database only. syslanguages contains one row for each language known to SAP ASE.
us_english is not in syslanguages, but it is always available to the SAP ASE server.

Columns

The columns for syslanguages are:

Name Datatype Description

langid smallint Unique language ID.

dateforma char(3) Date order; for example, “dmy”.


t

datefirst tinyint First day of the week—1 for Monday, 2 for Tuesday, and so on, up to 7 for Sunday.

upgrade int SAP ASE version of last upgrade for this language.

name varchar(30) Official language name, for example, “french”.

alias varchar(30) Alternate language name, for example, “français”.


null

months varchar(251 Comma-separated list of full-length month names, in order from January to December—
) each name is at most 20 characters long.

shortmont varchar(119 Comma-separated list of shortened month names, in order from January to December
hs ) —each name is at most 9 characters long.

days varchar(216 Comma-separated list of day names, in order from Monday to Sunday—each name is at
) most 30 characters long.

Indexes

● Unique clustered index on langid


● Unique nonclustered index on name
● Unique nonclustered index on alias

Reference Manual: Tables


System Tables PUBLIC 59
1.33 syslisteners

Applies to master database only. syslisteners contains a row for each network protocol available for
connecting with the current SAP ASE server. The SAP ASE server builds syslisteners dynamically when a
user or client application queries the table.

Columns

The columns for syslisteners are:

Name Datatype Description

net_type char(32) Network protocol

address_i char(255) Information that uniquely identifies this SAP ASE server on the network; usually the name
nfo of the current SAP ASE server and an identifying number, such as the server’s port number
for the protocol

spare tinyint Unused

nodeid tinyint Reserved for future use (not available for cluster environments)
null

instancei tinyint ID of the instance (available only for cluster environments)


d

1.34 syslocks

Applies to master database only. syslocks contains information about active locks, and built dynamically
when queried by a user. No updates to syslocks are allowed.

Columns

The columns for syslocks are:

Name Datatype Description

id int Table ID.

Reference Manual: Tables


60 PUBLIC System Tables
Name Datatype Description

dbid smallint Database ID.

page unsigned int Page number.

type smallint Type of lock.

spid smallint ID of process that holds the lock.

int for the Cluster Edition

class varchar(30) Name of the cursor this lock is


associated with, if any.

fid smallint The family (coordinating process and


its worker processes) to which the lock
int for the Cluster Edition
belongs. fid values are:

● 0 – the task represented by the


spid is a single task executing a
statement in serial
● Nonzero – the task (spid)
holding the lock is a member of a
family executing a statement in
parallel.
If the value is equal to the spid, it
indicates that the task is the
coordinating process in a family
executing a query in parallel.

context tinyint Context type of lock request.

row smallint Row number.

loid int Unique lock owner ID.

partitionid int null Partition ID.

nodeid tinyint null Reserved for future use (not available


for cluster environments)

instanceid tinyint ID of the instance (available only for


cluster environments)

The bit representations for the type column are:

Decimal Hex Status

1 0x1 Exclusive table lock

Reference Manual: Tables


System Tables PUBLIC 61
Decimal Hex Status

2 0x2 Shared table lock

3 0x3 Exclusive intent lock

4 0x4 Shared intent lock

5 0x5 Exclusive page lock

6 0x6 Shared page lock

7 0x7 Update page lock

8 0x8 Exclusive row lock

9 0x9 Shared row lock

10 0xA Update row lock

11 0xB Shared next key lock

256 0x100 Lock is blocking another process

512 0x200 Demand lock

The values for the contextcolumn are:

Value Interpretation

null The task holding this lock is either executing a query in serial, or it is a query being executed in parallel in
transaction isolation level 1.

0x1 The task holding the lock will hold the lock until the query is complete. A lock’s context may be FAM_DUR
(0x1H) when the lock is:

● A table lock held as part of a parallel query.


● Held by a worker process at transaction isolation level 3.
● Held by a worker process in a parallel query and must be held for the duration of the transaction.

0x2 Range lock held by serializable read task.

0x4 Infinity key lock.

0x8 Lock acquired on an index pages of an allpages-locked table.

0x10 Lock on a page or row acquired to delete a row.

0x20 Address lock acquired on an index page during a shrink or split operation.

0x40 Intent lock held by a transaction performing repeatable reads. Valid only for shared intent and exclusive intent
locks on data-only-locked tables.

Reference Manual: Tables


62 PUBLIC System Tables
1.35 syslogininfo

Returns information for all logins. syslogininfo is a view of the master database that provides information
about all logins. You must have the sa_role or sso_role to select from the syslogininfo view.

Columns

The columns for syslogininfo are:

Name Datatype Description

suid int Server user ID or login profile ID.

login_nam sysname Login name.


e

pwd_expir varchar(3) Indicates if the password is expired.


ed

locked varchar(3) Indicates if the login or account are locked.

date_of_l datetime Date when the password was last changed.


ast_pwd_c null
hange

pwd_exp_i int Interval, in number of days, for the password expiration.


nt

pwd_expir int Number of days remaining before the password expires.


y

1.36 sysloginroles

Applies to master database only. sysloginroles contains a row for each instance of a server login or login
profile possessing a role. One row is added for each role granted to each login. For example, if a single server
user is granted sa_role, sso_role, and oper_role, three rows are added to sysloginroles associated with that
user’s system user ID (suid).

 Note

When you change the status bit using alter login, you must log out and relog for the change to take
effect. To see immediate results, use set role role_name off.

Reference Manual: Tables


System Tables PUBLIC 63
Columns

The columns for sysloginroles are:

Name Datatype Description

suid int Server user ID or login profile ID

srid int Server role ID. See the list below.

status smallint Status bit that indicates whether the


various server roles are set to their de­
faults at login:

● 0 – default off
● 1 – default on

predid int The object ID for the predicate of a


grant role command. See Security
Administration Guide > Predicated role
activation.

The values for srid are:

● 0 – sa_role
● 1 – sso_role
● 2 – oper_role
● 4 – navigator_role
● 5 – replication_role
● 6 – Currently unused
● 7 – dtm_tm_role
● 8 – ha_role
● 9 – Used internally
● 10 – mon_role
● 11 – js_admin_role
● 12 – messaging_role
● 13 – js_client_role
● 14 – js_user_role
● 15 – webservices_role

Indexes

Clustered index on suid

Reference Manual: Tables


64 PUBLIC System Tables
1.37 syslogins

Applies to master database only. syslogins contains one row for each valid SAP ASE user account or login
profile.

Columns

The columns for syslogins are:

Name Datatype Description

suid int Server user ID or login profile ID.

status smallint Status of the account.

accdate datetime Date totcpu and totio were last cleared.

totcpu int CPU time accumulated by login.

totio int I/O accumulated by login.

spacelimi int Reserved.


t

timelimit int Reserved.

resultlim int Reserved.


it

dbname sysname Name of database in which to put user when connection established. Column is not appli­
null cable for a login row if a login profile is associated with the login account.

name sysname Login name of user.

password varbinary( One-way hash of user password. The contents of syslogins.password depend on
128) null the value for sp_passwordpolicy allow password downgrade.

language varchar(30 User’s default language. If a login profile is associated with the login account, this column
) null is not applicable for a login row.

pwdate datetime Date the password was last changed.


null

Reference Manual: Tables


System Tables PUBLIC 65
Name Datatype Description

audflags int null User’s audit settings. One of:

● 0x00000001 – successful reference to a user-created table


● 0x00000002 – failure
● 0x00000004 – successful reference to a user-created view
● 0x00000008 – failure
● 0x00000010 – user cmdtext auditing
● 0x00000020 – required padding
● 0x00000040 – all successful user action auditing
● 0x00000080 – all failed user action auditing

fullname varchar(30 Full name of the user.


) null

srvname varchar(30 Name of server to which a passthrough connection must be established if the AUTOCON­
) null NECT flag is turned on.

logincoun smallint Number of failed login attempts; reset to 0 by a successful login.


t null

procid int null Stores the login trigger registered with the login script. If a login profile is associ­
ated with the login account, this column is not applicable for a login row.

lastlogin datetime Timestamp for the user’s last login.


date

crdate datetime Timestamp when the login or login profile was created.

locksuid int The server user ID (suid) responsible for locking the login.

lockreaso int Reasons for lock; one of:


n ● NULL – account has not been locked
● 0 – locked by locksuid by executing sp_locklogin
● 1 – inactive account locked by executing sp_locklogin 'all', 'lock',
'ndays'
● 2 – the SAP ASE server locked the account because number of failed login attempts
reached max failed logins.
● 3 – locked by locksuid because the password downgrade period has ended and a
login or role was not transitioned to SHA-256
● 4 – automatically locked by locksuid due to inactivity.

Reference Manual: Tables


66 PUBLIC System Tables
Name Datatype Description

lockdate datetime If:

● The login account is locked – syslogins.lockdate specifies the timestamp


when the login was locked.
● The login account is not locked, and:
○ syslogins.lockdate is non-NULL – specifies the timestamp when the
login was unlocked.
○ syslogins.lockdate is NULL – specifies that the login was never locked.

lpid int Login profile ID. One of:

● null – the login account is associated with the default login profile, if any
● -1 – the login profile is ignored for the login account.
● suid – the login profile ID.

crsuid int Server user ID of the creator of login or login profile.

On the SAP ASE distribution media, syslogins contains an entry in which the name is “sa”, the suid is 1, and
the password is null. It also contains the entry “probe” with an unpublished password. The login “probe” and
the user “probe” exist for the two-phase commit probe process, which uses a challenge and response
mechanism to access the SAP ASE server.

The status control bits in syslogins are:

Decimal Hex Status

2 0x2 Account is locked.

4 0x4 Password has expired. This is set on the user's first login attempt after expiration.

8 0x8 Indicates that the value of exempt inactive lock is set to TRUE. It is not applicable
for login profile rows.

16 0x10 OMNI:autoconnect mode is enabled.

32 0x20 May use SAP ASE internal authentication mechanism – syslogins.

64 0x40 May use LDAP external authentication.

128 0x80 May use PAM external authentication.

256 0x100 May use Kerberos external authentication.

512 0x200 Indicates a login profile.

1536 0x200 | 0x400 Indicates a default login profile.

2048 0x800 Indicates an authentication mechanism specified in a login profile.

Reference Manual: Tables


System Tables PUBLIC 67
Indexes

● Unique clustered index on suid


● Unique nonclustered index on name

1.38 syslogs

Applies to all databases. syslogs contains the transaction log. It is used by the SAP ASE server for recovery
and roll forward. It is not useful to users.

You cannot delete from, insert into, or update syslogs. Every data modification operation is logged, so before
you can change syslogs, the change must be logged. This means that a change operation on syslogs adds a
row to syslogs, which then must be logged, adding another row to syslogs, and so on, producing an infinite
loop. The loop continues until the database becomes full.

Columns

The columns for syslogs are:

Name Datatype Description

xactid binary(6) Transaction ID

op tinyint Number of update operation

1.39 syslogshold

Applies to master database only. syslogshold contains information about each database’s oldest active
transaction (if any) and the Replication Server truncation point (if any) for the transaction log, but it is not a
normal table. Rather, it is built dynamically when queried by a user. No updates to syslogshold are allowed.

 Note

Because of this change in the datatypes for the Cluster Edition, you should archive and truncate audit
tables before you upgrade. This reduces the likelihood of a failed upgrade because of insufficient space in
the sybsecurity database.

Reference Manual: Tables


68 PUBLIC System Tables
Columns

The columns for syslogshold are:

Name Datatype Description

dbid smallint Database ID.

reserved int Unused.

spid smallint Server process ID of the user that owns the oldest active transaction (always 0 for Replica­
tion Server).
int for clus­
ter environ­
ments

page unsigned Starting page number of active portion in syslogs defined by oldest transaction (or the
int truncation page in syslogs for Replication Server).

xactid binary(6) ID of the oldest active transaction (always 0x000000 for Replication Server).

masterxac binary(6) ID of the transaction’s master transaction (if any) for multidatabase transactions; other­
tid wise 0x000000 (always 0x000000 for Replication Server).

starttime datetime Date and time the transaction started (or when the truncation point was set for Replication
Server).

name char(67) Name of the oldest active transaction. It is the name defined with begin
transaction, “$user_transaction” if no value is specified with begin
transaction, or “$chained_transaction” for implicit transactions started by the ANSI
chained mode. Internal transactions started by the SAP ASE server have names that begin
with the dollar sign ($) and are named for the operation, or are named “$replication_trun­
cation_point” for Replication Server.

xloid int null Lock ownership ID based on spid if the owner is a task, or on xdes if the owner is a trans­
action.

Reference Manual: Tables


System Tables PUBLIC 69
1.40 sysmessages

Applies to master database only. sysmessages contains one row for each system error or warning that can be
returned by the SAP ASE server. The SAP ASE server displays the error description on the user’s screen.

Columns

The columns for sysmessages are:

Name Datatype Description

error int Unique error number

severity smallint Severity level of error

dlevel smallint Reserved

description varchar(1024) Explanation of error with placeholders for parameters

langid smallint null Language; null for us_english

sqlstate varchar(5) null SQLSTATE value for the error

Indexes

● Clustered index on error, dlevel


● Nonclustered index on error, dlevel, langid

Reference Manual: Tables


70 PUBLIC System Tables
1.41 sysmonitors

Applies to master database only. sysmonitors contains one row for each monitor counter.

Columns

The columns for sysmonitors are:

Name Datatype Description

field_name char(79) Name of the counter

group_name char(25) Group to which this counter belongs

field_id smallint Unique identifier for the row

value int Current value of the counter

description varchar(255) Description of the counter; not used


null

nodeid tinyint null Reserved for future use (not available for cluster environments)

instanceid tinyint ID of the instance (available only for cluster environments)

1.42 sysobjects

Applies to all databases. sysobjects contains one row for each table, view, stored procedure, extended stored
procedure, log, rule, default, trigger, check constraint, referential constraint, computed column, function-based
index key, encryption key, predicated privilege, and (in tempdb only) temporary object, and other forms of
compiled objects. It also contains one row for each partition condition ID when object type is N.

For cross-database key references, syscolumns.encrdate matches sysobjects.crdate. encrkeyid in


sysencryptkeys matches the id column in sysobjects.

Reference Manual: Tables


System Tables PUBLIC 71
Columns

The columns for sysobjects are:

Name Datatype Description

name varchar(255) Object name.


not null

id int Object ID.

uid int User ID of object owner.

type char(2) One of the following object types:

● C – computed column
● D – default
● DD – decrypt default
● EK – encryption key
● F – SQLJ function
● N – partition condition
● P – Transact-SQL or SQLJ procedure
● PP – the predicate of a privilege
● PR – prepare objects (created by dynamic SQL)
● R – rule
● RI – referential constraint
● RS – precomputed result set
● S – system table
● SF – scalar or user-defined functions
● SQ – sequence object
● TR – trigger
● U – user table
● V – view
● XP – extended stored procedure

userstat smallint Application-dependent type information (32768 decimal [0x8000 hex] indicates
to Data Workbench that a procedure is a report).

sysstat smallint Internal status information (256 decimal [0x100 hex] indicates that table is
read-only)

indexdel smallint Recounts the changes in the schema of an object and updates schemacnt.

schemacnt smallint Count of changes in the schema of an object (incremented if a rule or default is
added)

sysstat2 int Additional internal status information

Reference Manual: Tables


72 PUBLIC System Tables
Name Datatype Description

sysstat3 unsigned Additional internal status information


smallint

crdate datetime Date the object was created

expdate datetime Reserved

deltrig int Stored procedure ID of a delete trigger if the entry is a table. Table ID if the entry
is a trigger.

instrig int Stored procedure ID of a table’s insert trigger if the entry is a table

updtrig int Stored procedure ID of a table’s update trigger if the entry is a table

seltrig int Reserved

ckfirst int ID of first check constraint on the table

cache smallint Reserved

audflags int null Object’s audit settings

objspare smallint Spare

versionts binary(6) null The version timestamp of the last schema change for this object (used by Repli­
cation Server)

loginame varchar(30) Login name of the user who created the object
null

identburnm numeric(17) Maximum burned value for identity column if any in this object
ax null
 Note
The identburnmax column is stored in an internal format. Use the
identity_burn_max() function if you need a value.

spacestate smallint null For internal use only.

erlchgts binary(8) null For internal use only.

lobcomp_lv tinyint LOB compression level.


l

status5 int Additional internal status information.

Reference Manual: Tables


System Tables PUBLIC 73
The valid values for type are:

Object Type Description

C Computed column

D Default

DD Decrypt default

EK Encryption key

F SQLJ function

N Partition condition

P Transact-SQL or SQLJ procedure

PP The predicate of a privilege

PR Prepare objects (created by dynamic SQL)

R Rule

RI Referential constraint

RS Precomputed result set

S System table

SF Scalar or user-defined functions

TR Trigger

U User table

V View

XP Extended stored procedure

The bit representations for the sysstat column are:

Decimal Hex Description

0 0x0 Any illegal object

1 0x1 System object

2 0x2 View

3 0x3 User object

Reference Manual: Tables


74 PUBLIC System Tables
Decimal Hex Description

4 0x4 Stored procedure

5 0x5 Predicated privilege

6 0x6 Default value spec

7 0x7 Domain rule

8 0x8 Trigger procedure

9 0x9 Referential integrity constraint

10 0xA SQL Function

11 0xB Extended type

12 0xC Stored function

13 0xD Computed column

14 0xE Partition condition

15 0xF Encryption key

16 0x10 Has clustered index

32 0x20 Has nonclustered index

64 0x40 If the object is a table, changes to the object are logged. If the object is a procedure, indicates that
replication can subscribe to executions of the procedure.

128 0x80 The object is being created

256 0x100 The object contains suspect indexes and can only be used for read-only purposes until you have
run dbcc reindex.

512 0x200 The object flagged by recovery as possibly damaged; run dbcc. Checked by opentable.

1024 0x400 The object is “fake”; that is, it resides in tempdb and is redefined for every query step that uses it

2048 0x800 The object is a definition time object created for query compilation.

4096 0x1000 Tags a system table that will have its index(es) re-created.

8192 0x2000 The object contains text/image fields

16384 0x4000 Unused

32768 0x8000 The table or procedure is replicated

Reference Manual: Tables


System Tables PUBLIC 75
The bit representations for the sysstat2 column are:

Decimal Hex Status

0 0x00 Unchained transaction mode.

1 0x1 Table has a referential constraint.

2 0x2 Table has a foreign-key constraint.

4 0x4 Table has more than one check constraint.

8 0x8 Table has a primary-key constraint.

16 0x10 Stored procedure can execute only in chained transaction mode.

32 0x20 Stored procedure can execute in any transaction mode.

64 0x40 Table has an IDENTITY field.

128 0x80 Object is s virtually hashed table.

256 0x100 Allow implicit grant in execute immediate calls inside the stored procedure (dy­
namic ownership chain).

512 0x200 Table does not contain variable-length columns.

1024 0x400 Table is remote.

2048 0x800 Table is a proxy table created with the existing keyword.

4096 0x1000 Object should be replicated with owner name.

8192 0x2000 Table uses allpages-locking scheme.

16384 0x4000 Table uses datapages-locking scheme.

32768 0x8000 Table uses datarows-locking scheme.

65536 0x10000 Table was created in a version 11.9 or later server.

131072 0x20000 Table has a clustered index.

262144 0x40000 Object represents an Embedded SQL procedure.

524288 0x80000 Hybrid table.

16777216 0x1000000 An access rule.

33554432 0x2000000 Object represents a SQLJ stored procedure.

67108864 0x4000000 Object represents an OR access rule.

1073741824 0x40000000 Table contains one or more function-based indexes.

Reference Manual: Tables


76 PUBLIC System Tables
Decimal Hex Status

2147483648 0x80000000 Object has an extended index

The bit representations for the sysstat3 column are:

Table 1: sysstat3 Control Bits in the sysobjects Table

Decimal Hex Status

128 0x80 Indicates deferred table status. The table is deferred until SAP ASE allo­
cates their pages.

256 0x0100 Stored procedure created with execute as owner clause.

512 0x0200 Stored procedure created with execute as caller clause.

2048 0x0800 Table contains LOB compressed data.

4096 0x1000 Table uses row-level compression.

8192 0x2000 Table uses page-level compression.

16384 0x4000 Table contains compressed data.

32768 0x8000 Table participates in incremental transfer.

The bit representations for the sysstat4 column are:

Decimal Hex Status

1 0x1 Automatically compress indexes on this table.

2 0x2 Erase Residual Data is on for this table.

4 0x4 Erase Residual Data is off for this table.

8 0x8 Internal use.

16 0x10 Table has had a compressed index at some point in its life.

32 0x20 Unused.

64 0x40 DOL index root page access is optimized with CAS latching.

The bit representations for the sysstat5 column are:

Decimal Hex Status

1 0x1 Multiversion concurrency control-enabled table. Supports snapshot iso­


lation.

Reference Manual: Tables


System Tables PUBLIC 77
Decimal Hex Status

2 0x2 Datarow cache-enabled table. Supports row caching.

4 0x4 Multiversion concurrency control-enabled table, defined by create or


alter table, but snapshot isolation is temporarily suspended.

8 0x8 Datarow cache-enabled table, defined by create or alter table,


but row caching is temporarily suspended.

16 0x10 For internal use only.

Indexes

● Unique clustered index on id


● Nonclustered index on name, uid

1.43 sysoptions

Applies to all databases. sysoptions is a fake table queried by sp_options. When you are querying
sysoptions, the names of the rows are case sensitive.

Columns

Name Datatype Attributes Description

spid smallint Contains the process ID.

name varchar(1 Contains the name of the option.


00)

category varchar(1 Contains the name of the category to which the option belongs.
00)

currentset varchar(1 NULL Contains the current setting of the option.


ting 00)

defaultset varchar(1 NULL Contains the default setting of the option.


ting 00)

Reference Manual: Tables


78 PUBLIC System Tables
Name Datatype Attributes Description

scope int Contains the bitmap used to capture information about options. The bits
are ordered as follows:

● Bit 1 – compiled time options


● Bit 2 – stored procedure specific options
● Bit 3 – binary options

number int The switch ID as an integer.

sysoptions shows:

● Trace flags set in the runserver file with the –T options


● Trace flags set with dbcc traceon(<flag_number>) or set switch serverwide on
● Trace flags and switches set by a specific system process ID (SPID) using set switch on

sysoptions displays only the switches that are visible to the user querying the sysoptions table. That is, the
user cannot see switches set privately by other SPIDs with set switch on. However, traceflags enabled
using the runserver file –T option, dbcc traceon, or set switch serverwide on are visible to all users.

Query sysoptions using sp_options. The datatype for the current and default value is varchar so settings
with varchar values can be used directly. Settings with integer values can be used after typecasting.

You do not need special privileges to query sysoptions. For example:

select * from sysoptions


where spid = 13
go

You can also use string manipulation or typecasting. For example, if an option is numeric, you can query
sysoptions by entering:

if (isnumeric(currentsetting))
select@int_val = convert(int, currentsetting)
...
else
select@char_val = currentsetting
...

Reference Manual: Tables


System Tables PUBLIC 79
1.44 syspartitionkeys

Applies to all databases. syspartitionkeys contains one row for each partition key for hash, range, and list
partitioning of a table. All columns are not null.

Columns

The columns for syspartitionkeys are:

Name Datatype Description

indid smallint Type of index. Values are:

● 0 = table
● 1 = clustered index
● >1 = nonclustered index

id int Object ID of the partitioned table

colid smallint Column ID of the partition key of the partitioned table

position smallint Position of key among key positions

Indexes

Unique clustered index on id, indid, colid

1.45 syspartitions

Applies to all databases. syspartitions contains one row for each data partition and one row for each index
partition.

For each database, syspartitions contains one row for:

● Each table partition. indid is 0.


● Each clustered index partition. indid is 1.
● Each nonclustered index partition. indid is >1.
● Each single-partitioned (unpartitioned) table.
● Each single-partitioned (unpartitioned) clustered or nonclustered index.

Reference Manual: Tables


80 PUBLIC System Tables
If an index is local, the value for partitionid (data partition row) and data_partitionid (associated index
row) are the same. If the index is not local, the value for data_partitionid (index row) is zero (0), and it does
not equal that for partitionid (data partition row).

 Note

The syspartitions table in versions of SAP ASE earlier than 15.0 has been renamed sysslices and
made obsolete. With SAP ASE version 15.0, syspartitions is completely redefined, and now supports
data and index partitioning.

Columns

The columns for syspartitions are:

Name Datatype Description

name varchar(255) Partition name.

indid smallint on an allpages-locked table

Index ID. Values are:

● 0 – data pages (table)


● 1 – clustered index on an allpages-locked table
● >1 and <255 – nonclustered index or a clustered index on a data-only-locked
table
● 255 – text chain

id int Table ID.

partitionid int ID of data or index partition.

segment smallint ID of segment on which partition resides.

status int Internal status information.

datoampage unsigned int Page number for the object allocation map of a data partition.

indoampage unsigned int Page number of the object allocation map of an index partition.

firstpage unsigned int Page number of the first data or leaf page.

rootpage unsigned int Page number of:


● Root page if entry is an index partition
● Last page if entry is a data partition

Reference Manual: Tables


System Tables PUBLIC 81
Name Datatype Description

data_partit int ID of data partition this index spans. Values are:


ionid ● 0 – for global indexes spanning the entire table
● Non-zero – partition ID of the data partition that a local index's partition spans.

crdate datetime Date the partition created.

cdataptnnam varchar(255) Name of data partition.


e null

lobcomp_lvl tinyint LOB compression level

ptndcompver tinyint Version of datacompression algorithm used

Indexes

● Unique clustered index on id, indid, partitionid


● Unique nonclustered index on id, indid, name
● Unique nonclustered index on partitionid, indid

1.46 syspoolinfo

Applies to master database. Provides information about data caches and pools.

Access to the views is restricted to users with the sa_role role.

Columns

The columns for syspoolinfo are:

Name Datatype Description

cache_name varchar(3 Name of the cache in which this pool is allocated.


0)

io_size varchar(3 The size of the buffers, in kilobytes, used to perform I/O for this pool.
)

Reference Manual: Tables


82 PUBLIC System Tables
Name Datatype Description

config_siz float Configured amount of memory, in megabytes, allocated to the pool. May be different
e from the amount reported in the run_size column.

run_size float The current amount of memory, in megabytes, allocated to the pool.

apf_percen int The percentage of buffers in the pool that can be used to hold buffers that have been read
t into cache by asynchronous prefetch.

wash_size varchar(1 The size of the wash area, in megabytes, in the pool.
0)

cacheid int ID of the data cache.

instanceid int ID of the instance (zero for non-Cluster Edition servers).

scope varchar(6 Indicates whether the data cache is local or global for Cluster Edition. The value is always
) Global for nonclustered servers.

1.47 sysprocedures

Applies to all databases. sysprocedures contains entries for each view, default, rule, trigger, procedure,
declarative default, partition condition, check constraint, computed column, function-based index key, and
other forms of compiled objects.
The sequence tree for each object, including computed columns or function-based index definition, is stored in
binary form. If the sequence tree does not fit into one entry, it is broken into more than one row. The sequence
column identifies the sub-rows.

Columns

The columns for sysprocedures are:

Name Datatype Description

type smallint Object type

qp_settin varbinar For future use only


g y(6) null

id int Object ID

Reference Manual: Tables


System Tables PUBLIC 83
Name Datatype Description

sequence int Sequence number if more than one row is used to describe this object

status smallint Internal system status

number smallint Sub-procedure number when the procedure is grouped (0 for nonprocedure entries)

version int null The version of SAP ASE that created the sequence tree stored in this catalog for a given
object

The bit representations for the type column are:

Decimal Hex Status

1 0x1 Entry describes a plan (reserved)

2 0x2 Entry describes a tree

Indexes

Unique clustered index on id, number, type, sequence

1.48 sysprocesses

Applies to master database only. sysprocesses contains information about SAP ASE processes, but it is not
a normal table. It is built dynamically when queried by a user. No updates to sysprocesses are allowed. Use
the kill statement to kill a process.

Columns

The columns for sysprocesses are:

Name Datatype Description

spid smallint Process ID.

int for the Cluster Edition

kpid int Kernel process ID.

Reference Manual: Tables


84 PUBLIC System Tables
Name Datatype Description

enginenum int Number of engine on which process is


being executed.

status char(12) Process ID status.

suid int Server user ID of user who issued


command.

hostname varchar(30) null Name of host computer.

program_name varchar(30) null Name of front-end module.

hostprocess varchar(30) null Host process ID number..

cmd varchar(30) null Command or process currently being


executed. Evaluation of a conditional
statement, such as an if or while
loop, returns cond.

cpu int Cumulative CPU time for process in


ticks

physical_io int Number of disk reads and writes for


current command.

memusage int Amount of memory allocated to


process.

blocked smallint Process ID of blocking process, if any.

int for the Cluster Edition

dbid smallint Database ID.

uid int ID of user who executed command.

gid int Group ID of user who executed


command.

tran_name varchar(64) null Name of the active transaction.

time_blocked int null Time blocked in seconds.

network_pktsz int null Current connection’s network packet


size.

fid smallint Process ID of the worker process’


parent.
int for the Cluster Edition

Reference Manual: Tables


System Tables PUBLIC 85
Name Datatype Description

execlass varchar(30) null Execution class that the process is


bound to.

priority varchar(10) null Base priority associated with the


process.

affinity varchar(30) null Name of the engine to which the


process has affinity.

id int null Object ID of the currently running


procedure (or 0 if no procedure is
running).

stmtnum int null The current statement number within


the running procedure (or the SQL
batch statement number if no
procedure is running).

linenum int null The line number of the current


statement within the running stored
procedure (or the line number of the
current SQL batch statement if no
procedure is running).

origsuid int null Original server user ID. If this value is


not NULL, a user with an suid of
origsuid executed set proxy or
set session authorization
to impersonate the user who executed
the command.

block_xloid int null Unique lock owner ID of a lock that is


blocking a transaction.

clientname varchar(30) null (Optional) Name by which the user is


known for the current session.

 Note
The SAP ASE server automatically
stores one or more spaces in
clientname,
clienthostname, and
clientapplname columns. For
this reason, a query using any of
these three columns that includes
“is null” does not return an
expected result set.

Reference Manual: Tables


86 PUBLIC System Tables
Name Datatype Description

clienthostname varchar(30) null (Optional) Name by which the host is


known for the current session.

clientapplname varchar(30) null (Optional) Name by which the


application is known for the current
session.

sys_id smallint null Unique identity of companion node.

ses_id int null Unique identity of each client session.

loggedindatetime datetime null Shows the time and date when the
client connected to the SAP ASE
server. See “Row-level access
control“ in Chapter 11, “Managing User
Permissions” of the Security
Administration Guide for more
information.

ipaddr varchar(64) null IP address of the client where the login


is made. See “Row-level access
control“ in Chapter 11, “Managing User
Permissions” of the Security
Administration Guide for more
information.

nodeid tinyint null Reserved for future use (not available


for cluster environments).

instanceid tinyint ID of the instance (available only for


cluster environments).

pad smallint (Cluster Edition) Column added for


alignment purposes.

spare2 int Reserved for future use

lcid int (Cluster Edition) ID of the cluster.

execution_time int Execution time (including compilation


time) is the time that the process has
been running and the precision is
milliseconds

 Note

Because of this change in the datatypes for the Cluster Edition, you should archive and truncate audit
tables before you upgrade. This reduces the likelihood of a failed upgrade because of insufficient space in
the sybsecurity database.

Reference Manual: Tables


System Tables PUBLIC 87
The values for the status column are:

Status Meaning

alarm sleep Waiting for alarm to wake process up (user executed a waitfor delay command)

background A process, such as a threshold procedure, run by the SAP ASE server rather than by a user process

infected Server has detected a serious error condition; extremely rare

latch sleep Waiting on a latch acquisition

lock sleep Waiting on a lock acquisition

PLC sleep Waiting to access a user log cache

recv sleep Waiting on a network read

remote i/o Performing I/O with a remote server

runnable In the queue of runnable processes

running Actively running on one of the server engines

send sleep Waiting on a network send

sleeping Waiting on a disk I/O, or some other resource (often indicates a process that is running, but doing extensive
disk I/O)

stopped Stopped process

sync sleep Waiting on a synchronization message from another process in the family

Reference Manual: Tables


88 PUBLIC System Tables
1.49 sysprotects

Applies to all databases. sysprotects contains information on permissions that have been granted to, or
revoked from, users, groups, and roles.

Columns

The columns for sysprotects are:

Name Datatype Description

id int ID of the object to which this permission applies. Has an ID of 0 when the permission
granted is create table, create default, and so on.

uid int ID of the user, group, or role to which this permission applies.

action smallint See the following list for permissions.

protectt tinyint One of the following values:


ype ● 0 = grant with grant
● 1 = grant
● 2 = revoke

columns varbinary(1 Bitmap of columns to which this select, update, decrypt, or references permission
33) applies.

columns is also a bitmap of permitted roles for set session authorization.

grantor int User ID of the grantor. If the grantor is a system administrator, the user ID of the object
owner is used.

predid int Object ID of predicated privilege

status smallint 0x0001 – indicates that the privilege (or denial) is predicated

Use this query to look up names for action values in the spt_values table:

select number, type, name from master..spt_values


where type in ("T", "GP")

The action column values are:

● 1 = alter any object owner * ● 99 = manage any statistics *


● 2 = alter any table * ● 100 = manage any user *
● 3 = change password * ● 101 = manage auditing *

Reference Manual: Tables


System Tables PUBLIC 89
● 4 = checkpoint any database * ● 102 = manage checkstorage *
● 5 = select builtin ● 103 = manage cluster *
● 6 = checkpoint * ● 104 = manage data cache *
● 7 = create any default * ● 105 = manage database *
● 8 = create any function * ● 106 = manage database permissions *
● 9 = create any index * ● 107 = manage disk *
● 10 = create any object * ● 108 = manage lock promotion threshold *
● 11 = create any procedure * ● 109 = manage master key *
● 12 = create any rule * ● 110 = manage replication *
● 13 = create any table * ● 111 = manage resource limit *
● 14 = create any trigger * ● 112 = manage roles *
● 15 = create any view * ● 113 = manage security configuration *
● 16 = allow exceptional login * ● 114 = manage security permissions *
● 17 = dbcc checkalloc ● 115 = manage server *
● 18 = dbcc checkalloc any database ● 116 = manage server configuration *
● 19 = map external file * ● 117 = manage server permissions *
● 20 = manage dump configuration * ● 118 = monitor qp performance *
● 21 = dbcc checkcatalog ● 119 = monitor server replication *
● 22 = dbcc checkcatalog any database ● 120 = mount any database *
● 24 = Manage HADR ● 121 = online any database *
● 25 = dbcc checkdb ● 122 = online database *
● 26 = dbcc checkdb any database ● 123 = own any database *
● 29 = dbcc checkindex ● 125 = own database *
● 30 = dbcc checkindex any database ● 126 = quiesce any database *
● 33 = dbcc checkstorage ● 129 = references any table *
● 34 = dbcc checkstorage any database ● 130 = report checkstorage *
● 37 = dbcc checktable ● 131 = reorg any table *
● 38 = dbcc checktable any database ● 132 = select any audit table *
● 41 = dbcc checkverify ● 133 = select any system catalog *
● 42 = dbcc checkverify any database ● 134 = select any table *
● 45 = dbcc fix_text ● 135 = set tracing any process *
● 46 = dbcc fix_text any database ● 136 = setuser
● 49 = dbcc indexalloc ● 137 = shutdown *
● 50 = dbcc indexalloc any database ● 138 = transfer any table *
● 53 = dbcc reindex ● 139 = manage any thread pool *
● 54 = dbcc reindex any database ● 140 = truncate any table *
● 57 = dbcc tablealloc ● 141 = unmount any database *
● 58 = dbcc tablealloc any database ● 144 = update any security catalog *
● 61 = dbcc textalloc ● 145 = update any table *
● 62 = dbcc textalloc any database ● 146 = use any database *

Reference Manual: Tables


90 PUBLIC System Tables
● 65 = dbcc tune ● 148 = use database *
● 66 = delete any table * ● 149 = set switch *
● 67 = drop any default * ● 150 = show switch *
● 68 = drop any function * ● 151 = references
● 70 = drop any object * ● 152 = truncate any audit table *
● 71 = drop any procedure * ● 153 = decrypt any table *
● 72 = drop any rule * ● 155 = manage column encryption key *
● 73 = drop any table * ● 156 = manage any database *
● 74 = drop any trigger * ● 167 = set proxy
● 75 = drop any view * ● 193 = select
● 76 = dump database * ● 195 = insert
● 77 = dump any database * ● 196 = delete
● 79 = execute any function * ● 197 = update
● 80 = Execute Any Procedure * ● 198 = create table
● 81 = Identity_insert Any Table * ● 203 = create database
● 82 = Identity_update Any Table * ● 207 = create view
● 83 = Identity_insert ● 221 = create trigger
● 84 = Identity_update ● 222 = create procedure
● 85 = insert any table * ● 224 = execute
● 86 = kill * ● 233 = create default
● 87 = kill any process * ● 235 = dump transaction
● 88 = load database * ● 236 = create rule
● 89 = load any database * ● 253 = connect
● 90 = manage service key * ● 280 = create function
● 91 = manage abstract plans * ● 282 = delete statistics
● 92 = manage any encryption key * ● 320 = truncate table
● 93 = manage any esp * ● 326 = update statistics
● 94 = manage any execution class * ● 347 = set tracing
● 95 = manage any login * ● 353 = decrypt
● 96 = manage any login profile * ● 354 = create encryption key
● 97 = manage any object permission * ● 368 = transfer table
● 98 = manage any remote login *

The description of bits in column are:

Bit Decimal Value Description

0 1 Permission on all columns

1 2 Permission on column 1

2 4 Permission on column 2

Reference Manual: Tables


System Tables PUBLIC 91
Bit Decimal Value Description

[...]

<n> 2n Permission on column <n>

Values that are not an exact power of 2 indicate a combination of columns.

 Note

Permissions for the action column marked with an asterisk (*) take effect only when granular permissions
is enabled.

Indexes

Unique clustered index on id, action, grantor, uid, protecttype, predid

1.50 sysquerymetrics

Applies to all databases. Presents aggregated historical query processing metrics for individual queries from
persistent data. In addition to monitoring tables, use performance metrics information from this catalog.

Columns

The columns for sysquerymetrics are:

Name Datatype Description

uid int User ID

gid int Group ID

hashkey int Hashkey over the SQL query text

id int Unique ID

sequence smallint null Sequence number for a row when multiple rows are required for the text of
the SQL

exec_min unsigned bigint Minimum execution time

Reference Manual: Tables


92 PUBLIC System Tables
Name Datatype Description

exec_max unsigned bigint Maximum execution time

exec_avg unsigned bigint Average execution time

elap_min unsigned bigint Minimum elapsed time

elap_max unsigned bigint Maximum elapsed time

elap_avg unsigned bigint Average elapsed time

lio_min unsigned bigint Minimum logical IO

lio_max unsigned bigint Maximum logical IO

lio_avg unsigned bigint Average logical IO

pio_min unsigned bigint Minimum physical IO

pio_max unsigned bigint Maximum physical IO

pio_avg unsigned bigint Average physical IO

cnt unsigned bigint Number of times the query has been executed.

abort_cnt int null Number of times a query is aborted by the Resource Governor when a re­
source limit is exceeded

qtext varchar(255) Query text


null

The number of metrics shared among user IDs increased for SAP ASE release 15.0.2 and later, reducing the
number of entries in sysquerymetrics (a view of sysqueryplans), and automatically aggregates the
metrics for identical queries across different user IDs.

The user ID (uid) of sysquerymetrics is 0 when all table names in a query that are not qualified by user
name are owned by the DBO.

For example, if table t1 is owned only by the DBO and shared by different users:

select * from t1 where c1 = 1

The SAP ASE server uses 0 as the uid for the sysquerymetrics entry for all users executing this query who
do not have a private table named t1.

In this example, if table t2 is owned and qualified by “user1,” the SAP ASE server also uses an UID of 0:

select * from user1.t2 where c1 = 1

Reference Manual: Tables


System Tables PUBLIC 93
However, if table t3 is owned only by “user1,” but is unqualified and not owned by the DBO, the UID of “user1” is
used in the sysquerymetrics entry:

select * from t3 where c1 = 1

1.51 sysqueryplans

Applies to all databases. sysqueryplans contains two or more rows for each abstract query plan. Uses
datarow locking.

Columns

The columns for sysqueryplans are:

Name Datatype Description

uid int User ID of user who captured the abstract plan.

dbid int null For future use only

qpdate datetime For future use only


null

sprocid int null For future use only

hashkey2 int null For future use only

key1 int null For future use only

key2 int null For future use only

key3 int null For future use only

key4 int null For future use only

gid int The abstract plan group ID under which the abstract plan was saved.

hashkey int The hash key over the SQL query text.

id int The unique ID if the abstract plan.

type smallint 10 if the text column contains query text, or 100 if the text column contains abstract plan
text.

Reference Manual: Tables


94 PUBLIC System Tables
Name Datatype Description

sequence smallint Sequence number if multiple rows are required for the text of the SQL query or abstract
plan.

status int null Reserved.

text varchar(25 The SQL text, if type is 10, or the abstract query plan text, if the type is 100.
5) null

Indexes

● Unique clustered index on uid, gid, hashkey, id, type, sequence


● Nonclustered index on id, type, sequence

1.52 sysreferences

Applies to all databases. sysreferences contains one row for each referential integrity constraint declared on
a table or column.

Columns

The columns for sysreferences are:

Name Datatype Description

indexid smallint ID of the unique index on referenced columns

constrid int Object ID of the constraint from sysobjects

tableid int Object ID of the referencing table

reftabid int Object ID of the referenced table

keycnt smallint Number of columns in the foreign key

status smallint Options and indicators

frgndbid smallint Database ID of the database that includes the referencing table.
null

Reference Manual: Tables


System Tables PUBLIC 95
Name Datatype Description

pmrydbid smallint Database ID of the database that includes the referenced table (the table with the pri­
mary key)

spare2 int Reserved

fokey1 ... smallint Column ID of the first to the 16th referencing column
fokey16

refkey1 ... smallint Column ID of the first to the 16th referenced column
refkey16

frgndbname varchar( Name of the database that includes the referencing table (the table with the foreign
30) null key); NULL if the referencing table is in the current database

pmrydbname varchar( Name of the database that includes the referenced table (the table with the primary
30) null key); NULL if the referenced table is in the current database

The status bit in sysreferences is:

Decimal Hex Status

2 0x2 The referential constraint has a match full option

Indexes

● Clustered index on tableid, frgndbname


● Nonclustered index on constrid, frgndbname
● Nonclustered index on reftabid, indexid, pmrydbname

Reference Manual: Tables


96 PUBLIC System Tables
1.53 sysremotelogins

Applies to master database only. sysremotelogins contains one row for each remote user that is allowed to
execute remote procedure calls on this SAP ASE server.

Columns

The columns for sysremotelogins are:

Name Datatype Description

remoteserverid smallint Identifies the remote server

remoteusername varchar(30) null User’s login name on remote server

suid int Local server user ID

status smallint Bitmap of options

Indexes

Unique clustered index on remoteserverid, remoteusername

Reference Manual: Tables


System Tables PUBLIC 97
1.54 sysresourcelimits

Applies to master database only. sysresourcelimits contains a row for each resource limit defined by the
SAP ASE server. Resource limits specify the maximum amount of server resources that can be used by an SAP
ASE login or an application to execute a query, query batch, or transaction.

Columns

The columns for sysresourcelimits are:

Name Datatype Description

name varchar(30) Login name


null

appname varchar(30) Application name


null

rangeid smallint id column from systimeranges

limitid smallint id column from spt_limit_types

enforced tinyint Subset of the enforced column from spt_limit_types:

● 1 = prior to execution
● 2 = during execution
● 3 = both

action tinyint Action to take on a violation:

● 1 = issue warning
● 2 = abort query batch
● 3 = abort transaction
● 4 = kill session

limitvalue int Value of limit

scope tinyint Scope of user limit (a bitmap indicating one or more of the following):

● 1 = query
● 2 = query batch
● 4 = transaction

spare tinyint Reserved

Reference Manual: Tables


98 PUBLIC System Tables
Indexes

Clustered index on name, appname

1.55 sysroles

Applies to all databases. sysroles maps server role IDs to local role IDs.

When a database permission is granted to a role, if an entry for the role does not exist in sysroles, the SAP
ASE server adds an entry to sysroles to map the local role ID (lrid) to the server-wide role ID (srid) in
syssrvroles.

Columns

The columns for sysroles are:

Name Datatype Description

id int Server role ID (srid)

lrid int Local role ID

type smallint Unused

status int Unused

Indexes

Unique clustered index on lrid

Reference Manual: Tables


System Tables PUBLIC 99
1.56 syssecmechs

Applies to master database only. syssecmechs contains information about the security services supported by
each security mechanism that is available to the SAP ASE server. syssecmechs is not created during
installation, rather, it is built dynamically when queried by a user.

Columns

The columns for syssecmechs are:

Name Datatype Description

sec_mech_name varchar( Name of the security mechanism; for example, “NT LANMANAGER”
30)

available_ser varchar( Name of the security service supported by the security mechanism; for example, “uni­
vice 30) fied login”

1.57 syssegments

Applies to all databases. syssegments contains one row for each segment (named collection of disk pieces).
In a newly created database, the entries are: segment 0 (system) for system tables; segment 2 (logsegment)
for the transaction log; and segment 1 (default) for other objects. Segment 3 includes information about
imrslogsegment.

Columns

The columns for syssegments are:

Name Datatype Description

segment smallint Segment number

name sysname Segment name

status smallint null Indicates which segment is the default segment

Reference Manual: Tables


100 PUBLIC System Tables
1.58 sysservers

Applies to master database only. sysservers contains one row for each remote SAP ASE server, Backup
Server, or Open Server on which this SAP ASE server can execute remote procedure calls.

Columns

The columns for sysservers are:

Name Datatype Description

srvid smallint ID number (for local use only) of the remote server.

srvstatus smallint Bitmap of options.

srvstatus unsigned int Bitmap of options.


2

srvstat2 unsigned int Bitmap of server options.

srvname varchar(30) Server name.

srvnetnam varchar (255) Interfaces file name for the server.


e

srvclass smallint null Server category defined by the class parameter of sp_addserver.

srvsecmec varchar(30) Security mechanism.


h null

srvcost smallint null Provides the network cost in milliseconds for accessing a server over a network. Used
only by the SAP ASE query optimizer for evaluating the cost of a query when access­
ing a proxy table, the default is set to 1,000 ms.

srvprinci varchar(255) Specifies the Kerberos principal name for the server. Default value is NULL.
pal null

The bit representations for the srvstatus column are:

Decimal Hex Status

0 0x0 Timeouts are enabled

1 0x1 Timeouts are disabled

2 0x2 Network password encryption is enabled

Reference Manual: Tables


System Tables PUBLIC 101
Decimal Hex Status

4 0x4 Remote server is read-only

64 0x40 Use message confidentiality

128 0x80 Use message integrity

256 0x100 Mutual authentication

The bit representations for the srvstatus2 column are:

Decimal Hex Status

1 0x01 Supports fully qualified table names

2 0x02 Reserved for future use

The server categories for the srvclass column are:

srvclass Server category

0 Local server

1 sql_server class server

3 direct_connect class server

4 DB2 class server

6 sds class server

7 SAP ASE class server

8 Adaptive Server Anywhere class server

9 ASIQ class server

Indexes

● Unique clustered index on srvid


● Nonclustered index on srvname

Reference Manual: Tables


102 PUBLIC System Tables
1.59 syssequences

(SQLScript only) Stores the parameter settings for a sequence.

Columns

The columns for syssequences are:

Name Datatype Description

id int Object ID of the sequence

startwith bigint Initial value in the sequence

minval bigint Minimum value to which the sequence can be set

maxval bigint Maximum value to which the sequence can be set

increment bigint Value by which the sequence is incremented

cache smallinit The cache size setting if the cache flag is set

status int Internal system status information

1.60 syssessions

Applies to master database only. syssessions is used only when SAP ASE is configured for failover in a high
availability system. syssessions contains one row for each client that connects to the SAP ASE server with
the failover property. Clients that have an entry in syssessions during failover are moved to the secondary
companion. Clients that do not have an entry in syssessions are dropped during failover. Clients that have an
entry in syssessions during failback are moved to the primary companion. Clients that do not have an entry
in syssessions during failback are dropped.

Reference Manual: Tables


System Tables PUBLIC 103
Columns

The columns for syssessions are:

Name Datatype Description

sys_id smallint Unique identity of companion node

ses_id int Unique identity of each client session

state tinyint Describes whether the session is active or inactive

spare tinyint Reserved for future use

status smallint Reserved for future use

dbid smallint Reserved for future use

name varchar(30) Same as client’s login name as specified in syslogins


null

nodeid tinyint Reserved for future use (not available for cluster environments)
null

instancei tinyint ID of the instance (available only for cluster environments)


d

ses_data image null Reserved for future use

1.61 sysslices

Applies to all databases. sysslices contains one row for each slice (page chain) of a sliced table. sysslices
is used only during the SAP ASE upgrade process. After the upgrade is complete, all the data is removed.

 Note

In versions of SAP ASE earlier than 15.0 syspartitions stored partition-related information. This has
been renamed to sysslices for SAP ASE 15.0, and later; syspartitions now refers to the catalog that
tracks all partition-related data in the SAP ASE server.

Reference Manual: Tables


104 PUBLIC System Tables
Columns

The columns for sysslices are:

Name Datatype Description

state smallint Internal information about the state of the partition

id int Object ID of the partitioned table

partitionid int Partition ID number

firstpage int Page number of the partition’s first page

controlpage int Page number of the partition’s control page

spare binary(32) Reserved

Indexes

Unique clustered index on id, partitionid

1.62 syssrvroles

Applies to master database only. syssrvroles contains a row for each system or user-defined role.

Columns

The columns for syssrvroles are:

Name Datatype Description

srid int Server role ID

name varchar(30) Name of the role

password varbinary(128) Password for the role (encrypted) and readable only by a user with sso_role
null

pwdate datetime null Date the password was last changed

Reference Manual: Tables


System Tables PUBLIC 105
Name Datatype Description

status smallint null Bitmap for role status.

logincount smallint null Number of failed login attempts; reset to 0 by a successful login

locksuid int null The user who locked the role.

lockreason int null The reason why a role was locked.

lockdate datetime null The date and time a role was locked.

The bit representations for the status column are:

Decimal Hex Status

2 0x2 Role is locked

4 0x4 Role is expired

8 0x8 Role has exclusive activation role with another role

16 0x10 Role is granted child roles

Indexes

Unique clustered index on srid

1.63 sysstatistics

Applies to all databases. sysstatistics contains one or more rows for each indexed column on a user table
and for each partition. May also contain rows for unindexed column.

Columns

The columns for sysstatistics are:

Name Datatype Description

statid smallint Reserved

Reference Manual: Tables


106 PUBLIC System Tables
Name Datatype Description

id int Object ID of table

sequence int Sequence number if multiple rows are required for this set of statistics

moddate datetime Date this row was last modified

formatid tinyint Type of statistics represented by this row

usedcount tinyint Number of fields c0 to c79 used in this row

colidarray varbinary(1 An ordered list of column IDs


00)

c0...c79 varbinary(2 Statistical data


55)

indid smallint Index ID of partition

ststatus smallint Status bits for this statistics row; possible values vary according to the type of row.

partitioni int Partition ID


d

spare2 int For future use

spare3 int For future use

Indexes

Unique clustered index csysstatistics on id, indid, partitionid, statid, colidarray, formatid,
sequence

Reference Manual: Tables


System Tables PUBLIC 107
1.64 systabstats

Applies to all databases. systabstats contains one row for each clustered index, one row for each
nonclustered index, one row for each table that has no clustered index, and one row for each partition.

Columns

The columns for systabstats are:

Name Datatype Description

indid smallint ● 0 = if a table


● 1 = if a clustered index on an allpages-locked table
● >1 = if a nonclustered index or a clustered index on a data-only-locked table

systabstats does not maintain statistics on text or image objects (255)

id int ID of table to which index belongs

activesta smallint Reserved


tid

indexheig smallint Height of the index; maintained if indid is greater than 1


ht

leafcnt unsigned Number of leaf pages in the index; maintained if indid is greater than 1
int

pagecnt unsigned Number of pages in the table or index


int

rowcnt float Number of rows in the table; maintained for indid of 0 or 1

forwrowcn float Number of forwarded rows; maintained for of 0 or 1


t

delrowcnt float Number of deleted rows

dpagecrcn float Number of extent I/Os that need to be performed to read the entire table
t

ipagecrcn float Number of extent I/Os that need to be performed to read the entire leaf level of a nonclus­
t tered index

drowcrcnt float Number of page I/Os that need to be performed to read an entire table

Reference Manual: Tables


108 PUBLIC System Tables
Name Datatype Description

oamapgcnt int Number of OAM pages for the table, plus the number of allocation pages that store informa­
tion about the table

extent0pg int Count of pages that are on the same extent as the allocation page
cnt

datarowsi float Average size of the data row


ze

leafrowsi float Average size of a leaf row for nonclustered indexes and clustered indexes data-only-locked ta­
ze bles

status int Internal system status information.

plljoinde int The degree of parallelism used for a nested loop join operation, plljoindegree is the par­
gree allel scan degree of the table (whose systabstats has this field) that is the inner table in a
nested loop join.

rslastoam int Last OAM page visited by a reorg reclaim_space or reorg compact command

rslastpag int Last data or leaf page visited by a reorg reclaim_space or reorg compact com­
e mand

frlastoam int Last OAM page visited by the reorg forwarded_rows command

frlastpag int Last data page visited by the reorg forwarded_rows command
e

conopt_th smallint Concurrency optimization threshold


ld

plldegree smallint Maximum degree of parallelism possible on table or index for data manipulation languages
(DMLs). A value of 0 (zero) indicates a nonexistent maximum; the query processor config-
ures maximum degree of parallelism.

emptypgcn unsigned Number of empty pages in extents allocated to the table or index
t int

partition int Partition ID


id

warmcache unsigned
pgcnt int

statmodda datetime Last time the row was flushed to disk


te

Reference Manual: Tables


System Tables PUBLIC 109
Name Datatype Description

unusedpgc unsigned Number of unused pages


nt int

oampagecn unsigned Number of allocation pages listed in the object allocation map
t int

pioclmdat real
a

pioclmind real
ex

piocsmdat real
a

piocsmind real
ex

spare2 float Reserved

Reserved

spare4 float Reserved

Reserved

spare5 int Spare field for alignment

The status bit for systabstats is:

Decimal Hex Status

1 0x1 Statistics are the result of upgrade (not update statistics)

Indexes

Unique clustered index on id, indid, partitionid

Reference Manual: Tables


110 PUBLIC System Tables
1.65 systhresholds

Applies to all databases. systhresholds contains one row for each threshold defined for the database.

Columns

The columns for systhresholds are:

Name Datatype Description

segment smallint Segment number for which free space is being monitored.

free_spa unsigned Size of threshold, in logical pages.


ce int

status smallint Bit 1 equals 1 for the log segment’s last-chance threshold, 0 for all other thresholds.

proc_nam varchar(255 Name of the procedure that is executed when the number of unused pages on segment
e ) falls below free_space.

suid int null The server user ID of the user who added the threshold or modified it most recently.

currauth varbinary(2 A bitmask that indicates which roles were active for suid at the time the threshold was
55) null added or most recently modified. When the threshold is crossed, proc_name executes
with this set of roles, less any that have been deactivated since the threshold was added
or last modified.

The possible bitmasks you might see, individually or in combination, in the currauth column.

Decimal Hex Description

1 0x1 sa_role

2 0x2 sso_role

4 0x4 oper_role

8 0x8 sybase_ts_role

16 0x10 sybase_ts_role

32 0x20 navigator _ole

128 0x80 replication_role

256 0x100 dtm_tm_role

Reference Manual: Tables


System Tables PUBLIC 111
Decimal Hex Description

1024 0x400 ha_role

2048 0x800 mon_role

4096 0x1000 js_admin_role

16384 0x4000 messaging_role

32768 0x8000 web_services

To find out what role ID is associated with the bitmask output in currauth in your SAP ASE server, perform the
following select statement:

1> select (c.number - 1) as role_id,role_name(c.number - 1) as role_name


2> from systhresholds ,master.dbo.spt_values c
3> where convert(tinyint,substring(isnull(currauth,0x1), c.low,1)) &
4> c.high != 0
5> and c.type = "P"
6> and c.number <= 1024
7> and c.number >0
8> and role_name(c.number - 1) is not null
9> go

The SAP ASE server returns something similar to the following:

role_id role_name
----------- ------------------------------
0 sa_role
1 sso_role
2 oper_role
3 sybase_ts_role
4 navigator_role
7 dtm_tm_role
10 mon_role
11 js_admin_role
12 messaging_role
13 js_client_role

Reference Manual: Tables


112 PUBLIC System Tables
1.66 systimeranges

Applies to master database only. systimeranges stores named time ranges, which are used by the SAP ASE
server to control when a resource limit is active.

Columns

The columns for systimeranges are:

Name Datatype Description

name varchar(25 Unique name of the time range.


5)

id smallint Unique identifier for the time range. 1 represents the “at all times” limit.

startday tinyint Day of week (1 – 7) for the beginning of the range. Monday = 1, Sunday = 7.

endday tinyint Day of week (1 – 7) for the end of the range. Monday = 1, Sunday = 7.

starttim varchar(10 Time of day for the beginning of the range.


e )

endtime varchar(10 Time of day for the end of the range.


)

Indexes

Clustered index on id

1.67 systransactions

Applies to master database only. systransactions contains information about SAP ASE transactions, but it
is not a normal table. Portions of the table are built dynamically when queried by a user, while other portions

Reference Manual: Tables


System Tables PUBLIC 113
are stored in the master database. Updates to the dynamically built columns of systransactions are not
allowed.

 Note

Because of this change in the datatypes for the Cluster Edition, SAP strongly recommends that you archive
and truncate audit tables before you upgrade. This reduces the likelihood of a failed upgrade because of
insufficient space in the sybsecurity database.

Columns

The columns for systransactions are:

Name Datatype Description

xactkey binary(14) Unique SAP ASE transaction key

starttime datetime Date the transaction started

failover int Value indicating the transaction failover


state. Valid values are:

● 0 – Resident Tx
● 1 – Failed-over Tx
● 2 – Tx by Failover-Conn

type int Value indicating the type of


transaction. Valid values are:

● 1 – Local
● 3 – External
● 98 – Remote
● 99 – Dtx_State

coordinator int Value indicating the coordination


method or protocol. Valid values are:

● 0 – None
● 1 – Syb2PC
● 2 – ASTC
● 3 – XA
● 4 – DTC

state int Value indicating the current state of the


transaction.

Reference Manual: Tables


114 PUBLIC System Tables
Name Datatype Description

connection int Value indicating the connection state.


The connection values and states
are:

● 1 – Attached
● 2 – Detached

status int Internal transaction status flag

status2 int Additional internal transaction status


flags

spid smallint Server process ID, or 0 if the process is


detached
int for the Cluster Edition

masterdbid smallint Starting database of the transaction

loid int Lock owner ID

namelen smallint Length of xactname

xactname varchar(255) null Transaction name or <XID>

srvname varchar(30) null Name of the remote server (null for


local servers)

nodeid tinyint null Reserved for future use (not available


for cluster environments)

instanceid tinyint ID of the instance (available only for


cluster environments)

The values for the state clumn are:

state Value Transaction State

1 Begun

2 Done Command

3 Done

4 Prepared

5 In Command

6 In Abort Cmd

7 Committed

Reference Manual: Tables


System Tables PUBLIC 115
state Value Transaction State

8 In Post Commit

9 In Abort Tran

10 In Abort Savept

65537 Begun-Detached

65538 Done Cmd-Detached

65539 Done-Detached

65540 Prepared-Detached

65548 Heur Committed

65549 Heur Rolledback

1.68 systypes

Applies to all databases. systypes contains one row for each system-supplied and user-defined datatype.
Domains (defined by rules) and defaults are given, if they exist.

You cannot alter the rows that describe system-supplied datatypes.

Columns

The columns for systypes are:

Name Datatype Description

uid int User ID of datatype creator

usertype smallint User type ID

variable bit 1 if datatype is of variable length; 0 otherwise

allownulls bit Indicates whether nulls are allowed for this datatype

type tinyint Physical storage datatype

length int Physical length of datatype

Reference Manual: Tables


116 PUBLIC System Tables
Name Datatype Description

tdefault int ID of system procedure that generates default for this datatype

domain int ID of system procedure that contains integrity checks for this datatype

name varchar(255) Datatype name

printfmt varchar(255) Reserved


null

prec tinyint null Number of significant digits

scale tinyint null Number of digits to the right of the decimal point

ident tinyint null 1 if column has the IDENTITY property; 0 if it does not

hierarchy tinyint null Precedence of the datatype in mixed-mode arithmetic

xtypeid int null The internal class ID

xdbid int null The dbid where a class is installed:

● -1 = the system database


● -2 = the current database

accessrule int null The object ID of the access rule in sysprocedures

This table lists each system-supplied datatype’s name, hierarchy, type (not necessarily unique), and
usertype (unique). The datatypes are ordered by hierarchy. In mixed-mode arithmetic, the datatype with
the lowest hierarchy takes precedence:

Name Hierarchy Type Usertype

floatn 1 109 14

float 2 62 8

datetimn 3 111 15

datetime 4 61 12

real 5 59 23

numericn 6 108 28

numeric 7 63 10

decimaln 8 106 27

Reference Manual: Tables


System Tables PUBLIC 117
Name Hierarchy Type Usertype

decimal 9 55 26

moneyn 10 110 17

money 11 60 11

smallmoney 12 122 21

smalldatetime 13 58 22

intn 14 38 13

uintn 15 68 47

bigint 16 191 43

ubigint 17 67 46

int 18 56 7

uint 19 66 45

smallint 20 52 6

usmallint 21 65 44

tinyint 22 48 5

bit 23 50 16

univarchar 24 155 35

unichar 25 135 34

unitext 26 174 36

varchar 27 39 2

sysname 27 39 18

nvarchar 27 39 25

longsysname 27 39 42

char 28 47 1

nchar 28 47 24

varbinary 29 37 4

Reference Manual: Tables


118 PUBLIC System Tables
Name Hierarchy Type Usertype

timestamp 29 37 80

binary 30 45 3

text 31 35 19

image 32 34 20

date 33 49 37

time 34 51 38

daten 35 123 39

timen 36 147 40

extended type 99 36 -1

Datatypes with names ending with 'n' are internal, nullable datatypes. When you define a column with a nullable
datatype (for example, datetime null), SAP ASE converts it to the internal nullable form of the datatype (for
example, datetimn). You cannot define a column with these internal nullable datatypes when creating a table.
For example:

create table t1 (c1 intn)


go
Msg 2715, Level 16, State 2:
Server 'ASE', Line 1:
Can't find type 'intn'

Indexes

● Unique clustered index on name


● Unique nonclustered index on usertype

1.69 sysusages

Applies to master database only. sysusages contains one row for each disk allocation piece assigned to a
database. Each database contains a specified number of database (logical) page numbers.

The create database command checks sysdevices and sysusages to find available disk allocation
pieces. One or more contiguous disk allocation pieces are assigned to the database, and the mapping is
recorded in sysusages.

See System Tables That Manage Space Allocation in the System Administration Guide: Volume 2.

Reference Manual: Tables


System Tables PUBLIC 119
 Note

In SAP ASE version 15.0 and later, the device identification number is stored in the vdevno column and not
as part of the vstart column. As a consequence, you may need to modify scripts and stored procedures
that determine the device identification number based on the earlier schema.

Columns

The columns for sysusages are:

Name Datatype Description

dbid smallint Database ID

segmap int Bitmap of possible segment assignments

lstart unsigned int First database (logical) page number

size unsigned int Number of contiguous database (logical) pages

vstart int Starting virtual page number

location smallint The location of the archive database segment where the physically contig­
uous block of pages resides.

In the location column, a value of 5 and 6 means the location is in the


database dump, transaction log dump, or their stripes, and a value of 7 or
8 means that the location is in the modified pages section. A value of 4 is
used to fill the gaps for pages that are not physically available.

unreservedpgs unsigned int Free space not part of an allocated extent

crdate datetime null Creation date

vdevno int Device identification number

Indexes

● Unique clustered index on dbid, lstart


● Unique nonclustered index on vdevno, vstart

Reference Manual: Tables


120 PUBLIC System Tables
1.70 sysusermessages

Applies to all databases. sysusermessages contains one row for each user-defined message that can be
returned by the SAP ASE server.

Columns

The columns for sysusermessages are:

Name Datatype Description

error int Unique error number. Must be 20,000 or higher.

uid int Server user ID (suser_id) of the message creator.

descript varchar(102 User-defined message with optional placeholders for parameters.


ion 4)

langid smallint Language ID for this message; null for us_english.


null

dlevel smallint Stores the with_log bit, which is used to call the appropriate routine to log a message.
null

Indexes

● Clustered index on error


● Unique nonclustered index on error, langid

1.71 sysusers

Applies to all databases. sysusers contains one row for each user allowed in the database, and one row for
each group or role.

On the SAP ASE distribution media, master..sysusers contains some initial users:

● dbo – with an suid of 1 and uid of 1.


● guest – with an suid of -1 and uid of 2.
The user guest provides a mechanism for giving users not explicitly listed in sysusers access to the
database with a restricted set of permissions. The guest entry in master means any user with an account
on the SAP ASE server (that is, with an entry in syslogins) can access master.

Reference Manual: Tables


System Tables PUBLIC 121
● public – with an suid of -2 and uid of 0.
The user public refers to all users. The keyword public is used with the grant and revoke commands
to signify that permission is being given to or taken away from all users.

In addition, both system-defined and user-defined roles are listed in sysusers.

Columns

The columns for sysusers are:

Name Datatype Description

suid int Server user ID, copied from syslogins.

uid int User ID, unique in this database, is used for granting and revoking permissions. User ID 1 is
“dbo”.

gid int Group ID to which this user belongs. If uid = gid, this entry defines a group. Negative val­
ues may be used for user IDs (uid). Every suid associated with a group or a role in
sysusers is set to -2 (INVALID_SUID).

name sysname User or group name, unique in this database.

enviro varchar(255) Reserved.


n null

user_s smallint Indicates the user is resolved as another user. A value of:
tatus
● 1 – indicates that the system administrator issued sp_modifyuser
<user_name>, 'resolve as', <other_user_name> against this user.
● 0 – indicates the user is not resolved as another user.

Indexes

● Nonunique clustered index with “allow duplicate rows” on suid


● Unique nonclustered index on name
● Unique nonclustered index on uid

Reference Manual: Tables


122 PUBLIC System Tables
1.72 sysversions

(In-memory databases only) Stores old row versions created for version storage. sysversions exists only in
on-disk MVCC temporary databases.

Columns

The columns for sysversions are:

Name Datatype Description

vdbid smallint Database ID of the database containing the table

vobjid int Object ID of the table

vptnid int Partition ID of the table

vrid bigint Row ID of the row

Indexes

● Unique clustered index on <jid>


● Unique nonclustered index on <jname>

1.73 sysxtypes

Applies to all databases. sysxtypes contains one row for each extended, Java-SQL datatype.

See Java in Adaptive Server Enterprise for more information about Java-SQL classes and datatypes.

Columns

The columns for sysxtypes are:

Name Datatype Description

xtid int System-generated ID for the extended type.

Reference Manual: Tables


System Tables PUBLIC 123
Name Datatype Description

xtutid smallint Unused.

xtstatus int Internal status information. Unused.

xtmetatype int Unused.

xtcontainer int The ID of the JAR file containing the class. Can be NULL.

xtname varchar(255) The name of the extended type.


null

xtsource text null Source code for the extended type. Unused.

xtbinaryinr varbinary(255) Object code for the extended type. For Java classes, it contains the class file. Data
ow null is stored in-row up to a length of 255 bytes.

xtbinaryoff image Object code for the extended type. For Java classes, it contains the class file. Data
row is stored off-row as an image column.

Indexes

● Unique clustered index on xtid


● Unique nonclustered index on xtname

Reference Manual: Tables


124 PUBLIC System Tables
2 dbccdb Tables

In addition to the standard system tables included in all databases, the dbcc management database, dbccdb,
contains seven tables that define inputs to and outputs from dbcc checkstorage. It also contains at least
two workspaces.

2.1 dbccdb Workspaces


Workspaces are special tables in dbccdb that store intermediate results of the dbcc checkstorage
operation.

Workspaces differ from worktables in that they:

● Are preallocated contiguously to improve I/O performance


● Are persistent
● Do not reside in the tempdb database

When you create dbccdb, two workspaces are created automatically. They are preallocated as follows:

● Scan workspace – contains a row for each page of the target database. The allocation is approximately 1
percent of the database size. Each row consists of a single binary(18) column.
● Text workspace – contains a row for each table in the target database that contains text or image
columns. The size of this table depends on the design of the target database, but it is usually significantly
smaller than the scan workspace. Each row consists of a single binary(22) column.

If either allocation is larger than needed by dbcc checkstorage, the operation uses only what is required.
The allocation does not change. If the text workspace allocation is too small, dbcc checkstorage reports
this, recommends a new size, and continues checking; however, not all text chains are checked. If the scan
workspace allocation is too small, the dbcc checkstorage operation fails immediately.

You must have at least one scan and one text workspace, but you may create as many as you need. While in
use, the workspaces are locked so that only one dbcc checkstorage operation can use them at any given
time. You can execute concurrent dbcc checkstorage operations by supplying each one with a separate
scan and text workspace.

For more information on creating workspaces, see the System Administration Guide and the Reference Manual.

Ideally, you should access workspaces only through dbcc checkstorage, but this is not a requirement. dbcc
checkstorage exclusively locks the workspaces it uses, and the content of the workspaces is regenerated
with each execution of dbcc checkstorage. The workspaces do not contain any secure data.

 Note

While the contents of the workspaces are accessible through SQL, no interpretation of the binary values is
available. Access through SQL might return data from different dbcc checks mixed together. The presence
of a row in these tables does not ensure that it contains valid data. dbcc tracks valid rows only during
execution. That information is lost when the operation completes.

Reference Manual: Tables


dbccdb Tables PUBLIC 125
Most of the update activity in dbccdb is performed in the text and scan workspaces. The workspaces are
preallocated, and only one dbcc checkstorage operation can use the workspaces at any given time, so the
workspaces are less susceptible to corruption than most user tables. Corruption in a workspace can cause the
dbcc checkstorage operation to fail or behave erratically. If this happens, drop and re-create the corrupt
workspace.

Checks of databases using different workspaces can proceed simultaneously, but the performance of each
operation might be degraded as it competes for disk throughput.

To delete a workspace, in dbccdb, enter:

drop table <workspace_name>

2.2 dbccdb Log

The results of each dbcc checkstorage operation are recorded in the dbccdb log. Updates to the text and
scan workspaces are not recorded there.

You must size the dbccdb log to handle updates to the tables. The log requirement is related to the number of
tables and indexes in the target database. It is not related to the target database size.

To minimize the log requirement and the recovery time, use the truncate log on checkpoint option with
dbccdb.

2.3 dbcc_config

The dbcc_config table describes the currently executing or last completed dbcc checkstorage operation.

dbcc_config defines:

● The location of resources dedicated to the dbcc checkstorage operation


● Resource usage limits for the dbcc checkstorage operation

The primary key is the combination of dbid and type_code

Columns

The columns for dbcc_config are:

Column name Datatype Description

dbid smallint Matches the dbid from a row in sysdatabases.

Reference Manual: Tables


126 PUBLIC dbccdb Tables
Column name Datatype Description

type_code int Matches the type_code from a row in dbcc_types. Valid values are 1 – 9.

value int null Specifies the value of the item identified by type_code. Can be null only if the
value of stringvalue is not null.

stringvalue varchar(255) Specifies the value of the item identified by type_code. Can be null only if the
null value of value is not null.

Related Information

dbcc_types [page 133]

2.4 dbcc_counters

The dbcc_counters table stores the results of the analysis performed by dbcc checkstorage. Counters are
maintained for each database, table, index, partition, device, and invocation of dbcc.

The primary key is the combination of dbid, id, indid, partitionid, devid, opid, and type_code

Columns

The columns for dbcc_counters are:

Column name Datatype Description

dbid smallint Identifies the target database.

id int Identifies the table. The value is derived from sysindexes and sysobjects.

indid smallint Identifies the index. The value is derived from sysindexes.

partitionid int Identifies the defined object-page affinity. The value is derived from sysindexes and
syspartitions.

devid int Identifies the disk device. The value is derived from sysdevices.

opid smallint Identifies the dbcc operation that was performed.

Reference Manual: Tables


dbccdb Tables PUBLIC 127
Column name Datatype Description

type_code int Matches the type_code column of a row in dbcc_types. Valid values are 5000
through 5024.

value real Matches the appropriate type_name for the given type_code as described in
null dbcc_types.

Related Information

dbcc_types [page 133]

2.5 dbcc_exclusions

The dbcc_exclusions table stores the faults, tables or a combination of them that should be excluded from
processing by checkverify and fault reporting via sp_dbcc_faultreport.

The primary key is the combination of dbid, fault_type, and table_name

Columns

The columns for dbcc_exclusions are:

Column name Datatype Description

dbid smallint Identifies the target database.

type tinyint Exclusion type code. The valid values are:

● 1 – faults
● 2 – tables
● 3 – combo

fault_type int null The fault type to be excluded when type is 1 (faults) or 3 (combo). See
\dbcc_types for more information.

table_name varchar(30) The table name to be excluded when type is 2 (faults) or 3 (combo). See
null dbcc_types for more information.

Reference Manual: Tables


128 PUBLIC dbccdb Tables
Related Information

dbcc_types [page 133]

2.6 dbcc_fault_params

The dbcc_fault_params table provides additional descriptive information for a fault entered in the
dbcc_faults table.

Each “value” column (intvalue, realvalue, binaryvalue, stringvalue, and datevalue) can contain a
null value. At least one must be not null. If more than one of these columns contains a value other than null, the
columns provide different representations of the same value.

The primary key is the combination of dbid, opid, faultid, and type_code

Columns

The columns for dbcc_fault_params are:

Column name Datatype Description

dbid smallint Identifies the target database.

opid smallint Identifies the dbcc operation that was performed.

faultid int Identifies the fault ID.

type_code int Defines the interpretation of the value, which is provided by the “value” col­
umns. Valid values are 1000 – 1009. They are described in dbcc_types.

intvalue int null Specifies the integer value.

realvalue real null Specifies the real value.

binaryvalue varbinary(255) Specifies the binary value.


null

stringvalue varchar(255) Specifies the string value.


null

datevalue datetime null Specifies the date value.

Reference Manual: Tables


dbccdb Tables PUBLIC 129
Related Information

dbcc_types [page 133]

2.7 dbcc_faults

The dbcc_faults table provides a description of each fault detected by dbcc checkstorage.

The primary key is the combination of dbid, id, indid, partitionid, devid, opid, faultid, and
type_code

Columns

The columns for dbcc_faults are:

Column name Datatype Description

dbid smallint Identifies the target database.

id smallint Identifies the table. The value is derived from sysindexes and sysobjects.

indid smallint Identifies the index. The value is derived from sysindexes.

partitionid int Identifies the partition. The value is derived from sysindexes and
syspartitions. Counters are maintained for page ranges, so “partition” refers to
the defined object-page affinity, rather than the actual object page chain.

devid int Identifies the disk device. The value is derived from sysdevices.

opid smallint Identifies the dbcc operation that was performed.

faultid int Provides a unique sequence number assigned to each fault recorded for the operation.

type_code int Identifies the type of fault. Valid values are 100000 – 100032. They are described in
dbcc_types.

status int Classifies the fault. For more information, see the System Administration Guide.

The values for the status column are:

Value Description

0 Soft fault, possibly transient.

Reference Manual: Tables


130 PUBLIC dbccdb Tables
Value Description

1 Hard fault.

2 Soft fault that proved to be transient.

3 Soft fault upgraded to a hard fault.

5 Repaired hard fault.

7 Repaired upgraded hard fault.

9 Hard fault not repairable.

11 Soft fault upgraded to a hard fault and not repairable.

16 Soft fault, object dropped (inaccessible).

17 Hard fault, object dropped (inaccessible).

18 Transient soft fault, object dropped (inaccessible).

19 Soft fault upgraded to a hard fault and object dropped (inaccessible).

Related Information

dbcc_types [page 133]

2.8 dbcc_operation_log

The dbcc_operation_log table records the use of the dbcc checkstorage operations.

Summary results are recorded in the dbcc_operation_results table.

The primary key is the combination of dbid, opid, and optype

Reference Manual: Tables


dbccdb Tables PUBLIC 131
Columns

The columns for dbcc_operation_log are:

Column Name Datatype Description

dbid smallint Identifies the target database.

opid smallint Identifies the sequence number of the dbcc checkstorage operation. opid is
an automatically incrementing number, unique for each dbid and finish pair.

optype smallint The valid value is valid for optype is 2 = checkstorage.

suid int Identifies the user executing the command.

start datetime Identifies when the operation started.

finish datetime Identifies when the operation ended.


null

seq smallint The sequence number for a checkverify operation.


null

id int null The object ID, if used, for a checkverify operation.

maxseq smallint The maximum sequence used by checkverify for a checkstorage operation.
null

2.9 dbcc_operation_results

The dbcc_operation_results table provides additional descriptive information for an operation recorded in
the dbcc_operation_log table.

Each “value” column (intvalue, realvalue, binaryvalue, stringvalue, and datevalue) may contain a
null value. At least one must be not null. If more than one of these columns contains a value other than null, the
columns provide different representations of the same value.

Results of the dbcc checkstorage operations include the number of:

● Hard faults found


● Soft faults found
● Operations stopped due to a hard error

The primary key is the combination of dbid, opid, optype, and type_code

Reference Manual: Tables


132 PUBLIC dbccdb Tables
Columns

The columns for dbcc_operation_results are:

Column Name Datatype Description

dbid smallint Identifies the target database.

opid smallint Identifies the dbcc operation ID.

optype smallint Identifies the dbcc operation type.

type_code int Defines the dbcc operation type. Valid values are 1000 – 1007. They are de­
scribed in dbcc_types.

intvalue int null Specifies the integer value.

realvalue real null Specifies the real value.

binaryvalue varbinary(255) Specifies the binary value.


null

stringvalue varchar(255) Specifies the string value.


null

datevalue datetime null Specifies the date value.

seq smallint null The sequence number for a checkverify operation.

Related Information

dbcc_types [page 133]

2.10 dbcc_types

Provides the definitions of the datatypes used by dbcc checkstorage.

This table is not actually used by the dbcc stored procedures. It is provided to facilitate the use of the other
tables in dbccdb, and to document the semantics of the datatypes. Type codes for operation configuration,
analysis data reported, fault classification, and fault report parameters are included. If you create your own
stored procedures for generating reports, you can use the values listed in the type_name column as report
headings.

Reference Manual: Tables


dbccdb Tables PUBLIC 133
Columns

The columns for dbcc_types are:

type_code type_name Description

1 max worker (Optional) Specifies the maximum number of worker processes that can be
processes employed. This is also the maximum level of concurrent processing used. Min­
imum value is 1.

2 dbcc named cache Specifies the size (in kilobytes) of the cache used by dbcc checkstorage
and the name of that cache.

3 scan workspace Specifies the ID and name of the workspace to be used by the database scan.

4 text workspace Specifies the ID and name of the workspace to be used for text columns.

5 operation sequence Specifies the number that identifies the dbcc operation that was started
number most recently.

6 database name Specifies the name of the database in sysdatabases.

7 OAM count Specifies the percentage by which the OAM counts must vary before they can
threshold be considered to be an error.

8 IO error abort Specifies the number of I/O errors allowed on a disk before dbcc stops
checking the pages on that disk.

9 linkage error Specifies the number of linkage errors allowed before dbcc stops checking
abort the page chains of an object. Some kinds of page chain corruptions might re­
quire a check to be stopped with fewer linkage errors than other kinds of page
chain corruptions.

10 enable automatic The flag that enables or disables automatic expansion of workspaces when es­
workspace timated size exceeds the actual workspace size.
expansion

1000 hard fault count Specifies the number of persistent inconsistencies (hard faults) found during
the consistency check.

1001 soft fault count Specifies the number of suspect conditions (soft faults) found during the con­
sistency check.

1002 checks aborted Specifies the number of linkage checks that were stopped during the consis­
count tency check.

1007 text column count Specifies the number of non-null text/image column values found during
the consistency check.

Reference Manual: Tables


134 PUBLIC dbccdb Tables
type_code type_name Description

5000 bytes data Specifies (in bytes) the amount of user data stored in the partition being
checked.

5001 bytes used Specifies (in bytes) the amount of storage used to record the data in the parti­
tion being checked. The difference between bytes used and bytes
data shows the amount of overhead needed to store or index the data.

5002 pages used Specifies the number of pages linked to the object being checked that are ac­
tually used to hold the object.

5003 pages reserved Specifies the number of pages that are reserved for the object being checked,
but that are not allocated for use by that object. The difference between (8 *
extents used) and (pages used + pages reserved) shows the to­
tal uncommitted deallocations and pages incorrectly allocated.

5004 pages overhead Specifies the number of pages used for the overhead functions such as OAM
pages or index statistics.

5005 extents used Specifies the number of extents allocated to the object in the partition being
checked. For object 99 (allocation pages), this value is the number of extents
that are not allocated to a valid object. Object 99 contains the storage that is
not allocated to other objects.

5006 count Specifies the number of component items (rows or keys) found on any page in
the part of the object being checked.

5007 max count Specifies the maximum number of component items found on any page in the
part of the object being checked.

5008 max size Specifies the maximum size of any component item found on any page in the
part of the object being checked.

5009 max level Specifies the maximum number of levels in an index. This datatype is not ap­
plicable to tables.

5010 pages misallocated Specifies the number of pages that are allocated to the object, but are not ini­
tialized correctly. This is a fault counter.

5011 io errors Specifies the number of I/O errors encountered. This datatype is a fault coun­
ter.

5012 page format errors Specifies the number of page format errors reported. This datatype is a fault
counter.

5013 pages not Specifies the number of pages linked to the object through its chain, but not
allocated allocated. This datatype is a fault counter.

Reference Manual: Tables


dbccdb Tables PUBLIC 135
type_code type_name Description

5014 pages not Specifies the number of pages allocated to the object, but not reached
referenced through its chains. This datatype is a fault counter.

5015 overflow pages Specifies the number of overflow pages encountered. This datatype is applica­
ble only to clustered indexes.

5016 page gaps Specifies the number of pages not linked to the next page in ascending se­
quence. This number indicates the amount of table fragmentation.

5017 page extent Specifies the number of pages that are linked to pages outside of their own ex­
crosses tent. As the number of page extent crosses increases relative to
pages used or extents used, the effectiveness of large I/O buffers de­
creases.

5018 page extent gaps Specifies the number of page extent crosses where the subsequent extent is
not the next extent in ascending sequence. Maximal I/O performance on a full
scan is achieved when the number of page extent gaps is minimized. A
seek or full disk rotation is likely for each gap.

5019 ws buffer crosses Specifies the number of pages that are linked outside of their workspace buf­
fer cache during the dbcc checkstorage operation. This information can
be used to size the cache, which provides high performance without wasting
resources.

5020 deleted rows Number of deleted rows in the object.

5021 forwarded rows Number of forwarded rows in the object.

5022 empty pages Number of pages allocated but not containing data.

5023 pages with garbage Number of pages that could benefit from garbage collection.

5024 non-contiguous Number of bytes of noncontiguous free space.


free space

10000 page id Specifies the location in the database of the page that was being checked
when the fault was detected. All localized faults include this parameter.

10001 page header Specifies the hexadecimal representation of the header of the page that was
being checked when the fault was detected. This information is useful for eval­
uating soft faults and for determining if the page has been updated since it
was checked. The server truncates trailing zeros.

10002 text column id Specifies an 8-byte hexadecimal value that gives the page, row, and column of
the reference to a text chain that had a fault. The server truncates trailing ze­
ros.

Reference Manual: Tables


136 PUBLIC dbccdb Tables
type_code type_name Description

10003 object id Specifies a 9-byte hexadecimal value that provides the object id (table),
the partition id (partition of the table) if applicable, and the index id
(index) of the page or allocation being checked.

For example, if a page is expected to belong to table T1 because it is reached


from T1’s chain, but is actually allocated to table T2, the object id for T1
is recorded, and the object id expected for T2 is recorded. The server
truncates trailing zeros.

10007 page id expected Specifies the page ID that is expected for the linked page when there is a dis­
crepancy between the page ID that is expected and the page ID that is actually
encountered.

For example, if you follow the chain from P1 to P2 when going forward, then,
when going backward, P1 is expected to come after P2. The value of page
id expected is P1, and the value of page id is P2. When the actual
value of P3 is encountered, it is recorded as page id actual.

10008 page id actual When there is a discrepancy between the page ID that is encountered and the
expected page ID, this value specifies the actual page ID that is encountered.
(See also, type_code 10007.)

For example, if you follow the chain from P1 to P2 when going forward, then,
when going backward, P1 is expected to come after P2. The value of page
id expected is P1, and the value of page id is P2. When the actual
value of P3 is encountered, it is recorded as page id actual.

10009 object id expected Specifies a 9-byte hexadecimal value that provides the expected object id (ta­
ble), the partition id (partition of the table) if applicable, and the index id (in­
dex) of the page or allocation being checked.

For example, if a page is expected to belong to table T1 because it is reached


from T1’s chain, but is actually allocated to table T2, the object id for T1
is recorded, and the object id expected for T2 is recorded. The server
truncates trailing zeros.

10010 data-only locked Indicates the 44-byte page header for the page where the fault is located.
data page header

10011 data-only locked Indicates the 44-byte page header for the page where the fault is located.
b-tree leaf page
header

10012 data-only locked Indicates the 44-byte page header for the page where the fault is located.
b-tree header

20001 rerun checkstorage Reruns checkstorage.


reco

Reference Manual: Tables


dbccdb Tables PUBLIC 137
type_code type_name Description

20002 indexalloc reco Runs dbcc indexalloc with the fix option.

20003 tablealloc reco Runs dbcc tablealloc with the fix option.

20004 checktable Runs dbcc tablealloc with the fix_spacebits option.


fix_spacebits reco

20005 checktable reco Runs dbcc checktable.

20006 reorg reco Runs the reorg command

20007 no action reco This fault is harmless; no action is required.

30000 drop object reco Drops the object and re-creates it.

30001 bulk copy reco Bulk copies the data out and back in.

40000 check logs for Checks your operating system logs and corrects all reported hardware prob­
hardware failure lems on disks containing an SAP device.
reco

40001 checkalloc reco Runs dbcc checkalloc with the fix option.

40002 reload db reco Reloads the database from a clean backup.

100000 IO error Indicates that part of the identified page could not be fetched from the device.
This is usually caused by a failure of the operating system or the hardware.

100001 page id error Indicates that the identifying ID (page number) recorded on the page is not
valid. This might be the result of a page being written to or read from the
wrong disk location, corruption of a page either before or as it is being written,
or allocation of a page without subsequent initialization of that page.

100002 page free offset Indicates that the end of data on a page is not valid. This event affects inser­
error tions and updates on this page. It might affect some access to the data on this
page.

100003 page object id Indicates that the page appears to be allocated to some other table than the
error one expected. If this is a persistent fault, it might be the consequence of ei­
ther:

● An incorrect page allocation, which might only result in the effective loss
of this page to subsequent allocation, or
● A corrupted page chain, which might prevent access to the data in the
corrupted chain.

100004 timestamp error Indicates that the page has a timestamp that is later than the database time­
stamp. This error can result in failure to recover when changes are made to
this page.

Reference Manual: Tables


138 PUBLIC dbccdb Tables
type_code type_name Description

100005 wrong dbid error Indicates that the database ID dbid is stored on the database allocation pa­
ges. When this ID is incorrect, the allocation page is corrupt and all the indi­
cated allocations are suspect.

100006 wrong object error Indicates that the page allocation is inconsistent. The page appears to belong
to one table or index, but it is recorded as being allocated to some other table
or index in the allocation page. This error differs from page object id
error in that the allocation is inconsistent, but the consequences are similar.

100007 extent id error Indicates that an allocation was found for a table or index that is unknown to
dbcc checkstorage. Typically, this results in the inability to use the allo­
cated storage.

100008 fixed format error Indicates that the page incorrectly indicates that it contains only rows of a sin­
gle fixed length. dbcc checkstorage reports this error. dbcc
checktable does not report it, but does repair it.

100009 row format error Indicates that at least one row on the page is incorrectly formatted. This error
might cause loss of access to some or all the data on this page.

100010 row offset error Indicates that at least one row on the page is not located at the expected page
offset. This error might cause loss of access to some or all of the data on this
page.

100011 text pointer error Indicates that the location of the table row that points to the corrupted text
or image data. This information might be useful for correcting the problem.

100012 wrong type error Indicates that the page has the wrong format. For example, a data page was
found in an index or a text/image column.

100013 non-OAM error This error is a special case of wrong type error. It is not reported as a
separate condition in the current release.

100014 reused page error Indicates that a page is reached by more than one chain and that the chains
belong to different objects. This error indicates illegal sharing of a page
through corrupt page chain linkages. Access to data in either or both tables
might be affected.

100015 page loop error Indicates that a page is reached a second time while following the page chain
for an object, which indicates a loop in the page chain. A loop can result in a
session hanging indefinitely while accessing data in that object.

100016 OAM ring error Indicates that a page is allocated but not reached by the page chains for the
object.Typically, this results in the inability to use the allocated storage.

100017 OAM ring error Indicates that the OAM page ring linkages are corrupted. This might not affect
access to the data for this object, but it might affect insertions, deletions, and
updates to that data.

Reference Manual: Tables


dbccdb Tables PUBLIC 139
type_code type_name Description

100018 missing OAM error Indicates that dbcc checkstorage found an allocation for the object that
was not recorded in the OAM. This error indicates a corruption that might af­
fect future allocations of storage, but probably does not affect access to the
presently stored data.

100019 extra OAM error Indicates that an allocation for this object was recorded in the OAM, but it was
not verified in the allocation page. This error indicates a corruption that might
affect future allocations of storage, but probably does not affect access to the
presently stored data.

100020 check aborted Indicates that dbcc checkstorage stopped checking the table or index.
error To prevent multiple fault reports, the check operation on a single chain might
be stopped without reporting this error. When an object contains several page
chains, failure of the check operation for one chain does not prevent the con­
tinuation of the check operation on the other chains unless a fault threshold is
exceeded.

100021 chain end error Indicates that the end of the chain is corrupted. As a soft fault, it might indi­
cate only that the chain was extended or truncated by more than a few pages
during the dbcc checkstorage operation.

100022 chain start error Indicates that the start of a chain is corrupted or is not at the expected loca­
tion. If this is a persistent fault, access to data stored in the object is probably
affected.

100023 used count error Indicates an inconsistency between the count of the pages used that is re­
corded in the OAM page and the count of the pages used that is determined
by examining the allocation pages.

100024 unused count error Indicates an inconsistency between the count of the pages reserved but un­
used that is recorded in the OAM page and the count of the pages reserved
but unused that is determined by examining the allocation pages.

100025 row count error Indicates an inconsistency between the row count recorded in the OAM page
and the row count determined by dbcc checkstorage.

100026 serialloc error Indicates a violation of the serial allocation rules applied to log allocations.

100027 text root error Indicates a violation of the format of the root page of a text or image index.
This check is similar to the root page checks performed by dbcc
textalloc.

100028 page misplaced Indicates that pages of this object were not found where they were expected
to be from examination of the system tables. This usually indicates that
sp_placeobject was used sometime in the past. In the
dbcc_counters table, all misplaced pages are counted together, rather
than being reported by device and partition.

Reference Manual: Tables


140 PUBLIC dbccdb Tables
type_code type_name Description

100029 page header error Indicates an internal inconsistency in the page’s header other than the kind
described by the other type codes. The severity of this error depends on the
type of page and the inconsistency found.

100030 page format error Indicates an internal inconsistency in the page’s body other than the kind de­
scribed by the other type codes. The severity of this error depends on the type
of page and the inconsistency found.

100031 page not allocated Indicates that dbcc checkstorage reached an unallocated page by fol­
lowing a page chain. This condition might affect access to data stored in this
object.

100032 page linkage error Indicates that dbcc checkstorage detected a fault with either the next or
previous linkage of an interior page of a chain. If this is a persistent fault, ac­
cess to data stored in the object is probably affected.

100033 non-contiguous Indicates an invalid or inconsistent value for the noncontiguous free space on
free-space error the page.

100034 insert free space Indicates an invalid or inconsistent value for the contiguous free space on the
error page.

100035 spacebits mismatch Indicates an inconsistency in the page fullness indicator.

100036 deleted row count Indicates an invalid or inconsistent value for the deleted row count on the
error page.

100037 forwarded rows Indicates an inconsistency between the forwarded rows indicator and the
error number of forwarded rows on the page.

100038 page header type Indicates that a page header format indicator set incorrectly.
error

100039 incorrect extent Extent OAM page reference is set incorrectly


oampage

100040 OAM page format Non-first OAM page has non-zero first OAM page-specific data.
error

 Note

To allow for future additions to dbcc_types, some type_code numbers are not used at this time.

Reference Manual: Tables


dbccdb Tables PUBLIC 141
3 Monitoring Tables

The Attributes column in monitoring and diagnostic (MDA) tables provides information about how the SAP ASE
server manages the column.

An Attribute value of:

● “Counter” indicates value in this column may wrap, or become zero and start incrementing again, because
the value exceeds the maximum possible value of 231. The SAP ASE server resets the monitor counters
when you run sp_sysmon without the noclear option. In SAP ASE version 15.0.1 and later, the noclear
option is, by default, included as a sp_sysmon parameter. In versions earlier than 15.0.1, you must specify
noclear to prevent the SAP ASE server from resetting the monitor counters.
Resetting monitor counters may skew your results if you run sp_sysmon on the same SAP ASE server on
which you are using the monitoring tables.
● “Null” indicates the column value may be null.
● “Reset” indicates the column is reset when you run sp_sysmon in a manner that causes it to clear the
monitoring counters (see Performance and Tuning Series: Monitoring Adaptive Server with sp_sysmon).

3.1 monBucketPool

Collects information about allocation of memory for memory pools managed by the bucket pool manager.

Columns

Name Datatype Attributes Description

InstanceID tinyint None The Server Instance Identifier (cluster only).

BucketPoolName varchar(3 None Name of the bucket pool.


0)

NumBuckets int None Number of buckets in a bucket pool instance

NumInstances int None Number of instances in each bucket pool

Flags int For internal use.

NumSets int None Number of sets in each bucket pool instance. Additional sets
are added when the pool grows. Sets can be removed by
shrinking the pool.

Reference Manual: Tables


142 PUBLIC Monitoring Tables
Name Datatype Attributes Description

BucketPoolSize int None Size of the bucket pool (in bytes).

BucketPoolUsed int None Size of the used portion of the bucket pool (in bytes).

BucketPoolUsedMax int None Largest value of <BucketPoolUsed> since the last time the
counters were reset.

BucketPoolOverhead int None Overhead from fragment headers.

BucketPoolAllocs int None Total number of allocation requests made to this bucket pool
(whether successful or not).

BucketPoolRetries int None Number of times the allocation was retried due to engine con­
tention, or bucket or instance being empty.

BucketPoolFailures int None Number of times the allocation failed and returned no mem­
ory to the caller.

BucketPoolStats int None For internal use.

BucketPoolAllocSta int None For internal use.


ts

BucketPoolOversize int None For internal use.

BucketPoolAutotune int Autotune on and off status bit.

BucketPoolMinFragS int Size of the smallest fragment available in the global bucket.
ize

BucketPoolMaxFragS int Size of the largest fragment available in the global bucket.
ize

BucketSize int None Size of the bucket (in bytes).

BucketEmpty int None Number of times the bucket was empty and the allocation
was made from the global bucket instead.

BucketAllocs int None Number of allocations made from the bucket since the last
time the counters were reset.

BucketFrees int None Number of fragments freed or added to the bucket since the
last time the server reset the counters.

BucketAllocsMissed int None Number of times the allocation had to be retried because an­
other engine allocated the intended fragment first.

BucketSeed int None Number of fragments initially added to each newly-created


bucket.

Reference Manual: Tables


Monitoring Tables PUBLIC 143
Name Datatype Attributes Description

BucketNonEmptyInst int Number of instances of a bucket having at least one free frag­
s ment to allocate.

InstanceEmpty int None Number of times the allocation could not be made by the pre­
ferred instance for the current engine, and the engine had to
try the next instance.

InstanceNumFrags int None Current number of free fragments in the instance.

InstanceHWM int None Highest value recorded for <Numfrags> since the counters
were last reset.

InstanceLWM int None Lowest value recorded for <Numfrags> since the counters
were last reset.

InstanceAllocs int None Number of allocations made from the instance since the
server last rest the counters.

InstanceFrees int None Number of fragments freed or added to the instance since the
last time the server rest the counters.

InstanceFragSkippe int Number of fragments skipped in an instance of the global


d bucket before finding the right fragment for allocation.

3.2 monCachedObject

Stores statistics for all tables, partitions, and indexes with pages currently in a data cache.

You need not enable any configuration parameters for this monitoring table to collect data.

Columns

Name Datatype Attributes Description

CacheID int None Unique identifier for the cache.

InstanceID tinyint None (Cluster environments only) ID of an instance in a shared-disk clus­


ter.

DBID int None Unique identifier for the database.

Reference Manual: Tables


144 PUBLIC Monitoring Tables
Name Datatype Attributes Description

IndexID int None Unique identifier for the index.

PartitionID int None Unique identifier for the partition. This is the same value as
ObjectID for nonpartitioned objects.

CachedKB int None Number of kilobytes of the cache the object is occupying.

CacheName varchar( None Name of the cache.


30)

ObjectID int None Unique identifier for the object. Null if the descriptor for the object
has been removed from the server’s metadata cache. In this situa­
tion, you can determine the object identifier by querying
syspartitions in the specified database for the value of
PartitionID.

DBName varchar( None Name of the database (NULL if the descriptor for the object was re­
30) moved from the server’s metadata cache).

OwnerUserID int None Unique identifier for the object owner.

OwnerName varchar( None Name of the object owner (null if the descriptor for the object was
30) removed from the server’s metadata cache).

ObjectName varchar( None Name of the object (null if the descriptor for the object was removed
30) from the server’s metadata cache).

PartitionName varchar( None Name of the object partition (null if the descriptor for the object was
30) removed from the server’s metadata cache).

ObjectType varchar( None Object type (null if the object is no longer open).
30)

TotalSizeKB int Counter Partition size, in kilobytes.

ProcessesAccess int Counter Number of processes currently accessing pages for this object in
ing the data cache.

3.3 monCachePool

Stores statistics for all pools allocated for all data caches.

Enable the enable monitoring configuration parameter for this monitoring table to collect data.

Reference Manual: Tables


Monitoring Tables PUBLIC 145
Columns

Name Datatype Attributes Description

CacheID int None Unique identifier for the cache

InstanceID tinyint None (Cluster environments only) ID of an instance in a shared-disk cluster.

IOBufferSize int None Size (in bytes) of the I/O buffer for the pool

AllocatedKB int None Number of bytes allocated for the pool

PhysicalRead int Counter Number of buffers read from disk into the pool
s

Stalls int Counter, re­ Number of times I/O operations were delayed because no clean buffers
set were available in the wash area for this data cache

PagesTouched int Counter Number of pages that are currently being used within the pool

PagesRead int Counter Number of pages read into the pool

BuffersToMRU int Counter Number of buffers fetched and replaced in the most recently used por­
tion of the pool

BuffersToLRU int Counter Number of buffers fetched and replaced in the least recently used por­
tion of the pool: fetch and discard

CacheName varchar(3 None Name of the cache


0)

LogicalReads int Counter Number of buffers read from the pool

PhysicalWrit int Counter Number of write operations performed for data in this pool (one write
es operation may include multiple pages)

APFReads int Counter Number of asynchronous prefetch (APF) read operations that loaded pa­
ges into this pool

APFPercentag int None The configured asynchronous prefetch limit for this pool
e

WashSize int None The wash size, in kilobytes, for a memory pool

Reference Manual: Tables


146 PUBLIC Monitoring Tables
3.4 monCachedProcedures

Stores statistics for all stored procedures, triggers, and compiled plans currently stored in the procedure
cache.

Enable the enable monitoring and statement statistics active configuration parameters for this
monitoring table to collect data.

Columns

Name Datatype Attributes Description

ObjectID int None Unique identifier for the procedure

InstanceID tinyint None (Cluster environments only) ID of an instance in a shared-disk


cluster.

OwnerUID int None Unique identifier for the object’s owner

DBID int None Unique identifier for the database in which the object exists

PlanID int None Unique identifier for the query plan for the object in the proce­
dure cache

MemUsageKB int None Number of kilobytes of memory used by the procedure

CompileDate datetime None Date that the procedure was compiled

ObjectName varchar(3 None Name of the procedure


0)

ObjectType varchar(3 None Type of procedure (for example, stored procedure or trigger)
2)

OwnerName varchar(3 None Name of the object owner


0)

DBName varchar(3 None Name of the database


0)

RequestCnt int Counter Number of times this procedure was requested from cache

TempdbRemapCnt long Counter Number of times this procedure was remapped for the tem­
porary database’s ID.

Reference Manual: Tables


Monitoring Tables PUBLIC 147
Name Datatype Attributes Description

AvgTempdbRemapTime int None Average time (in milliseconds) spent remapping the tempo­
rary databases’s ID.

ExecutionCount int Counter Number of times the SAP ASE server executed the stored
procedure plan or tree since it was cached

CPUTime int Counter Total number of milliseconds of CPU time used

ExecutionTime int Counter Total amount of elapsed time, in milliseconds, the SAP ASE
server spent executing the stored procedure plan or tree

PhysicalReads int Counter Number of physical reads performed

LogicalReads int Counter Number of pages read

PhysicalWrites int Counter Number of physical writes performed

PagesWritten int Counter Number of pages written

SnapCodegenTime int Counter Total number of microseconds of CPU time used by the stored
procedure plan's compiled queries code generation for simpli­
fied native access plans.

SnapJITTime int Counter Total number of microseconds of CPU time used by the stored
procedure plan's just-in-time compilation for simplified native
access plans.

SnapExecutionTime int Counter Total accumulated amount of elapsed time, in microseconds,


that the stored procedure plan's for compiled queries (simpli­
fied native access plans) has executed across multiple proce­
dure executions.

SnapExecutionCount int Counter Number of times the stored procedure plan's compiled quer­
ies has been executed since it was compiled.

Active varchar None Indicates if the plan for this procedure is up-to-date with the
schema of tables that it accesses.

DMLStatementCount int None Number of SQL DML statements executed against HANA.

NonpushdownCount int None Number of SQL DML statements not fully pushed down to
HANA.

Reference Manual: Tables


148 PUBLIC Monitoring Tables
3.5 monCachedStatement

Stores detailed monitoring information about the statement cache.

The monCachedStatement table includes information about resources used during the previous executions of
a statement, how frequently a statement is executed, the settings in effect for a particular plan, the number of
concurrent uses of a statement, and so on. This information can be helpful when troubleshooting, and when
deciding which statements to retain in the cache.

 Note

Machines that use multiple CPUs with different clock frequencies may report inaccurate elapsed time.

● The columns in monCachedStatement allow two attributes: “counter” if the column has a counter value,
and “reset” if you can reset the column using sp_sysmon.
● Enable the enable monitoring, statement cache size, and enable stmt cache monitoring
configuration parameters for this monitoring table to collect data.
● Versions of SAP ASE earlier than 16.0 updated metrics in monCachedStatement when the statement
finished. However, when SAP ASE 16.0 and later executes a statement cache, it periodically updates these
values while it executes a query:
○ TotalLIO
○ MaxLIO
○ TotalPIO
○ MaxPIO
○ TotalCPUTime
○ MaxCPUTime
○ TotalElapsedTime
○ MaxElapsedTime
● Increments the UseCount column when statement begin execution. The value for UseCount is:

(number of completed queries) + (number of ongoing queries)

The CurrentUsageCount column includes the number of active queries for a statement. The number of
completed executions for a statement is:

(Value of UseCount) – (value of CurrentUsageCount)

● Increments the value for columns that describe maximums (for example, MaxCPUTime) for currently
executing statements if the metric described by the column (in this case, CpuTime) exceeds the maximum
value used during an intermediate update. Maximum columns reflect up-to-date metrics (including
metrics for active queries), which helps determine if a currently executing query is consuming resources
that exceed previous or normal usage.

Other metrics (for example, MinLIO and AvgLIO) are updated after query executions are finished.

Reference Manual: Tables


Monitoring Tables PUBLIC 149
Columns

Names Datatypes Attributes Description

InstanceID tinyint None (Cluster environments only) ID of an instance in ashared-disk


cluster.

SSQLID int None Unique identifier for each cached statement. This value is
treated as a primary key for monCachedStatement, and is
used in functions.

show_cached_text uses SSQLID to refer to individual


statements in the cache.

Hashkey int None Hash value of the SQL text of the cached statement. A hash
key is generated based on a statement’s text, and can be used
as an approximate key for searching other monitoring tables.

StmtType tinyint None

UserID int None User ID of the user who initiated the statement that has been
cached.

SUserID int None Server ID of the user who initiated the cached statement.

DBID smallint None Database ID of the database from which the statement was
cached.

UseCount int None Number of times the statement was accessed after it was
cached.

StatementSize int None Size of the cached statement, in bytes.

MinPlanSizeKB int None Size of the plan when it is not in use, in kilobytes.

MaxPlanSizeKB int None Size of the plan when it is in use, in kilobytes.

CurrentUsageCount int None Number of concurrent users of the cached statement. Attrib­
ute is counter.

MaxUsageCount int None Maximum number of times the cached statement’s text was
simultaneously accessed. Attribute is counter.

Reference Manual: Tables


150 PUBLIC Monitoring Tables
Names Datatypes Attributes Description

NumRecompilesSchem int None Number of times the statement was recompiled due to
aChanges schema changes. Running update statistics on a ta­
ble may result in changes to the best plan. This change is
treated as a minor schema change.

Recompiling a statement many times indicates that it is not


effective to cache this particular statement, and that you may
want to delete the statement from the statement cache to
make space for some other, more stable, statement. Attribute
is counter.

NumRecompilesPlanF int None Number of times the cached statement was recompiled be­
lushes cause a plan was not found in the cache. Attribute is counter.

HasAutoParams tinyint None “true” if the statement has any parameterized literals, “false”
if it does not.

ParallelDegree tinyint None Degree of parallelism used by the query that is stored for this
statement

QuotedIdentifier tinyint None Specifies whether the plan compiled with set
quoted_identifier is enabled.

TransactionIsolati tinyint None Transaction isolation level for which the statement was com­
onLevel piled.

TransactionMode tinyint None Specifies whether “chained transaction mode” is enabled for
the statement.

SAAuthorization tinyint None Specifies whether the plan was compiled with sa_role authori­
zation.

SystemCatalogUpdat tinyint None Specifies whether allow catalog updates was ena­
e bled when the plan was compiled.

MetricsCount int None Number of times metrics were aggregated for this statement.

MinPIO int None Maximum physical I/Os that occurred during any execution of
this statement.

MaxPIO int None Maximum physical I/Os that occurred during any execution of
this statement.

AvgPIO int None Average number of physical I/Os that occurred during execu­
tion of this statement.

MinLIO int None Minimum logical I/Os that occurred during any execution of
this statement.

Reference Manual: Tables


Monitoring Tables PUBLIC 151
Names Datatypes Attributes Description

MaxLIO int None Maximum logical I/Os that occurred during any one execution
of this statement.

AvgLIO int None Average number of logical I/Os that occurred during execu­
tion of this statement.

MinCpuTime int None The minimum amount of CPU time, in milliseconds, con­
sumed by any execution of this statement.

MaxCpuTime int None The maximum amount of CPU time, in milliseconds, con­
sumed by any execution of this statement.

AvgCpuTime int None The average amount of CPU time, in milliseconds, consumed
by this statement.

MinElapsedTime int None Minimum elapsed execution time for this statement.

MaxElapsedTime int None Maximum elapsed execution time for this statement.

AvgElapsedTime int None Average elapsed execution time for this statement.

AvgScanRows int None Average number of scanned rows read per execution

MaxScanRows int None Maximum number of scanned rows read per execution

AvgQualifyingReadR int None Average number of qualifying data rows per read command
ows execution

MaxQualifyingReadR int None Maximum number of qualifying data rows per query execution
ows

AvgQualifyingWrite int None Average number of qualifying data rows per query execution
Rows

MaxQualifyingWrite int None Maximum number of qualifying data rows per query execution
Rows

LockWaits int None Total number of lock waits

LockWaitTime int None Total amount of time, in milliseconds, spent waiting for locks

SortCount int None Total number of sort operations

SortSpilledCount int None Total number of sort operations spilled to disk

TotalSortTime int None Total amount of time, in milliseconds, spent in sorts

MaxSortTime int None Maximum amount of time, in milliseconds, spent in a sort

Reference Manual: Tables


152 PUBLIC Monitoring Tables
Names Datatypes Attributes Description

DBName varchar(3 None Name of database from which the statement was cached. At­
0) tribute is null.

CachedDate datetime None Timestamp of the date and time when the statement was first
cached.

LastUsedDate datetime None Timestamp of the date and time when the cached statement
was last used. Use this information with CachedDate to de­
termine how frequently this statement is used, and whether it
is helpful to have it cached.

LastRecompiledDate datetime None Date when the statement was last recompiled, because of
schema changes or because the statement was not found in
the statement cache.

OptimizationGoal varchar(3 None The optimization goal used to optimize this statement.
0)

OptimizerLevel varchar(3 None The optimizer level used to optimize this statement.
0)

ParallelDegreeRedu int None Indicates if an insufficient number of worker threads were


ced available to execute the query with the full degree of parallel­
ism the query plan calls for, but the query did execute with
some parallelism.

ParallelPlanRanSer int None Indicates if an insufficient number of worker threads were


ial available to execute the query in parallel so the query was exe­
cuted serially.

WorkerThreadDefici int None Indicates that the cumulative total number of worker threads
t were unavailable to execute this query since it was added to
the statement cache.

TotalLIO bigint None Cumulative logical I/O

TotalPIO bigint None Cumulative physical I/O

TotalCpuTime bigint None Cumulative elapsed time, in seconds, this statement spent
using CPU

TotalElapsedTime bigint None Cumulative amount of time, in seconds spent executing this
statement

Reference Manual: Tables


Monitoring Tables PUBLIC 153
3.6 monCIPC

Applies to cluster environments only. Provides summary figures for total messaging within the cluster, as
viewed from the current instance or all instances.

One row is returned in the monCIPC table for each instance in the cluster, if the system view is set to cluster;
otherwise, a single row is returned for the instance on which the query is executed.

You need not enable any configuration parameters for this monitoring table to collect data.

Columns

Name Datatype Attributes Description

InstanceID tinyint None ID of the instance within the cluster

ReceiveCount int Counter, reset Number of messages received by this instance

TransmitCount int Counter, reset Number of messages sent by this instance

Multicast int Counter, reset Number of messages sent that were addressed to all other in­
stances in the cluster

Synchronous int Counter, reset Number of those messages sent synchronously

ReceiveSoftError int Counter, reset Number of recoverable errors received on this instance

ReceiveHardError int Counter, reset Number of unrecoverable errors received on this instance

TransmitSoftError int Counter, reset Number of recoverable transmit errors on this instance

TransmitHardError int Counter, reset Number of unrecoverable transmit errors on this instance

Retransmits int Counter, reset Number of retransmissions performed by this instance

Switches int Counter, reset Number of switches between the primary interconnect net­
work and the secondary interconnect network

FailedSwitches int Counter, reset Number of attempts to switch between primary and secon­
dary interconnect networks that failed

RegularBuffersInUs int None Number of buffers from the CIPC regular buffer pool currently
e allocated.

FreeRegularBuffers int None Number of buffers available in the CIPC regular buffer pool.

Reference Manual: Tables


154 PUBLIC Monitoring Tables
Name Datatype Attributes Description

MaxRegularBuffersI int None Maximum number of buffers from the CIPC regular buffer
nUse pool allocated at any time since the server was started.

LargeBuffersInUse int None Number of buffers from the CIPC large buffer pool currently
allocated.

FreeLargeBuffers int None Number of buffers available in the CIPC large buffer pool.

MaxLargeBuffersInU int None Maximum number of buffers from the CIPC large buffer pool
se allocated at any time since the server was started.

3.7 monCIPCEndpoints

Applies to cluster environments only. Provides a detailed summary, giving traffic data for each subsystem
within the cluster instance.

One row is returned for each logical endpoint in the instance. If the system view is set to cluster, a set of rows
is returned for each node in the cluster.

You need not enable any configuration parameters for this monitoring table to collect data.

Columns

Name Datatype Attributes Description

InstanceID tinyint None ID of the instance within the cluster

ReceiveCount int Counter, reset Number of messages received by this logical endpoint within
the cluster

TransmitCount int Counter, reset Number of messages sent by this logical endpoint within the
instance

ReceiveBytes int Counter, reset Number of bytes received by this logical endpoint within the
instance

TransmitBytes int Counter, reset Number of bytes sent by this logical endpoint within the in­
stance

ReceiveQ int Counter Current number of messages queued for this logical endpoint

Reference Manual: Tables


Monitoring Tables PUBLIC 155
Name Datatype Attributes Description

MaxReceiveQ int Counter Maximum number of messages ever observed queued for this
logical endpoint

DoneQ int None Current number of messages for this logical endpoint that
were processed and await further action

MaxDoneQ int None Maximum number of messages ever observed for this logical
endpoint, which have been processed and await further action

MaxRecvQTime real None Maximum time (in milliseconds) a message spends in the
queues of the current logical end point.

AvgRecvQTime real None Average time (in milliseconds) a message spends in the
queues of the current logical end point.

EndPoint varchar(3 None Name of CIPC endpoint


0)

3.8 monCIPCLinks

Applies to cluster environments only. Monitors the state of the links between instances in the cluster.

You need not enable any configuration parameters for this monitoring table to collect data.

Columns

Name Datatype Attributes Description

InstanceID tinyint None ID of the instance within the cluster.

LocalInterface varchar(3 None Name of the link’s local network endpoint. Same name that
0) appears in the hosts file for a server name.

RemoteInterface varchar(3 None Name of the link’s remote end point. Same name that appears
0) in the hosts file for a server name.

PassiveState varchar(1 None Latest state listed in the traffic on the link.
0)

PassiveStateAge int None Time since the PassiveState column was updated, in mil­
liseconds.

Reference Manual: Tables


156 PUBLIC Monitoring Tables
Name Datatype Attributes Description

ActiveState varchar(1 None Latest state used, as determined by active monitoring (when
0) no traffic was present on the link).

ActiveStateAge int None Time since the ActiveState column was updated, in milli­
seconds.

3.9 monCIPCMesh

Applies to cluster environments only. Gives summary figures for the mesh of connections, from the current
instance to all other instances in the cluster, on a per-instance basis.

One row is returned for each of the four connections to each of the other nodes in the cluster, up to the
maximum configured. If the system view is cluster, a set of rows for each instance active in the cluster is
returned.

You need not enable any configuration parameters for this monitoring table to collect data.

Columns

Name Datatype Attributes Description

InstanceID tinyint None ID of the instance within the cluster.

FarInstanceID tinyint None Instance number of the far-end instance in the cluster.

Received int Counter Number of messages received by this instance from the
FarInstanceID instance.

Dropped int Counter Number of messages from the FarInstanceID instance


that were dropped, due to a lack of resources.

Transmitted int Counter Number of messages transmitted to the FarInstanceID


instance.

Resent int Counter Number of messages re-sent to the FarInstanceID in­


stance.

Retry int Counter Number of packets retried to the FarInstanceID in­


stance.

Reference Manual: Tables


Monitoring Tables PUBLIC 157
Name Datatype Attributes Description

ControlRx int Counter Number of control messages received by the InstanceID


instance.

ControlTx int Counter Number of control messages sent by the InstanceID in­
stance for this mesh.

SendQ int Counter Current number of messages waiting to be sent to the


FarInstanceID instance for this mesh.

MaxSendQ int Counter Maximum number of packets in the send queue for this mesh
since the InstanceID instance was started.

SentQ int Counter Number of packets sent by the InstanceID instance to the
FarInstanceID instance that have not yet been acknowl­
edged by the FarInstanceID instance.

MaxSentQ int Counter Maximum number of messages sent, but notification of send­
ing is not yet processed.

MaxSendQTime real None Maximum time that has been required to process a message
in the send queue for this mesh. In milliseconds.

AvgSendQTime real None Average amount of time required to process a message in the
send queue for this mesh. In milliseconds.

Mesh varchar(3 None The channel name for the connection. One of:
0) ● Out of Band
● Message
● Large Message
● Direct memory access (DMA)

MinRTT int None Minimum round-trip delay observed for messages (applies
only to user datagram protocol (UDP) transport).

MaxRTT int None Maximum round trip delay observed for messages (applies
only to UDP transport).

AverageRTT int None Average round trip delay observed for messages (applies only
to UDP transport).

3.10 monCLMObjectActivity

Applies to cluster environments only. Collects cluster lock information.

monCLMObjectActivity tracks:

Reference Manual: Tables


158 PUBLIC Monitoring Tables
● Activity for objects only in the master and user databases.
● Physical lock activity at the partition level.

Cluster object locks for a database have an Object-PartitionID of 0.

Enable the enable monitoring configuration parameter for this monitoring table to collect data.

Columns

Column name Type Attributes Description

InstanceID tinyint None Instance ID.

DBID int None Database ID.

Object_PartitionID int None Identity of the object making the lock request.

LockRequests int Counter Number of cluster lock requests.

LocalMaster int Counter Number of times a lock request finds the current instance to
be the lock master.

One instance in the cluster becomes the “lock master.” When


an instance needs a cluster lock, it contacts the lock master
for the lock.

Waited int Counter Number of lock requests granted with contention at the re­
mote instance.

Granted int Counter Number of lock requests granted without contention at the
remote instance.

RWConflictWaited int Counter Number of lock requests that waited because of a read-write
conflict lock that was granted to a task at a remote instance.

AvgRWConflictWaitT real None Average amount of time spent performing the wait described
ime by RWConflictWaited.

MaxRWConflictWaitT real None Maximum amount of time spent performing the wait descri­
ime bed by RWConflictWaited.

WWConflictWaited int None Number of lock requests that waited because of a write-write
conflict lock that was granted to a task at a remote instance.

AvgWWConflictWaitT real None Average amount of time spent performing the wait described
ime by WWConflictWaited.

MaxWWConflictWaitT real None Maximum amount of time spent performing the wait descri­
ime bed in WWConflictWaited.

Reference Manual: Tables


Monitoring Tables PUBLIC 159
Column name Type Attributes Description

ClusterMsgWaits int Counter Number of waits due to cluster messaging.

AvgClusterMsgWaitT real None Average wait time due to cluster messaging.


ime

MaxClusterMsgWaitT real None Maximum wait time due to cluster messaging.


ime

DowngradeReqRecv int Counter Number of downgrade service requests received at the clus­
ter lock owner.

DowngradeReqRecvWi int Counter Number of the downgrade service requests received without
thNoBlocker any blocking task ownership at cluster lock owner.

ClusterDeadlock int Counter Number of deadlocks caused by multiple instances attempt­


ing to acquire the same cluster lock simultaneously.

LockType varchar(3 None Type of lock.


0)

3.11 monClusterCacheManager

Applies to cluster environments only. Stores diagnostic information about the cluster cache manager daemon
running on each instance. monClusterCacheManager reports cluster-wide information on a per-instance
basis.

You need not enable any configuration parameters for this monitoring table to collect data.

Columns

Name Datatype Attributes Description

InstanceID tinyint None ID of the instance within the cluster

RequestsQueued int Counter, reset Number of requests queued to the cluster cache manager
daemon

RequestsRequeued int Counter, reset Number of requests requeued to the cluster cache manager
daemon

Reference Manual: Tables


160 PUBLIC Monitoring Tables
Name Datatype Attributes Description

RequestsServiced int Counter, reset Number of requests serviced by the cluster cache manager
daemon

DiskWrites int Counter, reset Number of disk writes initiated by the cluster cache manager
daemon

SleepCount int Counter, reset Number of times the cluster cache manager daemon went to
sleep

DaemonName varchar None Name of the cluster cache manager daemon

TransfersInitiated int Counter, reset Number of transfers initiated by the cluster cache manager
daemon

Downgrades int Counter, reset Number of downgrades performed by the cluster cache man­
ager daemon

Releases int Counter, reset Number of releases performed by the cluster cache manager
daemon

AvgServiceTime real None Average time (in milliseconds) spent servicing a request

MaxQSize int None Maximum number of requests queued to the cluster cache
manager daemon at any time since the instance started

3.12 monCMSFailover

Applies to cluster environments only. Tracks the time at which the cluster membership service (CMS) detects
the failure, gets a new cluster view, resynchronizes the heartbeat, posts the failure event, and completes the
failure event. There is a row for each instance.

You need not enable any configuration parameters for this monitoring table to collect data.

Columns

Column name Type Attributes Description

InstanceID tinyint None Instance performing the failover.

FailedInstanceID varchar(9 None List of failed instance IDs, separated by commas.


6)

Reference Manual: Tables


Monitoring Tables PUBLIC 161
Column name Type Attributes Description

FailDetectTime datetime None Time when cluster failure is detected.

InitViewTime datetime None Time when initial cluster view is obtained.

FinalViewTime datetime None Time when final cluster view is obtained.

ResyncHBTime datetime None Time when cluster-wide heartbeat is resynchronized.

NotifyFailTime datetime None Time when failure event is posted.

EventdoneTime datetime None Time when last failure event is finished.

3.13 monDataCache

Stores statistics relating to SAP ASE data caches.

Enable the enable monitoring configuration parameter for this monitoring table to collect data.

Columns

Name Datatype Attributes Description

CacheID int None Unique identifier for the cache

InstanceID tinyint None (Cluster environments only) ID of an instance in a shared-disk


cluster.

RelaxedReplaceme int None Specifies whether the cache is using relaxed cache replace­
nt ment strategy

BufferPools int None Number of buffer pools within the cache

CacheSearches int Counter, reset Cache searches directed to the cache

PhysicalReads int Counter, reset Number of buffers read into the cache from disk

LogicalReads int Counter, reset Number of buffers retrieved from the cache

PhysicalWrites int Counter, reset Number of buffers written from the cache to disk

Reference Manual: Tables


162 PUBLIC Monitoring Tables
Name Datatype Attributes Description

Stalls int Counter, reset Number of times I/O operations were delayed because no
clean buffers were available in the wash area

CachePartitions smallint None Number of partitions currently configured for the cache

CacheName varchar( None Name of cache


30)

Status varchar( None Status of cache. One of:


30) ● Active
● Pending/Active
● Pending/Delete
● Update Cache
● Cache Create
● Cache Delete
● (Cluster Edition only) Cache Skip

Type varchar( None Type of cache. One of:


30) ● Default
● Mixed
● Mixed, HK Ignore
● Log Only
● In-Memory Storage

CacheSize int None Total size of cache, in kilobytes

ReplacementStrat varchar( None Cache replacement strategy


egy 30)

APFReads int Counter Number of asynchronous prefetch (APF) reads for this data
cache

Overhead int None Cache overhead

CASGrabs bigint None Number of times the cache spinlock was acquired

CASSpins bigint None Number of times the process spun, waiting for the cache spin­
lock

CASWaits bigint None Number of times process spun, waiting for the cache spinlock

Reference Manual: Tables


Monitoring Tables PUBLIC 163
3.14 monDBRecovery

Applies to cluster environments only. Contains rows from all instances in the cluster and contains rows for
every database that contributes to recovery.

You need not enable any configuration parameters for this monitoring table to collect data.

Columns

Column name Type Attributes Description

DBID int None Unique identifier for the database

InstanceID int None Instance that performed the recovery (applicable only to the
Cluster Edition)

MaxOpenXacts int None Maximum number of open transactions seen during recovery

MaxPFTSEntries int None Maximum number of PFTS entries seen during recovery

Buckets int None Number of buckets

LogBTotPages int None Number of log scan getpage requests during the log
boundary determination pass.

LogBTotAPFWaited int None Number of log scan getpage requests that found the
I/O in progress during the log boundary determination pass

LogBTotIO int None Number of log scan getpage requests with physical I/O
during the log boundary determination pass

AnlTotRec int None Total number of log records to be scanned by the recovery
process

AnlPhase1Recs int None Number of log records in phase 1 recovery process

AnlPhase1RedoRecs int None Number of log records to redo in phase 1 recovery

AnlPhase2Recs int None Number of log records in phase 2 recovery process

AnlPhase2RedoRecs int None Number of log records to redo in phase 2 recovery

AnlTotPages int None Number of log scan getpage requests during the analy­
sis process

AnlTotAPFWaited int None Number of log scan getpage requests that found the
I/O in progress during the analysis pass

Reference Manual: Tables


164 PUBLIC Monitoring Tables
Column name Type Attributes Description

AnlTotIO int None Number of log scan getpage requests with physical I/O
during the analysis pass

RedoOps int None Total operations considered for redo

RedoOpsNotRedonePF int None Operations that did not need redo (PFTS check)
TS

RedoOpsRedonePFTS int None Operations that might need redo (PFTS check)

RedoOpsRedoneTS int None Operations that needed redo (timestamp check)

RedoOpsNotRedoneTS int None Operations that did not need redo (timestamp check)

RedoLogTotPages int None Number of log scan getpage requests during the redo
pass

RedoLogTotAPFWaite int None Number of log scan getpage requests that found the
d I/O in progress during the redo pass

RedoLogTotIO int None Number of log scan getpage requests with physical I/O
during the redo pass

RedoRecTotPage int None Number of recovery pages getpage requests during


the redo pass

RedoRecTotAPFWaite int None Number of recovery pages getpage requests that


d found the I/O in progress during the redo pass

RedoRecTotIO int None Number of recovery pages getpage requests with


physical I/O in progress during the redo pass

UndoRecsUndone int None Number of log records undone

UndoLogTotPages int None Number of log scan getpage requests during the undo
pass

UndoLogTotAPFWaite int None Number of log scan getpage requests that found the
d I/O in progress during the undo pass

UndoLogTotIO int None Number of log scan getpage requests with physical I/O
during the undo pass

UndoRecTotPages int None Number of recovery pages getpage requests during


the undo pass

UndoRecTotAPFWaite int None Number of recovery pages getpage requests that


d found the I/O in progress during the undo pass

Reference Manual: Tables


Monitoring Tables PUBLIC 165
Column name Type Attributes Description

UndoRedTotIO int None Number of recovery pages getpage requests with


physical I/O during the undo pass

DBName varchar(3 None Name of the database


0)

FailedInstances int None ID of the failed instances (applicable only to the Cluster Edi­
tion)

Command varchar(3 None One of load database, load transaction, online


0) database, mount database, and start or failover com­
mands executed by the process that is running recovery

RecType varchar(3 None Type of recovery – one of server start, load


0) database, load transaction, or node failover

LogBStartTime datetime None Start time for the log boundaries determination pass

LogBEndTime datetime None End time for the log boundaries determination pass

AnlStartTime datetime None Start time of analysis pass

AnlEndTime datetime None End time of the analysis pass

RedoStartTime datetime None Start time of the redo pass

RedoEndTime datetime None End time of the redo pass

UndoStartTime datetime None Start time of the undo pass

UndoEndTime datetime None End time of the undo pass

3.15 monDBRecoveryLRTypes

Applies to cluster environments only. Tracks log records seen during recovery. Contains a row for each log
record type for which at least one log record was seen by recovery.

You need not enable any configuration parameters for this monitoring table to collect data.

monDBRecoveryLRTypes requires no parameters.

Reference Manual: Tables


166 PUBLIC Monitoring Tables
Columns

Column name Type Attributes Description

DBID int4 None Unique identifier for the database

InstanceID int1 None (Cluster environments only) Instance that performed the re­
covery

NumRecs int4 None Number of records seen during recovery, by type

LogRecType varchar(3 None Log record type


0)

3.16 monDeadLock

Provides information about deadlocks. Use deadlock pipe max messages to tune the maximum number of
messages returned.

monDeadLock is an historical monitoring table. See Performance and Tuning: Monitoring Tables.

Use sp_monitor 'deadlock' to check current deadlock options. The deadlock parameter provides a
number of reports based on monDeadLock, which are useful for analyzing the history of server deadlocks.

Enable the enable monitoring, deadlock pipe max messages, and deadlock pipe active
configuration parameters for this monitoring table to collect data.

Columns

Name Datatype Attributes Description

DeadlockID int None Unique identifier for the deadlock

VictimKPID int None Kernel process ID (kpid) of the victim process for the deadlock

InstanceID tinyint None ID of an instance in a shared-disk cluster.

HeldInstanceID tinyint None Instance ID of process holding the lock.

ResolveTime datetime None Time when the deadlock was resolved

ObjectDBID int None Unique database identifier for database where the object resides

Reference Manual: Tables


Monitoring Tables PUBLIC 167
Name Datatype Attributes Description

PageNumber int None Page number requested for the lock, if applicable

RowNumber int None Row number requested for the lock, if applicable

HeldFamilyID tinyint None spid of the parent process holding the lock

HeldSPID int None spid of process holding the lock

HeldKPID int None kpid of process holding the lock

HeldProcDBID int None Unique identifier for the database where the stored procedure
that caused the lock to be held resides, if applicable

HeldProcedureID int None Unique object identifier for the stored procedure that caused the
lock to be held, if applicable

HeldBatchID int None Identifier of the SQL batch executed by the process holding the
lock when the deadlock occurred

HeldContextID int None Unique context identifier for the process holding the lock when it
was blocked by another process (not when it acquired the lock)

HeldLineNumber int None Line number within the batch of the statement being executed by
the process holding the lock when it was blocked by another
process (not when it acquired the lock)

WaitFamilyID int None spid of the parent process waiting for the lock

WaitSPID int None spid of the process waiting for the lock

WaitKPID int None kpid of the process waiting for the lock

WaitTime int None Amount of time, in milliseconds, that the waiting process was
blocked before the deadlock was resolved

ObjectName varchar(3 None Name of the object


0)

HeldUserName varchar(3 None Name of the user for whom the lock is being held
0)

HeldApplName varchar(3 None Name of the application holding the lock


0)

HeldTranName varchar(2 None Name of the transaction in which the lock was acquired
55)

Reference Manual: Tables


168 PUBLIC Monitoring Tables
Name Datatype Attributes Description

HeldLockType varchar(2 None Type of lock being held


0)

HeldCommand varchar(3 None Category of process or command that the process was executing
0) when it was blocked

WaitUserName varchar(3 None Name of the user for whom the lock is being requested
0)

WaitLockType varchar(2 None Type of lock requested


0)

HeldSourceCodeI varchar(3 None For internal use only.


D 0)

WaitSourceCodeI varchar(3 None For internal use only.


D 0)

HeldClientApplN varchar(3 None Value for the <clientapplname> property set by the application
ame 0) holding the lock

HeldClientName varchar(3 None Value of the <clientname> property set by the application hold­
0) ing the lock

HeldClientHostN varchar(3 None Value for the <clienthostname> property set by the application
ame 0) holding the lock

HeldHostName varchar(3 None Name of the host machine on which the application that executed
0) the query holding the lock is running

HeldNumLocks int None Number of locks currently held by holding spid

HeldProcDBName varchar(3 None Name of the database in which the stored procedure was execut­
0) ing the blocking process at the time the deadlock occurred, if ap­
plicable

HeldProcedureNa varchar(3 None Name of the stored procedure the blocking process was execut­
me 0) ing at the time the deadlock occurred, if applicable

HeldStmtNumber int None Statement number in the SQL batch of the SQL statement hold­
ing the lock

ObjectDBName varchar(3 None Name of the database


0)

ObjectID int None Unique identifier for the object

Reference Manual: Tables


Monitoring Tables PUBLIC 169
Name Datatype Attributes Description

WaitApplName varchar(3 None Name of the application waiting for the lock
0)

WaitBatchID int None Identifier of the SQL batch executed by the process waiting for
the lock when the lock timeout occurred

WaitClientApplN varchar(3 None Value of the <clientapplname> property set by the application
ame 0) waiting for the lock

WaitClientHostN varchar(3 None Value of the <clienthostname> property set by the application
ame 0) waiting for the lock

WaitClientName varchar(3 None Value of the <clientname> property set by the application wait­
0) ing for the lock

WaitCommand varchar(3 None Category of process or command that the process was executing
0) when it was blocked and then timed out

WaitContextID int None Unique context identifier for the process waiting for the lock when
it was blocked by another process

WaitHostName varchar(3 None Name of the host running the process waiting for the lock.
0)

WaitLineNumber int None Line number of the SQL statement in the SQL batch or stored
procedure waiting for the lock

WaitProcDBID int None Unique identifier for the database in which the stored procedure
waiting for the lock resides, if applicable

WaitProcDBName varchar(3 None Name for the database where the stored procedure that is waiting
0) for the lock resides, if applicable

WaitProcedureID int None ID of the stored procedure waiting for the lock, if applicable

WaitProcedureNa varchar(3 None Name for the stored procedure waiting for the lock, if applicable
me 0)

WaitStmtNumber int None Line number in SQL batch waiting for the lock

WaitTranName varchar(2 None Name of the transaction in which the lock was requested
55)

PartitionID int None Unique identifier for the partition

Reference Manual: Tables


170 PUBLIC Monitoring Tables
3.17 monDeviceIO

Returns statistical information relating to activity on database devices.

Enable the enable monitoring configuration parameter for this monitoring table to collect data.

Columns

Name Datatype Attributes Description

InstanceID tinyint None (Cluster environments only) ID of an instance in a shared-disk


cluster.

Reads int Counter, reset Number of reads from the device

APFReads int Counter, reset Number of asynchronous prefetch (APF) reads from the de­
vice

Writes int Counter, reset Number of writes to the device

DevSemaphoreReques int Counter, reset Number of I/O requests to a mirrored device (if mirrored)
ts

DevSemaphoreWaits int Counter, reset Number of tasks forced to wait for synchronization of an I/O
request to a mirrored device (if mirrored)

IOTime int Counter Total amount of time (in milliseconds) spent waiting for I/O
requests to be satisfied

ReadTime int Counter Cumulative amount of time spent performing reads on this
device

WriteTime int Counter Cumulative amount of time spent performing writes on this
device

LogicalName varchar(3 None Logical name of the device


0)

PhysicalName varchar(1 None Full hierarchic file name of the device


28)

Reference Manual: Tables


Monitoring Tables PUBLIC 171
3.18 monDeviceSegmentIO

The monDeviceSegmentIO monitoring table displays the DSAM collection information by device and
segment.

Columns

Name Datatype Attributes Description

DBID int None The database ID associated with this


record. Unique identifier for the database.

DeviceNumber int None The device ID from sysdevices. Unique


identifier for the device.

SegmentNumber int None The segment ID from the local database’s


segments. Unique identifier for the
segment.

PhysicalReads unsigned bigint None The number of physical reads recorded for
this DBID, device, or segment.

LogicalReads unsigned bigint None The number of logical reads recorded for
this DBID, device, or segment.

PhysicalWrites unsigned bigint None The number of writes recorded for this
DBID, device, or segment.

3.19 monDeviceSpaceUsage

Provides information about the file systems on which database devices are allocated. Space information is
available only for file system devices. File system size and free space values are NULL for database devices
allocated on raw devices.

You need not enable any configuration parameters for this monitoring table to collect data.

Columns

Name Datatype Attributes Description

InstanceID tinyint None (Cluster environments only) ID of the instance.

VDevNo int None Virtual number of the device.

Reference Manual: Tables


172 PUBLIC Monitoring Tables
Name Datatype Attributes Description

LogicalName varchar(3 None Logical name of the device.


0)

PhysicalName varchar(1 None Physical name of the device.


28)

DeviceSizeMB int None Size of the device, in megabytes.

FileSystemName varchar(1 None Name of the file system.


28)

FileSystemSizeMB int None Size of the file system, in megabytes.

FileSystemFreeMB int None Amount of available free space, in megabytes, on the file sys­
tem.

DeviceType varchar(2 None Type of device. One of:


0) ● Raw device
● Block device
● File system device
● Unknown

3.20 monDeviceSegmentUsage

The monDeviceSegmentUsage monitoring tables displays pages used in a database by device and segment.

Queries on monDeviceSegmentUsage can take a very long time to run, because the table's data is generated
by reading system catalogs and scanning disks at the time the query is issued. To minimize the time spent
getting results, specify as many of the table’s keys (DBID, DeviceNumber, SegmentNumber) as possible, to
limit the amount of work SAP ASE performs to obtain results. The bigger the database or the more databases
that you scan, the longer the query takes to produce results.

Columns

Name Datatype Attributes Description

DBID int None The database ID from sysdatabases.


Unique identifier for the database.

DeviceNumber int None The device ID from sysdevices. Unique


identifier for the device.

Reference Manual: Tables


Monitoring Tables PUBLIC 173
Name Datatype Attributes Description

SegmentNumber int None The segment ID from the local database’s


segments. Unique identifier for the
segment.

PagesUsed bigint None How many logical pages are in use on this
DBID, device, or segment.

Pages are allocated in groups of 8, even


though some of the allocated pages might
not be used. Thus, subtracting this
number from the total size of the device
for that database in sysusages will say
how much space is available for new
objects. It does not say whether or not
space is available for rows added to
objects already stored in that place.

Stranded int None How many logical pages should not be in


this segment.

Not required by DSAM. It is an indication of


whether or not objects should be where
they are and the column is usually zero.
When it is not zero, the device’s segment
map, as stored in sysusages does not
permit storage of that object on this
device. This situation is rare, but can occur
after the customer does
sp_placeobject to assign a partition
to a different segment: the existing data
for that partition does not automatically
move, so if the new segment is not
permitted where that data currently
resides then the data is ‘stranded’.

This example displays space used on the master device.

1> select * from monDeviceSegmentUsage


2> where DeviceNumber = 0
3> order by DBID, SegmentNumber
4> compute sum(PagesUsed) by DBID
5>
DBID DeviceNumber SegmentNumber PagesUsed Stranded
----------- ----------- ----------- -------------------- -----------
1 0 0 2336 0
1 0 1 552 0
1 0 2 16 0

Compute Result:
--------------------
2904
DBID DeviceNumber SegmentNumber PagesUsed Stranded
----------- ----------- ----------- -------------------- -----------
2 0 0 744 0
2 0 1 104 0
2 0 2 8 0

Reference Manual: Tables


174 PUBLIC Monitoring Tables
Compute Result:
--------------------
856
DBID DeviceNumber SegmentNumber PagesUsed Stranded
----------- ----------- ----------- -------------------- -----------
3 0 0 744 0
3 0 1 104 0
3 0 2 8 0

Compute Result:
--------------------
856
DBID DeviceNumber SegmentNumber PagesUsed Stranded
----------- ----------- ----------- -------------------- -----------
31513 0 0 768 0
31513 0 1 104 0
31513 0 2 16 0

Compute Result:
--------------------
888

This table only shows databases where the information is cached in memory. If a display of a database not
currently cached is requested, no rows will return. Specify use <database>, then query the table again. The
act of using a database caches its information.

3.21 monEngine

Provides statistics regarding SAP ASE engines.

Enable the enable monitoring configuration parameter for this monitoring table to collect data.

Columns

Name Datatype Attributes Description

EngineNumber smallint None Number of the engine.

ThreadID int None ID of the thread associated with the engine.

InstanceID tinyint None (Cluster environments only) ID of an instance in a shared-disk


cluster.

CurrentKPID int None Kernel process identifier (kpid) for the currently executing
process.

PreviousKPID int None kpid for the previously executing process.

CPUTime int Counter, reset Total time, in seconds, the engine has been running.

Reference Manual: Tables


Monitoring Tables PUBLIC 175
Name Datatype Attributes Description

SystemCPUTime int Counter, reset Time, in seconds, the engine has been executing system data­
base services.

UserCPUTime int Counter, reset Time, in seconds, the engine has been executing user com­
mands.

IOCPUTime int Counter, reset The amount of time, in seconds, the engine has been waiting
for issued IOs to complete.

IdleCPUTime int Counter, reset Time, in seconds, the engine has been in idle spin mode.

Yields int Counter, reset Number of times this engine yielded to the operating system.
If you are running the SAP ASE server in process mode, mod­
ify the rate of yielding during idle periods using runnable
process search count. If you are running the SAP ASE
server in threaded mode, modify the rate of yielding during
idle periods with alter thread pool .. idle
timeout.

Connections int Counter Number of connections this engine handles.

DiskIOChecks int Counter, reset Number of times the engine or disk controller (for process or
threaded mode, respectively) checks for asynchronous disk
I/O. In process mode, use i/o polling process
count to modify the frequency of these checks.

DiskIOPolled int Counter, reset Number of times the engine or disk controller (for process or
threaded mode, respectively) polls for completion of out­
standing asynchronous disk I/O, which occurs when disk I/O
checks indicate that asynchronous I/O has been posted, but
is not yet complete.

DiskIOCompleted int Counter, reset Number of asynchronous disk I/Os completed when the en­
gine or disk controller (for process or threaded mode, respec­
tively) polls for outstanding asynchronous disk I/O.

MaxOutstandingIOs int None Current number of I/O requests initiated by this engine that
are not completed.

ProcessesAffinitie int None Number of processes associated with this engine.


d

ContextSwitches int Counter, reset Number of context switches.

HkgcMaxQSize int None Maximum number of items the SAP ASE server can queue for
housekeeper garbage collection in this engine.

Reference Manual: Tables


176 PUBLIC Monitoring Tables
Name Datatype Attributes Description

HkgcPendingItems int None Number of items yet to be collected by housekeeper garbage


collector on this engine.

HkgcHWMItems int None Maximum number of pending items queued for housekeeper
garbage collector at any instant since server started.

HkgcOverflows int None Number of items that could not be queued to housekeeper
garbage collector due to queue overflows.

HkgcPendingItemsDc int None Number of items on this engine waiting for the housekeeper
omp

HkgcOverflowsDcomp int None Number of items on this engine that could not be queued to
the housekeeper

Status varchar(2 None Status of the engine (online, offline, and so on).
0)

Starttime datetime None Date that the engine came online.

StopTime datetime None Date that the engine went offline.

AffinitiedToCPU int None Number of the CPU to which the engine is affinitied.

OSPID int None Identifier for the operating system process executing the en­
gine.

3.22 monErrorLog

Returns the most recent error messages from the SAP ASE error log.

Use errorlog pipe max messages to tune the maximum number of messages returned. See Performance
and Tuning: Monitoring Tables.

Enable the enable monitoring, errorlog pipe max messages, and errorlog pipe active
configuration parameters for this monitoring table to collect data.

Columns

Name Datatype Attributes Description

SPID int None Session process identifier (spid)

Reference Manual: Tables


Monitoring Tables PUBLIC 177
Name Datatype Attributes Description

InstanceID tinyint None (Cluster environments only) ID of an instance in a shared-disk


cluster.

KPID int None Kernel process identifier (kpid)

FamilyID int None spid of the parent process

EngineNumber smallint None Engine on which the process was running

ErrorNumber int None Error message number

Severity int None Severity of error. SAP ASE versions 15.7 and later use a value
of 99 to indicate stack traces; versions earlier than 15.7 use a
value of 0.

State int None State of error

Time datetime None Timestamp when error occurred

ErrorMessage varchar(5 None Text of the error message. Attribute is null.


12)

3.23 monFailoverRecovery

Applies to cluster environments only. Contains aggregated failover recovery diagnostic information for the
cluster lock manager (CLM), database recovery, and cluster membership service (CMS) modules.

You need not enable any configuration parameters for this monitoring table to collect data.

Columns

Column name Type Attributes Description

InstanceID tinyint None Instance performing the recovery.

ModuleName varchar(3 None Name of the module. One of CML, CMS, or Database
0)

FailedInstances varchar(3 None ID of the failed instance.


0)

Reference Manual: Tables


178 PUBLIC Monitoring Tables
Column name Type Attributes Description

StartTime datatime None Start time for the module’s recovery.

EndTime datatime None End time for the module’s recovery.

3.24 monHADRMembers

Provides information about the members in an HADR system.

Columns

Column name Type Attributes Description

GroupName varchar(3 None Name of the group to which the member belongs.
0)

ServerName varchar(3 None Name of the HADR member.


0)

Mode varchar(3 None Current mode in which the HADR member is running.
0)

State varchar(3 None Current state of the HADR member.


0)

ServerMap varchar(9 None Server map containing the host name and port number.
32)

Reference Manual: Tables


Monitoring Tables PUBLIC 179
3.25 monHANANonPushdown

(Support for SAP HANA accelerator for SAP ASE) A message log of queries that are not pushed down to SAP
HANA. Contains information such as which procedure the statement is executed from, the line number, SQL
text, reason of non-pushdown and the execution timestamp.

Columns

Name Datatype Attributes Description

InstanceID tinyint None (Cluster environments only) ID of an instance in a shared-disk


cluster.

DBID smallint None Unique identifier for the database in which the object exists.

DBName varchar(3 None Name of the database.


0)

ProcedureID int None Unique identifier for the procedure.

ProcedureName varchar(2 None Name of the procedure.


55)

LineNumber int None Line number of the statement within the SQL batch.

SQLText varchar(2 None SQL text of the executed statement.


55)

Reason varchar(2 None Reason for non-pushdown.


55)

Reference Manual: Tables


180 PUBLIC Monitoring Tables
3.26 monHCBGCTasks

Provides information about garbage collection tasks for indexes that have index hash caching enabled, and the
statistics they collect (for example, total hash nodes freed, total memory freed, and so on).

Columns

The columns for monHCBGCTasks are:

Name Datatype Description

InstanceID int The server instance identifier (cluster only)

DBID int Unique identifier for the database

DBName varchar(30) Name of the database

HashTablesFreed bigint Total number of hash tables freed by the GC Task

SPID int System process identifier of the garbage collector

Status varchar(30) Status of the GC Task

WaitStatus varchar(30) Wait status of the GC Task

ExitStatus varchar(30) Exit status of the GC Task

LastWakeup datetime The date and time of the last wakeup of this task

NumWakeUps int Number of times the GC Task woke up

MemoryFreed bigint Total amount of memory (in bytes) freed by the GC Task

NodesFreed bigint Total number of nodes freed by the GC Task

Reference Manual: Tables


Monitoring Tables PUBLIC 181
3.27 monHCBPartitionActivity

Collects monitoring data of indexes when hash caching is enabled.

Columns

 Note

You must enable the enable monitoring configuration parameter to collect HCB usage statistics. If you
do not enable this parameter, the HashCacheHits and other statistics columns will display 0 in the result
set, regardless of the activity.

The columns for monHCBPartitionActivity are:

Name Datatype Attributes Description

DBID int None Database ID.

ObjectID int None Unique identifier for the ob­


ject.

IndexID int None Unique identifier for the in­


dex.

PartitionID int None Unique identifier for the


partition.

TotalBuckets bigint None Total number of buckets for


hash-cached BTree indexes
in the partition.

UsedBuckets bigint None Total number of buckets


used for hash-cached BTree
indexes in the partition.

MaxChainLength bigint None Maximum length of hash


nodes in the collision chain.

AvgChainLengt bigint None Average length of hash no­


des in the collision chain.

MaxScanLength bigint None Maximum length of hash


nodes in the collision chain
perceived by DMLs.

Reference Manual: Tables


182 PUBLIC Monitoring Tables
Name Datatype Attributes Description

AvgScanLength bigint None Average length of hash no­


des in the collision chain
perceived by DMLs.

HashCacheScans bigint Counter Total number of scans that


attempt to find data rows
from the hash table.

HashCacheHits bigint Counter Total number of scans that


find and return data rows
from hash tables (that is, all
search arguments match).

HashCacheSkips bigint Counter Total number of scans that


use a BTree index instead of
hash caching to retrieve
data rows.

MemoryUsed bigint None Total amount of memory


used by hash tables in this
partition.

NScanFailedNoHashTable bigint Counter Total number of scan fail­


ures due to the absence of
hash tables.

NScanFailedNoHashNode bigint Counter Total number of scan fail­


ures due to the absence of
hash nodes.

NScanFailedNotQualified bigint Counter Total number of scan fail­


ures due to the absence of
qualified data rows.

NScanRestarts bigint Counter Total number of scan re­


starts.

NScanFailedMaxScanLength bigint Counter Number of scan failures


due to exceeding the maxi­
mum scan length.

NHashNodesInserted bigint Counter Total number of hash nodes


inserted.

NHashNodesDeleted bigint Counter Total number of hash nodes


deleted.

NHashNodesEvicted bigint Counter Number of hash nodes


evicted.

Reference Manual: Tables


Monitoring Tables PUBLIC 183
Name Datatype Attributes Description

NHashNodesAllocOOM bigint Counter Number of times the server


failed to insert hash nodes
due to unavailable memory.

NHashBucketsAllocOOM bigint Counter Number of times the server


failed to insert hash buck­
ets due to unavailable
memory.

NHashTablesCreatesOOM bigint Counter Number of times the server


failed to create hash buck­
ets due to unavailable
memory.

DBName varchar(30) NULL None Database name.

ObjectName varchar(30) NULL None Object name.

PartitionName varchar(30) NULL None Partition name.

Status varchar(12) NULL None Status of the index partition


when hash caching is ena­
bled.

3.28 monHCBTuningActivity

Columns

 Note

Monitor tables automatically track statistics of indexes that have hash caching enabled using the auto
tuning functionality of SAP ASE.

You must enable the HCB index auto tuning configuration parameter to enable HCB index auto tuning
and collect tuning statistics. If you do not enable this configuration parameter, a query against this monitor
table will display 0 in the result set.

Reference Manual: Tables


184 PUBLIC Monitoring Tables
The columns for monHCBTuningActivity are:

Name Datatype Description

DBID int Database ID

ObjectID int Unique identifier for the object

IndexID int Unique identifier for the index

CurPQueryRate smallint Current point query rate for this index

LastPQueryRate smallint Historic point query rate for this index

AvgPQueryRate smallint Average point query rate for this index

PQueryRateThreshold smallint Threshold for the point query rate at which this index is turned off

CurHashScanHitRate smallint Current hash table hit rate for this index

LastHashScanHitRate smallint Historical hash table hit rate for this index

AvgHashScanHitRate smallint Average hash table hit rate for this index

HashScanHitRateThreshol smallint Threshold for the hash table hit rate at which this index is turned
d off

NumHashNodes bigint Total number of hash nodes in hash tables for all index partitions

MemoryUsed bigint Amount of memory used, in bytes, for hash tables

NumDisabled tinyint Number of times this index was disabled by automatic tuning

DBName varchar(255) Database name

ObjectName varchar(255) Name of the object

IndexName varchar(255) Name of the index

Status varchar(12) The HCB automatic tuning status for this index

LastTuneTime datetime Time of the last automatic tuning decision made for this index

AvgTuneInterval int Length, in seconds, of the average automatic tuning decision inter­
val

Reference Manual: Tables


Monitoring Tables PUBLIC 185
3.29 monIMRSCache

Provides information about the IMRS cache.

Columns

The columns for monIMRSCache are:

Name Datatype Description

CacheSizeKB bigint Size (in KB) of the cache.

UsedSizeKB bigint Amount of the cache (in KB) that is used.

CacheName varchar(30) Name of the IMRS cache.

DBName varchar(30) Name of the database to which the cache is bound.

Status varchar(30) Status of the cache.

Indexes

monIMRSCache does not have an index.

3.30 monIMRSCacheActivity

Stores statistics relating to in-memory data caches.

You need not enable any configuration parameters for this monitoring table to collect data.

Columns

Column name Type Attributes Description

CacheName varchar(3 None Name of the IMRS cache.


0)

Reference Manual: Tables


186 PUBLIC Monitoring Tables
Column name Type Attributes Description

DBName varchar(3 None Name of the database to which the cache is assigned.
0)

Status varchar(3 None Status of the cache.


0)

CacheSizeKB bigint None Size, in kilobytes, of the cache.

NumCacheShrinks int None Number of times the cache size was reduced.

NumCacheGrows int None Number of times the cache size was increased.

NumRows bigint None Number of rows in the cache (across all tables using the
cache).

NumRowsHWM bigint None High water mark for the number of rows in the cache. That is,
the greatest number of rows in the cache at one time.

MemForLatestVersio bigint None Amount of memory allocated for the latest row versions, in­
ns cluding overheads.

MemForLatestVersio bigint None High water mark for memory in the latest row versions. That
nsHWM is, the greatest amount of memory allocated at one time for
latest row versions.

NumVersions bigint None Number of older row versions in the IMRS, excluding the lat­
est row version.

NumVersionsHWM bigint None High water mark for the number of versions. That is, the
greatest number or older row versions, excluding the latest
row version, at one time.

MemForOlderVersion bigint None Amount of memory allocated for the older row versions, in­
s cluding all over heads.

MemForOlderVersion bigint None High water mark for memory allocated for older row versions.
sHWM That is, the greatest amount of memory, at one time, allo­
cated for the older row versions, including all over heads.

NumRowsPendingGC bigint None Number of rows removed from the IMRS that are waiting for
garbage collection.

MemForRowVersionsO bigint None Extra memory overheads incurred for rounding off memory
verhead requests for row versions

NumTransactions int None Number of transactions, completed or active, executed in this


database.

Reference Manual: Tables


Monitoring Tables PUBLIC 187
Column name Type Attributes Description

NumTransactionsHWM int None High water mark for the number of transactions, completed
or active, executed in this database. That is, the greatest num­
ber of transactions, completed or active, executed in this da­
tabase.

MemForTransactions bigint None Amount of memory allocated for transactions.

NumStatements int None Number of statements active in this database.

NumStatementsHWM int None High water mark for the number of statements active in this
database. That is, the greatest number of statements active in
this database at one time.

MemForStatements bigint None Amount of memory allocated for tracking active statements.

MemForLookupTable bigint None Amount of memory used by lookup tables (metadata struc­
tures used for IMRS-enabled databases).

MemForLookupTableH bigint None High water mark for memory used by look up tables. That is,
WM the greatest amount of memory used for look up tables at one
time.

MemForQPFRowFmt bigint Memory used for a query processor-useable row format.

NumStmtsCachingRow bigint Number of statement descriptors allocated for caching rows


s in the IMRS.

NumStmtsCachingRow bigint High water mark for the number of statement descriptors al­
sHWM located for caching rows in the IMRS.

MemForStmtsCaching bigint Memory allocated for statement descriptors, specifically for


Rows caching rows in the IMRS.

MemForStmtsCaching­ bigint High water mark for memory allocated for statement descrip­
RowsHWM tors, specifically for caching rows in the IMRS.

OtherMem bigint None Memory used for allocation of other metadata structures.

OldestSPID int SPID of the oldest process that registered with IMRS garbage
collector.

NumRowsPacked bigint Number of rows packed by the pack operation.

MemPacked bigint Amount of memory occupied by rows that have been packed
by the pack operation.

NumRowsSkippedbyPa bigint Number of rows skipped by the pack operation.


ck

Reference Manual: Tables


188 PUBLIC Monitoring Tables
Column name Type Attributes Description

NRowsSkippedPackNo bigint Number of rows skipped by the pack operation because it


Lock could not acquire a lock on the row.

NRowsSkippedPackGT bigint Number of rows skipped by the pack operation because the
1Versions row had more than one version.

NRowsSkippedPackMi bigint Number of rows skipped by the pack operation due to miscel­
sc laneous reasons.

NRowsSkippedPackHo bigint Number of rows skipped by the pack operation because the
tRow rows were found to be active.

NumCommittedPackTr bigint Number of transactions committed by the pack operation.


ans

NumRolledbackPackT bigint Number of transactions rolled back by the pack operation.


rans

NumPackWakeups bigint Number of times the pack operation was awakened.

NumDelRowsPackWake bigint Number of times the pack operation was awakened early to
ups pack deleted rows.

NumPageStoreInsert bigint Number of times a row was inserted in the page store due to
sOOM lack of memory.

NumBytesLoggedInsP bigint Number of bytes logged by the pack operation for inserted
ack rows.

NumBytesLoggedMigP bigint Number of bytes logged by the pack operation for migrated
ack rows

NumSysversPgAlloc bigint Number of pages allocated for sysversions.

NumSysversPgDeAllo bigint Number of pages deallocated for sysversions.


c

NumSysversActivePa bigint Number of active pages in sysversions.


ges

NumSysversActivePa bigint The high water mark for active pages in sysversions.
gesHWM

NumPageStoreUpdate bigint Number of times a row was updated in the page store due to
sOOM lack of memory.

NumSysversPgGCProc bigint Number of sysversions pages processed by the garbage


essed collector.

Reference Manual: Tables


Monitoring Tables PUBLIC 189
Column name Type Attributes Description

NumSysversPgReques bigint Number of sysversions page requests.


ts

LastPackWakeup datetime Date and time at which the pack operation was last woken up.

LastPacked datetime Date and time at which the pack operation last packed rows.

3.31 monIMRSGCTasks

Provides information about garbage collection tasks that are running and the statistics they collect, such as
total memory freed large object garbage collection tasks, total disk space freed by deleting the obsolete LOB
versions, and so on.

You need not enable any configuration parameters for this monitoring table to collect data.

Columns

Column name Type Attributes Description

InstanceID tinyint None (Cluster only) server instance identifier.

DBID int None Unique identifier for the database currently being used by the
process.

SPID int None Server process ID.

NumWakeUps int None Number of times the garbage collector tasks woke up.

MemoryFreed bigint Amount of memory freed (in bytes) by the garbage collector
tasks.

DiskSpaceFreed bigint Amount of disk space freed by large object (LOB) garbage col­
lection tasks.

VersionsFreed bigint Row versions freed by garbage collection tasks.

TransactionsFreed bigint Transaction structure related to datarow cache, multiversion


concurrency control, or on-disk multiversion concurrency
control freed by garbage collection tasks.

Reference Manual: Tables


190 PUBLIC Monitoring Tables
Column name Type Attributes Description

NumStmtsCachingRow bigint Number of IMRS statement descriptors freed for the state­
sFreed ment that cached rows in the IMRS.

NumSysversPgDeallo bigint Number of sysversion pages that were deallocated.


cated

NumSysversDeallocG bigint Number of internal transactions that where opened by the


CCommits garbage collector while deallocating sysversions pages
and are committed.

NumTranPending bigint Number of finished transactions that are not yet processed by
the garbage collector.

NumTranBlocked bigint Number of transactions with blocked garbage collection proc­


essing due to concurrent open transactions.

BlockingSPID int SPID of the oldest process that can block the IMRS garbage
collector

BlockingTime int Amount of time, in seconds, that garbage collection process


can be blocked due to the current BlockingSPID

Type varchar(3 None Garbage collector task type. One of imrsgc or lobgc.
0)

Status varchar(3 None Garbage collector task status. One of running or


0) sleeping.

WaitStatus varchar(3 None Garbage collector task wait status. One of needed,
0) notneeded, or inprogress.

LastWakeup datetime Time when the the garbage collection task was most recently
woken up.

DBName varchar(3 None Name of the database (NULL if the descriptor for the object
0) was removed from the server’s metadata cache.

ExitStatus varchar(3 Garbage collector task exit status. One of exiting,


0) exiting (after cleanup), or alive.

BlockingSPIDType varchar(3 Type of the oldest process that can block the IMRS garbage
0) collector.

Reference Manual: Tables


Monitoring Tables PUBLIC 191
3.32 monImrslogRecovery

Stores IMRS-recovery statistics. Each IMRS-enabled database contains one row in this table, which contains
only previously completed recovery diagnostics information.

Columns

The columns for monImrslogRecovery are:

Name Datatype Attributes Description

DBID int Database ID.

LogBCommitAf int Number of transactions committed after existing transac­


terFullyC tions are fully committed.

LogBPRTItems int Number of purged row table items in the table.

LogBPRTBucke int Number of purged row table buckets.


t

LogBLogRScan int Number of log rows scanned for purged row tables.
edForPRT

LogBLogPScan int Number of log pages scanned for purged row tables.
edForPRT

LogBTotPages int Total number of imrslog pages scanned during the log
boundary calculation phase.

LogBTotAPFWa int Total number of asynchronous prefetches to the imrslog


ited that waited during the imrslog boundary calculation
phase.

LogBTotIO int Total amount of I/O to the imrslog during the imrslog
boundary calculation phase..

FixCommitTra int Number of fixed committed transactions that linked to


nLinkedlogs syslogs.

FixPageCount int Number of fixed pages after last known page.


AfterLastkno
wnpg

Reference Manual: Tables


192 PUBLIC Monitoring Tables
Name Datatype Attributes Description

FixValidPage int Number of pages after fixing hole.


sAfterFixing

FixInvalidTa int Number of invalid table fragments.


bleFragments

FixInvalidTa int Number of invalid table blocks.


bleBlocks

FixImrslogTo int Total number of imrslog pages scanned during the


tPages imrslog fix phase.

FixImrslogTo int Total number of asynchronous prefetches to the imrslog


tAPFWaited that waited during the imrslog fix phase.

FixImrslogTo int Total amount of I/O to the imrslog during the fix phase.
tIO

FixAuxScanTo int Total number of pages scanned during the auxiliary scan of
tPages the imrslog fix phase.

FixAuxScanTo int Total number of asynchronous prefetches that waited for


tAPFWaited the imrslog scan during the auxiliary scan of the
imrslog fix phase.

FixAuxScanTo int Total amount of I/O spent on the imrslog during the aux­
tIO iliary scan of the imrslog fix phase.

RedoOps int Total number of redo operations.

RedoPRTConsu int Number of purged rows tables consulted during the redo
lted phase.

RedoPRTOpsNo int Number of insert records skipped after consulting the


purged rows table during the redo phase.
tRedone

RedoPRTPurge int Number of purges skipped after consulting the purged


NotRedone rows table during the redo phase.

RedoPRTPurge int Number of purge record skipped after consulting the


RecordNotRed purged rows table during the redo phase.
one

RedoLogTotPa int Total number of imrslog pages at the beginning of the


ges redo phase.

Reference Manual: Tables


Monitoring Tables PUBLIC 193
Name Datatype Attributes Description

RedoLogTotAP int Total number of asynchronous prefetches that waited at


FWaited the beginning of the redo phase.

RedoLogTotIO int Total amount of I/O in the imrslog at the beginning of


the redo phase.

RedoRecTotPa int Total number of pages used at end of the redo phase.
ges

RedoRecTotAP int Total number of asynchronous prefetches that waited at


FWaited end of the redo phase.

RedoRecTotIO int Total amount of I/O used at end of the redo phase.

ReconOps int Total number of reconstruction operations.

ReconPRTCons int Purged row tables consulted during the reconciliation


ulted phase.

ReconPRTOpsN int Number of insert records skipped after consulting the


otRedone purged row tables during the reconciliation phase.

ReconPRTPurg int Number of purges skipped after consulting the purged row
eNotRedone tables during the reconciliation phase.

ReconPRTPurg int Number of purge records skipped after consulting the


eRecordNotRe purged row tables during the reconciliation phase.
done

ReconBeginTo int Total number of pages used during the beginning of the
tPages reconciliation phase.

ReconBeginTo int Total number of asynchronous prefetches that waited dur­


tAPFWaited ing the beginning of the reconciliation phase.

ReconBeginTo int Total amount of I/O used during the beginning of the rec­
tIO onciliation phase.

ReconEndTotP int Total number of page used during the end of the reconcilia­
ages tion phase.

ReconEndTotA int Total number of asynchronous prefetches that waited dur­


PFWaited ing the end of the reconciliation phase.

ReconEndTotI int Total amount of I/O used during the end of the reconcilia­
O tion phase.

Reference Manual: Tables


194 PUBLIC Monitoring Tables
Name Datatype Attributes Description

DBName varchar(30) Database name.

Command varchar(30) Command being issued.

RecType varchar(30) Type of recovery.

LogBStartTim datetime Start time of the imrslog boundary calculation phase.


e

LogBEndTime datetime End time of the imrslog boundary calculation phase.

FixStartTime datetime Start time of the fix phase.

FixEndTime datetime End time of the fix phase.

RedoStartTim datetime Start time of the redo phase.


e

RedoEndTime datetime End time of the redo phase.

ReconStartTi datetime Start time of the reconciliation phase.


me

ReconEndTime datetime End time of the reconciliation phase.

3.33 monIMRSPartitionActivity

Provides information about the activity for in-memory row storage caches across individual partitions or
objects.

You need not enable any configuration parameters for this monitoring table to collect data.

Columns

Column name Type Attributes Description

CacheName varchar(30) Name of the IMRS cache.

DBID int None Unique identifier of the database to which


the IMRS cache is bound.

Reference Manual: Tables


Monitoring Tables PUBLIC 195
Column name Type Attributes Description

ObjectID int None Unique identifier for the object. Null if the
descriptor for the object has been re­
moved from the server’s metadata cache.
In this situation, you can determine the
object identifier by querying syspartitions
in the specified database for the value of
PartitionID.

PartitionID int None Unique identifier for the partition. This is


the same value as ObjectID for non­
partitioned objects.

DBName varchar(30) Name of the database to which the cache


is assigned (NULL if the descriptor for the
object was removed from the server’s
metadata cache).

ObjectName varchar(30) Name of the object (null if the descriptor


for the object was removed from the serv­
er’s metadata cache).

PartitionName varchar(30) Name of the object partition (null if the


descriptor for the object was removed
from the server’s metadata cache).

NumRows bigint None Number of rows across all the tables in


the partition.

NumRowsHWM bigint None High water mark for the number of rows
across all the tables in the partition. That
is, the greatest number of rows across all
the tables in the partition at one time.

MemForLatestVersions bigint None Memory allocated for the latest versions


of the rows, including overheads.

MemForLatestVersionsHWM bigint None High water mark for memory in latest ver­
sions of the rows, including overheads.
That is, the greatest amount of memory
allocated for the latest versions of the
row, including overhead.

MemReqdForAllRows bigint Memory requested from the IMRS cache


to store all rows across this partition.

TotalMemForAllRows bigint None Total memory used from the IMRS Cache
to store all the rows across this partition.

Reference Manual: Tables


196 PUBLIC Monitoring Tables
Column name Type Attributes Description

NumVersions bigint None Number of older versions of rows in the


partition, excluding the latest version.

NumVersionsHWM bigint None High water mark for number of versions.

MemForOlderVersions bigint None Memory allocated for the older versions


of the rows, including all over heads.

MemForOlderVersionsHWM bigint None High water mark for memory allocated


for older versions of the rows, including all
over heads. That is, the greatest amount
of memory allocated for older versions of
the rows, including all over heads.

MemForRowVersionsOverhe bigint None Extra memory overheads incurred for


ad rounding off memory requests for row
versions.

NumInsertedRows bigint None Total number of rows that were inserted


to the cache and are still found in the
cache (that is, not deleted).

NumMigratedRows bigint None Total number of rows that were migrated


to the cache and are still found in the
cache.

MemForInsertedRows bigint None Amount of memory used for the latest


versions of inserted rows.

MemForMigratedRows bigint None Amount of memory used for the latest


versions of migrated rows.

NumInsertedVersions bigint None Number of versions of rows inserted into


the cache.

NumMigratedVersions bigint None Number of versions of rows migrated to


the cache.

MemForInsertedVersions bigint None Memory allocated for the older versions


of inserted versions of rows, including all
overheads.

MemForMigratedVersions bigint None Memory allocated for the older versions


of migrated versions of rows, including all
overheads.

MemForQPFRowFmt bigint Memory used to allocate a query pro­


cessor-useable row format.

Reference Manual: Tables


Monitoring Tables PUBLIC 197
Column name Type Attributes Description

RowsInserted bigint None Number of rows inserted.

RowsDeleted bigint None Number of rows deleted.

RowsUpdated bigint None Number of rows updated.

RowsMigrated bigint None Number of rows migrated.

NumRowsPendingGC bigint None Number of rows removed from the IMRS


that are waiting for garbage collection.

NumSelCachedRows bigint Number of rows of the partition that are


currently cached due to a select.

NumRidmPgPackTrans bigint Number of pack transactions started for


ridmap page pack mode.

NumRidmPgPackRows bigint Number of rows packed in ridmap


page pack mode.

NumRidmPgPackTranMissed bigint Number of times a page could not be


packed for ridmap page pack mode.

NumSelCachedRowsHWM bigint High water mark for the number of rows


cached for selects in the IMRS.

MemForSelCachedRows bigint Total amount of memory in cached or mi­


grated rows, and the amount of memory
in rows cached for selects.

MemForSelCachedRowsHWM bigint High water mark for memory in cached


rows.

NumUpdToInsRows bigint Number of updates to rows inserted in


the IMRS.

NumSelToInsRows bigint Number of selects of rows inserted in the


IMRS.

NumDelToInsRows bigint Number of deletes of rows inserted in


IMRS.

NumUpdToMigRows bigint Number of updates to rows that DMLs


migrated to the IMRS.

NumSelToMigRows bigint Number of selects to rows that DMLs mi­


grated to the IMRS.

Reference Manual: Tables


198 PUBLIC Monitoring Tables
Column name Type Attributes Description

NumDelToMigRows bigint Number of deletes to rows that DMLs mi­


grated to the IMRS.

NumUpdToSelCachedRows bigint Number of updates to rows that DMLs


migrated to the IMRS.

NumSelToSelCachedRows bigint Number of selects to rows that select


commands migrated to the IMRS.

NumDelToSelCachedRows bigint Number of deletes to rows that select


commands migrated to the IMRS.

RowsCached bigint Number of rows migrated.

NumRowsPacked bigint Number of rows packed by the pack oper­


ation.

NumInsertedRowsPacked bigint Number of inserted rows packed by the


pack operation.

NumMigratedRowsPacked bigint Number of migrated rows packed by the


pack operation.

NumCachedRowsPacked bigint Number of cached rows packed by the


pack operation.

MemPacked bigint Amount of memory occupied by rows


packed by the pack operation.

MemPackedForInsertedRow bigint Amount of memory occupied by inserted


s rows packed by the pack operation.

MemPackedForMigratedRow bigint Amount of memory occupied by migrated


s rows packed by the pack operation.

MemPackedForCachedRows bigint Amount of memory occupied by cached


rows packed by the pack operation.

NumRowsSkippedbyPack bigint Number of rows skipped by the pack op­


eration.

NRowsSkippedPackNoLock bigint Number of rows skipped by the pack op­


eration because it could not acquire row
locks.

NRowsSkippedPackGT1Vers bigint Number of rows skipped by the pack op­


ions eration because the row had more than
one version.

Reference Manual: Tables


Monitoring Tables PUBLIC 199
Column name Type Attributes Description

NRowsSkippedPackMisc bigint Number of rows skipped by the pack op­


eration due to miscellaneous reasons.

NRowsSkippedPackHotRow bigint Number of rows skipped by the pack op­


eration because the row was active.

NumCommittedPackTrans bigint Number of transactions committed by


the pack operation.

NumRolledbackPackTrans bigint Number of transactions rolled back by


the pack operation.

NumDelPackTrans bigint Number of pack transactions started for


an early deleted-rows pack operation.

NumSteadyPackTrans bigint Number of pack transactions started in


steady pack mode.

NumAggrPackTrans bigint Number of pack transactions started in


aggressive pack mode.

NumDelPackRows bigint Number of deleted rows packed by early


deleted-rows pack mode.

NumSteadyPackRows bigint Number of rows packed in steady pack


mode.

NumAggrPackRows bigint Number of rows packed in aggressive


pack mode.

NumDelRowsOtherPack bigint Number of deleted rows packed by a


mechanism other than the early deleted-
rows pack mode.

NumUnsuccessfulDelrowsT bigint Number of early deleted-rows pack trans­


ran actions that could not pack a row.

MemForPackableDelRows bigint Lower bound on memory that could be


freed if deleted rows in the partition are
packed.

NumBytesLoggedInsPack bigint Number of bytes logged by the pack oper­


ation for inserted rows.

NumBytesLoggedMigPack bigint Number of bytes logged for migrated


rows by the pack operation.

NumWriteConflicts bigint Number of times write conflicts occur­


red.

Reference Manual: Tables


200 PUBLIC Monitoring Tables
Column name Type Attributes Description

NumNoWriteConflicts bigint Number of times write conflicts did not


occur.

NumLatestVersionScanned bigint Number of times the latest version of the


row was scanned.

NumOlderVersionScanned bigint Number of times an older version of the


row was scanned.

NumOldLOBVersions bigint Number of old LOB versions in this parti­


tion.

NumOldLOBVersionsHWM bigint High water mark for the number of old


LOB versions in this partition.

OldLOBVersionsSpace bigint Amount of disk space (in KB) used by all


active old LOB versions in this partition.

OldLOBVersionsSpaceHWM bigint High water mark for the disk space (in
KB) used by all active old LOB versions in
this partition.

AllocatedOldLOBVersionS bigint Accumulated total disk space (in KB) allo­


pace cated to old LOB versions in this partition.

ReclaimedOldLOBVersionS bigint Accumulated total disk space (in KB) re­


pace claimed by garbage collector threads in
this partition.

LastPackVisited bigint The date and time the pack operation last
visited this partition.

LastPacked bigint The date and time the pack operation last
packed rows in this partition.

DisabledRowTypes bigint Row types for which IMRS usage of the


partition is disabled by internal ILM tun­
ing.

3.34 monInmemoryStorage

Provides information about inmemory devices configured to store the contents of inmemory databases.

You need not enable any configuration parameters for this monitoring table to collect data.

Reference Manual: Tables


Monitoring Tables PUBLIC 201
Columns

Column name Type Attributes Description

InstanceID tinyint None ID of an instance

ID int None ID of the data cache to which this device is bound.

DeviceNum int None Device number. Always -1 for inmemory devices.

StartPage int None Page ID for the first page in this device.

NumPages int None Number of pages in this device.

SizeKB int None Device size, in kilobytes.

Name varchar(3 None Name of the data cache for this device.
0)

DeviceName varchar(3 None Name of the inmemory storage device.


0)

Type varchar(3 None The type of storage. Always set to “cache”.


0)

Status varchar(3 None Status of the device.


0)

3.35 monIOController

Provides information about I/O controllers.

You need not enable any configuration parameters for this monitoring table to collect data.

Columns

Name Datatype Attributes Description

InstanceID tinyint None (Cluster environment) ID of an instance in a shared-disk cluster

InstanceID tinyint None (Non-cluster environment) ID of an instance

ControllerID int None ID of the I/O controller

Reference Manual: Tables


202 PUBLIC Monitoring Tables
Name Datatype Attributes Description

KTID int None ID of the kernel task

EngineNumber int None Engine that owns this controller

BlockingPolls bigint Counter Number of blocking polls

NonBlockingPolls bigint Counter Number of nonblocking polls

EventPolls bigint Counter Number of polls returning an event

NonBlockingEventPo bigint Counter Number of nonblocking polls returning an event


lls

FullPolls bigint Counter Number of polls returning the maximum number of events

Events bigint Counter Number of events polled

EventHWM bigint Counter Highest number of events returned in a single poll

Pending int Counter Number of pending I/O operations

Completed bigint Counter Number of completed I/O operations

Reads bigint Counter Number of read or receive operations

Writes bigint Counter Number of write or send operations

Deferred bigint Counter Number of I/O operations deferred or delayed

Type varchar( None I/O controller type


30)

3.36 monIOQueue

Provides device I/O statistics displayed as data and log I/O for normal and temporary databases on each
device.

Enable the enable monitoring configuration parameter for this monitoring table to collect data.

Reference Manual: Tables


Monitoring Tables PUBLIC 203
Columns

Name Datatype Attributes Description

InstanceID tinyint None (Cluster environment) ID of an instance in a shared-disk cluster

InstanceID tinyint None (Non-cluster environment) ID of an instance.

IOs int Counter Total number of I/O operations

IOTime int Counter Amount of time (in milliseconds) spent waiting for I/O requests to be sat­
isfied

LogicalName varchar(3 None Logical name of the device


0)

IOType varchar(1 None Category for grouping I/O. One of UserData, UserLog, TempdbData,
2) TempdbLog, or System.

3.37 monLatchFreeIndex

Collects information related to latch free indexes.

Columns

Name Datatype Attributes Description

DBID int None Database ID for the latch free index

ObjectID int None Object ID of the latch free index

IndexID int None Name of the latch free index

LFBKeyDeleted bigint Counter Number of LFB index keys deleted

LFBKeyInserted bigint Counter Number of LFB index keys inserted

LFBRIDDeleted bigint Counter Number of LFB index RIDs deleted

DMLConsolidation bigint Counter Number of consolidations via DML

Reference Manual: Tables


204 PUBLIC Monitoring Tables
Name Datatype Attributes Description

BUFFlushConsolidat bigint Counter Number of consolidations via buffer flush


ion

ConsolidationAbort bigint Counter Number of aborted consolidations

RestartScanByConso bigint Counter Number of restart of scan due to consolidation

GetPageFromELC bigint Counter Number of get LFB page from ELC

GetPageFromMPTBL bigint Counter Number of get LFB page from mapping table

GetPageFromBCM bigint Counter Number of get LFB page from BCM

TableName varchar None Name of the table of latch free index


(255)
NULL

IndexName varchar None Name of the latch free index


(255)
NULL

3.38 monLicense

Provides a list of all licenses currently checked out by the SAP ASE server.

You need not enable any configuration parameters for this monitoring table to collect data.

 Note

monLicense does not require mon_role permission; any user can use it.

Columns

Name Datatype Attributes Description

InstanceID tinyint None (Cluster environments only) ID of an instance in a shared-disk cluster.

Quantity int None Quantity of licenses used for this feature.

Name varchar( None Name of the feature license.


30)

Reference Manual: Tables


Monitoring Tables PUBLIC 205
Name Datatype Attributes Description

Edition varchar( None Edition of SAP ASE for which this feature is licensed.
30)

Type varchar( None License type.


64)

Version varchar( None Version of the feature license in use


16)

Status varchar( None Status of this feature license (that is, whether the license is within a
30) grace period or expired).

LicenseExpiry datetime None Date that the license expires, if this is an expiring license.

GraceExpiry datetime None Date this license expires, if this license was awarded on grace. Refer to
the Status column to determine whether this license was awarded a
grace period.

LicenseID varchar( None License identifier. This may not be available if the license has been
150) awarded a grace period.

Filter varchar( None Filter used when selecting this feature license. Use sp_lmconfig to
14) change the filter.

Attributes varchar( None License attributes. These attributes are “<name>=<value>” pairs
64) which, if specified, limit certain characteristics of SAP ASE. Possible
limiters are:

● ME = maximum number of engines


● MC = maximum number of connections
● MS = maximum number of disk space
● MM = maximum number of memory
● CP = maximum number of CPUs

3.39 monLocks

Returns a list of granted locks and pending lock requests.

Enable the enable monitoring configuration parameter for this monitoring table to collect data.

Reference Manual: Tables


206 PUBLIC Monitoring Tables
Columns

Name Datatype Attributes Description

SPID int None Session process identifier of process holding or requesting the lock.

InstanceID tinyint None (Cluster environments only) ID of an instance in a shared-disk clus­


ter.

KPID int None Kernel process identifier

DBID int None Unique identifier for this database object.

ParentSPID int None Parent process ID.

LockID int None Lock object ID.

Context int None Lock context (bit field). These values are the same as for those of the
context column in syslocks. See the Reference Manual: Tables
for information about syslocks.

DBName varchar(3 None Name of the database for the locked object. This column is NULL if
0) the database is not open when monLocks is queried.

ObjectID int None Unique identifier for the object

LockState varchar(2 None Indicates if the lock is granted. Values are:


0) ● Granted
● Requested

LockType varchar(2 None Type of lock. Values are:


0) ● Exclusive
● Shared
● Update

LockLevel varchar(3 None The type of object for which the lock was requested. Values are:
0) ● Row
● Page
● Table
● Address

WaitTime int None The time (in seconds) for which the lock request was not granted.

PageNumber int None Page that is locked when LockLevel = 'PAGE'

RowNumber int None Row that is locked when LockLevel = 'ROW'

Reference Manual: Tables


Monitoring Tables PUBLIC 207
Name Datatype Attributes Description

BlockedBy int None If the lock request is blocked, the BlockedBy column is the lock
object ID for the process holding the lock that is blocking this lock re­
quest. Null if request is not blocked.

BlockedState varchar(6 None Lock state if the lock being held is blocking other lock requests or if
4) the lock request is blocked. Values are:

● Blocked
● Blocking
● Demand
● Detached
● Null (if there is no blocking condition)

SourceCodeID varchar(3 None For internal use only.


0)

PartitionID int None Unique identifier for the partition

3.40 monLockTimeout

Provides information about lock timeouts. Each row identifies the object on which a blocked lock request
occurred, and identities of the blocked and blocking processes.

The monLockTimeout table records lock timeout events (called “timeouts”), that occur when:

● Two server processes are in contention for the same object lock, and,
● The lock wait period has expired

By default, the lock wait period on the server is infinite, so lock timeouts occur only if the user has
changed the lock timeout configuration at the:

● Server level – by changing the lock wait period configuration parameter


● Session level – by executing the set lock wait <n>, where <n> is the time, in seconds, for the lock
wait period

When the lock wait period expires – at the server or session level – the SAP ASE server writes a row to
monLockTimeout, recording the lock timeout event and describing the objects and processes involved in the
lock contention.

You must enable the enable monitoring, lock timeout pipe active, and lock timeout pipe max
messages configuration parameters for monLockTimeout monitoring table to collect data.

Reference Manual: Tables


208 PUBLIC Monitoring Tables
Columns

Name Datatype Attributes Description

InstanceID tinyint None (Cluster environments only) ID of an instance in a


cluster.

LockWaitPeriod int None Configured amount of time processes wait before a


timeout occurs.

LockTimeOutLevel varchar None Timeout level. One of:


(20) ● DTM_SERVER
● SERVER
● SESSION
● COMMAND
● INVALID

ObjectDBID int None Unique database identifier for database in which the
object resides.

ObjectDBName varchar(3 None Name of database in which the object resides.


0)

ObjectID int None Unique identifier for the object.

ObjectName varchar(2 None Name of the object.


55)

PageNumber int None Page number requested for the lock, if applicable.

RowNumber int None Row number requested for the lock, if applicable.

ExpiredAtTime datetime None Time when lock expires.

HeldSPID int None Server process ID (spid) of process holding the lock.

HeldKPID int None Kernel process ID (kpid) of process holding the lock.

HeldInstanceID int None Instance ID for the instance on which the process
holding the lock was executing

HeldUserName varchar(3 None Name of the user for whom the lock is held.
0)

HeldApplName varchar(3 None Name of the application holding the lock.


0)

HeldHostName varchar(3 None Name of the host machine on which the application
0) that executed the query holding the lock is running.

Reference Manual: Tables


Monitoring Tables PUBLIC 209
Name Datatype Attributes Description

HeldClientName varchar(3 None Value of the clientname property set by the appli­
0) cation holding the lock.

HeldClientApplName varchar(3 None Value for the <clientapplname> property set by


0) the application holding the lock.

HeldClientHostName varchar(3 None Value for the <clienthostname> property set by


0) the application holding the lock.

HeldTranName varchar(2 None Name of the transaction that acquired the lock.
55)

HeldCommand varchar(3 None Category of process or command the process was


0) executing when the process was blocked.

HeldFamilyID int None spid of the parent process holding the lock.

HeldProcDBID int None Unique identifier for the database where the stored
procedure that caused the lock to be held resides, if
applicable.

HeldProcDBName varchar(3 None Name for the database where the stored procedure
0) that caused the lock to be held resides, if applicable.

HeldProcedureName varchar(2 None Name for the stored procedure that caused the lock
55) to be held, if applicable.

HeldBatchID int None Identifier of the SQL batch executed by the process
holding the lock when the lock timeout occurred.

HeldContextID int None Unique context identifier for the process holding the
lock when it was blocked by another process (not
when it acquired the lock).

HeldLineNumber int None Line number in the SQL batch of the SQL statement
holding the lock.

HeldStmtNumber int None Statement number in the SQL batch of the SQL
statement holding the lock.

Reference Manual: Tables


210 PUBLIC Monitoring Tables
Name Datatype Attributes Description

HeldLockType varchar(2 None Type of lock. One of:


0) ● Exclusive table
● Shared table
● Exclusive intent
● Shared intent
● Exclusive page
● Shared page
● Update page
● Exclusive row
● Shared row
● Update row
● Next key
● Exclusive address
● Shared address
● Semaphore

HeldNumLocks int None Number of locks currently held by holding spid.

HeldNumTimeoutsCausedByT int None Number of timeouts caused by this holding transac­


ran tion.

HeldNumTimeoutsCausedByL int None Number of timeouts caused by this lock resource.


ock

HeldSourceCodeID varchar(3 None Location of the source code where the lock being
0) held was acquired (internal use only).

WaitSPID int None spid of the process waiting for the lock.

WaitKPID int None kpid of the process waiting for the lock.

WaitUserName varchar(3 None Name of the user for whom the lock is being re­
0) quested.

WaitApplName varchar(3 None Name of the application waiting for the lock.
0)

WaitHostName varchar(3 None Name of the host running the process waiting for the
0) lock.

WaitClientName varchar(3 None Value of the <clientname> property set by the ap­
0) plication waiting for the lock.

WaitClientApplName varchar(3 None Value of the <clientapplname> property set by the


0) application waiting for the lock.

Reference Manual: Tables


Monitoring Tables PUBLIC 211
Name Datatype Attributes Description

WaitClientHostName varchar(3 None Value of the <clienthostname> property set by the


0) application waiting for the lock.

WaitTranName varchar(2 None Name of the transaction in which the lock was re­
55) quested.

WaitCommand varchar(3 None Category of process or command that the process


0) was executing when it was blocked and then timed
out.

WaitFamilyID int None spid of the parent process waiting for the lock.

WaitProcDBID int None Unique identifier for the database in which the stored
procedure waiting for the lock resides, if applicable.

WaitProcDBName varchar(2 None Name for the database where the stored procedure
55) that is waiting for the lock resides, if applicable.

WaitProcedureName varchar(2 None Name for the stored procedure waiting for the lock, if
55) applicable.

WaitBatchID int None Identifier of the SQL batch executed by the process
waiting for the lock when the lock timeout occurred.

WaitContextID int None Unique context identifier for the process waiting for
the lock when it was blocked by another process.

WaitLineNumber int None Line number of the SQL statement in the SQL batch
waiting for the lock.

WaitStmtNumber int None Line number in SQL batch waiting for the lock.

Reference Manual: Tables


212 PUBLIC Monitoring Tables
Name Datatype Attributes Description

WaitLockType varchar(3 None Type of lock. One of:


0) ● Exclusive table
● Shared table
● Exclusive intent
● Shared intent
● Exclusive page
● Shared page
● Update page
● Exclusive row
● Shared row
● Update row
● Next key
● Exclusive address
● Shared address
● Semaphore

WaitNumTimeoutsCausedByT int None Number of timeouts caused by a waiting transaction.


ran

PartitionID int None ID of the partition.

WaitSourceCodeID int None Location in the source code when the timeout occur­
red and the waiting lock request was made (for inter­
nal use only).

HeldProcedureID int None Unique object identifier for the stored procedure that
the blocking process was executing when the time­
out occurred

WaitProcedureID int None Unique object identifier for the stored procedure that
is waiting for the lock, if applicable

3.41 monLogicalCluster

Applies to cluster environments only. Displays information about the logical clusters currently configured on
the system.

You need not enable any configuration parameters for this monitoring table to collect data.

Reference Manual: Tables


Monitoring Tables PUBLIC 213
Columns

Name Datatype Attributes Description

LCID int None Logical cluster ID.

Attributes int None Bitmask of logical cluster attributes.

ActiveConnections int None Number of active connections using this logical cluster.

BaseInstances tinyint None Number of instances configured as base instances for this
logical cluster.

ActiveBaseInstance tinyint None Number of base instances on which this logical cluster is cur­
s rently active.

FailoverInstances tinyint None Number of instances configured as failover instances for this
logical cluster.

ActiveFailoverInst tinyint None Number of failover instances on which this logical cluster is
ances currently active.

LCType int None Type of logical cluster: application, alias, or login.

Name varchar(3 None Logical cluster name.


0)

State varchar(2 None Current state. One of:


0) ● Online
● Offline
● Failed
● Inactive
● Time_wait

DownRoutingMode varchar(2 None Down routing-mode setting. One of:


0) ● System
● Open
● Disconnect

FailoverMode varchar(2 None Failover mode setting, instance or cluster.


0)

FailoverRecovery varchar(3 None Failover recovery diagnostic information for cluster lock man­
0) ager, database recovery, and cluster membership service
modules.

StartupMode varchar(2 None Start-up mode setting, automatic or manual.


0)

Reference Manual: Tables


214 PUBLIC Monitoring Tables
Name Datatype Attributes Description

SystemView varchar(2 None System view setting, instance or cluster.


0)

Roles varchar(2 None Comma-delimited list of special roles for this logical cluster.
0) The “system” logical cluster always has the system role. The
open logical cluster has the “open” role. If the system logical
cluster also has the open role, the value for this column is
system, open. Logical clusters without any special roles
return a null value.

LoadProfile varchar(3 None Load profile associated with this logical cluster.
0)

ActionRelease varchar(2 None The current action release mode for this logical cluster. Values
0) are:

● Manual
● Automatic

Manual indicates that the user must execute the action re­
lease command to release the actions for this cluster.

Gather varchar(3 None Indicates whether this logical cluster is configured to auto­
0) matically gather routable connections to this logical cluster.
Values are:

● Manual
● Automatic

3.42 monLogicalClusterAction

Applies to cluster environments only. Shows all administrative actions against logical clusters from start-up
until these actions are released.

You need not enable any configuration parameters for this monitoring table to collect data.

Columns

Name Datatype Attributes Description

Handle int None Unique handle used to cancel this action.

Reference Manual: Tables


Monitoring Tables PUBLIC 215
Name Datatype Attributes Description

State varchar(2 None State of the action: active, complete, releasing, or


0) canceled.

LCID int None Logical cluster ID to which this action applies.

LogicalClusterName varchar(3 None Logical cluster name of this logical cluster (denormalized to
0) reduce joins).

Action varchar(1 None Action being performed. A combination of the command run­
5) ning and its scope. For example, offline instance or
failover cluster.

FromInstances varchar(9 None A comma-separated list of from instances for this com­
6) mand and action (instance being brought offline).

ToInstances varchar(9 None A comma-separated list of to instances for this com­


6) mand and action (instances being brought online).

InstancesWaiting int None Number of instances waiting to go offline (this is a count of


FromInstances that are in the time_wait state).

WaitType varchar(2 None Current wait state for this action. One of: wait, until, or
0) nowait.

StartTime datetime None Date and time the command was issued.

Deadline datetime None Date and time the command must be finished (based on the
time value supplied to the wait or until options).

CompleteTime datetime None Date and time the command and action completed (when
InstancesWaiting is zero and the action went from
active to the complete state). Returns NULL for incom­
plete actions.

ConnectionsRemaini int None Number of connections remaining to move as a result of this


ng command.

NonMigConnections int None Number of connections to be terminated because they do not


support the migration protocol.

NonHAConnections int None Number of connections that do not support the high availabil­
ity failover protocol. These connections are disconnected and
cannot fail over when the command finishes.

Reference Manual: Tables


216 PUBLIC Monitoring Tables
3.43 monLogicalClusterInstance

Applies to cluster environments only. Displays information about the many-to-many relationship between
instances and logical clusters.

You need not enable any configuration parameters for this monitoring table to collect data.

Columns

Name Datatype Attributes Description

LCID int None Logical cluster ID

LogicalClusterName varchar(3 None Logical cluster name


0)

InstanceID tinyint None ID of the instance within the cluster

InstanceName varchar(3 None Instance name


0)

Type varchar(2 None Instance type


0)

FailoverGroup tinyint None Failover group to which this instance is a member (failover in­
stances only)

State varchar(2 None State of this instance with respect to the logical cluster
0)

ActiveConnections int None Number of active connections for this logical cluster on this
instance

NonMigConnections int None Number of active connections that do not support the con­
nection migration protocol

NonHAConnections int None Number of active connections that do not support the high
availability failover protocol

LoadScore real None Workload score for this instance using the load profile associ­
ated with its logical cluster

Reference Manual: Tables


Monitoring Tables PUBLIC 217
3.44 monLogicalClusterRoute

Applies to cluster environments only. Displays information about the configured routes (application, login, and
alias bindings). You need not have the mon_role role to query this monitor table.

You need not enable any configuration parameters for this monitoring table to collect data.

Columns

Name Datatype Attributes Description

LCID int None Logical cluster ID

LogicalClusterName varchar(3 None Logical cluster name


0)

RouteType varchar(2 None Route type. One of: application, login, or alias
0)

RouteKey varchar(3 None Application, login, or alias name associated with this route.
0)

3.45 monMemoryUsage

The monMemoryUsage monitoring table provides information about server and kernel memory pools, including
metrics about their sizes, usage patterns, and availability.

Columns

Name Datatype Attribute Description

Flags int None Status flags that describe the memory pool.

ConfigNum int None Configuration number for the primary configuration option
controlling the size of the memory pool.

TotalSize bigint None Total size, in bytes, of the memory pool.

UsedSize bigint None Currently used size, in bytes, of the memory pool.

Reference Manual: Tables


218 PUBLIC Monitoring Tables
Name Datatype Attribute Description

FreeSize bigint None Amount of free memory, in bytes, in the pool.

NumAllocs bigint Counter Total number of allocations requested.

NumFrees bigint Counter Total number of frees performed. "Frees” are the opposite of
allocations. Adaptive Server allocates memory fragments,
and the number of allocations is tracked by NumAllocs.
When the task is finished, the memory fragment is freed (that
is, returned to the memory pool). NumFrees tracks the total
number of these free operations

NumSleeps bigint Counter Total number of sleeps encountered while allocating memory
fragments.

PoolOwnerKPID int None Kernel process ID (KPID) of task that owns this fragment of
the memory pool.

MemoryPoolName varchar(3 None Name of the memory pool.


2)

PoolType varchar(3 None Type of memory pool. One of:


0) ● Block
● Bucket
● Object
● Fragment
● Stack

ConfigOption varchar(2 None Name of the primary configuration option controlling the size
55) of the memory pool.

NumSearches bigint Counter Total number of free fragments examined before satisfying
memory allocation requests from this memory pool.

NumRetries bigint Counter Number of retries performed for all free fragments.

ItemSize int None Size of an individual item (applies to object pool).

MinNumItems int None Minimum number of items in this pool.

MaxNumItems int None Maximum number of items in this pool.

NumUsedItems int None Number of used items in this pool.

NumItemsUsedHWM int None High-water mark for the number of items used in this pool.

MinUsedItemSize bigint None Size, in bytes, of smallest used item.

AvgUsedItemSize bigint None Average size, in bytes, of used items.

MaxUsedItemSize bigint None Size, in bytes, of largest used item.

NumUsedItemsMinSiz int None Number of minimum-sized used items in this pool.


e

Reference Manual: Tables


Monitoring Tables PUBLIC 219
Name Datatype Attribute Description

NumUsedItemsMaxSiz int None Number of maximum-sized used items in this pool.


e

NumFreeItems int None Number of free items in this pool.

MinFreeItemSize bigint None Size, in bytes, of smallest item that is free.

AvgFreeItemSize bigint None Average size, in bytes, of free items.

MaxFreeItemSize bigint None Size, in bytes, of largest item that is free.

NumFreeItemsMinSiz int None Number of minimum-sized free items in this pool.


e

NumFreeItemsMaxSiz int None Number of maximum-sized free items in this pool.


e

NumBlocks int None Number of blocks of memory used for this pool.

MemSize1 int None Memory pool specific request size 1, in bytes.

NumUsedItemsSize1 int None Number of used items in this pool of size MemSize1 .

NumFreeItemsSize1 int None Number of free items in this pool of size MemSize1 .

MemSize2 int None Memory pool specific request size 2, in bytes.

NumUsedItemsSize2 int None Number of used items in this pool of size MemSize2.

NumFreeItemsSize2 int None Number of free items in this pool of size MemSize2.

Not all output from all monMemoryUsage columns applies, or is relevant to, all memory pools, and depending
on the type of memory pool, you may need to select the relevant columns. Typically, columns return a value of
NULL if they do not apply to a specific memory pool.

These columns report the metrics for used versus free fragments for memory pools of type Fragment:

● NumUsedItems
● NumItemsUsedHWM
● MinUsedItemSize
● AvgUsedItemSize
● MaxUsedItemSize
● NumUsedItemsMinSize
● NumUsedItemsMaxSize
● NumFreeItems
● MinFreeItemSize
● AvgFreeItemSize
● MaxFreeItemSize
● NumFreeItemsMinSize
● NumFreeItemsMaxSize

Reference Manual: Tables


220 PUBLIC Monitoring Tables
The following columns are set to NULL for all fragment memory pools:

● NumBlocks
● NumUsedItems
● NumFreeItems
● MinUsedItemSize
● MaxUsedItemSize
● NumUsedItemsMinSize
● NumUsedItemsMaxSize
● AvgUsedItemSize
● NumUsedItemsSize1
● NumUsedItemsSize2
● MinFreeItemSize
● MaxFreeItemSize
● NumFreeItemsMinSize
● NumFreeItemsMaxSize
● AvgFreeItemSize
● NumFreeItemsSize1
● NumFreeItemsSize2

This example lists memory pools in the server, along with the primary configuration option affecting the size of
the memory pool:

select PoolType = convert(varchar(10), PoolType),


MemoryPoolName = convert(varchar(30), MemoryPoolName),
ConfigOption = convert(varchar(30), ConfigOption)
from monMemoryUsage order by 1, 2
PoolType MemoryPoolName ConfigOption
-------- ----------------------- ----------------------------
Block Compression compression memory size
Block Global Block Pool NULL
Block Kernel Resource Memory kernel resource memory
Block Proc Cache Header procedure cache size
Block Pss Heap Memory heap memory per user
Block RTMS Block Heap messaging memory
Fragment CPINFO memory pool compression info pool size
Fragment Column Default Pool column default cache size
Fragment Data Cache Frag NULL
Fragment Data Change Frag NULL
Fragment Data Transfer Utility transfer utility memory size
[...]

This example lists the common metrics that are applicable to most memory pools:

select MemoryPoolName = convert(varchar(30), MemoryPoolName),


TotalSize, UsedSize, FreeSize, NumAllocs, NumFrees
from monMemoryUsage order by 1

This example lists the metrics that apply to fragment memory pools:

select MemoryPoolName = convert(varchar(30), MemoryPoolName),


NumUsedItems, NumItemsUsedHWM, MinUsedItemSize,
AvgUsedItemSize, MaxUsedItemSize
from monMemoryUsage
where PoolType = "Fragment"
MemoryPoolName NumUsedItems NumItemsUsedHWM MinUsedItemSize
AvgUsedItemSize MaxUsedItemSize

Reference Manual: Tables


Monitoring Tables PUBLIC 221
-------------- ------------ --------------- ---------------
--------------- ---------------
Pss Frag Pool 983048 0 16960
0 0
Pss Frag Pool 1376267 0 17040
0 0
Pss Frag Pool 2293778 0 16960
0 0

3.46 monNetworkIO

Returns network I/O statistics for all communication between the SAP ASE server and client connections.

Enable the enable monitoring configuration parameter for this monitoring table to collect data.

Columns

Name Datatype Attributes Description

InstanceID tinyint None (Cluster environments only) ID of an instance in a shared-disk


cluster

PacketsSent int Counter, reset Number of packets sent

PacketsReceived int Counter, reset Number of packets received

BytesSent int Counter, reset Number of bytes sent

BytesReceived int Counter, reset Number of bytes received

PacketsSentMln int Counter, reset Number of packets, in millions, sent by the server

PacketsReceived int Counter, reset Number of packets, in millions, received by the server
Mln

BytesSentMB int Counter, reset Number of bytes, in megabytes, sent by the server

BytesReceivedMB int Counter, reset Number of bytes, in megabytes, received by the server

Reference Manual: Tables


222 PUBLIC Monitoring Tables
3.47 monNVCache

Stores statistics relating to SAP ASE named non-volatile caches, including cache definition, current status, and
usage of NV cache(s):

Enable the enable monitoring configuration parameter for this monitoring table to collect data.

Columns

Name Datatype Attributes Description

CacheID int None Unique identifier for the NV cache

CacheSize int None Total size of NV cache, in kilobytes

Overhead int None NV cache overhead

CachePartitions smallint None Number of partitions currently configured for the cache

CacheSearches int None Cache searches directed to the cache

CacheWrites int Counter, reset Number of buffers written from the NV cache to disk

CacheReads int Counter, reset Number of buffers read into the cache from disk

HDDWrites int Counter, reset Number of buffers written from the device disk to the NV
cache.

CacheName varchar(3 None Name of cache


0)

Status varchar(3 None Status of NV cache. One of:


0) ● Active
● Pending/Active
● Pending/Delete
● Update Cache
● Cache Create
● Cache Delete

Reference Manual: Tables


Monitoring Tables PUBLIC 223
3.48 monOpenDatabases

Provides state and statistical information pertaining to databases that are currently in the server’s metadata
cache.

If the value of number of open databases is too low, the SAP ASE server may flush database descriptors
from the metadata cache. If this occurs, the SAP ASE server loses the database statistics, but the statistics are
reinitialized the next time the database descriptor is installed in the metadata cache.

Enable the enable monitoring configuration parameter for this monitoring table to collect data.

Columns

Name Datatype Attributes Description

DBID int None Unique identifier for the database

InstanceID tinyint None (Cluster environments only) ID of an instance in a shared-disk


cluster.

BackupInProgress int None Specifies whether a backup is currently in progress for the data­
base

LastBackupFailed int None Specifies whether the last backup of the database failed

TransactionLogFul int None Specifies whether the database transaction log is full
l

AppendLogRequests int Counter Number of semaphore requests when attempting to append to


the database transaction log

AppendLogWaits int Counter Number of times a task had to wait for the append log semaphore
to be granted

DBName varchar( None Name of the database


30)

BackupStartTime datetime None Date the last full database backup started

SuspendedProcesse int None Number of processes currently suspended due to the database
s transaction log being full

QuiesceTag varchar( None Tag used in the quiesce database command for this data­
30) base if the database is in a quiesced state

Reference Manual: Tables


224 PUBLIC Monitoring Tables
Name Datatype Attributes Description

LastCheckpointTim datetime None Date and time checkpoint last ran for this database
e

LastTranLogDumpTi datetime None Date and time of this database’s most recently successful trans­
me action log dump.

The time is not updated if the transaction is dumped using the


truncate_only or no_log.

PRSUpdateCount int Counter Number of updates to precomputed result sets caused by


insert, update, or deletes to the base table.

PRSSelectCount int Counter The number of times the optimizer selected precomputed result
sets in this database when generating a query plan.

PRSRewriteCount int Counter The number of times the optimizer determined the precomputed
result sets in this database were valid when generating the query
plan.

3.49 monOpenObjectActivity

Provides statistics for all open tables and indexes.

Enable the enable monitoring, per object statistics active, and object lockwait timing
configuration parameters for this monitoring table to collect data.

 Note

The value of OptSelectCount may be less than that of UsedCount since you can use the plan for a stored
procedure or trigger multiple times. Also, because the SAP ASE server may decide not to execute certain
portions of a query plan during execution, UsedCount may be less than OptSelectCount.

Columns

Name Datatype Attributes Description

DBID int None Unique identifier for the database.

ObjectID int None Unique identifier for the object.

IndexID int None Unique identifier for the index..

Reference Manual: Tables


Monitoring Tables PUBLIC 225
Name Datatype Attributes Description

InstanceID tinyint None (Cluster environments only) Unique identifier for an instance.

DBName varchar(3 None Name of the database in which the object resides
0)

ObjectName varchar(3 None Name of the object.


0)

LogicalReads int Counter Total number of times a buffer for this object has been re­
trieved from a buffer cache without requiring a read from disk.

PhysicalReads int Counter Number of buffers read from disk.

APFReads int Counter Number of APF buffers read from disk.

PagesRead int Counter Total number of pages read.

PhysicalWrites int Counter Total number of buffers written to disk.

PagesWritten int Counter Total number of pages written to disk.

RowsInserted int Counter Number of rows inserted.

RowsDeleted int Counter Number of rows deleted.

RowsUpdated int Counter Number of updates.

Operations int Counter Number of times the object was accessed.

LockRequests int Counter Number of requests for a lock on the object.

LockWaits int Counter Number of times a task waited for an object lock.

OptSelectCount int Counter Number of times the optimizer selected this index to be used
in a query plan.

LastOptSelectDate datetime None Last date the index was selected for a plan during compila­
tion.

UsedCount int Counter Number of times the object was used in a plan during execu­
tion.

LastUsedDate datetime None Last date the index was used in a plan during execution.

HkgcRequests int Counter Total number of events queued for an object. A large value im­
plies the system is generating large amounts of garbage for
the specified object.

Reference Manual: Tables


226 PUBLIC Monitoring Tables
Name Datatype Attributes Description

HkgcPending int Counter The number of pending events for an object. A large value im­
plies that a lot of garbage is yet to be collected, although the
housekeeper will clean it up. If you restart the SAP ASE server,
all entries in the housekeeper queue are lost, and the garbage
from those pages is not collected when you restart the SAP
ASE server.

HkgcOverflows int Counter The number of overflow object events. A large value implies
the housekeeper queues are filling up. Generated garbage will
not then be cleaned up because the housekeeper cannot
schedule the job.

PhysicalLocks int Counter (Cluster environments only) Number of physical locks re­
quested per object.

PhysicalLocksRetai int Counter (Cluster environments only) Number of physical locks re­
ned tained. Use to identify the lock hit ratio for each object. Good
hit ratios imply balanced partitioning for this object.

PhysicalLocksRetai int4 Counter (Cluster environments only) Number of physical lock requests
nWaited waiting before a lock is retained.

PhysicalLocksDeadl int Counter (Cluster environments only) Number of times a requested


ocks physical lock returned a deadlock. The Cluster
Physical Locks subsection of sp_sysmon uses this
counter to report deadlocks while acquiring physical locks for
each object.

PhysicalLocksWaite int Counter (Cluster environments only) Number of times an instance


d waited for a physical lock request.

PhysicalLocksPageT int Counter (Cluster environments only) Number of page transfers that
ransfer occurred when an instance requested a physical lock. The
Cluster Physical Locks subsection of sp_sysmon
uses this counter to report the node-to-node transfer and
physical-lock acquisition as a node affinity ratio for this object

TransferReqWaited int4 Counter (Cluster environments only) Number of times physical lock
requests waiting before receiving page transfers.

AvgPhysicalLockWai int4 Counter (Cluster environments only) Average amount of time clients
tTime spend before the physical lock is granted.

MaxPhysicalLockWai real Counter (Cluster environments only) Maximum amount of time this
tTime object waited for before a physical lock was granted.

Reference Manual: Tables


Monitoring Tables PUBLIC 227
Name Datatype Attributes Description

AvgTransferReqWait int4 Counter (Cluster environments only) Average amount of time physical
Time lock requests wait before receiving page transfers.

MaxTransferReqWait real Counter (Cluster environments only) Maximum amount of time physi­
Time cal lock requests waited to receive page transfers.

TotalServiceReques int4 Counter (Cluster environments only) Number of physical lock requests
ts serviced by the cluster cache manager of an instance.

PhysicalLocksDowng int4 Counter (Cluster environments only) Number of physical lock down­
raded grade requests serviced by the cluster cache manager of an
instance.

PagesTransferred int4 Counter (Cluster environments only) Number of pages transferred at


an instance by the cluster cache manager.

ClusterPageWrites int4 Counter (Cluster environments only) Number of pages written to disk
by the cluster cache manager of an instance.

AvgServiceTime int4 None (Cluster environments only) Average amount of service time
spent by the cluster cache manager of an instance.

MaxServiceTime real None (Cluster environments only) Maximum amount of service


time spent by the cluster cache manager of an instance.

AvgQueueWaitTime real None (Cluster environment only) Average amount of time, in milli­
seconds, spent waiting for the SAP ASE server to complete
buffer transfers for this object.

MaxQueueWaitTime real None (Cluster environment only) Maximum amount of time, in milli­
seconds, spent waiting for the SAP ASE server to complete a
buffer transfer for this object .

AvgTimeWaitedOnLoc int4 None (Cluster environments only) Average amount of time, in milli­
alUsers seconds, an instance’s cluster cache manager waited be­
cause of page use by users on this instance.

MaxTimeWaitedOnLoc real None (Cluster environments only) Maximum amount of time, in mil­
alUsers liseconds, an instance’s cluster cache manager waited be­
cause of page use by users on this instance.

AvgTransferSendWai int4 None (Cluster environments only) Average amount of time an in­
tTime stance’s cluster cache manager spends for page transfer.

MaxTransferSendWai real None (Cluster environments only) Maximum amount of time an in­
tTime stance’s cluster cache manager waited for a page transfer to
complete.

Reference Manual: Tables


228 PUBLIC Monitoring Tables
Name Datatype Attributes Description

AvgIOServiceTime int4 None (Cluster environments only) Average amount of time used by
an instance’s cluster cache manager for page transfer.

MaxIOServiceTime real None (Cluster environments only) Maximum amount of time the
Cluster Cache Manager took to write pages to disk.

AvgDowngradeServic int4 None (Cluster environments only) Average amount of time the clus­
eTime ter cache manager uses to downgrade physical locks.

MaxDowngradeServic real None (Cluster environments only) Maximum time a task spent wait­
eTime ing for the physical lock to be downgraded on a page.

SharedLockWaitTime int Counter, reset The total amount of time, in milliseconds, that all tasks spent
waiting for a shared lock.

ExclusiveLockWaitT int Counter, reset The total amount of time, in milliseconds, that all tasks spent
ime waiting for an exclusive lock.

UpdateLockWaitTime int Counter, reset The total amount of time, in milliseconds, that all tasks spent
waiting for an update lock.

ObjectCacheDate datetime None Indicates the date and time when the object was added to the
cache.

HkgcRequestsDcomp int Counter Total number of data pages of the partition that were queued
for page compression.

HkgcPendingDcomp int Counter Number of data pages of the partition that are still pending for
page compression.

HkgcOverflowsDcomp int Counter Total number of pages that could not be compressed because
the housekeeper queue was full.

IOSize1Page int Counter Number of IO operations performed for each IO that is one
page in size.

IOSize2Pages int Counter Number of IO operations performed for each IO that is 2 pa­
ges in size.

IOSize4Pages int Counter Number of IO operations performed for each IO that is 4 pa­
ges in size.

IOSize8Pages int Counter Number of IO operations performed for each IO that is 8 pa­
ges in size.

PRSSelectCount int Counter The number of times the precomputed result set was used in
a query.

Reference Manual: Tables


Monitoring Tables PUBLIC 229
Name Datatype Attributes Description

LastPRSSelectDate datetime None Date for the last time the precomputed result set was used in
a query.

PRSRewriteCount int Counter Number of times the optimizer determined that the precom­
puted result set was valid for use in a query. the optimizer
may not have used the precomputed result set because it
found a better choice.

LastPRSRewriteDate datetime None Date for the last time the optimizer determined that the pre­
computed result set was valid for use in a query.

Scans int Counter Number of scans performed on this object.

LastScanDate datetime None Date of the last scan on this object

Updates int Counter Number of updates performed on this object.

LastUpdateDate datetime None Date of the last update on this object

Inserts int None Number of inserts performed on this object.

LastInsertDate datetime None Date of the last insert on this object

Deletes int Counter Number of deletes performed on this object.

LastDeleteDate datetime None Date of the last delete on this object

NumLevel0Waiters int Counter Number of times a Level0 Scan start waited because of a utili­
ty's wait request.

AvgLevel0WaitTime reak Counter Average time, in milliseconds, Adaptive Server waited for
Level0 access.

3.50 monOpenPartitionActivity

Provides information about the use of each open partition on the server.

Enable the enable monitoring and per object statistics active configuration parameters for this
monitoring table to collect data.

 Note

Because you can use the plan for a stored procedure or trigger multiple times, the value of the
OptSelectCount column may be less than the value of UsedCount. In addition, because the SAP ASE
server may decide not to execute certain portions of a query plan during execution, the UsedCount may be
less than the OptSelectCount.

Reference Manual: Tables


230 PUBLIC Monitoring Tables
Columns

Name Datatype Attributes Description

DBID int None Unique identifier for the database.

ObjectID int None Unique identifier for the object.

IndexID int None Unique identifier for the index.

PartitionID int None Unique identifier for the partition.

InstanceID int None ID of an instance in a shared-disk cluster.

DBName varchar( None Name of the database in which the object resides.
30)

ObjectName varchar( None Name of the object.


30)

PartitionName varchar( None Name of the partition.


30)

LogicalReads64 bigint Counter Total number of buffers read.

PhysicalReads64 bigint Counter Number of buffers read from disk.

APFReads int Counter Number of asynchronous prefetch (APF) buffers read.

PagesRead int Counter Total number of pages read.

PhysicalWrites64 bigint Counter Total number of buffers written to disk.

PagesWritten int Counter Total number of pages written to disk.

RowsInserted int Counter Number of rows inserted.

RowsDeleted int Counter Number of rows deleted.

RowsUpdated int Counter Number of updates.

OptSelectCount int Counter Number of times object was selected for plan during
compilation.

LastOptSelectDate datetime None Last date the index was selected for plan during compi­
lation.

UsedCount int Counter Number of times the object was used in a plan during
execution.

Reference Manual: Tables


Monitoring Tables PUBLIC 231
Name Datatype Attributes Description

LastUsedDate datetime None Last date the index was used in a plan during execution.

HkgcRequests int Counter Total number of events queued for a partition. A large
value implies the system is generating large amounts of
garbage for the specified partition.

HkgcPending int Counter The number of pending events for a partition. A large
value implies that a lot of garbage is yet to be collected,
although the housekeeper will clean it up. If you restart
the SAP ASE server, all entries in the housekeeper
queue are lost, and the garbage from those pages is not
collected when you restart the SAP ASE server.

HkgcOverflows int Counter The number of overflow partition events. A large value
implies the housekeeper queues are filling up. Gener­
ated garbage will not then be cleaned up because the
housekeeper cannot schedule the job.

PhysicalLocks int Counter (Cluster environments only) Number of physical locks


requested per object.

PhysicalLocksRetained int Counter Number of physical locks retained. Use to identify the
lock hit ratio for each object. Good hit ratios imply bal­
anced partitioning for this object.

PhysicalLocksRetainWai int Counter (Cluster environments only) Number of physical lock re­
ted quests waiting before a lock is retained.

PhysicalLocksDeadlocks int Counter (Cluster environments only) Number of times a physical


lock requested returned a deadlock. The Cluster
Physical Locks subsection of sp_sysmon uses
this counter to report deadlocks while acquiring physi­
cal locks for each object.

PhysicalLocksWaited int Counter (Cluster environments only) Number of times an in­


stance waited for a physical lock request.

PhysicalLocksPageTrans int Counter (Cluster environments only) Number of page transfers


fer that occurred when an instance requested a physical
lock. The Cluster Physical Locks subsection of
sp_sysmon uses this counter to report the node-to-
node transfer and physical-lock acquisition as a node af­
finity ratio for this object.

TransferReqWaited int Counter (Cluster environments only) Number of times physical


lock requests waiting before receiving page transfers.

Reference Manual: Tables


232 PUBLIC Monitoring Tables
Name Datatype Attributes Description

MaxPhysicalLockWaitTim real Counter (Cluster environments only) Maximum amount of time


e this object waited for before a physical lock was granted.

AvgPhysicalLockWaitTim real Counter (Cluster environments only) Average amount of time cli­
e ents spend before the physical lock is granted.

MaxTransferReqWaitTime real Counter (Cluster environments only) Maximum amount of time


physical lock requests waited to receive page transfers.

AvgTransferReqWaitTime real Counter (Cluster environments only) Average amount of time


physical lock requests wait before receiving page trans­
fers.

TotalServiceRequests int Counter (Cluster environments only) Number of physical lock re­
quests serviced by the cluster cache manager of an in­
stance.

PhysicalLocksDowngrade int Counter (Cluster environments only) Number of physical lock


d downgrade requests serviced by the cluster cache man­
ager of an instance.

PagesTransferred int Counter (Cluster environments only) Number of pages transfer­


red at an instance by the cluster cache manager.

ClusterPageWrites int Counter (Cluster environments only) Number of pages written to


disk by the cluster cache manager of an instance.

AvgServiceTime real None (Cluster environments only) Average amount of time


spent by the cluster cache manager of an instance.

MaxServiceTime real None (Cluster environments only) Maximum amount of time


spent by the cluster cache manager of an instance.

AvgQueueWaitTime real None (Cluster environment only) Average amount of time, in


milliseconds, spent waiting for the SAP ASE server to
complete buffer transfers for this object.

MaxQueueWaitTime real None (Cluster environments only) Maximum amount of time,


in milliseconds, spent waiting for the SAP ASE server to
complete a buffer transfer for this object .

AvgTimeWaitedOnLocalUs real None (Cluster environments only) Average amount of service


ers time an instance’s cluster cache manager waits because
of page use by users on this instance.

Reference Manual: Tables


Monitoring Tables PUBLIC 233
Name Datatype Attributes Description

MaxTimeWaitedOnLocalUs real None (Cluster environments only) Maximum amount of time,


ers in milliseconds, an instance’s cluster cache manager
waited for a physical lock because the object in question
was in use by another process.

AvgTransferSendWaitTim real None (Cluster environments only) Average amount of service


e time an instance’s cluster cache manager spends for
page transfer.

MaxTransferSendWaitTim real None (Cluster environments only) Maximum amount of time


e the Cluster Cache Manager for an instance waited for
page transfer to complete

AvgIOServiceTime real None (Cluster environments only) Average amount of service


time used by an instance’s cluster cache manager for
page transfer.

MaxIOServiceTime real None (Cluster environments only) Maximum amount of time


the Cluster Cache Manager took to write pages to disk.

AvgDowngradeServiceTim real None (Cluster environments only) Average amount of time the
e cluster cache manager uses to downgrade physical
locks.

MaxDowngradeServiceTim real None (Cluster environments only) Maximum time a task


e spent waiting for the physical lock to be downgraded on
a page.

ObjectCacheDate datetime None Indicates the date and time when the object was added
to the cache.

HkgcRequestsDcomp int Counter Total number of data pages of the partition that were
queued for page compression

HkgcPendingDcomp int Counter Number of data pages of the partition that are still pend­
ing for page compression

HkgcOverflowsDcomp int Counter Total number of pages that could not be compressed
because the housekeeper queue was full.

IOSize1Page int Counter Number of IO operations performed for each IO that is


one page in size

IOSize2Pages int Counter Number of IO operations performed for each IO that is 2


pages in size

IOSize4Pages int Counter Number of IO operations performed for each IO that is 4


pages is size

Reference Manual: Tables


234 PUBLIC Monitoring Tables
Name Datatype Attributes Description

IOSize8Pages int Counter Number of IO operations performed for each IO that is 8


pages in size

3.51 monPCIBridge

Contains information about the Java PCI Bridge. This table provides information about the Java environment.

You do not need to enable any configuration parameters for this monitoring table to collect data.

Columns

Name Datatype Attributes Description

InstanceID tinyint None (Cluster environments only) ID of an instance in a shared-disk


cluster.

Status char(10) None Current status of the PCI Bridge. Values are:

● ACTIVE
● DOWN

ConfiguredSlots int None Number of configured slots. Set using max pci slots
configuration parameter.

ActiveSlots int None Number of currently active slots.

ConfiguredPCIMemor int None Total memory configured for the PCI Bridge using the pci
yKB memory configuration parameter.

UsedPCIMemoryKB int None Total memory currently used by the PCI bridge and its com­
ponents.

3.52 monPCIEngine

Displays engine information for the PCI Bridge and its plug-ins. This table provides information about the Java
environment.

You do not need to enable any configuration parameters for this monitoring table to collect data.

Reference Manual: Tables


Monitoring Tables PUBLIC 235
Columns

Name Datatype Attributes Description

InstanceID tinyint None (Cluster environments only) ID of an instance in a shared-disk


cluster.

Engine int None Engine number

Status char(10) None Status of the plug-in on the engine. Values are:

● ACTIVE
● INIT

PLBStatus char(10) None Status of the PCI Launcher Boss. Values are:

● ACTIVE
● DOWN

NumberofActiveThre int None Number of active threads currently under control of the PCI
ads Launcher Boss.

PLBRequests int None Number of requests for the PCI Launcher Boss to execute a
function for a native thread.

PLBwakeupRequests int None Number of times the PCI Launcher Boss received a wake-up
to execute work for a native thread.

3.53 monPCISlots

Contains information about the plug-in bound to each slot in the PCI Bridge. This table provides information
about the Java environment.

You do not need to enable any configuration parameters for this monitoring table to collect data.

Columns

Name Datatype Attributes Description

InstanceID tinyint None (Cluster environments only) ID of an instance in a shared-disk


cluster.

Slot int None Number of active slot: Values are 1 – 31.

Reference Manual: Tables


236 PUBLIC Monitoring Tables
Name Datatype Attributes Description

Status char(10) None Status of the slot. Values are:

● INIT
● IN USE
● STOPPED

Modulename varchar(3 None Logical module name bound to the current slot.
0)

engine int None Engine associated with the slot.

3.54 monPCM

Applies to cluster environments only. Tracks the peer coordination module (PCM) client activities in the cluster
(for example, the number of fragment that were sent and received), and contains a row for each PCM client.

You do not need to enable any configuration parameters for this monitoring table to collect data.

Columns

Column name Type Attributes Description

InstanceId tinyint None Instance ID for which the information is collected

Sent int None Number of messages sent per module

Fragments_sent int None Number of fragments sent per module

Fragments_received int None Number of fragments received per module

Multicast int None Number of multicast requests

Received int None Number of messages received per module

Reply int None Number of replies received per module

Unicast int None Number of unicast messages sent per module

Mulicat int None Number of multicast messages sent per module

Sync int None Number of synchronous messages sent per module

Reference Manual: Tables


Monitoring Tables PUBLIC 237
Column name Type Attributes Description

Async int None Number of asynchronous messages sent per module

MinBytes int None Minimum number of bytes transferred per message

AvgBytes int None Average number of bytes transferred per message

MaxBytes int None Maximum number of bytes transferred per message

MinDialog int None Minimum length of the dialogs

AvgDialog int None Average length of the dialogues

MaxDialog int None Maximum length of the dialogues

Dialog int None Number of the dialogues

MinTimeSyncApi real None Minimum time spent in PCM API in synchronous mode in the
PCM layer per module

AvgTimeSyncApi real None Average time spent in PCM API in synchronous mode in the
PCM layer per module

MaxTimeSyncApi real None Maximum time spent in PCM API in synchronous mode in the
PCM layer per module

MinTimeAsyncApi real None Minimum time spent in PCM API in asynchronous mode in the
PCM layer per module

AvgTimeAsyncApi float None Average time spent in PCM API in asynchronous mode in the
PCM layer per module

MaxTimeAsyncApi float None Maximum time spent in PCM API in asynchronous mode in
the PCM layer per module

MinTimeCIPCMsgAllo real None Minimum time spent in cipcmsg allocations in the PCM layer
c per module

AvgTimeCIPCMsgAllo real None Average time spent in cipcmsg allocations in the PCM layer
c per module

MaxTimeCIPCMsgAllo real None Maximum time spent in cipcmsg allocations in the PCM
c layer per module

MinTimeCIPCSendCB real None Minimum time spent in cipc_sendcb per module

AvgTimeCIPCSendCB real None Average time spent in cipc_sendcb per module

MaxTimeCIPCSendCB real None Maximum time spent in cipc_sendcb per module

Reference Manual: Tables


238 PUBLIC Monitoring Tables
Column name Type Attributes Description

MinTimeCIPCUnicast float None Minimum time spent in CIPC while sending the unicasts mes­
smsg sage per module

AvgTimeCIPCUnicast real None Average time spent in CIPC while sending the unicasts mes­
smsg sage per module

MaxTimeCIPCUnicast real None Maximum time spent in CIPC while sending the unicasts
smsg message per module

MinTimeCIPCMultica real None Minimum time spent in CIPC while sending the multicasts
stsmsg message per module

AvgTimeCIPCMultica real None Average time spent in CIPC while sending the multicasts
stsmsg message per module

MaxTimeCIPCMultica real None Maximum time spent in CIPC while sending the multicasts
stsmsg message per module

MinTimeClientRecvC real None Minimum time spent in client receive callback in the PCM
B layer per module

AvgTimeClientRecvC real None Average time spent in client receive callback in the PCM layer
B per module

MaxTimeClientRecvC real None Maximum time spent in client receive callback in the PCM
B layer per module

ModuleName varchar(3 None Name of the PCM client


0)

3.55 monProcedureCache

Returns statistics relating to SAP ASE procedure cache.

Enable the enable monitoring configuration parameter for this monitoring table to collect data.

Reference Manual: Tables


Monitoring Tables PUBLIC 239
Columns

Name Datatype Attributes Description

Requests int Counter, reset Number of stored procedures requested

Loads int Counter, reset Number of stored procedures loaded into cache

Writes int Counter, reset Number of times a procedure was normalized and the tree written back to
sysprocedures

Stalls int Counter, reset Number of times a process had to wait for a free procedure cache buffer
when installing a stored procedure into cache

Instance tinyint None (Cluster environments only) ID of an instance in a shared-disk cluster.


ID

3.56 monProcedureCacheMemoryUsage

Includes one row for each procedure cache allocator. An allocator is identified by an allocator ID, which is
internal to SAP ASE.

You need not enable any configuration parameters for this monitoring table to collect data.

Columns

Name Datatype Attributes Description

InstanceID tinyint None (Cluster environments only) ID of an instance in a shared-disk clus­


ter.

AllocatorID int Counter, re­ Allocator ID


set

ModuleID int Counter, re­ Module ID (internal to SAP ASE)


set

Active int Counter, re­ Number of memory pages (2KB) currently allocated to this allocator
set

HWM int Counter, re­ Maximum number of memory pages allocated since the server was
set started

Reference Manual: Tables


240 PUBLIC Monitoring Tables
Name Datatype Attributes Description

ChunkHWM int Counter, re­ Largest number of contiguous memory pages allocated since the
set server was started

AllocatorName varchar(3 None Name of the allocator


0)

NumReuseCaused int Counter, re­ Number of times this allocator has caused replacement
set

3.57 monProcedureCacheModuleUsage

Includes one row for each module that allocates memory from procedure cache. A module, which is identified
with a module ID, is a functional area classification internal to SAP ASE procedure cache management.

You need not enable any configuration parameters for this monitoring table to collect data.

Columns

Name Datatype Attributes Description

InstanceID tinyint None (Cluster environments only) ID of an instance in a shared-disk clus­


ter.

ModuleID int Counter, re­ A module ID


set

Active int Counter, re­ Number of memory pages (2KB) currently allocated to this module
set

HWM int Counter, re­ The maximum number of memory pages allocated since the server
set was started

NumPagesReused int Counter, re­ Number of pages allocated to this module


set

ModuleName varchar(3 None Name of the module


0)

Reference Manual: Tables


Monitoring Tables PUBLIC 241
3.58 monProcELC

Provides statistics for the Engine Local Cache (ELC).


You do not need to enable any configuration parameters for this monitoring table to collect data.

Columns

A
t
t
r
i
b
u
t
e
Name Datatype sDescription

EngineID INT4 nSystem-defined, numeric identifier of the engine, starting from 0.


o
n
e

ProcELCNum INT4 nSystem-defined, numeric identifier of the ELC. Each engine has four
oELCs, whose identifiers range from 0 to 3.
n
e

ProcELCChunkS INT4 nSize of the ELC chunk, in units of 2k pages. For example, a value of 2
ize omeans 4k pages for the ELC chunk.
n
e

ProcELCCount INT8 nTotal number of chunks stored in the cache.


o
n
e

ProcELCMaxCou INT8 nMaximum number of chunks that can be stored in the cache.
nt o
n
e

Reference Manual: Tables


242 PUBLIC Monitoring Tables
A
t
t
r
i
b
u
t
e
Name Datatype sDescription

ProcELCAllocs INT8 CNumber of allocations done from this ELC.


o
u
n
t
e
r

ProcELCFrees INT8 CNumber of frees done to this ELC.


o
u
n
t
e
r

ProcELCEmpty INT8 CNumber of times this ELC was found empty.


o
u
n
t
e
r

ProcELCFull INT8 CNumber of times this ELC was found to be full.


o
u
n
t
e
r

Reference Manual: Tables


Monitoring Tables PUBLIC 243
A
t
t
r
i
b
u
t
e
Name Datatype sDescription

ProcELCFlushe INT8 CNumber of times this ELC was flushed.


s o
u
n
t
e
r

3.59 monProcess

Provides detailed statistics about processes that are currently executing or waiting.

Enable the enable monitoring and wait event timing configuration parameters for this monitoring
table to collect data.

Columns

Name Datatype Attributes Description

SPID int None Session process identifier

InstanceID tinyint None (Cluster environments only) ID of an instance in a shared-disk


cluster.

KPID int None Kernel process identifier

ServerUserID int None Server user ID (SUID) of the user associated with this process.

OrigServerUserI int None Server user identifier prior to executing set proxy
D

Reference Manual: Tables


244 PUBLIC Monitoring Tables
Name Datatype Attributes Description

BatchID int None Unique identifier for the SQL batch containing the executing state­
ment

ContextID int None A unique identifier generated each time an executing query
causes a stored procedure, trigger, execute immediate, deferred
compilation, or other compiled object execution to occur

LineNumber int None Line number of the current statement within the SQL batch

SecondsConnecte int None Number of seconds since this connection was established
d

DBID int None Unique identifier for the database used by the process

EngineNumber smallint None Unique identifier of the engine on which the process is executing

Priority int None Priority at which the process is executing

FamilyID int None spid of the parent process, if this is a worker process

Login varchar(3 None Login user name


0)

Application varchar(3 None Application name. May be blank if the application did not set a
0) name in its login structure.

Command varchar(3 None Category of process or command the process is currently execut­
0) ing

NumChildren int None Number of child processes, if executing a parallel query

SecondsWaiting int None Amount of time, in seconds, the process has been waiting, if the
process is currently blocked by a lock held by another process.

WaitEventID smallint None Unique identifier for the event for which the process is waiting, if
the process is currently in a wait state.

BlockingSPID int None Session process identifier of the process holding the lock this
process requested, if waiting for a lock

BlockingXLOID int None Unique lock identifier for the lock that this process has requested,
if waiting for a lock

DBName varchar(3 None Name of the database the process is currently using
0)

EngineGroupName varchar(3 None Engine group for the process


0)

Reference Manual: Tables


Monitoring Tables PUBLIC 245
Name Datatype Attributes Description

ExecutionClass varchar(3 None Execution class for the process


0)

MasterTransacti varchar(2 None Name of the transaction the process has open
onID 55)

HostName varchar(3 None Name of the host machine on which the application that started
0) the process is running.

ClientName varchar(3 None Value of the <clientname> property set by the application.
0)

ClientHostName varchar(3 None Value of the <clienthostname> property set by the application.
0)

ClientApplName varchar(3 None Value of the <clientapplname> property set by the application.
0)

ClientDriverVer varchar16 None Version of the connectivity driver used by the client program
sion

3.60 monProcessActivity

Provides detailed statistics about process activity.

Enable the enable monitoring and wait event timing configuration parameters for this monitoring
table to collect data.

Columns

Name Datatype Attributes Description

SPID smallint None Session process identifier.

InstanceID int None (Cluster environments only) ID of an instance in a shared-disk clus­


ter.

KPID int None Kernel process identifier.

Reference Manual: Tables


246 PUBLIC Monitoring Tables
Name Datatype Attributes Description

ServerUserID int None Server user identifier (SUID) of the user running this process. The
value in ServerUserID matches the syslogins.suid col­
umn. Use the suser_name function to obtain the corresponding
name.

OrigServerUser int None Server user identifier prior to executing set proxy
ID

CPUTime int Counter CPU time (in milliseconds) used by the process.

WaitTime int Counter Time (in milliseconds) the process spent waiting.

PhysicalReads bigint Counter Number of buffers read from disk.

LogicalReads bigint Counter Number of buffers read from cache.

PagesRead bigint Counter Number of pages read.

PhysicalWrites bigint Counter Number of buffers written to disk.

PagesWritten bigint Counter Number of pages written.

MemUsageKB int None Amount of memory (in bytes) allocated to the process.

LocksHeld int None Number of locks process currently holds.

TableAccesses int Counter Number of pages read that the SAP ASE server retrieved without us­
ing an index.

IndexAccesses int Counter Number of pages read that the SAP ASE server retrieved using an
index.

WorkTables int Counter Total number of work tables the process created.

TempDbObjects int Counter Total number of temporary tables the process created.

ULCBytesWritte int Counter Number of bytes written to the user log cache for the process.
n

ULCFlushes int Counter Total number of times the user log cache was flushed. The value is a
sum of regular and tempdb user log cache.

ULCFlushFull int Counter Number of times the user log cache was flushed because it was full.
The value is a sum of regular and tempdb user log cache.

ULCMaxUsage int None The maximum usage (in bytes) of the user log cache by the process.
The value is a sum of regular and tempdb user log cache.

Reference Manual: Tables


Monitoring Tables PUBLIC 247
Name Datatype Attributes Description

ULCCurrentUsag int None The current usage (in bytes) of the user log cache by the process.
e The value is a sum of regular and tempdb user log cache.

Transactions int Counter Number of transactions started by the process.

Commits int Counter Number of transactions committed by the process.

Rollbacks int Counter Number of transactions rolled back by the process.

HostName varchar( None Name of the host machine on which the application that executed
30) the query is running.

Application varchar( None Name of the application.


30)

ClientName varchar( None Value of the <clientname> property set by the application.
30)

ClientHostName varchar( None Value of the <clienthostname> property set by the application.
30)

ClientApplName varchar( None Value of the <clientapplname> property set by the application.
30)

IOSize1Page int Counter Number of IO operations performed for each IO one page in size.

IOSize2Page int Counter Number of IO operations performed for each IO that is 2 pages in
size.

IOSize4Page int Counter Number of IO operations performed for each IO that is 4 pages is
size.

IOSize8Page int Counter Number of IO operations performed for each IO that is 8 pages in
size.

HeapMemoryInUs int None Current amount, in kilobytes, of heap memory in use.


eKB

HeapMemoryUsed int None Maximum amount, in kilobytes, of heap memory used (the high wa­
HWM_KB ter mark).

HeapMemoryRese int None Amount, in kilobytes, of heap memory reserved.


rvedKB

HeapMemoryAllo int None Amount, in kilobytes, of heap memory allocated.


cs

QueryOptimizat int Counter CPU time (in milliseconds) used for query optimization.
ionTime

Reference Manual: Tables


248 PUBLIC Monitoring Tables
3.61 monProcessLookup

Provides identifying information about each process on the server.

See monProcessActivity for statistics about the activity of each process.

You need not enable any configuration parameters for this monitoring table to collect data.

Use the set command to configure <clientname>, <clienthostname>, <clientapplname>. See the
Reference Manual: Commands.

Columns

Name Datatype Attributes Description

SPID int None Session process identifier

InstanceID tinyint None (Cluster environments only) ID of an instance in a shared-disk cluster.

KPID int None Kernel process identifier

KTID int None ID of the kernel task

Login varchar(3 None Login user name


0)

Application varchar(3 None Application name


0)

ClientHost varchar(3 None Host name of client


0)

ClientIP varchar(2 None IP address of client


4)

ClientOSPID varchar(3 None Client application’s operating system process identifier


0)

ClientName varchar(3 None Value of the <clientname> property set by the application
0)

ClientHostNa varchar(3 None Value of the <clienthostname> property set by the application
me 0)

ClientApplNa varchar(3 None Value of the <clientapplname> property set by the application
me 0)

Reference Manual: Tables


Monitoring Tables PUBLIC 249
Related Information

monProcessActivity [page 246]

3.62 monProcessMigration

Applies to cluster environments only. Displays information about the connection currently migrating.

You need not enable any configuration parameters for this monitoring table to collect data.

Columns

Name Datatype Attributes Description

SPID int4 None Pending migration session process ID

KPID int4 None Kernel process ID

LogicalCluster varchar(3 None Current logical cluster


0)

Instance varchar(3 None Current instance.


0)

MigrationLogicalCl varchar(3 None Migration logical cluster.


uster 0)

MigrationInstance varchar(3 None Migration instance.


0)

Command varchar(3 None Migration trigger.


0)

3.63 monProcessNetIO

Provides the network I/O activity information for each process.

Enable the enable monitoring configuration parameter for this monitoring table to collect data.

Reference Manual: Tables


250 PUBLIC Monitoring Tables
Columns

Name Datatype Attributes Description

SPID int None Session process identifier

InstanceID tinyint None (Cluster environments only) ID of an instance in a shared-disk


cluster.

KPID int None Kernel process identifier

NetworkPacketSize int None Network packet size the session is currently using.

PacketsSent int Counter Number of packets sent

PacketsReceived int Counter Number of packets received

BytesSent int Counter Number of bytes sent

BytesReceived int Counter Number of bytes received

NetworkEngineNumb smallint None Number of the engine that this process is using as its network
er engine.

3.64 monProcessObject

Provides statistical information regarding objects currently being accessed by processes.

Enable the enable monitoring and per object statistics active configuration parameters for this
monitoring table to collect data.

Columns

Name Datatype Attributes Description

SPID int None Session process identifier

InstanceID tinyint None (Cluster environments only) ID of an instance in a shared-disk clus­


ter.

KPID int None Kernel process identifier

DBID int None Unique identifier for the database in which the object resides

Reference Manual: Tables


Monitoring Tables PUBLIC 251
Name Datatype Attributes Description

ObjectID int None Unique identifier for the object

PartitionID int None Unique identifier for the partition

IndexID int None Unique identifier for the index

OwnerUserID int None User identifier for the object owner

LogicalReads int Counter Number of buffers read from cache

PhysicalReads int Counter Number of buffers read from disk

PhysicalAPFRea int Counter Number of asynchronous prefetch buffers read from disk
ds

DBName varchar(3 None Name of database


0)

ObjectName varchar(3 None Name of the object


0)

PartitionName varchar(3 None Name of the partition


0)

ObjectType varchar(3 None Type of object


0)

PartitionSize int Counter Partition size in kilobytes

3.65 monProcessProcedures

Returns a list of all procedures being executed by processes.

Enable the enable monitoring and statement statistics active configuration parameters for this
monitoring table to collect data.

Columns

Name Datatype Attributes Description

SPID int None Session process identifier

Reference Manual: Tables


252 PUBLIC Monitoring Tables
Name Datatype Attributes Description

InstanceID tinyint None (Cluster environments only) ID of an instance in a shared-disk cluster.

KPID int None Kernel process identifier

DBID int None Unique identifier for object’s database

OwnerUID int None Unique identifier for the object owner

ObjectID int None Unique identifier for the procedure

PlanID int None Unique identifier for the query plan

MemUsageKB int None Amount of memory, in KB, used by the procedure

CompileDate datetime None Date that the procedure was compiled

ContextID int None A unique identifier generated each time an executing query causes a
stored procedure, trigger, execute immediate, deferred compilation, or
other compiled object execution to occur

LineNumber int None The line in the procedure currently being executed

StatementNum int None The currently executing statement


ber

DBName varchar( None Name of the database that contains the procedure
30)

OwnerName varchar( None Name of the owner of the object


30)

ObjectName varchar( None Name of the procedure


30)

ObjectType varchar( None The type of procedure (for example, stored procedure or trigger)
32)

ExecutionCou int Counter Number of times the SAP ASE server executed this instance of the stored
nt procedure held in the procedure cache

CPUTime int Counter Amount of CPU time, in milliseconds, the SAP ASE server spent execut­
ing the instance of this stored procedure held in the procedure cache

ExecutionTim int Counter Total amount of time, in milliseconds, the SAP ASE server spent execut­
e ing the instance of this stored procedure held in the procedure cache

PhysicalRead int Counter Number of physical reads performed by the instance of this stored proce­
s dure held in the procedure cache

Reference Manual: Tables


Monitoring Tables PUBLIC 253
Name Datatype Attributes Description

LogicalReads int Counter Number of logical reads performed by the instance of this stored proce­
dure held in the procedure cache

PhysicalWrit int Counter Number of physical writes performed by the instance of this stored pro­
es cedure held in the procedure cache

PagesWritten int Counter Number of pages read by the instance of this stored procedure held in
the procedure cache

3.66 monProcessSQLText

Provides the SQL text currently being executed by the process. Use max SQL text monitored to tune the
maximum size of the SQL text.

monProcessSQLText returns a row for each row of the SQL text batch a process executes (specified by SPID).
That is, if a batch contains three rows, monProcessSQLText returns three rows in its result set. The value for
LineNumber indicates the number of the line in the batch. If the length of a single row exceeds 255 bytes,
monProcessSQLText returns multiple rows and the value for LineNumber is the same for all rows, but the
value for SequenceInLine is different for each row.

Enable the enable monitoring, max SQL text monitored, SQL batch capture configuration
parameter for this monitoring table to collect data.

Columns

Name Datatype Attributes Description

SPID int None Session process identifier.

InstanceID tinyint None (Cluster environments only) ID of an instance in a shared-disk cluster.

KPID int None Kernel process identifier.

ServerUserID int None Server user identifier (SUID) of the user executing this SQL. The
ServerUserID matches the value for the syslogins.suid col­
umn. Use the suser_name function to obtain the corresponding
name.

OrigServerUser int None Server user identifier prior to executing set proxy
ID

Reference Manual: Tables


254 PUBLIC Monitoring Tables
Name Datatype Attributes Description

BatchID int None Unique identifier for the SQL batch containing the SQL text.

LineNumber int None SQL batch line number for the row’s SQL text.

SequenceInLine int None Each row has a unique, and increasing, SequenceInLine value. If
the length of the SQL text exceeds 255 bytes, the text is split over
multiple rows.

SQLText varchar(2 None The text being executed.


55)

3.67 monProcessStatement

Provides information about the statement currently executing.

Enable the enable monitoring, statement statistics active, per object statistics active,
and wait event timing configuration parameters for this monitoring table to collect data.

Columns

Name Datatype Attributes Description

SPID smallint None Session process identifier.

InstanceID int None (Cluster environments only) ID of an instance in a shared-disk cluster.

KPID int None Kernel process identifier.

DBID int None Unique identifier for the database currently being used by the proc­
ess.

ProcedureID int None Unique identifier for the stored procedure.

PlanID int None Unique identifier for the plan the process is executing.

BatchID int None The batch number for the process in which the statement is exe­
cuted.

ContextID int None The stack frame of the procedure, if a procedure.

LineNumber int None Line number of the statement within the SQL batch.

Reference Manual: Tables


Monitoring Tables PUBLIC 255
Name Datatype Attributes Description

CPUTime int Counter CPU time, in milliseconds, used by the statement.

WaitTime int Counter Amount of time, in milliseconds, the task has waited while the state­
ment executes.

MemUsageKB int None Number of kilobytes of memory used for execution of the statement.

PhysicalReads int Counter Number of buffers read from disk.

LogicalReads int Counter Number of buffers read from cache.

PagesModified int Counter Number of pages modified by the statement.

PacketsSent int Counter Number of network packets sent by the SAP ASE server.

PacketsReceive int Counter Number of network packets received by the SAP ASE server.
d

NetworkPacketS int None Size, in bytes, of the network packet currently configured for the ses­
ize sion.

PlansAltered int Counter Number of plans altered at execution time.

RowsAffected int None Number of rows affected by the current statement. Queries using an
inefficient query plan likely show a high number of logical I/Os per re­
turned row.

SnapCodegenTim int Counter Total number of microseconds of CPU time used by this query plan's
e SNAP code generation.

SnapJITTime int Counter Total number of microseconds of CPU time used by this query plan's
SNAP JIT compilation.

SnapExecutionT int Counter Total amount of elapsed time that this query plan's SNAP has exe­
ime cuted (in microseconds).

SnapExecutionC int Counter Number of times the query plan's SNAP has been executed since it
ount was compiled.

DBName varchar( None Name of the database in which this process is executing. If the proc­
30) ess is executing a stored procedure or other compiled object, the da­
tabase name is the name of the database for that object.

StartTime datetime None Date when the statement began executing.

QueryOptimizat int Counter CPU time (in milliseconds) used for query optimization.
ionTime

Reference Manual: Tables


256 PUBLIC Monitoring Tables
3.68 monProcessWaits

Provides a list of all wait events for which current processes on the server are waiting. Returns only wait events
whose Waits value is greater than zero.

Enable the enable monitoring, wait event timing, and process wait events, configuration
parameters for this monitoring table to collect data.

See Performance and Tuning: Monitoring Tables for a descriptions of select wait events.

Columns

Name Datatype Attribute Description

SPID int None Session process identifier

InstanceID tinyint None (Cluster environments only) ID of an instance in a shared-disk cluster.

KPID int None Kernel process identifier

ServerUser int None Server user ID (SUID) of the user associated with this process.
ID

OrigServer int None Server user identifier prior to executing set proxy
UserID

WaitEventI smallint None Unique identifier for the wait event


D

Waits int Counter Number of times the process has waited for the event

WaitTime int Counter Amount of time, in milliseconds, that the process has waited for the event

3.69 monProcessWorkerThread

Provides statistics for the activity of each currently configured worker process.

Enable the enable monitoring configuration parameter for this monitoring table to collect data.

Reference Manual: Tables


Monitoring Tables PUBLIC 257
Columns

Name Datatype Attribute Description

SPID int None Session process identifier

InstanceID tinyint None (Cluster environments only) ID of an instance in a shared-disk clus­


ter.

KPID int None Kernel process identifier

ThreadsActive int None Number of worker threads currently in use by the process

MaxParallelDegree smallint None The maximum degree of parallelism this task can use, which is set
with the set parallel_degree option for the session, or the
current Run Value for max parallel degree.

MaxScanParallelDeg smallint None The maximum degree of parallelism for scans this task can use,
ree which is set with set scan_parallel_degree for the ses­
sion, or if this is not set, the current Run Value for max scan
parallel degree.

ParallelQueries int Counter Total number of parallel queries performed by this process

PlansAltered int Counter Number of plans altered from “optimal” for the process. Plans are
altered if the SAP ASE server has an insufficient number of worker
threads available to execute the query with an optimal degree of
parallelism.

FamilyID int None The spid of the parent process, if this is a worker process

3.70 monRepCoordinator

Provides information about the RepAgent coordinator process.


Besides providing general information about the coordinator process, such as its spid, or the database with
which RepAgent is associated, it also provides status information. monRepCoordinator display rows if the
RepAgent process is running multiple scanners or if stream replication is set to true.

Columns

 Note

Columns that display information only when stream replication is set to true are indicated with a 1

Reference Manual: Tables


258 PUBLIC Monitoring Tables
Name Datatype Attributes Description

DBID int None Unique identifier for the database currently being used by the
process

SPID int None Session process identifier

InstanceID tinyint None (Cluster environments only) ID of an instance in a shared-disk


cluster

DBName varchar(3 None Database name for this Rep Agent


0)

Status varchar(3 None Current task status


0)

SleepStatus varchar(3 None Current sleep status, if sleeping


0)

NumStreamSwSynctoA bigint 1Number of Stream mode switches from (near) synchronous


None
sync to asynchronous

NumStreamSwAsyncto bigint 1Number of Stream mode switches from asynchronous to


None
Sync (near) synchronous

ModeSwitchStatus varchar(3 None The status of syncronous and asyncronous switch modes.
0)

Valid values for ModeSwitchStatus are:

Value Description

AsyncSwitchRequested An asyncronous switch has been requested; RAT-CI is


waiting for an acknowledgement from Fault Manager or
Replication Server.

SyncSwitchRequested A switch to syncronous mode has been requested.

AsyncSwitchAllowed The previous SyncSwitchRequested is confirmed and


RAT-CI is allowed to execute the switch towards
SyncSwitchRequested mode.

AsyncSwitchInProgress A switch to asyncronous mode is in progress

SyncSwitchInProgress Switch to syncronous mode is in progress

AsyncSwitchCompleted A switch to asyncronous mode has occurred.

SyncSwitchCompleted A switch to syncronous mode has occurred.

Reference Manual: Tables


Monitoring Tables PUBLIC 259
3.71 monRepLogActivity

Collects statistics information about Replication Agent activity related to scanning the log.

Enable the RepAgent activate monitoring configuration parameter to collect timing related data.

A RegAgent has a syslogs scanner and a sysimrslogs scanner if in-memory row storage (IMRS) is enabled on a
database. For a non-IMRS database, this table reports information for the syslogs scanner. For an IMRS
database, this table reports information for both scanners.

Use the ScannerSPID and ScannerType columns from monRepScanners to determine which row is the
syslogs scanner or sysimrslogs scanner.

Columns

The columns for monRepLogActivity Columns are:

 Note

Columns that display information only when the RepAgent enable monitoring configuration parameter
is set to true are indicated with an asterisk (*).

Name Datatype Description

DBID int Unique identifier for the database currently being used by the
process

SPID int Session process identifier

InstanceID tinyint (Cluster environments only) ID of an instance in a shared-disk clus­


ter

LogRecordsScanned bigint Total number of log records scanned

LogRecordsProcessed bigint Total number of log records processed

NumberOfScans bigint Total number of scans performed

TotalTimeForLogScans bigint Total amount of time the scanner thread used to scan the log

LongestTimeForLogScans bigint Longest time spent on a single scan

AvgTimeForLogScans bigint Average amount of time spent on the log scan

Updates bigint Total number of updates processed

Inserts bigint Total number of inserts processed

Reference Manual: Tables


260 PUBLIC Monitoring Tables
Name Datatype Description

Deletes bigint Total number of deletes processed

StoredProcedures bigint Total number of stored procedures processed

SQLStatements bigint Total number of SQL statements processed

DDL bigint Total number of DDL log records processed

Writetxt bigint Total number of Log records processed by writetext com­


mands

LobColumns bigint Total number of DML log records processed for a table with off-
row, large object columns

CLRs bigint Total number of CLRs processed

Checkpoints bigint Total number of checkpoints processed

BeginTransaction bigint Total number of begin transactions processed

CommitTransaction bigint Total number of commit transactions processed

AbortedTransaction bigint Total number of aborted transactions processed

PreparedTransaction bigint Total number of transactions found in the prepare state

DelayedCommit bigint Total number of delayed commits processed

MaintenanceUserTransaction bigint Total number of transactions opened by the maintenance user

NumberOfLogExtentions bigint Total number of times the RepAgent waited for extensions to trans­
actions

TotalTimeOfLogExtentions bigint Total amount of time, in milliseconds, the RepAgent waited for log
extensions*

LongestTimeOfLogExtentions bigint Longest amount of time, in milliseconds, the RepAgent waited for
log extensions*

AvgTimeOfLogExtentions bigint Average amount of time, in milliseconds, the RepAgent waited for
log extensions*

NumberOfSchemaFwdLookup bigint Total number of schema forward lookups

TotalTimeOfSchemaFwdLookup bigint Total amount of time, in milliseconds, spent on forward scans*

LongestTimeOfSchemaFwdLook bigint Longest amount of time, in milliseconds, spent on a forward scan*


up

Reference Manual: Tables


Monitoring Tables PUBLIC 261
Name Datatype Description

AvgTimeOfSchemaFwdLookup bigint Average amount of time, in milliseconds, spent on forward scans*

NumberOfSchemaBckwLookup bigint Total number of schema backward lookups

TotalTimeOfSchemaBckwLooku bigint Total amount of time spent on schema backward lookups*


p

LongestTimeOfSchemaBckwLoo bigint The longest amount of time, in milliseconds, spent on a backward


kup scan *

AvgTimeOfSchemaBckwLookup bigint Average amount of time, in milliseconds, spent on backward


scans*

NumberOfMempoolAllocates bigint Total number of RepAgent pool allocates

NumberOfMempoolFrees bigint Total number of RepAgent memory pool frees

MempoolCurrentSize bigint Current size of the RepAgent memory pool

MempoolHighUsage bigint RepAgent memory pool high usage

DBName varchar( Name of the database in which the task scans


30)

SaveTransaction bigint Number of save transactions processed

AbortCommand bigint Number of abort commands processed

PartialRollback bigint Number rollbacks to a savepoint processed

CachedBeforeImageUsed bigint Number of times that a RepAgent thread retrieves the before-im­
age row values from its memory

3.72 monRepMemoryStatistics

Displays information about Replication Agent memory usage.

Columns

The information of this table is collected only when RepAgent uses stream replication to replicate data.

Reference Manual: Tables


262 PUBLIC Monitoring Tables
Name Datatype Description

DBID int Unique identifier for the database currently being used by
the process.

SPID int Session process identifier

InstanceID tinyint (Cluster Edition only) ID of an instance in a shared-disk


cluster

AllocatedMemory bigint Amount of memory, in bytes, allocated by RepAgent tasks


from the RepAgent memory pool.

NumberOfAllocs bigint Number of allocations required to assign memory from the


RepAgent memory pool

NumberOfFrees bigint Number of frees used to release memory previously allo­


cated from the RepAgent memory pool

NumberOfWaitsOnMemo bigint Number of waits on memory.


ry

AllocatedSchemaCach bigint Memory currently allocated from the RepAgent memory


eMemory pool used for the object schema.

GlobalStreamingRepM bigint Total amount of globally allocated memory, in bytes, re­


emory quested for stream replication, and allocated by all Rep­
Agent instances.

AllocsGlobalStreami bigint Total number of global allocation requests to stream repli­


ngRep cation

FreesGlobalStreamin bigint Total number of global free requests to stream replication


gRep

LocalStreamingRepMe bigint Total amount of memory, in bytes, requested for stream


mory replication that was allocated by the RepAgent running on a
specific database.

AllocsLocalStreamin bigint Total number of requests to allocate memory for stream


gRep replication allocated by the RepAgent running on a specific
database.

FreesLocalStreaming bigint Total number of requests to free memory for stream repli­
Rep cation allocated by the RepAgent running on a specific da­
tabase.

MemoryPoolConfigure bigint Current configured amount of memory, in bytes, for the


dSize RepAgent memory pool

MemoryPoolUsageSize bigint Current amount of memory used, in bytes, for the Rep­
Agent memory pool

Reference Manual: Tables


Monitoring Tables PUBLIC 263
Name Datatype Description

MemoryPoolFreeSize bigint Current amount of memory available, in bytes, for the Rep­
Agent memory pool

DBName varchar(30) Name of the database on which the RepAgent is running

3.73 monRepScanners

Provides information on where the RepAgent Scanner task spends its time.

You need not enable any configuration parameters for this monitoring table to collect data.

Columns

Description Datatype Description

DBID int Unique identifier for the database currently being used by the process.

ScannerSPID int Session process identifier of the RepAgent scanner task.

InstanceID tinyint (Cluster environments only) ID of an instance in a shared-disk cluster.

EngineBinding int Number of the engine to which this task is bound (not applicable in
threaded mode).

LogRecordsScanned int Total number of log records scanned.

LogRecordsProcessed int Total number of log records processed.

NumberOfTruncPointReque int Total number of times RepAgent asked Replication Server for a new
sted truncation point.

Populated only when RepAgent uses the single task scanning of a log
model. When the multiple replication paths (MRP) model is used,
NumberOfTruncPointRequested values are 0. The
monRepSenders table contains related information for the MRP
model.

Reference Manual: Tables


264 PUBLIC Monitoring Tables
Description Datatype Description

NumberOfTruncPointMoved int Total number of times RepAgent moved the secondary truncation
point.

Populated only when RepAgent uses the single task scanning of a log
model. When the multiple replication paths (MRP) model is used,
NumberOfTruncPointMoved values are 0. The
monRepSenders table contains related information for the MRP
model.

DBName varchar(3 Name of the database in which this task scans.


0)

Status varchar(3 Current task status.


0)

SleepStatus varchar(3 ● Current sleep status, if sleeping


0) ● If the log is full, reports:

sleeping on log full

StartMarker varchar(3 Start marker in the log for this scanner.


0)

EndMarker varchar(3 End marker in the log for this scanner.


0)

CurrentMarker varchar(3 Current marker in the log for this scanner.


0)

OldestTransaction varchar(3 Oldest open transaction.


0)

PathName varchar(3 Name of the path the scanner is servicing. Not applicable when Rep­
0) Agent is configured for stream replication.

LogPagesLeft int The number of remaining log pages to be scanned for this scanner,
from its CurrentMarker to the end of the log.

GetLogPageCount int Controls the retrieval of data for the LogPagesLeft column.

The LogPagesLeft column is populated only if the value of


GetLogPageCount is 1.

ScannerType varchar(3 One of the following scanner types:


0) ● syslogs_scanner
● sysimrslogs_scanner

Reference Manual: Tables


Monitoring Tables PUBLIC 265
3.74 monRepScannersTotalTime

Provides information about time spent on different RepAgent Scanner modules.

Enable the RepAgent activate monitoring configuration parameter for this table to start collecting timing
related data.

A RegAgent has a syslogs scanner and a sysimrslogs scanner if in-memory row storage (IMRS) is enabled on a
database. For a non-IMRS database, this table reports information for the syslogs scanner. For an IMRS
database, this table reports information for both scanners.

Use the ScannerSPID and ScannerType columns from monRepScanners to determine which row is the
syslogs scanner or sysimrslogs scanner.

Columns

 Note

Columns that display information only when the RepAgent is running in multithreaded mode are indicated
with a 1. Columns that display information only when multi-path replication is enable are indicated with a 2

Name Datatype Description

DBID int Unique identifier for the database currently being used by the process.

SPID int Session process identifier

InstanceID tinyint (Cluster environments only) ID of an instance in a shared-disk cluster.

LogRecProcessed bigint Total number of log records processed by the scanner thread

BytesPacked bigint Amount of LTL bytes packed by the scanner thread.

TotalTime bigint Total amount of time used by the scanner thread

BootstrapTime bigint Total amount of time required, in microseconds, to complete the multipath
replication bootstrap cycle

ScanTime bigint Total amount of time spent scanning

ProcessTime bigint Total amount of time spent processing log records

SchemaLookupsTime bigint Total amount of time spent looking for an object’s schema in RepAgent
cache

PackTime bigint Total amount of time spent packing the LTL

Reference Manual: Tables


266 PUBLIC Monitoring Tables
Name Datatype Description

QueueingTime bigint Total amount of time spent queuing LTL packets1

HashBindingSize bigint Total number of buckets in the hash binding table holding an object’s bind­
ing information2

HashBindingEntries bigint Total number of objects bound to a path when RepAgent was boot strap­
ped2

HashBindingCollisions bigint The length of the longest collision chain used in the hash binding table2

YieldsOnFullQueue bigint Total number of scanner yields on a full queue1

WaitsOnSenderThread bigint Total number of waits on a sender thread1

WaitTimeOnSenderThrea bigint Total amount of time, in milliseconds, spent waiting on the sender thread1
d

LongestWaitOnSenderTh bigint Longest amount of time, in milliseconds, spent waiting on the sender
read thread1

3.75 monRepSchemaCache

The monRepSchemaCache table reports the schema cache information for each running RepAgent scanner.

Enable the RepAgent activate monitoring configuration parameter to collect timing related data.

A RegAgent has a syslogs scanner and a sysimrslogs scanner if in-memory row storage (IMRS) is enabled on a
database. For a non-IMRS database, this table reports information for the syslogs scanner. For an IMRS
database, this table reports information for both scanners.

Use the ScannerSPID and ScannerType columns from monRepScanners to determine which row is the
syslogs scanner or sysimrslogs scanner.

Columns

The columns for <monRepSchemaCache> are:

 Note

Columns that display information only when the RepAgent enable monitoring configuration parameter
is set to true are indicated a 1.

Reference Manual: Tables


Monitoring Tables PUBLIC 267
Description Datatype Attributes Description

DBID int None Unique identifier for the database running the Replication
Agent.

ScannerSPID int None Session process identifier of the scanner task.

InstanceID tinyint None (Cluster environments only) ID of an instance in a shared-


disk cluster.

ConfiguredSize bigint None Size of the schema cache, in bytes, as configured using max
schema cache per scanner.

CurrentUsageSize bigint None Current size, in bytes, of the schema cache for this scanner.

MaxReachedSize bigint None Maximum size, in bytes, reached for the schema cache.

ObjectSchemas bigint None Number of schemas in cache for tables/stored procedures.

TextImageDescriptor bigint None Number of descriptors for text/image column replication.


s

WideParameters bigint None Number of descriptors for the wide parameter for stored pro­
cedure replication.

ObjectSchemasFlushe bigint None Number of table/stored procedure schemas that have been
d flushed.

TextImageDescriptor bigint None Number of descriptors for text/image column replication


sFlushed that have been flushed.

WideParametersFlush bigint None Number of descriptors for the wide parameter for stored pro­
ed cedure replication that have been flushed.

CacheTooSmallFlushe bigint None Number of objects flushed because the schema cache could
s not hold all schemas involved. This might be an indication
that you need to increase the schema cache size.

TotalAllocTime bigint None Total amount of time spent allocating objects1.

TotalDeallocTime bigint None Total amount of time spent de-allocating objects1.

DBName varchar(3 None Name of the database in which the task scans.
0)

3.76 monRepSenders

Provides processing information about RepAgent Sender tasks.

This table collects data when you enable the RepAgent activate monitoring configuration parameter to
collect timing related data and RepAgent is configured to replicate in LTL mode.

Reference Manual: Tables


268 PUBLIC Monitoring Tables
Columns

The columns for monRepSenders are:

 Note

Columns that display information only when the RepAgent is running in multithreaded mode are indicated
with a 1. Columns that display information only when the RepAgent activate monitoring configuration
parameter is set to true (to begin collecting timing-related data) are indicated a 2.

Name Datatype Description

DBID int Unique identifier for the database currently being used by the proc­
ess.

SenderSPID int Process identifier for the Replication Agent sender task.

InstanceID tinyint (Cluster environments only) ID of an instance in a shared-disk clus­


ter.

EngineBinding int Number of the engine with which this task is bound (not applicable
when the SAP ASE kernel mode is set to "threaded").

MessageQueueSize int Maximum size of the message queue1

MessagesInQueue int Total number of messages in the message queue1

NumberOfScannerYields int Total number of times the scanner yielded on a full queue1

NumberOfScannerSleeps int Total number of times the scanner slept on a full queue1

NumberOfBytesSent int Total number of bytes sent

LastRepServerError int Last error from Replication Server

NumberOfRetries int Total number of connection retries

SleepsOnEmptyQueue int Total number of sleeps spent on an empty message queue

NumberOfQueueFlushes int Total number of times a sender flushed its queue

SleepTimeOnEmptyQueue int Total amount of time, in milliseconds, spent sleeping in an empty


queue2

LongestSleepTimeOnEmptyQu int Longest amount of time, in milliseconds, spent sleeping on an


eue empty queue2

MaxQueueSize int Maximum queue size ever reached1

NumberOfCmdsProcessed int Total number of commands processed.

Reference Manual: Tables


Monitoring Tables PUBLIC 269
Name Datatype Description

AvgBytesPerCmd int Average number of bytes per command.

ScannerSPID int Process identifier for the Replication Agent scanner task associated
with this sender.

DBName varchar( Name of the database in which the task scans


30)

Dataserver varchar( Dataserver name used to connect to Replication Server


30)

ReplicationServer varchar( Replication Server name used to connect to Replication Server


30)

Username varchar( User name used to connect to Replication Server


30)

Status varchar( Current status of this task


30)

SleepStatus varchar( Current sleep status, if sleeping


30)

PathName varchar( Name of the path the scanner is servicing (only applicable for Multi-
30) path replication)

3.77 monRepStreamStatistics

Provides information about RepAgent activity when it is configured to use stream replication.

This table collects data when you enable the RepAgent activate monitoring configuration parameter to
collect timing-related data.

 Note

Columns that display information only when the RepAgent enable monitoring configuration parameter
is set to true are indicated with an asterisk (*).

A RegAgent has a syslogs scanner and a sysimrslogs scanner if in-memory row storage (IMRS) is enabled on a
database. For a non-IMRS database, this table reports information for the syslogs scanner. For an IMRS
database, this table reports information for both scanners.

Use the ScannerSPID and ScannerType columns from monRepScanners to determine which row is the
syslogs scanner or sysimrslogs scanner.

Reference Manual: Tables


270 PUBLIC Monitoring Tables
Columns

Table 2: monRepStreamStatistics Columns

Name Datatype Description

DBID int Unique identifier for the database currently being used by the
process.

SPID int Process identifier for the Replication Agent coordinator task.

InstanceID tinyint (Cluster Edition only) ID of an instance in a shared-disk cluster.

NumberOfScannerSleep bigint Number of times the scanner sleeps while opening a stream.
sOpenStream

NumberOfScannerSleep bigint Number of times the scanner sleeps while allocating a package.
sAllocPkg

NumberOfScannerSleep bigint Number of times the scanner sleeps while flushing a package.
sFlushPkg

NumberOfPackagesAllo bigint Number of packages this stream allocated.


cated

NumberOfPkgsFlushed bigint Number of packages this stream flushed.

NumberOfFullPkgsFlus bigint Number of full packages this stream flushed.


hed

NumberOfFullPkgsFlus bigint Number of full packages flushed at the end of the log.
hedAtEOL

NumberOfPkgsFlushedA bigint Number of packages flushed after a commit.


tCommit

NumberOfAllocatedCmd bigint Number of commands allocated for all packages.


s

NumberOfCmdHdrsGen bigint Number of command headers generated.

NumberOfObjSchemaGen bigint Number of object schemas generated.

NumberOfBytesCmdHdrs bigint Number of command header bytes generated.


Gen

NumberOfBytesObjSche bigint Number of object schema bytes generated.


maGen

TotalMbytesSentForSt bigint Total number of megabytes sent for this stream.


ream

Reference Manual: Tables


Monitoring Tables PUBLIC 271
Name Datatype Description

TotalTimeDistCmds bigint Total amount of time, in milliseconds, spent distributing com­


mands.*

TotalTimeAllocPkg bigint Total amount of time, in milliseconds, allocating stream packages.*

TotalPopulatePkgTime bigint Total amount of time, in milliseconds, populating the packages.

LastPopulatePkgTime bigint Amount of time, in microseconds, spent populating the last pack­
age.

LongestPopulatePkgTi bigint Maximum amount of time, in microseconds, spent populating any


me package.

TotalTimeFlushingPkg bigint Total amount of time, in milliseconds, spent flushing stream pack­
ages.*

TotalWaitToSendTime bigint Total amount of time, in milliseconds, spent by packages waiting in


the send queue before the CI thread sends them over the network.

LastWaitToSendTime bigint Amount of time, in microseconds, that the last package spent wait­
ing in the send queue.

LongestWaitToSendTim bigint Maximum amount of time, in microseconds, spent by any package


e waiting in the send queue.

TotalSendTime bigint Total amount of time, in milliseconds, required to send packages


over the network.

LastSendTime bigint Amount of time, in microseconds, required to send the last pack­
age over the network.

LongestSendTime bigint Maximum amount of time, in microseconds, required to send any


package over the network.

AllocatedBufferPoolS bigint Allocated size of the buffer pool that holds the packets available for
ize a RepAgent thread to use to send data towards SAP Replication
Server.

ConfiguredBufferPool bigint Configured size of the packets buffer pool.


Size

MaxBufferPoolSize bigint Maximum size of the packets buffer pool.

BufferPoolExhausted bigint Number of times the buffer pool was exhausted (no packets left).

BufferPoolGrows bigint Number of times the buffer pool grew to the maximum buffer pool
size.

Reference Manual: Tables


272 PUBLIC Monitoring Tables
Name Datatype Description

BufferPoolShrinks bigint Number of times the buffer pool shrank to the configured buffer
pool size.

BufferPoolSleeps bigint Number of times a task needed to sleep when a package was allo­
cated from the buffer pool, indicating that the buffer was ex­
hausted.

BufferPoolSleepTime bigint Total amount of time, in milliseconds, a task needed to sleep be­
cause a package was allocated from the buffer pool.

CurUsedPoolSize bigint Number of packages in current use.

MaxReachedPoolSize bigint Maximum size reached by the buffer pool when RepAgent was run­
ning.

NumberOfPkgsInSendQ bigint Number of packages currently in the send queue waiting to be sent
over network by the CI thread.

DBName varchar(30) Name of the database in which the task resides.

3.78 monRepSyncTaskStatistics

Provides information about user task activity when the Replication Agent is configured for stream replication.

monRepSyncTaskStatistics collects timing related data when you enable the RepAgent activate
monitoring configuration parameter to collect timing related data.

 Note

Columns that display information only when the RepAgent enable monitoring configuration parameter
is set to true are indicated with an asterisk (*).

Columns

Name Datatype Attributes Description

DBID int None Unique identifier for the database currently be­
ing used by the process.

SPID int None Process identifier for the Replication Agent co­
ordinator task.

Reference Manual: Tables


Monitoring Tables PUBLIC 273
Name Datatype Attributes Description

InstanceID tinyint None (Cluster Edition only) ID of an instance in a


shared-disk cluster.

NumberOfTaskWakeups bigint None Number of wakeup calls received by user tasks


in synchronous mode.

NumberTimerTaskWakeups bigint None Total number of user task wakeup calls that re­
sulted from an expired timer.

TotalSleepTime bigint None Total amount of sleep time, in microseconds,


user tasks spent on disk and network I/O com­
pletion.*

LongestSleepTime bigint None Longest amount of sleep time, in microseconds,


user tasks spend on disk and network I/O com­
pletion.*

AverageSleepTime bigint None Average amount of sleep time, in microseconds,


user tasks spent on disk and network I/O com­
pletion.*

MaxTasksInSleepQueue bigint None Maximum number of user tasks in the sleep


queue.

TotalSyncCommitTime bigint None Total amount of transaction time, in microsec­


onds, user tasks spent between the start and
the end flush.*

TotalFlushTime bigint None Total amount of disk I/O flush time, in microsec­
onds, user tasks spent between the start and
the end flush.*

AverageFlushTime bigint None Average amount of disk I/O flush time, in micro­
seconds, user tasks spent between the start
and the end flush.*

NumberOfCommits bigint None Total number of commits.

NumberOfSleeps bigint None Total number of sleeps.

CommitToRAProcessTime bigint None Total amount of time, in milliseconds, that elap­


ses between a commit and RepAgent process­
ing the commit.*

AverageCommitToRAProcessTim bigint None Average amount of time, in milliseconds, that


e elapses between a commit and RepAgent proc­
essing the commit.*

Reference Manual: Tables


274 PUBLIC Monitoring Tables
Name Datatype Attributes Description

LongestCommitToRAProcessTim bigint None Longest amount of time, in microseconds, that


e elapses between a commit and RepAgent proc­
essing the commit.*

RAProcessToPkgFlushTime bigint None Total amount of time, in milliseconds, Rep Agent


requires to process a commit before the pack­
age flushes.*

AverageRAProcessToPkgFlushT bigint None Average amount of time, in milliseconds, that


ime elapses to process a commit before packages
are flushed.*

LongestRAProcessToPkgFlushT bigint None Longest amount of time, in microseconds, Rep


ime Agent requires to process a commit before the
package flushes.*

PkgFlushToAckTime bigint None Total amount of time, in milliseconds, required


for a package flush to receive acknowledgement
from Replication Server.*

AveragePkgFlushToAckTime bigint None Average amount of time, in milliseconds, for the


package flush to receive an acknowledgement
from Replication Server.*

LongestPkgFlushToAckTime bigint None Longest amount of time, in microseconds, for


the package flush to receive an acknowledge­
ment from Replication Server.*

AckToScheduleTime bigint None Total amount of time, in milliseconds, required


between the Replication Server acknowledge­
ment and the task being rescheduled.*

AverageAckToScheduleTime bigint None Average amount of time, in milliseconds, re­


quired between the Replication Server acknowl­
edgement and the task being rescheduled.*

LongestAckToScheduleTime bigint None Longest amount of time, in microseconds, re­


quired between the Replication Server acknowl­
edgement and the task being rescheduled.*

DBName varchar(3 None Name of the database in which the task resides
0)

PreviousAverageCommitWaitTi bigint None Previous average commit wait time for all user
me tasks.

CurrentAverageCommitWaitTim bigint None Current average commit time


e

Reference Manual: Tables


Monitoring Tables PUBLIC 275
Name Datatype Attributes Description

CurrentAverageCommitThresho bigint None Number of tasks that exceeded the average


ld commit time but did not trigger a mode switch.

CommitThresholdResets bigint None Number of resets of the commit wait threshold

AcquiredTaskWaitMutex bigint None Number of times the task wait mutex was ac­
quired.

A mutex is a mutual exclusion object that allows


multiple program threads to share the same re­
source, but not at the same time.

This mutex is acquired when a task needs to in­


sert itself into the list of sleeping tasks waiting
for a commit they sleep on to be acknowledged.
This mutex is used when streaming replication
is set to near sync or sync.

RetriesTaskWaitMutex bigint None Number of times a thread tried to acquire the


task wait mutex.

The number indicates how often a retry was


necessary to acquire the mutex. If this number
goes up, it means there is higher traffic for this
mutex, which could potentially lead to a per­
formance slowdown. For more information on
the mutex contention, enable traceflag 9144 to
display the information when the RepAgent
thread is stopped.

AcquiredPackageInfoMutex bigint None Number of times the package information mu­


tex was acquired.

This mutex is acquired when the RepAgent


thread allocates a package from the Component
Interface (CI) package pool. The package pool is
shared between the RepAgent scanner task and
the CI native thread that deals with sending and
receiving acknowledgments from Replication
Server.

Reference Manual: Tables


276 PUBLIC Monitoring Tables
Name Datatype Attributes Description

RetriesPackageInfoMutex bigint None Number of times a thread tried to acquire the


package information mutex.

The number indicates how often a retry was


necessary to acquire the mutex. If this number
goes up, it means there is higher traffic for this
mutex, which could potentially lead to a per­
formance slowdown. For more information on
the mutex contention, enable traceflag 9144 to
display the information when the RepAgent
thread is stopped.

NumberOfAckBeforeIODone bigint None Number of commits acknowledged by SAP Rep­


lication Server before SAP ASE finished flushing
the physical I/O from log records.

NumberOfWakeupsMissed bigint None Number of SAP ASE tasks still sleeping after re­
ceiving a commit.

NumberOfSwitchesSkipped bigint None Number of mode switches that were skipped


because the average commit wait time for all
tasks indicated a mode switch for an individual
task was not needed.

3.79 monRepTruncationPoint

Provides information about the RepAgent truncation point management task's activity while the Replication
Agent is configured for stream replication.

monRepTruncationPoint collects data when you enable the RepAgent activate monitoring
configuration parameter to collect timing related data.

 Note

Columns that display information only when the RepAgent enable monitoring configuration parameter
is set to true are indicated with an asterisk (*).

Reference Manual: Tables


Monitoring Tables PUBLIC 277
Columns

Name Datatype Attibutes Description

DBID int None Unique identifier for the data­


base currently being used by
the process.

SPID int None Process identifier for the


Replication Agent truncation
point manager task.

InstanceID tinyint None (Cluster Edition only) ID of an


instance in a shared-disk
cluster.

TruncpointsProcesse bigint None Total number of truncation


d points processed.

syslogsTruncpointsP bigint None If IMRS is enabled, displays


rocessed the number of times a trun­
cation point was moved in sy­
slogs.

If IMRS is not enabled, has


the same value as
TruncpointsProcesse
d.

sysimrslogsTruncpoi bigint None If IMRS is enabled, displays


ntsProcessed the number of times a trun­
cation point was moved in sy­
simrslogs.

If IMRS is not enabled, dis­


plays 0.

TotalProcessingTime bigint None Total amount of time, in mi­


crosecond, spent processing
truncation point requests.*

LongestProcessingTi bigint None Longest amount of time, in


me microsecond, spent process­
ing truncation point re­
quests.*

IdleTime bigint None Total amount of idle time, in


milliseconds, for the trunca­
tion point manager task.*

Reference Manual: Tables


278 PUBLIC Monitoring Tables
Name Datatype Attibutes Description

NumberOfWakeups bigint None

TruncpointsRequeste bigint Number of times the trunca­ Number of truncation points


d tion point manager task requested when opening the
wakes up. stream to Replication Server.

TruncpointsConfirme bigint None Number of truncation points


d received from Replication
Server that have a confirma-
tion status.

DBName varchar(30) None Name of the database in


which the task resides.

Status varchar(30) None Current status of this task.

SleepStatus varchar(30) None Current sleep status, if sleep­


ing.

3.80 monSpinlockActivity

Provides statistics about spinlock activity.

Enable the enable spinlock monitoring configuration parameter for this monitoring table to collect data.

Columns

Name Datatype Attributes Description

SpinlockName varchar(255) None Name of spinlock

SpinlockSlotID int None ID for this spinlock in the


spinlock memory pool

Grabs bigint Counter, reset Number of grabs for this


spinlock

Spins bigint Counter, reset Number of spins on this spin­


lock

Waits bigint Counter, reset Number of waits for this


spinlock

Reference Manual: Tables


Monitoring Tables PUBLIC 279
Name Datatype Attributes Description

OwnerPID int None Current owner Process Iden­


tifier

LastOwnerPID int None Previous owner Process


Identifier

Contention real None Spinlock contention, as per­


centage

InstanceID tinyint None (Cluster environments only)


ID of an instance in a shared-
disk cluster.

3.81 monSQLRepActivity

Provides statistics for SQL statements that were successfully replicated on all open objects.

Enable the enable monitoring and per object statistics active configuration parameters for this
monitoring table to collect data.

Columns

Name Datatype Attribute Description

DBID int None Unique identifier of the data­


base the process is currently
using

ObjectID int None ID of the object being moni­


tored

InstanceID tinyint None (Cluster environments only)


ID of an instance in a shared-
disk cluster

DBName varchar(30) None Name of database containing


the object being monitored
for activity

ObjectName varchar(30) None Name of the object being


monitored for activity

Reference Manual: Tables


280 PUBLIC Monitoring Tables
Name Datatype Attribute Description

UpdateStmts int Counter Number of update state­


ments replicated as SQL

InsertSelectStmts int Counter Number of insert and


select statements repli­
cated as SQL

DeleteStmts int Counter Number of delete state­


ments replicated as SQL

SelectIntoStmts int Counter Number of select into


statements replicated as
SQL

RowsThreshold int None Low boundary range for the


number of rows affected by
the statements

3.82 monSQLRepMisses

Provides statistics for SQL statements that were not successfully replicated for all open objects.

Enable the enable monitoring and per object statistics active configuration parameter for this
monitoring table to collect data.

Columns

Name Datatype Attributes Description

DBID int None Unique identifier of the data­


base the process is currently
using

ObjectID int None ID of the object being moni­


tored

InstanceID tinyint None (Cluster environments only)


ID of an instance in a shared-
disk cluster

Reference Manual: Tables


Monitoring Tables PUBLIC 281
Name Datatype Attributes Description

DBName varchar(30) None Name of database containing


the object being monitored
for activity

ObjectName varchar(30) None Name of the object being


monitored for activity

Threshold int Counter Number of statements that


could not be replicated as
SQL because the number of
affected rows was below the
defined threshold

QueryLimitation int Counter Number of statements that


could not be replicated as
SQL because of a query limi­
tation

Configuration int Counter Number of statements that


could not be replicated as
SQL because of the configu-
ration

3.83 monSSLCertInfo

Provides statistical information about an activate SSL certificate.

Columns

Name Datatype Description

CertificatePa varchar (30) The path of the SSL certificate.


th

ValidFrom datetime The start date of the SSL certificate.

ValidTo datetime The expiration date of the SSL certificate.

Reference Manual: Tables


282 PUBLIC Monitoring Tables
3.84 monState

Provides information regarding the overall state of the SAP ASE server.

You need not enable any configuration parameters for this monitoring table to collect data.

Columns

Name Datatype Attributes Description

InstanceID tinyint None (Cluster environments only) ID of an instance in a shared-disk


cluster.

LockWaitThreshold int None Time (in seconds) that a process must wait for a lock before it
is counted as blocked and reported in the LockWaits col­
umn. The default value for LockWaitThreshold is 5 sec­
onds. The default is used if you do not specify a value in the
where clause of the query (for example
LockWaitThreshold=30).

LockWaits int None Number of process that have waiting for a lock longer than
the value of LockWaitThreshold.

DaysRunning int None Number of days the SAP ASE server has been running.

CheckPoints int None Specifies if any checkpoint is currently running.

NumDeadlocks int Counter Total number of deadlocks that have occurred.

DiagnosticDumps int None Specifies if a shared memory dump is currently in progress


for this server.

Connections int None Number of active inbound connections.

MaxRecovery int None The maximum time (in minutes), per database, that the SAP
ASE server uses to complete its recovery procedures in case
of a system failure; also, the current Run Value for the
recovery interval in minutes configuration op­
tion.

Transactions int4 Counter Number of transactions run, server-wide.

Rollbacks bigint Counter Total number of transactions rolled back

Selects bigint Counter Total number of select operations executed

Updates bigint Counter Total number of update operations executed

Reference Manual: Tables


Monitoring Tables PUBLIC 283
Name Datatype Attributes Description

Inserts bigint Counter Total number of insert operations executed

Deletes bigint Counter Total number of delete operations executed

Merges bigint Counter Total number of merge operations executed

TableAccesses bigint Counter Number of pages from which data was retrieved without an
index

IndexAccesses bigint Counter Number of pages from which data was retrieved using an in­
dex

TempDbObjects bigint Counter Total number of temporary tables created

WorkTables bigint Counter Total number of work tables created

ULCFlushes bigint Counter Total number of times the User Log Cache was flushed

ULCFlushFull bigint Counter Number of times the User Log Cache was flushed because it
was full

ULCKBWritten bigint Counter Number of kilobytes written to the user log cache

PagesRead bigint Counter Number of pages read server-wide

PagesWritten bigint Counter Number of pages written server-wide

PhysicalReads bigint Counter Number of buffers read from the disk

PhysicalWrites bigint Counter Number of buffers written to the disk

LogicalReads bigint Counter Number of buffers read from cache

TotalSyncCommitTim bigint None Total amount of time (in milliseconds) spent performing syn­
e crhonous commits

SnapsGenerated bigint Counter Number of compiled query compilations since the SAP ASE
server was last restarted.

SnapsExecuted bigint Counter Number of actual query plan executions using Simplified Na­
tive Access Plans since the SAP ASE server was last restarted.

StartDate datetime None Date and time the SAP ASE server was started.

CountersCleared datetime None Date and time the monitor counters were last cleared.

3.85 monStatementCache

Provides statistical information about the statement cache. You must enable the statement cache before
monStatementCache table can collect data.

Enable the enable monitoring, enable stmt cache monitoring, and statement cache size
configuration parameters for this monitoring table to collect data.

Reference Manual: Tables


284 PUBLIC Monitoring Tables
Columns

Name Type Attributes Description

InstanceID tinyint None (Cluster environments only) ID of an instance in a shared-disk


cluster.

TotalSizeKB int None Configured size, in KB, of the statement cache.

UsedSizeKB int None Amount of the statement cache, in KB, currently in use.

NumStatements int None Number of statements in the statement cache.

NumSearches int None Number of times the statement cache was searched.

HitCount int None Number of times the statement cache was searched and a
match was found.

NumInserts int None Number of statements that were inserted into the statement
cache.

NumRemovals int None Number of times statements were removed from the state­
ment cache. This value includes statements that were re­
moved with explicit purges or from a replacement strategy.

NumRecompilesSchem int None Number of recompiles due to schema changes in the tables
aChanges referred to in the cached statements.

NumRecompilesPlanF int None Number of recompiles due to the plan flushes from the cache.
lushes

3.86 monSysExecutionTime

The monSysExecutionTime monitoring table includes one row for each operation module executed by
Adaptive Server.

Enable the enable monitoring and execution time monitoring configuration parameters for this
monitoring table to collect data.

Reference Manual: Tables


Monitoring Tables PUBLIC 285
Columns

The columns for monSysExecutionTime are:

Name Datatype Attribute Description

InstanceID int None (Cluster environments only) ID of an instance in a shared-disk


cluster

OperationID int None Unique ID of an operation category

OperationName varchar(3 None Name of the operation category


0)

ExecutionTime bigint Counter Execution time, in microseconds, of each operation per­


formed

ExecutionCnt bigint Counter Total number of occurrences of this operation type

3.87 monSysLoad

Provides trended statistics on a per-engine basis. You need not have the mon_role role to query this monitor
table.

There is one row per engine per statistic, with the exception of kernel run queue length, which is
reported only for engine number 0.

Averages are computed using an algorithm that eliminates momentary peaks and valleys and provides a an
indication of overall trends.

You need not enable any configuration parameters for this monitoring table to collect data.

Columns

The columns for monSysLoad are:

Name Datatype Attribute Description

InstanceID tinyint None ID of the instance within the cluster.

EngineNumber smallint None Engine to which this row belongs.

SteadyState real None Average value for this statistic since the SAP ASE server
started.

Avg_1min real None One-minute moving average for this statistic.

Reference Manual: Tables


286 PUBLIC Monitoring Tables
Name Datatype Attribute Description

Avg_5min real None Five-minute moving average for this statistic.

Avg_15min real None Fifteen-minute moving average for this statistic.

Max_1min real None Maximum 1-minute average since start-up.

Max_5min real None Maximum 5-minute average since start-up.

Max_15min real None Maximum 15-minute average since start-up.

Max_1min_Time datetime None <datetime> at which Max_1min occurred.

Max_5min_Time datetime None <datetime> at which Max_5min occurred.

Max_15min_Time datetime None <datetime> at which Max_15min occurred.

Statistic varchar(3 None Name of the statistic this row represents:


0) ● Percent CPU busy
● Percent I/O busy
● Run queue length
● Kernel run queue length
● Outstanding disk I/Os
● Disk I/Os per second
● Network I/Os per second

Sample real None Value of the metric at the last sample interval (that is, the cur­
rent value of the metric).

Peak real None The highest Sample value since the instance started (that is,
the peak Sample value).

Peak_Time datetime None The date and time the Peak value was achieved.

StatisticID smallint None A fixed identifier for this statistic. You may want to write appli­
cations to the fixed StatisticID instead of the localized
Statistic name.

3.88 monSysPlanText
Provides the history of the query plans for recently executed queries. monSysPlanText returns one row of text
from each line of the running query plans (similar to what is returned sp_showplan or by set showplan on).

To make sure monSysPlanText reads the query plan text in the correct sequence, order the query result by
SequenceNumber. For queries returning data for multiple queries or processes, order the query result by
SPID, KPID, BatchID, SequenceNumber.

Reference Manual: Tables


Monitoring Tables PUBLIC 287
Enable the enable monitoring, plan text pipe max messages, and plan text pipe active
configuration parameters for this monitoring table to collect data.

Typically, there are multiple rows in this table for each query plan. Arrange the rows by sorting on the
SequenceNumber column in ascending order.

monSysPlanText is a historical monitoring table. See Stateful Historical Monitoring Table in the Performance
and Tuning Guide.

Columns

The columns for monSysPlanText are:

Name Datatype Attributes Description

PlanID int None Unique identifier for the plan.

InstanceID tinyint None (Cluster environments only) ID of an instance in a shared-disk


cluster.

SPID int None Session process identifier.

KPID int None Kernel process identifier.

BatchID int None Unique identifier for the SQL batch for which the plan was cre­
ated.

ContextID int None The stack frame of the procedure, if a procedure.

SequenceNumber int None A monotonically increasing number indicating the position of


the PlanText column within the entire plan text.

DBID int None Unique identifier for the database where the procedure is
stored, if the plan is for a stored procedure.

ProcedureID int None Unique identifier for the procedure, if the plan is for a stored
procedure.

DBName varchar(3 None Name of the database in which the statement represented by
0) this plan is executed. This column is NULL if this database is
not open when monSysPlanText is queried. If the process
is executing a stored procedure or other compiled object, the
database name is the name of the database for that object.

PlanText varchar(1 None Plan text output.


60)

Reference Manual: Tables


288 PUBLIC Monitoring Tables
3.89 monSysSQLText

Provides the most recently executed SQL text, or the SQL text currently executing. The maximum number of
rows returned can be tuned with sql text pipe max messages.

Enable the enable monitoring, SQL batch capture, sql text pipe max messages, sql text pipe
active configuration parameters for this monitoring table to collect data.

monSysSQLText is a historical monitoring table. See Performance and Tuning: Monitoring Tables.

 Note

In many cases, the text for a query spans multiple rows in this table. Arrange rows in proper order by
sorting on the SequenceInBatch column in ascending order.

Columns

The columns for monSysSQLText are:

Name Datatype Attributes Description

SPID int None Session process identifier.

InstanceID tinyint None (Cluster environments only) ID of an instance in a shared-disk


cluster.

KPID int None Kernel process identifier.

ServerUserID int None Server user identifier (SUID) of the user who executed this
SQL text. The ServerUserID matches the value in
syslogins.suid. Use the suser_name function to obtain
the corresponding name.

BatchID int None Unique identifier for the SQL batch containing the SQL text.

SequenceInBatch int None Indicates the position of this portion of SQL text within a
batch (the SQL text for a batch may span multiple rows).

SQLText varchar(2 None SQL text.


55)

Reference Manual: Tables


Monitoring Tables PUBLIC 289
3.90 monSysStatement

Provides a history of the most recently executed statements on the server. Use statement pipe max
messages to tune the maximum number of statement statistics returned.

Enable the enable monitoring, statement statistics active, per object statistics active,
statement pipe max messages, statement statistics active, and statement pipe
activestatement statistics configuration parameters for this monitoring table to collect data.

monSysStatement is a historical monitoring table. See Performance and Tuning: Monitoring Tables.

Columns

The columns for monSysStatements are:

Name Datatype Attributes Description

SPID smallint None Session process identifier.

InstanceID int None (Cluster environments only) ID of an instance in a shared-disk


cluster.

KPID int None Kernel process identifier.

DBID int None Unique identifier for the database.

ProcedureID int None Unique identifier for the procedure.

PlanID int None Unique identifier for the stored plan for the procedure.

BatchID int None Unique identifier for the SQL batch containing the statement.

ContextID int None The stack frame of the procedure, if a procedure.

LineNumber int None Line number of the statement within the SQL batch.

CpuTime int Counter Number of milliseconds of CPU used by the statement.

WaitTime int Counter Number of milliseconds the task has waited during execution
of the statement.

MemUsageKB int Number of kilobytes of memory used for execution of the


statement.

PhysicalReads int Counter Number of buffers read from disk.

LogicalReads int Counter Number of buffers read from cache.

Reference Manual: Tables


290 PUBLIC Monitoring Tables
Name Datatype Attributes Description

PagesModified int Counter Number of pages modified by the statement.

PacketsSent int Counter Number of network packets sent by the SAP ASE server.

PacketsReceived int Counter Number of network packets received by the SAP ASE server.

NetworkPacketSize int None Size (in bytes) of the network packet currently configured for
the session.

PlansAltered int Counter The number of plans altered at execution time.

RowsAffected int None Number of rows affected by the current statement. Queries
using an inefficient query plan likely show a high number of
logical I/Os per returned row.

ErrorStatus int None The error return status of the statement.

HashKey int None Hash value for the text of the statement; this is not a unique
identifier. This column is zero (0) if the statement is not exe­
cuted from the statement cache.

SsqlId int None ID of the query plan for this statement within the statement
cache. This column is zero (0) if the statement is not exe­
cuted from the statement cache.

ProcNestLevel int None Nesting level of the statement. This column is zero (0) if the
statement is an ad hoc query. If the statement is within a
stored procedure, this column indicates the nesting level of
that stored procedure.

StatementNumber int None Number indicating the order in which this statement was exe­
cuted within the SQL batch for the process.

DBName varchar(3 None Name of the database in which the statement is executed.
0) This column is NULL if the database is no longer open when
monSysStatement is queried. If the process is executing a
stored procedure or other compiled object, the database
name is the name of the database for that object.

StartTime datetime None Date the statement began execution.

EndTime datetime None Date the statement finished execution.

SnapCodegenTime int Counter Total number of microseconds of CPU time used by this query
plan's SNAP code generation.

SnapJITTime int Counter Total number of microseconds of CPU time used by this query
plan's SNAP JIT compilation.

Reference Manual: Tables


Monitoring Tables PUBLIC 291
Name Datatype Attributes Description

SnapExecutionTime int Counter Total amount of elapsed time that this query plan's SNAP has
executed (in microseconds).

SnapExecutionCount int Counter Number of times the query plan's SNAP has been executed
since it was compiled.

QueryOptimizationT int Counter CPU time (in milliseconds) used for query optimization.
ime

3.91 monSysWaits

Provides a server-wide view of the statistics for events on which processes have waited.

Enable the enable monitoring and wait event timing configuration parameters for this monitoring
table to collect data.

See Performance and Tuning: Monitoring Tables for more information

You can join the monSysWaits table with monWaitEventInfo using the WaitEventID columns as the join
column to obtain the wait event descriptions. For example:

select w.Waits, w.WaitTime, w.WaitEventID, i.Description


from master..monSysWaits w, master..monWaitEventInfo i
where w.WaitEventID = i.WaitEventID

Columns

The columns for monSysWaits are:

Name Datatype Attributes Description

InstanceID tinyint None (Cluster environments only) ID of an instance in a shared-disk


cluster.

WaitEventID smallint None Unique identifier for the wait event

WaitTime int Counter Amount of time (in seconds) tasks spent waiting for the event

Waits int None Number of times tasks waited for the event

Reference Manual: Tables


292 PUBLIC Monitoring Tables
3.92 monSysWorkerThread

Returns server-wide statistics related to worker thread configuration and execution.

Enable the enable monitoring configuration parameter for this monitoring table to collect data.

Columns

The columns for monSysWorkerThread are:

Name Datatype Attributes Description

InstanceID tinyint None (Cluster environments only) ID of an instance in a shared-disk


cluster.

ThreadsActive int None Number of worker processes currently active

TotalWorkerThreads int None Maximum number of worker processes (configured by setting


number of worker processes)

HighWater int reset The maximum number of worker processes that have ever
been in use

ParallelQueries int Counter, reset Number of parallel queries attempted

PlansAltered int Counter, reset Number of plans altered due to unavailable worker processes

WorkerMemory int None The amount of memory currently in use by worker processes

TotalWorkerMemory int None The amount of memory configured for use by worker proc­
esses

WorkerMemoryHWM int reset The maximum amount of memory ever used by worker proc­
esses

MaxParallelDegree int None The maximum degree of parallelism that can be used: the cur­
rent Run Value for max parallel degree configura-
tion option

MaxScanParallelDeg int None The maximum degree of parallelism that can be used for a
ree scan: the current Run Value for max scan parallel
degree configuration option

Reference Manual: Tables


Monitoring Tables PUBLIC 293
3.93 monTableColumns

Describes all the columns for each monitoring table. monTableColumns helps determine what columns are in
the monitoring tables. You can join monTableColumns with monTables to report columns and column
attributes for the monitoring tables.

The metadata view for this table is identical for all instances in a shared-disk cluster.

You need not enable any configuration parameters for this monitoring table to collect data.

Columns

Table 3: monTableColumns Columns

Name Datatype Attributes Description

TableID int None Unique identifier for the view

ColumnID int None Position of the column

TypeID int None Identifier for the datatype of the column

Precision tinyint None Precision of the column, if numeric

Scale tinyint None Scale of the column, if numeric

Length smallint None Maximum length of the column (in bytes)

Reference Manual: Tables


294 PUBLIC Monitoring Tables
Name Datatype Attributes Description

Indicators int None Indicators for specific column properties (for example, if the
column is prone to wrapping and should be sampled)

The Indicators column is a bitmap. Use a bit mask to to


determine which bits are turned on. Possible values are:

● 1 – the value for Indicators may increase rapidly and


lead to counter wrapping if values reach 232, which can
occur in columns that have the number 1 bit in the
Indicators column value turned on. To determine
whether the 1 bit is turned on, use:

select TableName, ColumnName


from Master..monTableColumns
where Indicators & 1 != 0

● 2 – the counter is shared with sp_sysmon and is reset if


you execute sp_sysmon. . .clear.
To display all columns sp_sysmon clears with the
clear parameter, use:

Select TableName, ColumnName


from master..monTableColumns
where Indicators & 2 != 0

TableName varchar(3 None Name of the table.


0)

ColumnName varchar(3 None Name of the column.


0)

TypeName varchar(2 None Name of the datatype of the column.


0)

Description varchar(5 None Description of the column (includes the column’s unit of
12) measurement).

Language varchar(3 None Allows you to specify the language in which the SAP ASE
0) server returns the values of the Description column and
the Label column.

By default, the SAP ASE server returns US English. Queries


must use the IS0-639 and ISO-3166 naming conventions.

Label varchar(1 None Description of the data presented in the column. You can use
50) these values in application user interfaces instead of the ac­
tual column names.

Reference Manual: Tables


Monitoring Tables PUBLIC 295
3.94 monTableCompression

Contains the table’s compression history. Enable the enable monitoring, capture compression
statistics, and per object statistics active configuration parameters for this monitoring table to
collect data.

Columns

The columns for monTableCompression are:

Name Datatype Attributes Description

InstanceID tinyint None (Cluster Edition only) Server instance ID

DBID int None ID of the database to which this table was transferred

ObjectID int None ID of the compressed object

PartitionID int None ID of the compressed partition

CompRowInserted bigint Counter Number of compressed rows inserted

CompRowUpdated bigint Counter Number of updated compressed rows

CompRowForward bigint Counter Number of compressed rows forwarded from the update

CompRowScan bigint Counter Number of compressed rows accessed

RowDecompressed bigint Counter Number of rows decompressed

RowPageDecompresse bigint Counter Number of page-compressed rows decompressed to be row-


d compressed

ColDecompressed bigint Counter Number of columns decompressed

RowCompNoneed int Counter Number of rows not compressed because their compressed
row length exceeded their normal row length

PageCompNoneed bigint Counter Number of pages that are not suitable for page-level compres­
sion because the SAP ASE server cannot generate a diction­
ary or index

PagesCompressed bigint Counter Number of pages compressed at the page-level

AvgBytesSavedPageL bigint Counter Number of bytes page level compression saved


evel

Reference Manual: Tables


296 PUBLIC Monitoring Tables
Name Datatype Attributes Description

TableName varchar None Name of the compressed table

3.95 monTableParameters

Provides a description for all columns in a monitoring table used to optimize query performance for the
monitoring tables.

The metadata view for this table is identical for all instances in a shared-disk cluster.

You need not enable any configuration parameters for this monitoring table to collect data.

Columns

The columns for monTableParameters are:

Name Datatype Attributes Description

TableID int None Unique identifier for the table

ParameterID int None Position of the parameter

TypeID int None Identifier of the datatype of the parameter

Precision tinyint None Precision of the parameter, if numeric

Scale tinyint None Scale of the parameter, if numeric

Length smallint None Maximum length of the parameter (in bytes)

TableName varchar(3 None Name of the table


0)

ParameterName varchar(3 None Name of the parameter


0)

TypeName varchar(2 None Name of the datatype of the parameter


0)

Description varchar(2 None Description of the parameter


55)

Reference Manual: Tables


Monitoring Tables PUBLIC 297
3.96 monTables

Provides a description of all monitoring tables. You can join monTables with monTableColumns for a
description of each monitoring table and the columns it contains.

The metadata view for this table is identical for all instances in a shared-disk cluster.

You need not enable any configuration parameters for this monitoring table to collect data.

Columns

Table 4: monTables Columns

Name Datatype Attributes Description

TableID int None Unique identifier for the table

Columns tinyint None Total number of columns in the table

Parameters tinyint None Total number of optional parameters you can specify

Indicators int None Indicators for specific table properties (for example, if the ta­
ble retains session context)

The Indicators column is a bit map. Use a bitmask to de­


termine which bits are turned on. A value of 1 indicates the ta­
ble is a historical table.

To display all tables that are historical:

Select TableName
from master..monTables
where Indicators & 1 != 0

Size int None Maximum row size (in bytes)

TableName varchar(3 None Table name


0)

Description varchar(3 None Table description. Supports 512 characters.


68)

Language varchar(3 None Allows you to specify the language in which the SAP ASE
0) server returns the values of the Description column.

By default, the SAP ASE server returns US English. Queries


must use the the IS0-639 and ISO-3166 naming conventions.

Reference Manual: Tables


298 PUBLIC Monitoring Tables
3.97 monTableTransfer

Provides historical transfer information for tables in the SAP ASE server’s active memory. It does not store
information for completed transfers. MonTableTransfer provides transfer information on currently ongoing
transfers of all tables, whether they are marked for incremental transfer or not, and on previous transfers on
tables marked for incremental transfer.

You need not enable any configuration parameters for this monitoring table to collect data.

Columns

The columns for monTableTransfer are:

Name Datatype Attributes Description

InstanceID tinyint None (Cluster environments only) Holds the instance ID of the
server in which the command is running. In non-clustered
servers, always holds zero.

DBID smallint None Database ID of table

TableID int None Unique identifier of table

TableName varchar(2 None Name of table


55)

SequenceID int None Internal tracking ID generated by the SAP ASE server

TrackingID int None User-specified tracking ID

PercentDone smallint None Percentage of transfer work done, expressed as an integer be­
tween 0 – 100 (all completed transfers show 100)

BeginTime datetime None Date and time at which transfer begins

EndTime datetime None Date and time at which transfer ends. Ongoing transfers show
NULL.

EndCode smallint None Ending status of transfer.

● 0 – successful transfer.
● NULL – ongoing transfer.
● Error code – failed transfer.

TransferFloor bigint None Timestamp at which data can be sent

TransferCeiling bigint None Timestamp at which data is uncommitted and cannot be sent

Reference Manual: Tables


Monitoring Tables PUBLIC 299
Name Datatype Attributes Description

RowsSent bigint None Number of rows sent

BytesSent bigint None Number of bytes sent

Format varchar(8 None Contains the name of the destination format: one of ase,
) bcp, csv, or iq.

3.98 monTask

Specific to the SAP ASE server in threaded mode, contains one row for each task.

You need not enable any configuration parameters for this monitoring table to collect data.

Columns

The columns for monTask are:

Name Datatype Attributes Description

InstanceID tinyint None ID of the instance within the cluster

KTID int None ID of the kernel task

ThreadPoolID int None ID of the thread pool this task is associated with

ThreadID int None ID of the thread running this task

Name varchar(3 None Name of the task


0)

ThreadPoolName varchar(3 None Name of the thread pool this task is associated with
0)

Reference Manual: Tables


300 PUBLIC Monitoring Tables
3.99 monTempdbActivity

Applies to cluster environments only. Provides statistics for all open local temporary databases, including
global system tempdb when the instance is started in tempdb configuration mode.

monTempdbActivity requires the enable monitoring, per object statistics active, and object
lockwait timing configuration parameters to collect data.

Columns

Table 5: monTempdbActivity Columns

Name Datatype Attributes Description

DBID int None Unique identifier for the database

InstanceID tinyint None ID of the instance within the cluster

DBName varchar(3 None Name of the database


0)

AppendLogRequests int Counter Number of semaphore requests from an instance attempting


to append to the database transaction log

AppendLogWaits int Counter Number of times a task waits for the append log semaphore
to be granted

LogicalReads int Counter Total number of buffers read

PhysicalReads int Counter Number of buffers read from disk

APFReads int Counter Number of asynchronous prefetch (APF) buffers read

PagesRead int Counter Total number of pages read

PhysicalWrites int Counter Total number of buffers written to disk

PagesWritten int Counter Total number of pages written to disk

LockRequests int Counter Number of requests for an object lock in this temporary data­
base

LockWaits int Counter Number of times a task waited for an object lock in this tem­
porary database

CatLockRequests int Counter Number of requests for a lock on the system catalog

CatLockWaits int Counter Number of times a task waited for a lock for system table

Reference Manual: Tables


Monitoring Tables PUBLIC 301
Name Datatype Attributes Description

AssignedCnt int Counter Number of times this temporary database was assigned to a
user task

SharableTabCnt int Counter Number of sharable tables created

3.100 monThread

Specific to the SAP ASE server in threaded mode: Contains one row for each thread.

You need not enable any configuration parameters for this monitoring table to collect data.

Columns

Table 6: monThread Columns

Name Datatype Attributes Description

InstanceID tinyint None ID of the instance within the cluster

ThreadID int None ID of the thread pool

KTID int None Internal kernel thread ID

OSThreadID bigint None ID of the operating system thread

AltOSThreadID int None Alternate operating system thread ID (on some platforms this
may be a lightweight process (LWP) ID)

ThreadPoolID int None ID of the thread pool

State varchar(3 None Current state of the thread


0)

ThreadAffinity int None CPU number to which the thread has affinity

ThreadPoolName varchar(3 None Name of the thread pool


0)

TaskRuns bigint Counter Number of tasks this thread has run

TotalTicks bigint Counter Total number of ticks for this thread

Reference Manual: Tables


302 PUBLIC Monitoring Tables
Name Datatype Attributes Description

IdleTicks bigint Counter Total number of ticks during which this thread was idle

SleepTicks bigint Counter Total number of ticks during which this thread was sleeping

BusyTicks bigint Counter Total number of ticks during which this thread was busy

UserTime bigint Counter Total amount of thread user CPU time, in milliseconds

SystemTime bigint Counter Total amount of thread system CPU time, in milliseconds

MinorFaults bigint Counter Total number of minor page faults. Value is 0 on Windows

MajorFaults bigint Counter Total number of major page faults. Value is 0 on Windows

VoluntaryCtxtSwitc bigint Counter Total number of voluntary operating system context switches.
hes Value is 0 on Windows

NonVoluntaryCtxtSw bigint Counter Total number of nonvoluntary operating system context


itches switches. Value is 0 on Windows

3.101 monThreadPool

Specific to the SAP ASE server in threaded mode: Contains one row for each thread pool.

You need not enable any configuration parameters for this monitoring table to collect data.

Columns

The columns for monThreadPool are:

Name Datatype Attributes Description

InstanceID tinyint None ID of the instance

ThreadPoolID int None ID of the thread pool

Size int None Number of threads in the thread pool

TargetSize int None Requested size (differs from Size only when you change
pool sizes)

Tasks int None Number of tasks associated with the thread pool

Reference Manual: Tables


Monitoring Tables PUBLIC 303
Name Datatype Attributes Description

ThreadPoolName varchar(3 None Name of the thread pool


0)

ThreadPoolDescript varchar(2 None (Optional) description of the thread pool


ion 55)

Type varchar(3 None Thread pool type, Engine (multiplexed) or Run to Completion
0) (RTC)

IdleTimeout int None Amount of time, in microseconds, that threads in this pool
search for runnable tasks before idling

InstanceName varchar(3 None Name of instance


0)

3.102 monThresholdEvent

The monThresholdEvent monitoring table includes one row for each event recorded by SAP ASE.

Enable the allow resource limits configuration parameter to enable resource limits collection. Enable the
enable monitoring, threshold event monitoring, and set threshold event max messages
configuration parameters for this monitoring table to collect data.

monThresholdEvent is a stateful historical monitoring table (see the Performance and Tuning Guide:
Monitoring Tables). Determine the number of events monThresholdEvent stores with the threshold event
max messages configuration parameter.

Columns

Table 7: monThresholdEvent Columns


Name Datatype Attribute Description

SPID int None Server process ID.

InstanceID tinyint None ID of the instance within the cluster..

KPID int None SAP ASE kernel process ID.

KTID int None ID of the kernel task.

Reference Manual: Tables


304 PUBLIC Monitoring Tables
Name Datatype Attribute Description

ServerUserID int None Server user identifier (SUID) of the user who executed this
SQL text. The ServerUserID matches the value in
syslogins.suid. Use the suser_name function to ob­
tain the corresponding name.

FamilyID int None spid of the parent process.

Login varchar(3 None Login user name.


0)

Application varchar(3 None Application name.


0)

HostName varchar(3 None Client host name.


0)

ClientName varchar(3 None Client name set with set clientname.


0)

ClientHostName varchar(3 None Value of the clienthostname property set by the applica­
0) tion.

ClientApplName varchar(3 None Value of the clientapplname property set by the applica­
0) tion.

ClientIP varchar(6 None IP address of the client.


4)

Command varchar(3 None Category of process or command the process is currently ex­
0) ecuting.

DBID int None Unique identifier for the database currently being used by the
process.

DBName varchar(3 None Name of the database running the process.


0)

ProcedureID int None Unique identifier for the procedure.

BatchID int None Unique identifier for the SQL batch containing the statement
being executed.

LineNumber int None Line number of the current statement within the SQL batch.

BlockingSPID int None Session process identifier of the process holding the lock this
process requested, if waiting for a lock.

TempDbObjects int Counter Total number of temporary tables created by the process.

RangeID smallint None Range ID of the limit.

LimitType varchar(3 None Limit type.


0)

LimitID smallint None Limit identifier.

LimitValue int None Value of the limit that was violated.

Reference Manual: Tables


Monitoring Tables PUBLIC 305
Name Datatype Attribute Description

Enforced tinyint None Determines if the limit is enforced prior to, or during, query
execution.

Action varchar(3 None Action to perform when the limit is exceeded.


0)

Scope varchar(3 None Scope of the limit.


0)

ReportDatetime datetime None Date and time the report was issued due to the limit violation.

SQLText varchar(2 None SQL text of the event.


55)

Indexes

● Unique clustered index on <jid>


● Unique nonclustered index on <jname>

3.103 monWaitClassInfo

Provides a textual description for all of the wait classes (for example, waiting for a disk read to complete). All
wait events (see the description for monWaitEventInfo) have been grouped into wait classes that classify the
type of event for which a process is waiting.

This table displays the same information for all instances in a shared-disk cluster

You need not enable any configuration parameters for this monitoring table to collect data.

Columns

The columns for monWaitClassInfo are:

Name Datatype Attributes Description

WaitClassID smallint None Unique identifier for the wait event class

Description varchar(5 None Description of the wait event class


0)

Reference Manual: Tables


306 PUBLIC Monitoring Tables
Name Datatype Attributes Description

Language varchar(3 None Allows you to specify the language in which the SAP ASE
0) server returns the values of the Description column.

By default, the SAP ASE server returns US English. Queries


must use the the IS0-639 and ISO-3166 naming conventions.

3.104 monWaitEventInfo

Provides a textual description of wait conditions reported in the monSysWaits and monProcessWaits tables.

You need not enable any configuration parameters for this monitoring table to collect data.

Columns

The columns for monWaitEventInfo are:

Name Datatype Attributes Description

WaitEventID smallint None Unique identifier for the wait event type

WaitClassID smallint None Unique identifier for the wait event class

Description varchar(5 None Description of the wait event type


0)

Language varchar(3 None Allows you to specify the language in which the SAP ASE
0) server returns the values of the Description column.

By default, the SAP ASE server returns US English. Queries


must use the the IS0-639 and ISO-3166 naming conventions.

Join monWaitEventInfo with monProcessWaits or monSysWaits on the WaitEventID column to obtain


the wait event descriptions listed in those tables.

3.105 monWorkload

(Cluster environments only) Displays the workload score for each logical cluster on each instance according to
its load profile.

You need not enable any configuration parameters for this monitoring table to collect data.

Reference Manual: Tables


Monitoring Tables PUBLIC 307
Columns

The columns for monWorkload are:

Name Datatype Attributes Description

LCID int None Logical cluster ID

InstanceID tinyint None ID of the instance within the cluster

LoadProfileID tinyint None ID of the load profile used to generate the load score

LoadScore real None Load score for this instance or logical cluster

ConnectionsScore real None Weighted value for the user connections metric

CpuScore real None Weighted value for the cpu utilization metric

RunQueueScore real None Weighted value for the run queue metric

IoLoadScore real None Weighted value for the io load metric

EngineScore real None Weighted value for the engine deficit metric

UserScore real None Weighted value for the user metric

LogicalClusterName varchar(3 None Logical cluster name


0)

InstanceName varchar(3 None Instance name


0)

LoadProfileName varchar(3 None Name of the load profile used to generate the load score
0)

3.106 monWorkloadPreview

(Cluster environments only) Provides an estimate of how a load profile impacts the workload score without
enabling the profile.

monWorkload includes one row for each logical cluster and instance on which this logical cluster is running.
The load score and components are based on the current profile for that logical cluster. The
monWorkloadPreview table has one row for each combination of instance and load profile configured on the
system, allowing the administrator to see how workload scoring would be done for each profile. You need not
have the mon_role role to query this monitor table.

You need not enable any configuration parameters for this monitoring table to collect data.

Reference Manual: Tables


308 PUBLIC Monitoring Tables
Columns

The columns for monWorkloadPreview are:

Name Datatype Attributes Description

InstanceID tinyint None ID of the instance within the cluster

LoadProfileID smallint None Load profile ID

LoadScore int None Load score for this instance or logical cluster

ConnectionScore float None Weighted value for the user connections metric

CpuScore float None Weighted value for the cpu utilization metric

RunQueueScore float None Weighted value for the run queue metric

IoLoadScore float None Weighted value for the io load metric

EngineScore float None Weighted value for the engine deficit metric

UserScore float None Weighted value for the user metric

InstanceName varchar(3 None Instance name


0)

LoadProfileName varchar(3 None Name of load profile used to generate the load score
0)

3.107 monWorkloadProfile

Applies to cluster environments only. Displays currently configured workload profiles. You need not have the
mon_role role to query this monitor table.

You need not enable any configuration parameters for this monitoring table to collect data.

Columns

Table 8: monWorkloadProfile Columns

Name Datatype Attributes Description

ProfileID int None Workload profile ID

Reference Manual: Tables


Monitoring Tables PUBLIC 309
Name Datatype Attributes Description

ConnectionsWeight tinyint None Weight associated with the active connections metric

CpuWeight tinyint None Weight associated with the cpu utilization metric

RunQueueWeight tinyint None Weight associated with the run queue metric

IoLoadWeight tinyint None Weight associated with the io load metric

EngineWeight tinyint None Weight associated with the engine deficit metric

UserWeight tinyint None Weight associated with the user metric

LoginThreshold tinyint None Threshold for the login load distribution.

DynamicThreshold tinyint None Threshold for dynamic load distribution (that is, post-login
migration for load purposes)

Hysteresis tinyint None Minimum load score that enables redirection.

Name varchar(3 None Workload profile name


0)

Type varchar(3 None Type of workload profile. Indicates whether the profile is de­
0) fined by a user or the system. Values are:

● User
● System

3.108 monWorkloadRaw

Applies to cluster environments only. Provides the raw workload statistics for each instance. You need not have
the mon_role role to query this monitor table.

You need not enable any configuration parameters for this monitoring table to collect data.

Columns

The columns for monWorkloadRaw are:

Name Datatype Attributes Description

InstanceID tinyint None ID of the instance within the cluster

Reference Manual: Tables


310 PUBLIC Monitoring Tables
Name Datatype Attributes Description

ConnectionsRaw real None Raw value for the user connections metric

CpuRaw real None Raw value for the cpu utilization metric

RunQueueRaw real None Raw value for the run queue metric

IoLoadRaw real None Raw value for the io load metric

EngineRaw real None Raw value for the engine deficit metric

UserRaw real None Raw value for the user metric

InstanceName varchar(3 None Instance name


0)

3.109 monWorkQueue

Provides information on work queues.

You need not enable any configuration parameters for this monitoring table to collect data.

Columns

The columns for monWorkQueue are:

Name Datatype Attributes Description

InstanceID tinyint None (Cluster environments only) ID of an instance in a shared-disk


cluster.

CurrentLength int None Current number of queued items

MaxLength int None Maximum number of queued items

TotalRequests int Counter Total number of requests

QueuedRequests int Counter Total number of requests that waited for another request to
finish

WaitTime int Counter Amount of time, in milliseconds, requests waited

Reference Manual: Tables


Monitoring Tables PUBLIC 311
Name Datatype Attributes Description

Name varchar(3 None Name of the work queue


0)

Reference Manual: Tables


312 PUBLIC Monitoring Tables
4 sybpcidb Tables

The sybpcidb database stores configuration information for the Java PCI Bridge and the PCA/JVM plug-in.
This chapter describes the sybpcidb tables in alphabetical order.

You create sybpcidb, install its tables, and create its system stored procedures when you configure the server
for Java. See the installation guide for your platform. See also Java in Adaptive Server Enterprise for
information about how to use the sp_jreconfig and sp_pciconfig stored procedures that let you configure
and display information in sybpcidb.

4.1 pca_jre_arguments

Stores information about the arguments used to configure the PCA/JVM plug-in.

Columns

Located in sybpcidb. The columns for pca_jre_arguments are:

Name Datatype Description

jre_args_directive_ int The index of the directive to which the argument belongs.
index

jre_args_name varchar(2 The name of the argument.


55)

jre_args_units varchar(2 The argument type. Values are:


55) ● switch
● string
● number
● array

jre_args_number_val int If units=number, holds the number associated with the argument.
ue

jre_args_string_val varchar(2 If units=string or units=array, holds the string value associated with the ar­
ue 55) gument.

Reference Manual: Tables


sybpcidb Tables PUBLIC 313
Name Datatype Description

jre_args_descriptio varchar(2 A brief text description of the argument.


n 55)

jre_args_enabled int Values are:

● 0 – not enabled
● 1 – enabled (default)

jre_args_status int Reserved for future use.

Indexes

Unique clustered index on jre_args_directive_index, jre_args_name, jre_args_string_value

4.2 pca_jre_directives

Stores information about the directives used to configure the PCA/JVM.

Columns

Located in sybpcidb. The columns for pca_jre_directives are:

Name Datatype Description

jre_directives_index int The index of the directive.

jre_directives_name varchar(2 The name of the directive.


55)

jre_directives_descripti varchar(2 A text description of the directive.


on 55

jre_directives_enabled int Values are:

● 0 – not enabled
● 1 – enabled (default)

jre_directives_status int Reserved for future use.

Reference Manual: Tables


314 PUBLIC sybpcidb Tables
Indexes

● Unique clustered index on jre_directives_name.


● Unique nonclustered index on jre_directives_index.

4.3 pci_arguments

Stores information that defines each of the arguments used to configure the PCI Bridge.

Columns

Located in sybpcidb. The columns for pci_arguments are:

Name Datatype Description

pci_args_directive_ int The index of the directive to which the argument belongs.
index

pci_args_name varchar(2 The name of the argument.


55)

pci_args_units varchar(2 The units type. Values are:


55) ● switch
● number

pci_args_number_val int When units=number, the value of number. If units=switch, the value is zero
ue (0).

pci_args_string_val varchar(2 Reserved for future use.


ue 55)

pci_args_descriptio varchar(2 Brief text description of the argument and its purpose.
n 55)

pci_args_enabled int Values are:

● 0 – not enabled
● 1 – enabled (default)

pci_args_status int Reserved for future use.

Reference Manual: Tables


sybpcidb Tables PUBLIC 315
Indexes

Unique clustered index on pci_args_directive_index, pci_args_name.

4.4 pci_directives

Stores the directives that configure the PCI Bridge.

Columns

Located in sybpcidb. The columns for pci_directives are:

Name Datatype Description

pci_directives_inde int The index of the directive.


x

pci_directives_name varchar(2 The name of the directive.


55)

pci_directives_desc varchar(2 A description of the directive.


ription 55)

pci_directives_enab int Values are:


led ● 0 – not enabled
● 1 – enabled (default)

pci_directives_stat int Reserved for future use.


us

Indexes

● Unique clustered index on pci_directives_name


● Unique nonclustered index on pci_directives_index

Reference Manual: Tables


316 PUBLIC sybpcidb Tables
4.5 pci_slotinfo

Contains information describing each slot, including table names for the slot’s directives and arguments.

Columns

Located in sybpcidb. The columns for pci_slotinfo are:

Name Datatype Description

slot_number int The number of the slot.

slot_name varchar(2 The name of the slot, such as JVM.


55)

slot_pca_directives_tabl varchar(2 The name of the PCA directives table, such as


e_name 55 pca_jre_directives.

slot_pca_arguments_table varchar(2 The name of the PCA arguments table, such as


_name 55 pca_jre_arguments.

slot_status varchar(2 Reserved for future use.


55)

Indexes

● Unique clustered index on slot_name


● Unique nonclustered index on slot_number

Reference Manual: Tables


sybpcidb Tables PUBLIC 317
4.6 pci_slot_syscalls

Contains the runtime system call configuration information for the runtime dispatching model used by the PCI
Bridge.

Columns

Located in sybpcidb. The columns for pci_slot_syscalls are:

Name Datatype Description

syscall_slot_number int The slot number associated with the system call.

syscall_system_call varchar(2 The name of the system call.


55)

syscall_dispatch_name varchar(2 The name of the dispatch function for the system call.
55)

syscall_enabled int Values are:

● 0 – not enabled
● 1 – enabled (default)

syscall_status int Reserved for future use.

Indexes

Unique clustered index on syscall_slot_number, syscall_system_call

Reference Manual: Tables


318 PUBLIC sybpcidb Tables
5 Workload Profiler Tables

The workload profiler uses a series of tables to provide metrics and analysis for the in-memory row storages.
These tables are installed when you install the workload profiler with the installwlprofiler script (located
in $SYBASE/$SYBASE_ASE/scripts).

By default, the workload profiler tables are located in the sybdsamdb database, and the accompanying system
procedures are located in sybsystemprocs, although you can specify different databases by editing the
installation script.

5.1 wlp_tables

Lists and describes the tables available to the workload profiler.

Columns

The columns for wlp_tables are:

Column name Datatype Null Description

wlpt_tablena varchar(255) No Name of the workload profiler table.


me

wlpt_colnmpr varchar(8) No Prefix used for all columns in this table.


efix

wlpt_label varchar(30) No Description of table’s usage.

wlpt_descrip varchar(80) Yes Long description of table’s schema.


tion

Indexes

wlp_tables includes the wlpt_tables_ui unique index on wlp_tables (wlpt_tablename,


wlpt_colprefix)

Reference Manual: Tables


Workload Profiler Tables PUBLIC 319
5.2 wlp_table_columns

Describes each column in every table in the workload profiler.

Columns

The columns for wlp_table_columns are:

Name Datatype Null Description

wlptc_tablen varchar(255) No Name of the table


ame

wlptc_colnam varchar(255) No Name of the column


e

wlptc_label varchar(30) No Short description of columns.

wlptc_descri varchar(80) Yes Long description of columns.


ption

Indexes

wlp_table_columns includes the wlptd_table_colname_ui unique index on wlp_table_defs


(wlpt_tablename, wlptd_colname)

Reference Manual: Tables


320 PUBLIC Workload Profiler Tables
5.3 wlp_exec_defaults

Includes execution-time defaults for workload profiling properties (for example, the name of metrics database,
the sampling interval to gather MDA metrics, and so on.

Columns

The columns for wlp_exec_defaults are:

Name Datatype Null Identity Description

wlx_def_ta varchar(255) No Name of the table.


bname

wlx_def_co varchar(255) No Name of the column.


lname

wlx_def_in int Yes (Optional) default integer value.


t_value

wlx_def_vc varchar(30) Yes (Optional) default character value.


_value

wlx_def_va varchar(10) Null Unit-specifier for default values, if applicable. NULL for
lue_units values (for example, path names, database names)
that have no units.

wlx_def_de varchar(30) Yes Long description for columns and default value seman­
scription tics

Indexes

wlp_exec_defaults unique index wlx_def_values_ui on wlp_exec_defaults (wlx_def_tabname and


wlx_def_colname).

Reference Manual: Tables


Workload Profiler Tables PUBLIC 321
5.4 wlp_exec_control

Contains one row for each user-defined workload profiling activity.

Columns

The columns for wlp_exec_control are:

Name Datatype Null Identity Description

wlx_runid int No Yes ID of the workload profiling activity. Used as the join-
key value across all tables holding data relating to this
profile (for example, metrics collected, recommended
configuration, and so on.

wlx_name varchar(255) Yes (Optional) user-specified name identifying a workload.


If not provided, the profiling tool generates a name in
the form Workload ID-<number>, where
<number> is the value of wlx_runid.

wlx_dbname varchar(30) No Target database name of the workload profiler. The de­
fault is the name of the database in which
sp_wlprofiler is running.

wlx_metric varchar(30) No Name of the database where the workload profiler


s_dbname metrics are collected and archived. The default is
sybdsamdb.

wlx_featur varchar(255) No Comma-separated list of SAP ASE features the work­


es load profiler is evaluating. The default is IMRS.

wlx_asever varchar(255) No <@@version> string for the SAP ASE against which
sion
you are executing the workload profiler.

wlx_tracef varchar(255) Yes Trace flag numbers that were active at the start of the
lags workload profiler activity.

wlx_prepar bigdatetime No Date and time you executed a


e_date sp_wlprofiler...prepare parameter.

wlx_begin_ bigdatetime No Date and time you executed a


date sp_wlprofiler...begin parameter.

wlx_last_s bigdatetime No Date and time you last sampled the monitoring table
ampled_dat metrics.
e

Reference Manual: Tables


322 PUBLIC Workload Profiler Tables
Name Datatype Null Identity Description

wlx_end_da bigdatetime No Date and time you executed a


te sp_wlprofiler...end parameter

wlx_mon_in int No Workload monitoring interval, in seconds, specified


terval_sec with the sp_wlprofiler...prepare parameter,
s if included. The default is 300 seconds.

wlx_sample int No Sampling interval, in seconds, for periodically archiv­


_secs ing relevant monitoring metrics whose state can
change during the profiling interval. The default is 120
seconds.

wlx_end_tr varchar(255) Yes Traceflag numbers that were active at the end of the
aceflags workload profiler activity (that is, when you issued
sp_wlprofiler...end). This is distinguished
from wlx_traceflags, which lists only traceflags
that were enabled by the workload profiler.

wlx_auto_r smallint No Number of times you attempted to run


econfig_at sp_wlprofiler...reconfigure.
tempted

wlx_begin_ tinyint No Indicates if the sp_wlprofiler...begin param­


done eter successfully completed.

wlx_end_do tinyint No Indicates if the sp_wlprofiler...end parameter


ne successfully completed.

wlx_auto_r tinyint No Indicates if the


econfig_do sp_wlprofiler...reconfigure parameter
ne successfully completed. If reconfiguration succeeds
on the first attempt, the value for
wlx_auto_reconfig_attempted is 1, and the
value for wlx_auto_reconfig_done is 1. If it is
unsuccessful, , wlx_auto_reconfig_attempted is a non-
zero value, and the value for
wlx_auto_reconfig_done is 0.

wlx_insby varchar(30) Yes Indicates how the row describing the workload profiler
was inserted into wlp_exec_control. The default
is isql. If the workload profiler generates the row de­
scribing a new interval, wlx_insby contains the
value sp_wlp_prepare, indicating that it was in­
serted by the sp_wlprofiler ... prepare
command.

Reference Manual: Tables


Workload Profiler Tables PUBLIC 323
Indexes

wlp_exec_control includes the wlx_runid_pk_ui primary key index on wlp_exec_control


(wlx_runid), and a unique index wlx_name_ui on wlp_exec_control (wlx_name)

5.5 wlp_exec_commands

Contains one row for each T-SQL command that archives data.

Columns

The columns for wlp_exec_commands are:

Name Datatype Null Identity Description

wlxcmd_ctr int No Yes Unique ID used to sequence the commands or opera­


tions for the command specified by wlxcmd_name.

wlxcmd_fea varchar(30) No Feature (specified in


ture wlp_exec_control.wlx_features) for which
the command or operation is applied. By default, data
archival is done for all features indicated by default.

wlxcmd_nam varchar(80) No Internally specified name of a command or SQL opera­


e tion understood by the workload profiler.

wlxcmd_sql varchar(512) No SQL statement or stored procedure call that performs


stmt the required activity, such as data archival, and so on.

wlxcmd_obj varchar(255) Yes Name of the object on which the SQL statement exe­
name cutes.

Indexes

wlp_exec_commands includes a unique index, wlx_def_values_ui, on wlp_exec_defaults


(wlx_def_tabname and wlx_def_colname).

Reference Manual: Tables


324 PUBLIC Workload Profiler Tables
5.6 wlp_control

Logs activities that occur as part of profiling.

Columns

The columns for wlp_control are:

Name Datatype Null Identity Description

wlpc_id int No Yes Unique ID representing the event.

wlpc_name varchar(30) No Name of the event occurring in the workload profiler.

wlpc_value int Yes Value indicating whether the event occurred or not. A
value of 1 indicates it occurred, 0 that it has not.

wlpc_date datetime Yes Time the event occurred.

5.7 wlp_valid_features

Lists the features supported by the workload profiler

Columns

The columns for wlp_valid_features are:

Name Datatype Null Identity Description

wlvf_code smallint No Yes Unique ID representing the feature.

wlvf_ftag varchar(8) No Tag for the feature tag. For example, DRC (datarow col­
umns), MVCC (multiversion concurrency control), or
LFB (latch-free btree).

wlvf_fname varchar(30) No Descriptive name of the feature..

wlvf_descr datetime Yes Feature description.


iption

Reference Manual: Tables


Workload Profiler Tables PUBLIC 325
5.8 wlp_exec_cmd_timings

Tracks execution time metrics for SQL operation and commands run to collect and archive metrics.

Columns

The columns for wlp_exec_cmd_timings are:

Name Datatype Null Identity Description

wlxct_runi int No Unique ID identifying a profiling activity, and used as


d the join-key value across all other tables holding data
relating to this profiling activity (for example, metrics
collected, configuration recommended, and so on).

wlxct_runc int No Unique ID for sequencing the commands or operations


tr for a specific command (specified by
wlp_exec_commands.wlxcmd_name).

wlxct_sqls varchar(512) No SQL statement or stored procedure that performs the


tmt required activity (data archiving and so on).

wlxct_objn varchar(255) Yes Name of the object on which the SQL statement is exe­
ame cuted.

wlxct_elap int No Elapsed amount of time, in microseconds, for the cur­


sed_us rently running SQL statement or stored procedure call.

Indexes

wlp_exec_cmd_timings includes a unique index, wlxct_runid_ctr_ui, on wlp_exec_cmd_timings


(wlxct_runid and wlxct_runctr).

Reference Manual: Tables


326 PUBLIC Workload Profiler Tables
5.9 wlp_exec_cmd_show

Stores column names from archived tables for the sp_wlprofiler ... show parameter to display.

Columns

The columns for wlp_exec_cmd_show are:

Name Datatype Null Identity Description

wlxc_show_ int No Yes Unique ID value for the columns in the table.
colctr

wlxc_show_ varchar(30) No Name of the metrics table that contains the column.
montable

wlxc_show_ varchar(80) Yes Short name assigned to the column.


label

wlxc_show_ varchar(30) No User-visible column name.


colname

wlxc_show_ tinyint Yes Number specified by the order by command for the
orderby_no
column list.

wlxc_show_ tinyint Yes Indicates the column's ascending or descending order.


orderby_as
c

wlxc_show_ tinyint No Indicates which subcommands display this column.


for

Indexes

wlp_exec_commands contains unique indexes on:

● wlxc_show_montable_cols_ui on wlp_exec_cmd_show (wlxc_show_montable and


wlxc_show_colctr)
● wlxc_show_montable_colnames_ui on wlp_exec_cmd_show 4 (wlxc_show_montable and
wlxc_show_colname)

Reference Manual: Tables


Workload Profiler Tables PUBLIC 327
5.10 wlp_unique_collist_for_mda_archive

Lists the columns for the monitoring tables that provide metrics for the workload profiler.

Columns

The columns for wlp_unique_collist_for_mda_archive are:

Name Datatype Null Identity Description

wlp_uc_mda int No Yes Unique ID for each entry in the table.


_ctr

wlp_uc_mda varchar(30) No Name of the metrics table in which the column exists.
_name

wlp_uc_mda varchar(30) Yes Name of the metrics table column.


_uniq_col1

wlp_uc_mda varchar(30) Yes Name of the metrics table column.


_uniq_col2

wlp_uc_mda varchar(30) Yes Name of the metrics table column.


_uniq_col3

wlp_uc_mda varchar(30) Yes Name of the metrics table column.


_uniq_col4

wlp_uc_mda varchar(30) Yes Name of the metrics table column.


_uniq_col5

wlp_uc_mda varchar(256) Yes where clause used to select the rows.


_where_cla
use

wlp_uc_mda bit No Indicates if the monitoring table is periodically moni­


_periodic_ tored.
sample

Indexes

● Unique clustered index on <jid>


● Unique nonclustered index on <jname>

Reference Manual: Tables


328 PUBLIC Workload Profiler Tables
Referenced by

5.11 wlp_exec_cmd_generate_deltas

Lists the archive table columns that generate changes during a sampling period.

Columns

The columns for wlp_exec_cmd_generate_deltas are:

Name Datatype Null Identity Description

wlxc_gd_co int No Yes Unique ID for each entry in the table.


lctr

wlxc_gd_mo varchar(30) No Name of the metrics table in which the column exists.
ntable

wlxc_gd_co varchar(30) No Name of the metrics table column.


lname

wlxc_gd_de varchar(30) No Name of the changed column, derived from the original
lta_colnam column name by appending _delta.
e

wlxc_gd_da varchar(30) No Column data type.


tatype

Indexes

wlp_exec_cmd_generate_deltas includes a unique index, wlxc_gd_1 montable_colnames_ui, on


wlp_exec_cmd_generate_deltas (wlxc_gd_montable and wlxc_gd_colname).

Reference Manual: Tables


Workload Profiler Tables PUBLIC 329
5.12 wlp_afs_inputs

Stores the input values from columns that provide metrics for workload profiling.

Columns

The columns for wlp_afs_inputs are:

Name Datatype Null Identity Description

wlpsi_iden int No Yes Unique ID for each entry in the table.


tity

wlpsi_wlp_ int No Unique ID of the workload profiling session.


id

wlpsi_fcod smallint No Code name for the feature.


e

wlpsi_valu float No Contains up to 32 input column values from a monitor­


e1 ... ing table.
wlpsi_valu
e32

5.13 wlp_plan_objscores

Contains the the scores computed for each table, determining if they are suitable for a feature.

Columns

The columns for wlp_plan_objscores are:

Name Datatype Null Identity Description

wlps_ident int No Yes Unique ID for each entry in the table.


ity

wlps_wlp_i int No Unique ID of the workload profiler.


d

wlps_featu int No Bit map encoding of the feature code


remap

Reference Manual: Tables


330 PUBLIC Workload Profiler Tables
Name Datatype Null Identity Description

wlps_drc_s float Yes Score for datarow caching


core

wlps_mvcc_ float Yes Score for multiversion concurrency control.


score

wlps_odmvc float Yes Score for on-disk multiversion concurrency control.


c_score

wlps_lfb_s float Yes Score for latch free btree


core

wlps_hcb_s float Yes Score for hash-cache btree index.


core

wlps_nvc_s float Yes Score for non-volatile cache


core

wlps_ftr07 float Yes Score for additional feature


_score

wlps_ftr08 float Yes Score for additional feature


_score

wlps_ftr09 float Yes Score for additional feature


_score

wlps_ftr10 float Yes Score for additional feature


_score

float Yes Score for additional feature

Reference Manual: Tables


Workload Profiler Tables PUBLIC 331
5.14 WLP_spaceusage_object

Tracks space growth rates and usage that are important for evaluating the target feature.

Columns

The columns for WLP_spaceusage_object are:

Name Datatype Null Identity Description

VersionNum int No Yes Version number from <@@version> output that iden­
tifies the server used for archiving the metrics.

ESDNum int No ESD number from <@@version> output that identifies


the server used for archiving the metrics

EBFNum int No EBF number from <@@version> output that identifies


the server used for archiving the metrics

ArchiveDat datetime No Date and time the archive was generated


eTime

DBName varchar(30) No Database name (this is the target database of the


workload Profiler).

OwnerName varchar(30) No Name of the object owner.

TableName varchar(255) No Name of the table.

IndexName varchar(255) Yes Name of the index (can be NULL for the table's data
layer).

PtnName varchar(255) No Name of the partition

Id int No Object ID

IndId int No Index ID

DataPtnId int No Data partition ID

PtnId int No Partition ID. Uses the value from DataPtnId for the
data layer, and the index partition ID for index rows.

WLP_ID int No Workload profiler ID. Identifies all metrics gathered and
results generated during a single execution of the
workload profiler. Followed by an analysis phase.

Reference Manual: Tables


332 PUBLIC Workload Profiler Tables
Name Datatype Null Identity Description

WLP_Ctr int No Running counter to archive metrics rows from periodic


sampling for a specific workload profiler ID. Useful for
generating changes in metrics between consecutive
WLP_Ctr rows.

Indexes

WLP_spaceusage_object contains unique indexes on:

● wlp_spusage_obj_ids_ui on WLP_spaceusage_object (WLP_ID, DBName, Id, IndId, PtnId,


WLP_Ctr
● wlp_spusage_obj_names_ui on WLP_spaceusage_object (WLP_ID, DBName, TableName,
PartitionName, WLP_Ctr)

5.15 WLP_spaceusage_syslogs

Tracks log space usage in the syslogs system table.

Columns

The columns for WLP_spaceusage_syslogs are:

Name Datatype Null Identity Description

VersionNum int No Version number from <@@version> output that iden­


tifies the server used for archiving the metrics.

ESDNum int No ESD number from <@@version> output that identifies


the server used for archiving the metrics

EBFNum int No EBF number from <@@version> output that identifies


the server used for archiving the metrics

ArchiveDat datetime No Date and time the archive was generated


eTime

DBName varchar(30) No Database name (this is the target database of the


workload Profiler).

Reference Manual: Tables


Workload Profiler Tables PUBLIC 333
Name Datatype Null Identity Description

OwnerName varchar(30) No Name of the object owner (by default, dbo)

TableName varchar(255) No Name of the table (by default, syslogs).

Id int No Object ID (a value of 8 for syslogs).

WLP_ID int No Workload profiler ID. Identifies all metrics gathered and
results generated during a single execution of the
workload profiler. Followed by an analysis phase.

WLP_Ctr int No Running counter to archive metrics rows from periodic


sampling for a specific workload profiler ID. Useful for
generating changes in metrics between consecutive
WLP_Ctr rows.

Indexes

WLP_spaceusage_syslogs contains unique indexes on:

● wlp_spusage_logs_id_ui on WLP_spaceusage_syslogs (WLP_ID, DBName, WLP_Ctr)


● wlp_spusage_logs_name_ui on WLP_spaceusage_syslogs (WLP_ID, DBName, WLP_Ctr)

5.16 WLP_spaceusage_sysimrslogs

Tracks log space usage in the sysimrslogs system table.

Columns

The columns for WLP_spaceusage_sysimrslogs are:

Name Datatype Null Identity Description

VersionNum int No Version number from <@@version> output that iden­


tifies the server used for archiving the metrics.

ESDNum int No ESD number from <@@version> output that identifies


the server used for archiving the metrics

Reference Manual: Tables


334 PUBLIC Workload Profiler Tables
Name Datatype Null Identity Description

EBFNum int No EBF number from <@@version> output that identifies


the server used for archiving the metrics

ArchiveDat datetime No Date and time the archive was generated


eTime

DBName varchar(30) No Database name (this is the target database of the


workload Profiler).

OwnerName varchar(30) No Name of the object owner (by default, dbo)

TableName varchar(255) No Name of the table (by default, sysimrslogs).

Id int No Object ID (a value of 59 for sysimrslogs).

WLP_ID int No Workload profiler ID. Identifies all metrics gathered and
results generated during a single execution of the
workload profiler. Followed by an analysis phase.

WLP_Ctr int No Running counter to archive metrics rows from periodic


sampling for a specific workload profiler ID. Useful for
generating changes in metrics between consecutive
WLP_Ctr rows.

Indexes

WLP_spaceusage_syslogs contains unique indexes on:

● wlp_spusage_imrslogs_id_ui on WLP_spaceusage_sysimrslogs (WLP_ID, DBName, WLP_Ctr)


● wlp_spusage_imrslogs_name_ui on WLP_spaceusage_sysimrslogs (WLP_ID, DBName, WLP_Ctr)

Reference Manual: Tables


Workload Profiler Tables PUBLIC 335
5.17 WLP_monOpenObjectActivity

Provides metrics for open objects to the workload profiler.

Columns

The columns for WLP_monOpenObjectActivity are:

Name Datatype Null Identity Description

VersionNum int No Version number from <@@version> output that iden­


tifies the server used for archiving the metrics.

SPNum int No Service pack number from <@@version> output that


identifies the server used for archiving the metrics

PLNum int No PL number from <@@version> output that identifies


the server used for archiving the metrics

EBFNum datetime No EBF number from <@@version> output that identifies


the server used for archiving the metrics

ArchiveDat varchar(30) No Date and time the archive was generated


e

WLP_ID int No Workload profiler ID. Identifies all metrics gathered and
results generated during a single execution of the
workload profiler. Followed by an analysis phase.

WLP_Ctr int No Running counter to archive metrics rows from periodic


sampling for a specific workload profiler ID. Useful for
generating changes in metrics between consecutive
WLP_Ctr rows.

Indexes

WLP_monOpenObjectActivity contains unique indexes on:

● wlp_monOOA_ids_ui on WLP_monOpenObjectActivity (WLP_ID, DBID, ObjectID, IndexID,


WLP_Ctr)
● wlp_monOOA_names_ui on WLP_monOpenObjectActivity (WLP_ID, DBName, ObjectName,
IndexName, WLP_Ctr)

Reference Manual: Tables


336 PUBLIC Workload Profiler Tables
5.18 WLP_monDataCache

Provides metrics for data caches to the workload profiler.

Columns

The columns for WLP_monDataCache are:

Name Datatype Null Identity Description

VersionNum int No Version number from <@@version> output that iden­


tifies the server used for archiving the metrics.

SPNum int No Service pack number from <@@version> output that


identifies the server used for archiving the metrics

PLNum int No PL number from <@@version> output that identifies


the server used for archiving the metrics

EBFNum datetime No EBF number from <@@version> output that identifies


the server used for archiving the metrics

ArchiveDat varchar(30) No Date and time the archive was generated


e

WLP_ID int No Workload profiler ID. Identifies all metrics gathered and
results generated during a single execution of the
workload profiler. Followed by an analysis phase.

WLP_Ctr int No Running counter to archive metrics rows from periodic


sampling for a specific workload profiler ID. Useful for
generating changes in metrics between consecutive
WLP_Ctr rows.

Indexes

WLP_monDataCache contains unique indexes on:

● wlp_monDC_ids_ui on WLP_monDataCache (WLP_ID, CacheID, WLP_Ctr)


● wlp_monDC_names_ui on WLP_monDataCache (WLP_ID, CacheName, WLP_Ctr)

Reference Manual: Tables


Workload Profiler Tables PUBLIC 337
5.19 WLP_monSysWaits

Provides a server-wide view of the statistics for events on which processes have waited to the workload profiler.

Columns

The columns for WLP_monSysWaits are:

Name Datatype Null Identity Description

VersionNum int No Version number from <@@version> output that iden­


tifies the server used for archiving the metrics.

SPNum int No Service pack number from <@@version> output that


identifies the server used for archiving the metrics

PLNum int No PL number from <@@version> output that identifies


the server used for archiving the metrics

EBFNum datetime No EBF number from <@@version> output that identifies


the server used for archiving the metrics

ArchiveDat varchar(30) No Date and time the archive was generated


e

WLP_ID int No Workload profiler ID. Identifies all metrics gathered and
results generated during a single execution of the
workload profiler. Followed by an analysis phase.

WLP_Ctr int No Running counter to archive metrics rows from periodic


sampling for a specific workload profiler ID. Useful for
generating changes in metrics between consecutive
WLP_Ctr rows.

Indexes

WLP_monSysWaits contains a unique index, wlp_monSW_ids_ui, on WLP_monSysWaits (WLP_ID,


WaitEventID, WLP_Ctr) on:

Reference Manual: Tables


338 PUBLIC Workload Profiler Tables
Important Disclaimers and Legal Information

Hyperlinks
Some links are classified by an icon and/or a mouseover text. These links provide additional information.
About the icons:

● Links with the icon : You are entering a Web site that is not hosted by SAP. By using such links, you agree (unless expressly stated otherwise in your
agreements with SAP) to this:

● The content of the linked-to site is not SAP documentation. You may not infer any product claims against SAP based on this information.
● SAP does not agree or disagree with the content on the linked-to site, nor does SAP warrant the availability and correctness. SAP shall not be liable for any
damages caused by the use of such content unless damages have been caused by SAP's gross negligence or willful misconduct.

● Links with the icon : You are leaving the documentation for that particular SAP product or service and are entering a SAP-hosted Web site. By using such
links, you agree that (unless expressly stated otherwise in your agreements with SAP) you may not infer any product claims against SAP based on this
information.

Videos Hosted on External Platforms


Some videos may point to third-party video hosting platforms. SAP cannot guarantee the future availability of videos stored on these platforms. Furthermore, any
advertisements or other content hosted on these platforms (for example, suggested videos or by navigating to other videos hosted on the same site), are not within
the control or responsibility of SAP.

Beta and Other Experimental Features


Experimental features are not part of the officially delivered scope that SAP guarantees for future releases. This means that experimental features may be changed by
SAP at any time for any reason without notice. Experimental features are not for productive use. You may not demonstrate, test, examine, evaluate or otherwise use
the experimental features in a live operating environment or with data that has not been sufficiently backed up.
The purpose of experimental features is to get feedback early on, allowing customers and partners to influence the future product accordingly. By providing your
feedback (e.g. in the SAP Community), you accept that intellectual property rights of the contributions or derivative works shall remain the exclusive property of SAP.

Example Code
Any software coding and/or code snippets are examples. They are not for productive use. The example code is only intended to better explain and visualize the syntax
and phrasing rules. SAP does not warrant the correctness and completeness of the example code. SAP shall not be liable for errors or damages caused by the use of
example code unless damages have been caused by SAP's gross negligence or willful misconduct.

Gender-Related Language
We try not to use gender-specific word forms and formulations. As appropriate for context and readability, SAP may use masculine word forms to refer to all genders.

Reference Manual: Tables


Important Disclaimers and Legal Information PUBLIC 339
www.sap.com/contactsap

© 2020 SAP SE or an SAP affiliate company. All rights reserved.

No part of this publication may be reproduced or transmitted in any form


or for any purpose without the express permission of SAP SE or an SAP
affiliate company. The information contained herein may be changed
without prior notice.

Some software products marketed by SAP SE and its distributors


contain proprietary software components of other software vendors.
National product specifications may vary.

These materials are provided by SAP SE or an SAP affiliate company for


informational purposes only, without representation or warranty of any
kind, and SAP or its affiliated companies shall not be liable for errors or
omissions with respect to the materials. The only warranties for SAP or
SAP affiliate company products and services are those that are set forth
in the express warranty statements accompanying such products and
services, if any. Nothing herein should be construed as constituting an
additional warranty.

SAP and other SAP products and services mentioned herein as well as
their respective logos are trademarks or registered trademarks of SAP
SE (or an SAP affiliate company) in Germany and other countries. All
other product and service names mentioned are the trademarks of their
respective companies.

Please see https://www.sap.com/about/legal/trademark.html for


additional trademark information and notices.

THE BEST RUN

You might also like