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

Examples of Using sysbck for Various Databases, From MySQL to MS SQL

Page 221 highlights

For oracle: hosts string. Ignored if dbtype is sqlite. -db Name of the database. For SQLite this is the full file name, including the path, of the file that contains the database. -dbpwfile Name of file whose first line is the username and password for the database. Ignored if dbtype is sqlite. -dbouttype [Optional] Name of the outscript db type -scripttype [Optional] Type of the script 'insert/create/both' -backupfilename The file name along with the path to put the extract in -begintime [Optional] begin time of the extract in '%m/%d/%YYYY %H:%M:%S' format -endtime [Optional] end time of the extract in '%m/%d/%YYYY %H:%M:%S' format -inservname [Optional] name of the inservs to be extracted seperated by ':' NOTE: The -inservname parameter specifies the IP Name or Address that was assigned while configuring the HP 3PAR StoreServ Storage systems. If you are not sure, go to Policy Settings →InServ Systems to get this parameter. NOTE: The -dbouttype parameter should not be used when extracting data for analysis by HP support. Depending on the -scripttype parameter, the sysbck command produces one or both of the following types of files: 1. The .str file contains SQL code to create the database structure (tables and indexes). 2. The .ins contains SQL code to insert the data into the tables. These files can be source as SQL commands to create the schema and insert the data respectively. To limit the extracted data to one or more systems, use the -inservname parameter. To limit the extracted data to a particular time period, use the -begintime and -endtime parameters. Examples of Using sysbck for Various Databases Following are examples of how to use the sysbck command to generate output for various databases. NOTE: The -dbouttype parameter is optional; by default, the extract database is MySQL. • From MySQL to Oracle: sysbck -dbtype mysql -dbhost istat -db cliuser -dbpwfile dbpwfile -dbouttype oracle -scripttype both -backupfilename "c:/test/test_20100713_1322PM" -begintime "07/13/2010 12:45:00" -endtime "07/14/2010" -inservname s074:s138 • From MySQL to MS SQL: sysbck -dbtype mysql -dbhost istat -db cliuser -dbpwfile dbpwfile -dbouttype mssql -scripttype both -backupfilename "c:/test/test_20100713_1322PM" -begintime "07/13/2010 12:45:00" -endtime "07/14/2010" -inservname s074:s138 Extracting Data from the Database with sysbck 221

  • 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

For oracle: hosts string.
Ignored if dbtype is sqlite.
-db <name>
Name of the database.
For SQLite this is the full file name, including the path,
of the file that contains the database.
-dbpwfile <file>
Name of file whose first line is the username and
password for the database.
Ignored if dbtype is sqlite.
-dbouttype [Optional] <dbtype> Name of the outscript db type
-scripttype [Optional] <script type> Type of the script 'insert/create/both'
-backupfilename The file name along with the path to put the extract in
-begintime [Optional] begin time of the extract in '%m/%d/%YYYY %H:%M:%S' format
-endtime [Optional] end time of the extract in '%m/%d/%YYYY %H:%M:%S' format
-inservname [Optional] name of the inservs to be extracted seperated by ':'
NOTE:
The
-inservname
parameter specifies the IP Name or Address that was assigned while
configuring the HP 3PAR StoreServ Storage systems. If you are not sure, go to
Policy Settings
InServ Systems
to get this parameter.
NOTE:
The
-dbouttype
parameter should not be used when extracting data for analysis by
HP support.
Depending on the
-scripttype
parameter, the
sysbck
command produces one or both of the
following types of files:
1.
The
<backup>.str
file contains SQL code to create the database structure (tables and
indexes).
2.
The
<backup>.ins
contains SQL code to insert the data into the tables.
These files can be source as SQL commands to create the schema and insert the data
respectively.
To limit the extracted data to one or more systems, use the
-inservname
parameter. To limit
the extracted data to a particular time period, use the
-begintime
and
-endtime
parameters.
Examples of Using sysbck for Various Databases
Following are examples of how to use the
sysbck
command to generate output for various
databases.
NOTE:
The
-dbouttype
parameter is optional; by default, the extract database is MySQL.
From MySQL to Oracle:
sysbck -dbtype mysql -dbhost istat -db cliuser -dbpwfile dbpwfile -dbouttype
oracle -scripttype both -backupfilename "c:/test/test_20100713_1322PM" -begintime
"07/13/2010 12:45:00" -endtime "07/14/2010" -inservname s074:s138
From MySQL to MS SQL:
sysbck -dbtype mysql -dbhost istat -db cliuser -dbpwfile dbpwfile -dbouttype mssql
-scripttype both -backupfilename "c:/test/test_20100713_1322PM" -begintime
"07/13/2010 12:45:00" -endtime "07/14/2010" -inservname s074:s138
Extracting Data from the Database with sysbck
221