Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Database Server Software > DB2

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 02:46 AM
klh
 
Posts: n/a
Default Exporting and Importing tasks to Task Center

We are running on Win 2003/DB2 V8 FP7a.

My question concerns Task Center. I have about 200 tasks created and
scheduled in Task Center. We are going to be moving many of the
databases from this server to another V8 server and I really, really,
really don't want to have to re-key all of these tasks on the new
system.

The Task Center "export" function seems to only export general task
information like the description and type of task, but not the task
itself. I'm not really sure what this is good for since it does not
appear to be compatible with the Task Center "import" function.

I thought about backing up the tools database and restoring on the
target system, but then I'd wipe out the tasks already defined on the
target system.

If I knew the appropriate tables in the tools database I could export
the data and import it into the target system, but they use so many
auto-generated keys (apparently) that it would be a big risk on
duplicating key values.

Does anybody know of a way to do this?

Is there a "batch" method of defining a task to Task Center?
Thanks in advance,
klh

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 02:47 AM
Mark A
 
Posts: n/a
Default Re: Exporting and Importing tasks to Task Center

"klh" <khar0429@yahoo.com> wrote in message
news:1107204018.661814.29360@c13g2000cwb.googlegro ups.com...
> We are running on Win 2003/DB2 V8 FP7a.
>
> My question concerns Task Center. I have about 200 tasks created and
> scheduled in Task Center. We are going to be moving many of the
> databases from this server to another V8 server and I really, really,
> really don't want to have to re-key all of these tasks on the new
> system.
>
> The Task Center "export" function seems to only export general task
> information like the description and type of task, but not the task
> itself. I'm not really sure what this is good for since it does not
> appear to be compatible with the Task Center "import" function.
>
> I thought about backing up the tools database and restoring on the
> target system, but then I'd wipe out the tasks already defined on the
> target system.
>
> If I knew the appropriate tables in the tools database I could export
> the data and import it into the target system, but they use so many
> auto-generated keys (apparently) that it would be a big risk on
> duplicating key values.
>
> Does anybody know of a way to do this?
>
> Is there a "batch" method of defining a task to Task Center?
> Thanks in advance,
> klh
>

Not sure, but can't you just backup and restore the tools database to the
new server?

BTW I would move to FP8 if you can.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 02:47 AM
klh
 
Posts: n/a
Default Re: Exporting and Importing tasks to Task Center

> Not sure, but can't you just backup and restore the tools database to
the
> new server?


Unfortunately, I can't do that the target server is not a new server
and it already has databases and tasks defined on it. So restoring the
tools database to the target server would wipe out the tasks on that
system.

> BTW I would move to FP8 if you can.

Can you expand on this? I was looking at the APAR list for that fixpak
the other day and it only listed fixes for fixpaks 7a, 7, 6, etc. but
not fixpak 8. Is there anything specifically it fixes?

Thanks,
klh

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-27-2008, 02:47 AM
Mark A
 
Posts: n/a
Default Re: Exporting and Importing tasks to Task Center

"klh" <khar0429@yahoo.com> wrote in message >
> > BTW I would move to FP8 if you can.

> Can you expand on this? I was looking at the APAR list for that fixpak
> the other day and it only listed fixes for fixpaks 7a, 7, 6, etc. but
> not fixpak 8. Is there anything specifically it fixes?
>
> Thanks,
> klh
>

There are many fixes for FP8. I don't know if they messed up the APAR list
for the OS/FP you were looking at, but it is there for most of the OS's.
http://www-306.ibm.com/software/data...ownloadv8.html


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-27-2008, 02:50 AM
Pierre Saint-Jacques
 
Posts: n/a
Default Re: Exporting and Importing tasks to Task Center

If Backup/restore is not an option, could you try using db2move???
That tool allows you to select tables by schema and/or owner. Extract
using export and import those tables using db2move import insert.
You still ay run into primary key violations from the contents to the
target but I don't know as I haven't looked at the table to see if it
has a PK constraint and what it is.
HTH, Pierre.

klh wrote:
> We are running on Win 2003/DB2 V8 FP7a.
>
> My question concerns Task Center. I have about 200 tasks created and
> scheduled in Task Center. We are going to be moving many of the
> databases from this server to another V8 server and I really, really,
> really don't want to have to re-key all of these tasks on the new
> system.
>
> The Task Center "export" function seems to only export general task
> information like the description and type of task, but not the task
> itself. I'm not really sure what this is good for since it does not
> appear to be compatible with the Task Center "import" function.
>
> I thought about backing up the tools database and restoring on the
> target system, but then I'd wipe out the tasks already defined on the
> target system.
>
> If I knew the appropriate tables in the tools database I could export
> the data and import it into the target system, but they use so many
> auto-generated keys (apparently) that it would be a big risk on
> duplicating key values.
>
> Does anybody know of a way to do this?
>
> Is there a "batch" method of defining a task to Task Center?
> Thanks in advance,
> klh
>


--
Pierre Saint-Jacques - Reply to: sescons at attglobal dot net
IBM DB2 Cerified Solutions Expert - Administration
SES Consultants Inc.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-27-2008, 02:50 AM
Pierre Saint-Jacques
 
