Pergunta

I will design a web application in which the application will make some transactions in an Oracle DB with OCI.

My question is, should I connect every time when I need a transaction on the database side with oci_connect which means I will need to put to every php file a connection string. Or is there a way to create a one time connection (a session) and make everytime the transactions over that connection.

Foi útil?

Solução

What I was looking for was Database Resident Connection Pooling in oracle. It is supported after 11g.

http://www.oracle.com/technetwork/topics/php/whatsnew/php-scalability-ha-twp-128842.pdf

Database Resident Connection Pooling (DRCP) provides a connection pool in the database server for typical Web application usage scenarios where the application acquires a database connection, works on it for a relatively short duration, and then releases it.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top