This illustration describes basic OCI program flow. The first step is to create an environment handle. OCI allocates handles and data structures before it connects to the server to begin the session. SQL statements are issued for data exchange, then data is processed. OCI disconnects and frees handles and data structures.