![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Is it possible to create a task right from the DB2 CLP instead of using the IBM Task Center (GUI) ? |
#3
| |||
| |||
|
|
Is it possible to create a task right from the DB2 CLP instead of using the IBM Task Center (GUI) ? You might want to check out the ADMIN_TASK_ADD procedure. http://bit.ly/hVJbw7 Hope this helps. -- Helmut K. C. Tessarek DB2 Performance and Development /* * *Thou shalt not follow the NULL pointer for chaos and madness * *await thee at its end. */ |
#4
| |||
| |||
|
#5
| |||
| |||
|
#6
| |||
| |||
|
#7
| |||
| |||
|
|
Hello Helmut, I already tried that command. That "works" but the task is not showing up in the Task Center. |
#8
| |||
| |||
|
#9
| |||
| |||
|
|
Just had another idea... Would it be possible to create a kind of cursor that would loop through all databases in an instance and then issue the BACKUP command? |
#10
| |||
| |||
|
|
On 2010-12-10 15:49, Charles M. wrote: Just had another idea... Would it be possible to create a kind of cursor that would loop through all databases in an instance and then issue the BACKUP command? Not sure about Windows (I assume it is possible though), but in a unix shell you can loop over the db's in an instance as: for db in `db2 list db directory | grep -B4 "Directory entry type * * * * * = Indirect" | grep "Database name" | cut -f2 -d= | sort -u`; do db2 "backup db $db ..." done Just an example. Another thing that comes to mind is to dump the content of the task center db before and after you schedule a backup and see what the difference is. You will of course have to keep track of changes of the schema in this db between fixpaks etc, and maintain your scripts accordingly Just some random thoughts /Lennart |
![]() |
| Thread Tools | |
| Display Modes | |
| |