Hi,
I have written the script:
Code:
nohup db2 connect to ISQ user db2inst1 using password &
reorg_pid=$!
wait $reorg_pid
nohup db2 REORG TABLE ADM08.UPORABNIKI INPLACE ALLOW WRITE ACCESS START &
reorg_pid=$!
wait $reorg_pid
nohup db2 REORG TABLE CEV.CEVBLOK INPLACE ALLOW WRITE ACCESS START &
reorg_pid=$!
wait $reorg_pid
nohup db2 REORG TABLE CEV.CEVDEFORM INPLACE ALLOW WRITE ACCESS START &
reorg_pid=$!
wait $reorg_pid
... and executed script with command:
./run.sh
But above script is not working properly.
I have also executed db2 command:
db2 list application
... and the result is:
Code:
Auth Id Application Appl. Application Id DB # of
Name Handle Name Agents
-------- -------------- ---------- ------------------------------ -------- -----
DB2INST1 db2reorg 432 *LOCAL.db2inst1.041021134745 ISQ 1
DB2INST1 db2reorg 431 *LOCAL.db2inst1.041021134744 ISQ 1
DB2INST1 db2reorg 407 *LOCAL.db2inst1.041021134720 ISQ 1
DB2INST1 db2reorg 396 *LOCAL.db2inst1.041021134711 ISQ 1
DB2INST1 db2reorg 393 *LOCAL.db2inst1.041021134710 ISQ 1
DB2INST1 db2reorg 350 *LOCAL.db2inst1.041021134709 ISQ 1
DB2INST1 db2bp 357 *LOCAL.db2inst1.02FC31134626 ISQ 1
DB2INST1 db2bp 329 *LOCAL.db2inst1.02FAC1134611 ISQ 1
DB2INST1 javaw.exe 346 C0A8051E.A811.012101113210 ISQ 1
DB2INST1 db2bp.exe 152 C0A8051E.P711.013581112716 ISQ 1
DB2INST1 java.exe 10 C0A8052D.K50A.01C4C1084341 ISQ 1
DB2INST1 java.exe 9 C0A8052D.K30A.024041084330 ISQ 1
Noticed "db2reorg" multiple time? I would like to have only one connection working with "reorg inplace"! How to do this?
Thanks,
Grofaty