Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

OLE DB and Oracle

689516Apr 7 2009 — edited Apr 7 2009
I am presently struggling to connect a Powerbuilder App to an Oracle Database, details:
Development environment
Win2000 latest SP etc
OracleXE 10g (v10.?) - single user dev system
Powerbuilder 10.2 Enterprise
Using the Powerbuilder driver (direct connection not OLE DB) it connects perfectly and all looks OK, but
Using the MS or Oracle supplied OLE DB driver I can connect, read data from and save data to the database but I have a problem running Stored Procedures/Functions. I can run simple Stored Procedures/Functions but if they contain any SQL then they will not execute. With the PB direct driver they work perfectly.

On my Client's installation, which is:
Win XP
Oracle 10.2 - part of a very large installation, that uses TNS rather then specifying a server ip address which is what I do on my setup here. But one of there guys was doing the testing with me and he knew all about it.
The direct driver would not connect at all - could be versioning, could be something missing - for example I have found docs that say we need SQL*Net????
The Oracle supplied OLE DB driver would not connect at all.
The MS supplied OLE DB driver connected fine but I could not test my software with it. When I say connected, what I mean is that the Test Connection button on the UDL editor reports that it connects OK.

My preferred mechanism would now be to use OLE DB, it is a proprietary piece of software and getting the latest (and working versions) should be easier than getting the required DLL from Sybase. if my client changes the version of software on the server we have been assigned to then all that is needed is the correct OLE DB driver. I have used OLE DB between Powerbuilder and MS SQL Server for a number of years and so I am used to it's quirks.

But using either of the OLE DB drivers (on my development system) gives me the strange Stored Procedure behaviour, described above. I can work around this - it's main use being to service various PKs which are required to be auto-incrementing. Using transaction control will give me the same functionality, storing the current index of a procedure in a parameter table, instead of using Oracle sequences. But if I am getting one problem, I am afraid that I might get more, why should the issue be just with stored funcs/procs? Is there some sort of SET statement I need, I have tried SET TRANSACTION ..... but no joy?

Any help would be greatly appreciated.

Bill Mac
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 5 2009
Added on Apr 7 2009
11 comments
598 views