Amazon

Sunday, November 28, 2010

MQ Manager Configuration Script

1.Create a queue Manager
crtmqm MQIPH

2.Start the Queue Manager
strmqm MQIPH

3.Start the MQ browser to create the queues
runmqsc MQIPH

4. Define Dead letter queue
DEFINE QLOCAL('Q.MQIPH.DLQ') DEFPSIST(YES)
ALTER QMGR DEADQ('Q.MQIPH.DLQ') 

5. Define Server Connection Channel
DEFINE CHANNEL(MQIPH.SRV.CHANNEL) CHLTYPE(SVRCONN) TRPTYPE(TCP)

6. Define q local
DEFINE QLOCAL('Q.MQIPH2_TO_MQIPH') DEFPSIST(YES)

7. Define Xmitq
DEFINE QLOCAL('MQIPH.XMITQ') +
 USAGE(XMITQ)

8. Define q Remote
DEFINE QREMOTE('RQ.MQIPH_TO_MQIPH2') +
    RNAME('Q.MQIPH_TO_MQIPH2') +
    RQMNAME('MQIPH2') XMITQ('MQIPH.XMITQ') DEFPSIST(YES) 

9. Define sender channel
DEFINE CHL ('MQIPH_TO_MQIPH2') +
 CHLTYPE(SDR) TRPTYPE(TCP) +
 CONNAME('172.16.2.24(1414)') +
 XMITQ('MQIPH.XMITQ') +
 DISCINT (0)

10. Define receiver channel
DEFINE CHL ('MQIPH2_TO_MQIPH') +
 CHLTYPE(RCVR) TRPTYPE(TCP)

11.Create a queue Manager
crtmqm MQIPH2

12.Start the Queue Manager
strmqm MQIPH2

13.Start the MQ browser to create the queues
runmqsc MQIPH2

14. Define Server Connection Channel
DEFINE CHANNEL(MQIPH2.SRV.CHANNEL) CHLTYPE(SVRCONN) TRPTYPE(TCP)

15. Define Dead letter queue
DEFINE QLOCAL('Q.MQIPH2.DLQ') DEFPSIST(YES)
ALTER QMGR DEADQ('Q.MQIPH2.DLQ')

16. Define q local
DEFINE QLOCAL('Q.MQIPH_TO_MQIPH2') DEFPSIST(YES)

17. Define xmitq local
DEFINE QLOCAL('MQIPH2.XMITQ') +
USAGE(XMITQ)

18. Define q Remote
DEFINE QREMOTE('RQ.MQIPH2_TO_MQIPH') +
    RNAME('Q.MQIPH2_TO_MQIPH') +
    RQMNAME('MQIPH') XMITQ('MQIPH2.XMITQ') DEFPSIST(YES)


19. Define sender channel
DEFINE CHL ('MQIPH2_TO_MQIPH') +
 CHLTYPE(SDR) TRPTYPE(TCP) +
 CONNAME('172.16.2.24(1415)') +
 XMITQ('MQIPH2.XMITQ') +
 DISCINT (0)

20. Define Receiver channel
DEFINE CHL ('MQIPH_TO_MQIPH2') +
 CHLTYPE(RCVR) TRPTYPE(TCP)

21.Start the Senders Listener Port on 1414
runmqlsr -t tcp -m MQIPH2 -p 1414 &

22.Start the Senders Listener Port on 1415
runmqlsr -t tcp -m MQIPH -p 1415 &

23.Start the Sender Channel
START CHANNEL (MQIPH_TO_MQIPH2)

24.Start the Channel
START CHANNEL (MQIPH2_TO_MQIPH)

No comments:

Post a Comment

Amazon Best Sellors

Weblogic - Server Creation - Issues

Datasource creation using python script.  Python Script was failing after creating Datasource. From UI Admin Console, if I try to activat...