문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top