Answers For MQ Interview Questions
Answers For MQ Interview Questions
13) How to identify, how many logs are required for QM archiving
The size of the log depends, typically, on the number and size of the persistent messages the queue
manager needs to handle.
You can change the number of primary and secondary log files each time the queue manager starts.
You cannot change the log file size; you must determine it before creating the queue manager.
After deciding whether the queue manager should use circular or linear logging, you need to estimate
the size of the log that the queue manager needs. The size of the log is determined by the following log
configuration parameters:
LogFilePages
The size of each primary and secondary log file in units of 4K pages
LogPrimaryFiles
The number of preallocated primary log files
LogSecondaryFiles
The number of secondary log files that can be created for use when the primary log files are full
17) How to check if you need to commit or rollback a transaction from sequence nos available in channel
status
Both sender and rcvr MCAs maintain sequence number related to number of messages successfully
transferred over the channel.
If we are sending the messages in batches of 50,if the msg seq no is 50,then need to commit the uow
else roll back
If all the 50 messages in batch has succefully send through channels and received by the receiving QM
then the work should be commited.
22) What are Remote events (Not Auth EV, Q Full, Q Srvc Int Ev, Bridge Started Ev,
Unknown xmit Q Ev)
Remote event indicates that an application cannot access a queue on another(remote) QM.
Like TX to be used is not properly defined.
other examples:
unknown TX queue,TX queue usage error,unknown default TX queue,unknown remote QM
Replica of existing QM
As far as I know,we can create a backup QM with the same objects as of existing QM.
But only one QM should be in running state at a time.THis can be done only when linear logging
is used.A backup queue manager is an inactive copy of the existing queue manager.
1.crtmqm backupqm
2.Take copies of data and log file directories of existing QM andoverwrite backup QM's logfiles
with existing QM's logfiles
3.use strmqm -r backupqm
This command replays all the copied log extents to bring the backup queue manager in step with
the existing queue manager.But the backup queue manager is not started.WebSphere MQ
updates the backup queue manager's objects by reading the queue manager log and replaying
updates to the object files.
4.strmqm -a backupqm
Activate the specified backup queue manager. The backup queue manager is not started now
also.The requirement to activate a backup queue manager prevents accidental startup.
5.strmqm backupqm
Once activated, a backup queue manager can be started using the above command and backup
queue manager can no longer be updated.