Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

PHP 5.1.2 oci_pconnect and max_persistent not working

485044Feb 7 2006 — edited Nov 2 2007
Hi,

I have Oracle HTTP server and switched to new PHP 5.1.2 to use persistent connections.
In php.ini:
oci8.privileged_connect = 0
oci8.max_persistent = 2
oci8.persistent_timeout = 1200
oci8.ping_interval = -1
oci8.statement_cache_size = 20

phpinfo() confirms that :)
---
I just run on test database and single browser session - no one else is using this server.
After some time (30 mins) I have more then 2 session eg. 5.

I've figured out, that calls to oci_pconnect with the same user/pass@db that are in about 60 seconds interval do not open new session - it reuses previous one.
If interval between calls is bigger, new session is created.
Is this an bug, or something is configured incorrectly?

Regards,
Pawel
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 30 2007
Added on Feb 7 2006
5 comments
7,396 views