Error '2035' ('MQRC_NOT_AUTHORIZED') While Connecting to MQ

前端 未结 7 1667
醉酒成梦
醉酒成梦 2021-02-05 09:23

I am getting this error while connecting to IBM MQ. I know that this is because of privileges, but is there any way just to check the connection with IBM MQ?

Please sugg

7条回答
  •  暖寄归人
    2021-02-05 09:56

    You can use dspmqaut to check the grant. Below is the sample to give user poc access to Queue Manager QM1 and Queue LQ1

     # check the access right of user POC to QM1
     dspmqaut -m QM1 -n LQ1 -t q -p poc
    
     # if you want to give access, you should use 
     setmqaut -m QM1 -n LQ1 -t q -p poc 
     # eg (put everything - in the real live scenario, choose only what you want to grant) :
     setmqaut -m QM1 -n LQ1 -t q -p poc +put +get +browse +inq +set +crt +dlt +chg +dsp +passid +setid +setall +clr 
    

    Then dont forget to restart QM1 with

      endmqm -i QM1
      strmqm QM1
    

    Finally, you should be able to proceed without error 2035.

提交回复
热议问题