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
Oracle Call Interface (OCI)
- mkoller
- Posts:741
- Joined: Fri Sep 17, 2010 9:03 am
Re: Oracle Call Interface (OCI)
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
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)
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.
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)
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.
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.