We maintain an extensive collection of components written in C++ that run under Linux, Solaris, AIX and HP/UX that connect to an Oracle database using Pro*C. I am about to write a component that performs a lot of dynamic SQL and would like to implement that functionality using OCCI. The base class to all our components creates a connection to the database using the fairly normal Pro*C:
EXEC SQL CONNECT :user IDENTIFIED BY :password AT :alias USING :name;
And alias
is used in all future Pro*C code to interact with the database.
Is it possible to get an OCCI connection from this so that I can leave our base class implementation intact but use OCCI in my component?