HP 3PAR StoreServ 7200 2-node HP 3PAR System Reporter 3.1.0 Software User& - Page 192

Database Schema, Using The Database Schema, Table Versions and Naming Conventions

Page 192 highlights

9 Database Schema Using The Database Schema The description of the database schema is provided as a convenience to those wishing to query the database directly instead of using the web queries described in "Web Queries" (page 127). However, if you wish to write your own applications that directly query the database, it is important to note the following caution: CAUTION: The database schema may change between releases of the System Reporter and users must be prepared to revise their applications accordingly. HP does not provide direct assistance in generating SQL queries and only users who are confident of their own database expertise to use the schema description in this chapter should attempt to use it to create applications. Users may only issue queries that read the database, not alter it. Table Versions and Naming Conventions All tables are versioned and their version number appears at the end of the table names. Administrative tables contain only the base name and version number. For example policy_1 is the policy table and it is version 1. The sample data tables and the inventory tables include the base name, sampling resolution and the version number. For example, pdspace_hourly_3 contains the PD (physical disk) space data for hourly resolution samples and the table is version 3. Similarly, the pdspaceinv_hourly_2 table contains the inventory of the distinct PDs in the pdspace_hourly_3 table and is of revision 2. Note that the revision number of the inventory table need not be the same as the revision number of the data table whose inventory it contains. When System Reporter is upgraded some tables may need to be converted to new version numbers. This is done automatically by the System Reporter when the sampling service starts. Administrative Tables The administrative tables are used to control the behavior of System Reporter and to keep track of the systems that are to be sampled. The policy Table The policy_1 table stores the names and values of the sampling policy parameters. There are a fixed number of rows, one per parameter. The parameters are described in Table 54 (page 113). Table 59 policy_1 Table Column name val Type VARCHAR(32) PRIMARY KEY VARCHAR(255) Comment Name of the policy parameter Value of the policy parameter The sampleinserv Table The sampleinserv_5 table contains a row for each of systems that the System Reporter must sample. 192 Database Schema

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218
  • 219
  • 220
  • 221
  • 222
  • 223
  • 224
  • 225
  • 226
  • 227
  • 228
  • 229
  • 230
  • 231

9 Database Schema
Using The Database Schema
The description of the database schema is provided as a convenience to those wishing to query
the database directly instead of using the web queries described in
“Web Queries” (page 127)
.
However, if you wish to write your own applications that directly query the database, it is important
to note the following caution:
CAUTION:
The database schema may change between releases of the System Reporter and
users must be prepared to revise their applications accordingly.
HP does not provide direct assistance in generating SQL queries and only users who are confident
of their own database expertise to use the schema description in this chapter should attempt to use
it to create applications.
Users may only issue queries that read the database, not alter it.
Table Versions and Naming Conventions
All tables are versioned and their version number appears at the end of the table names.
Administrative tables contain only the base name and version number. For example
policy_1
is
the policy table and it is version 1.
The sample data tables and the inventory tables include the base name, sampling resolution and
the version number. For example,
pdspace_hourly_3
contains the PD (physical disk) space data
for hourly resolution samples and the table is version 3. Similarly, the
pdspaceinv_hourly_2
table
contains the inventory of the distinct PDs in the
pdspace_hourly_3
table and is of revision 2. Note
that the revision number of the inventory table need not be the same as the revision number of the
data table whose inventory it contains.
When System Reporter is upgraded some tables may need to be converted to new version numbers.
This is done automatically by the System Reporter when the sampling service starts.
Administrative Tables
The administrative tables are used to control the behavior of System Reporter and to keep track of
the systems that are to be sampled.
The policy Table
The
policy_1
table stores the names and values of the sampling policy parameters. There are a
fixed number of rows, one per parameter. The parameters are described in
Table 54 (page 113)
.
Table 59 policy_1 Table
Comment
Type
Column
Name of the policy parameter
VARCHAR(32) PRIMARY KEY
name
Value of the policy parameter
VARCHAR(255)
val
The sampleinserv Table
The
sampleinserv_5
table contains a row for each of systems that the System Reporter must sample.
192
Database Schema