yajra / laravel-oci8

Oracle DB driver for Laravel via OCI8

Home Page:https://yajrabox.com/docs/laravel-oci8

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DRCP Connection Pooling

ahmedbnhussain opened this issue · comments

commented

Summary of problem or feature request

Reading through this I can't find a way to specify the SERVER=POOLED. I looked at the setTNS function and I think it's not an option at the moment. am I missing something?

$config['tns'] = "(DESCRIPTION = (ADDRESS = (PROTOCOL = {$config['protocol']})(HOST = {$config['host']})(PORT = {$config['port']})) (CONNECT_DATA =({$config['service']})))";

What I understood, is that I must add SERVER=POOLED in the CONNECT_DATA, so I get something like this:

(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp) (HOST=myhost.dom.com) (PORT=1521))(CONNECT_DATA=(SERVICE_NAME=sales) (SERVER=POOLED)))

System details

  • Ubuntu 22.04
  • PHP 8.3
  • Laravel 10
  • Laravel-OCI8 10.3
commented

I just found out that I can set the DB_TNS in the .env.

Yes, you can use raw TNS to connect. Are you using a persistent connection with SERVER=POOLED? I just read the link and seems like it's nice to have this implemented like maybe on another config key. How was the performance?

This issue is stale because it has been open for 30 days with no activity.

This issue was closed because it has been inactive for 7 days since being marked as stale.