Oracle Call Interface (OCI)

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
4 posts • Page 1 of 1
chood
Posts:4
Joined: Fri Oct 13, 2017 7:02 pm

Oracle Call Interface (OCI)

Post by chood »

Trying to use the OCI within a ctl script but throws an error upon running:

54, Unexpected state, The Ctrl Extension C:\\Siemens\\Automation\\WinCC_OA\\3.15\\bin\\oraocci11.dll is not compatible with the current library version 315000 of WinCC OA.
It might be from version

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: Oracle Call Interface (OCI)

Post by mkoller »

oraocci11.dll ist not a ctrl extension.
When you want to communicate with any DB from CTRL scripts then you have to use the CtrlADO ctrl extension.
Described in the help at qthelp://wincc_oa/doc/Ado/ADO-01.htm

chood
Posts:4
Joined: Fri Oct 13, 2017 7:02 pm

Re: Oracle Call Interface (OCI)

Post by chood »

I can connect to the DB by using the ctrlado.ctl just fine.

The issue I am having is how do I use the OCI api within ctrlado? It does not seem to like when I include the library.

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: Oracle Call Interface (OCI)

Post by mkoller »

As said, you can not include the oci.dll since it's not a CTRL extension.
If you have a need to use oci directly then you would need to write your own CTRL extension, wrapping the oci functions to be usable by CTRL.

4 posts • Page 1 of 1