Posted: Fri Nov 10, 2017 5:37 am Post subject: Re: Exception in Passthru statement to Oracle Database
Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
sudheer7700 wrote:
I am have a requirement to call both db2 and oracle databases from 1 compute node. Db2 is working, Oracle Throwing below exception
"[Microsoft][ODBC Driver Manager] Driver does not support this function"
The code I wrote
Db2 :
PASSTHRU('select * from <SchemaName>.<TableName> where NAME = ?' TO Database.<DB2DataSourceName> VALUES('xxxx'));
Oracle :
PASSTHRU('select * from <SchemaName>.<TableName> where NAME = ?' TO Database.<OracleDataSourceName> VALUES('xxxx'));
I need SQL statements to be passed with in passthru
Don't know your version but on older versions the additional datasourcenames had to be of the same type as was specified on the compute node. I.e. all Oracle or all DB2 but not mix. _________________ MQ & Broker admin
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