Author |
Message
|
KramJ |
Posted: Thu Feb 09, 2006 6:34 am Post subject: DEFINE CHANNEL() REPLACE |
|
|
Voyager
Joined: 09 Jan 2006 Posts: 80 Location: Atlanta
|
If you define a channel with REPLACE while the channel is running, doesn't it corrupt the channel object? I seem to remember this from MQ Administrator class. Is it okay to REPLACE the channel while it is stopped? |
|
Back to top |
|
 |
wschutz |
Posted: Thu Feb 09, 2006 7:10 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
I don't see why it would... the definition of the channel is read at startup time, so the changes don't become effective until a restart of the channel. I've done this hundreds of times .....
(after all, replacing a queue definition while messages are on the queue doesn' corrupt it). _________________ -wayne |
|
Back to top |
|
 |
KramJ |
Posted: Thu Feb 09, 2006 7:51 am Post subject: |
|
|
Voyager
Joined: 09 Jan 2006 Posts: 80 Location: Atlanta
|
Quote: |
after all, replacing a queue definition while messages are on the queue doesn' corrupt it |
Right, I was thinking that too. Are there any objects that you should use ALTER instead of DEFINE REPLACE. I vaguely remember something from the class, but can't put my finger on it. |
|
Back to top |
|
 |
wschutz |
Posted: Thu Feb 09, 2006 4:45 pm Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Well... ALTER will only change an object definition if it exists, and only changes those attributes you specify on the command.
DEFINE..REPLACE will either create or update an object definition, and replace all the attributes, either from the command itself or the SYSTEM.DEFAULT... template _________________ -wayne |
|
Back to top |
|
 |
HubertKleinmanns |
Posted: Fri Feb 10, 2006 8:44 am Post subject: |
|
|
 Shaman
Joined: 24 Feb 2004 Posts: 732 Location: Germany
|
wschutz wrote: |
DEFINE..REPLACE will either create or update an object definition, and replace all the attributes, either from the command itself or the SYSTEM.DEFAULT... template |
But status informations (such as channel sequence number) will not be changed. _________________ Regards
Hubert |
|
Back to top |
|
 |
|