Connecting to Oracle Using the OCI8 Libraries

The Oracle Call Interface 8 (OCI8) libraries provide three connection types to the Oracle database:

  • Standard connections Build an RPC connection that is good for the duration of a script’s execution unless explicitly closed by the script. All calls to the database in these scripts use the same connection unless they open a unique connection by calling the oci_new_connect() function. Standard connections place overhead on the server to marshal and allocate resources that are dismissed when released by the script or after the script terminates. There is no preserved state between HTTP requests to the server for standard connections.

  • Unique connections Build a unique RPC connection that is good for the ...

Get Oracle Database 10g Express Edition PHP Web Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.