Posts: n/a
Default Re: Exporting and Importing tasks to Task Center

If Backup/restore is not an option, could you try using db2move???
That tool allows you to select tables by schema and/or owner. Extract
using export and import those tables using db2move import insert.
You still ay run into primary key violations from the contents to the
target but I don't know as I haven't looked at the table to see if it
has a PK constraint and what it is.
HTH, Pierre.

klh wrote:
> We are running on Win 2003/DB2 V8 FP7a.
>
> My question concerns Task Center. I have about 200 tasks created and
> scheduled in Task Center. We are going to be moving many of the
> databases from this server to another V8 server and I really, really,
> really don't want to have to re-key all of these tasks on the new
> system.
>
> The Task Center "export" function seems to only export general task
> information like the description and type of task, but not the task
> itself. I'm not really sure what this is good for since it does not
> appear to be compatible with the Task Center "import" function.
>
> I thought about backing up the tools database and restoring on the
> target system, but then I'd wipe out the tasks already defined on the
> target system.
>
> If I knew the appropriate tables in the tools database I could export
> the data and import it into the target system, but they use so many
> auto-generated keys (apparently) that it would be a big risk on
> duplicating key values.
>
> Does anybody know of a way to do this?
>
> Is there a "batch" method of defining a task to Task Center?
> Thanks in advance,
> klh
>


--
Pierre Saint-Jacques - Reply to: sescons at attglobal dot net
IBM DB2 Cerified Solutions Expert - Administration
SES Consultants Inc.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-27-2008, 02:50 AM
klh
 
Posts: n/a
Default Re: Exporting and Importing tasks to Task Center


Pierre Saint-Jacques wrote:
> If Backup/restore is not an option, could you try using db2move???


I had considered this, but as you mention there are too many collisions
on primary key values. I might do a little more digging to see if
there are only a few tables I could export, change the primary keys
(and related foreign keys), then import. In the end though it sounds
like it is going to take about as much time as it would to just type it
all in again.

It'd be nice if IBM would supply a nice way to do batch exports and
imports of the ENTIRE definition of a scheduled task. Maybe a future
release or fixpak?? ;-)

Thanks for the suggestions though.
klh

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-27-2008, 02:50 AM
Buck Nuggets
 
Posts: n/a
Default Re: Exporting and Importing tasks to Task Center

Out of curiosity, what kind of functionality are you using task center
for?

This isn't the answer you were looking for, but...it might be less
time-consuming to just rewrite the tasks as simple scheduled software
using bash, ksh, python, perl, ruby, or whatever.

We've got a variety of scripts for this purpose. A simple script runs
hourly and warns of any filesystem or tablespace over a configuration
threshold on each of a dozen servers. Others warn of tables requiring
runstats, warehouse or marts not loading, servers offline, another
dumps all ddl & configuration info, others export or load data, etc,
etc.


buck

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-27-2008, 02:51 AM
klh
 
Posts: n/a
Default Re: Exporting and Importing tasks to Task Center


Buck Nuggets wrote:
> Out of curiosity, what kind of functionality are you using task

center
> for?


Mainly we just need a method of scheduling routine maintenance,
backups, runstats, etc.

> This isn't the answer you were looking for, but...it might be less
> time-consuming to just rewrite the tasks as simple scheduled software
> using bash, ksh, python, perl, ruby, or whatever.


We have Windows 2003 servers, so I think the only default scheduler is
the "AT" scheduler or "Scheduled Tasks" in Control Panel. We could use
these for some functions, but the Task Center has a lot nicer features.
For one thing we can trigger follow up jobs and can run multiple
schedules for the same job. We could probably simulate the same thing
in those schedulers, but it might be just as much effort going that
route. It's kind of brutal setting things up in Task Center, but once
you get things set up it's pretty solid. If they only had the bulk
import and export functions it would be a fantastic product (in my
opinion).

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-27-2008, 02:51 AM
Buck Nuggets
 
Posts: n/a
Default Re: Exporting and Importing tasks to Task Center

> For one thing we can trigger follow up jobs and can run multiple
schedules for the same job. We could probably simulate the same thing
> in those schedulers, but it might be just as much effort going that

route.

Right - for simple schedulers like cron or whatever windows uses, you
end up putting more logic into the actual script to work around
dependencies than if you were using something like a mainframe
scheduler, or it sounds like task center. I think you can run cron on
windows via cygwin, but it won't support triggers or dependencies.

> If they only had the bulk import and export functions it would be a

fantastic product (in my opinion).

Yeah, I once inherited a data warehouse with 800 source systems (!)
running sql server using DTS (the sql server etl tool). And then
discovered how difficult it was to promote etl packages from dev to
test to prod - since they were all stored in the database. The prior
operation had an entire team retyping them by hand and retesting them
in production. We yanked all that stuff out and replaced it with a
simple custom etl application and our maintenance dropped from
horrifying to almost nothing overnight. I just recently saw a lengthy
sql server magazine article on tips for moving packages from one server
to another - so it appears that they still haven't really figured it
out.

I wonder what's going to be in db2 8.3?


Good luck,

buck

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:53 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
UnixAdminTalk.com

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 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646