ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » runmqsc + ALTER command

Post new topic  Reply to topic
 runmqsc + ALTER command « View previous topic :: View next topic » 
Author Message
sebastia
PostPosted: Sun Oct 22, 2006 9:48 am    Post subject: runmqsc + ALTER command Reply with quote

Grand Master

Joined: 07 Oct 2004
Posts: 1003

I was wondering ...

If I run

RUNMQSC <qmgr_name>
+
ALTER <resource name> TAG NEWVALUE

as "PERSISTENCY YES" ...

wil this new value be still be valid after a queue manager restart ?

I mean, is it FOREVER ?

Cheers.
Back to top
View user's profile Send private message Visit poster's website
jefflowrey
PostPosted: Sun Oct 22, 2006 12:42 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Yes.

But it only is used if the application uses MQPER_PERSISTANCE_AS_QDEF
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
sebastia
PostPosted: Sun Oct 22, 2006 1:21 pm    Post subject: Reply with quote

Grand Master

Joined: 07 Oct 2004
Posts: 1003

can u explain a little bit more GENERAL ...

how must i "ALTER" properties
on run-time environment
so the changes are FOREVER ...
(not just until next re-boot) ...

Thankx. !
Back to top
View user's profile Send private message Visit poster's website
kevinf2349
PostPosted: Sun Oct 22, 2006 1:34 pm    Post subject: Reply with quote

Grand Master

Joined: 28 Feb 2003
Posts: 1311
Location: USA

Quote:
how must i "ALTER" properties
on run-time environment
so the changes are FOREVER ...
(not just until next re-boot) ...



Would you expect a DEFINE to only last for the lifetime of the queue manager? NO So why do you expect ALTER only to last the lifetime of the queue manager?

ALTER changes an MQ object definition. Once you do an ALTER it is, changed permantently (or until to issue another ALTER for that object)

I guess the question is, why would you want to ALTER an object for just the life of the queue manager?. If you really want to alter it as a temporary change, just re-issue an ALTER to revert it back just before you shut the queue manager .
Back to top
View user's profile Send private message
sebastia
PostPosted: Sun Oct 22, 2006 1:37 pm    Post subject: Reply with quote

Grand Master

Joined: 07 Oct 2004
Posts: 1003

well, it looked to me that DEFINE was forever,
and RUNMQSC + ALTER was a "runtime" change"
so i didn't know if it lasted
AFTER nest MQ re-start

I dont know where the MQ characteristics reside
so I can not look at them "on-line",
afte a RUNMQSC + ALTER ...
to know if they will survive the re-start ...

THANKS !

()
Back to top
View user's profile Send private message Visit poster's website
fjb_saper
PostPosted: Sun Oct 22, 2006 2:30 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

sebastia wrote:

I dont know where the MQ characteristics reside
so I can not look at them "on-line",

To look at them online try
Code:

runmqsc QMGR
display ....
....
....
end


Enjoy

_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
sebastia
PostPosted: Mon Oct 23, 2006 4:39 am    Post subject: Reply with quote

Grand Master

Joined: 07 Oct 2004
Posts: 1003

OK - let me try to change my question ..

WHERE DOES RESIDE THE MQ DEFINITIONS ?

I mean, if a queue named Q1 has PERSISTENT messages or not,
and what is the Max message length for channel CH1 ?

are they writen on a file ?
are they in the registry (if Windows) ?
where is it written if i use UNIX ?

Thanks !
Back to top
View user's profile Send private message Visit poster's website
kevinf2349
PostPosted: Mon Oct 23, 2006 4:43 am    Post subject: Reply with quote

Grand Master

Joined: 28 Feb 2003
Posts: 1311
Location: USA

Why?

You shouldn't need to do anything with it....use the DISPLAY command.

If you really MUST know then look under the qmanager directory structure on windows. Look in the Pagesets on z/OS.

Not sure on the penguin machines.


Last edited by kevinf2349 on Mon Oct 23, 2006 4:48 am; edited 1 time in total
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Oct 23, 2006 4:47 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

sebastia wrote:
OK - let me try to change my question ..

WHERE DOES RESIDE THE MQ DEFINITIONS ?

I mean, if a queue named Q1 has PERSISTENT messages or not,
and what is the Max message length for channel CH1 ?

are they writen on a file ?
are they in the registry (if Windows) ?
where is it written if i use UNIX ?

Thanks !


Depending on platform & version, all of the above....

Stick to using runmqsc - platform agnostic (except for z/OS) and safe to use.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Oct 23, 2006 4:48 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You're still having some trouble with Persistance. Persistance is strictly an attribute of an individual message, and is stored in the MQMD of that message. When a persistant message is stored, it is written into the q file in the <mq-install>/qmgrs/<qmgr_name>/<queue-name>. There is a setting on a queue, that is the default persistance. It is only used, as I said, if an application chooses to use it by setting MQPER_PERSISTANCE_AS_QDEF.

But the settings that are changed by runmqsc are stored in undocumented, private locations - as far as I know. Regardless, they are always permanent and persistant across queue manager restart. They never change unless you explicitly change them.

As long as you follow the guidelines for backing up and restoring queue managers, or running queue managers under high availability, then you do not need to care where these settings are kept or how they are stored there.

Some settings on the queue manager are stored in the qm.ini file. But not all. And not all of the settings that are in qm.ini can be changed (well, the file can be edited, but the changes won't be taken up).

Why are you really asking this, what are you really trying to do or learn?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
wschutz
PostPosted: Tue Oct 24, 2006 1:28 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

jefflowrey wrote:
Yes.

But it only is used if the application uses MQPER_PERSISTANCE_AS_QDEF

and, its only used "at the time of the mqput"... so changing the value of the default AFTER a message is placed on the queue has no effect on messages already on the queue...just in case you were wondering .....
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
sebastia
PostPosted: Wed Oct 25, 2006 3:51 am    Post subject: Reply with quote

Grand Master

Joined: 07 Oct 2004
Posts: 1003

Thanks, Jeff and all

I was just trying to learn, not to use those files.
Just dont like to read "values are stored in a file you dont care the name about, and we wont tell you its name", as Windows did all the time.
Knowing the name wil not hurt me, and I do no pretend to write into this file.

I have NO PROBLEM with Persistenct - I understand perfectly how it works. I only did use it as a "value" a queue has, similar to MAX_MSG_LENGTH.

Just happened to me that I did ALTER some value, and after a QM re-start the old value came back ( some other guy changed it back, I guess ) so I was trying to have a way to "look" into a file (or COPY it) to make sure the value was set into QM forever.

Now I know all my ALTER commands are forever, I am fine.

Thanks a lot.
Back to top
View user's profile Send private message Visit poster's website
jefflowrey
PostPosted: Wed Oct 25, 2006 3:57 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

It's reasonable for IBM to say that certain parts of their software are nicht fur gefingerpoken und mittengraben.

You certainly wouldn't want one of your developers getting "clever" and writing code to change a queue definition by writing into the files on the fly, would you?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » runmqsc + ALTER command
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.