|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
mqsichangeproperties Issue |
« View previous topic :: View next topic » |
Author |
Message
|
SANTYP |
Posted: Sun Jan 16, 2011 6:44 pm Post subject: mqsichangeproperties Issue |
|
|
 Centurion
Joined: 27 Mar 2007 Posts: 142
|
Hi all,
I think few of you guys already come across this problem,
Problem is I have a broker say BRK in AIX environment, which has a DSN called BRKDSN with username as "username" and password as "password".
I come across a situation where I need to access one table in same database(Oracle) with different schema, which has username as "username1" and password as "password1".
So I set the these credentails to BRKDSN using mqsichangeproperties command.
All are fine .. till the point..
In my one of my compute node I have statement like below...
INSERT INTO Database.ABAT_EXPORTER (FEED_CODE) VALUES ("feed_value");
note: I didn't used the statement inthe Passthru function.
this peace of code is working fine before I change the DSN properties...
but after changing the properties... it's throwed an exception..
"[IBM][ODBC Oracle Wire Protocol driver][Oracle]ORA-04044: procedure, function, package, or type is not allowed here' (CHARACTER)"
after I changed the above code to
INSERT INTO BRKDSN.ABAT_EXPORTER (FEED_CODE) VALUES ("feed_value");
it is worked..
table ABAT_EXPORTER is in old schema only.. mean which has username as "username" and password as "password"..
Can any one tell me what could be reason for the failure... |
|
Back to top |
|
 |
fjb_saper |
Posted: Sun Jan 16, 2011 7:36 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
You need a different DSN for each userId.  _________________ MQ & Broker admin |
|
Back to top |
|
 |
SANTYP |
Posted: Sun Jan 16, 2011 7:58 pm Post subject: |
|
|
 Centurion
Joined: 27 Mar 2007 Posts: 142
|
sorry bit of correction in my question..
I changed the dsn properties using mqsisetdbparms command...
and I don't think I need to separated DSN for new schema connections fjb_saper!! |
|
Back to top |
|
 |
fjb_saper |
Posted: Sun Jan 16, 2011 10:08 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
SANTYP wrote: |
sorry bit of correction in my question..
I changed the dsn properties using mqsisetdbparms command...
and I don't think I need to separated DSN for new schema connections fjb_saper!! |
You are connecting to the same database with different authorizations (different userId). Unless you have a userId that allows you to process all your operations on the DB you will need one DSN per userId. This is the only way you can change authorization at will during the flow... as you would be changing DSN...
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|