OCI Wrapper?
Posted: Fri Aug 09, 2013 5:36 pm
I have searched through the forum looking for ways to access Oracle without having a preconfigured ODBC DSN or having to create it on the fly and the alternatives I found are ADO and OCI. OCI seems more efficient and OCILib seems to be the way to go.
Apparently, there seems to be some kind of OCI Wrapper for pb (RW_ocilib), but I am not sure if it is mantained. It also seems to be a wrapper for the dll.
I also found a piece of code from gnozal that also wrapped some functions, although I did not manage to make it work (it failed at the OCI_ConnectionCreate call, while the RW wrapper did not, with the same parameters). [Edit:] I actually made it work after realising it was supposed to be compiled in Unicode.
There is also a wishlist item to include ocilib as part of PB. I do not want to go that far (and probably the ocilib license does not allow full integration), but a working wrapper would be nice. Anyone is using OCILib and has already created some kind of wrapper and examples?
The above mentioned RW_OCIlib is working fine here with PB 5.11 and a very simple query, after removing the types in the definitions of the pointers.
Apparently, there seems to be some kind of OCI Wrapper for pb (RW_ocilib), but I am not sure if it is mantained. It also seems to be a wrapper for the dll.
I also found a piece of code from gnozal that also wrapped some functions, although I did not manage to make it work (it failed at the OCI_ConnectionCreate call, while the RW wrapper did not, with the same parameters). [Edit:] I actually made it work after realising it was supposed to be compiled in Unicode.
There is also a wishlist item to include ocilib as part of PB. I do not want to go that far (and probably the ocilib license does not allow full integration), but a working wrapper would be nice. Anyone is using OCILib and has already created some kind of wrapper and examples?
The above mentioned RW_OCIlib is working fine here with PB 5.11 and a very simple query, after removing the types in the definitions of the pointers.