laravel-oci8 icon indicating copy to clipboard operation
laravel-oci8 copied to clipboard

cannot connect oracle 10g

Open Meshkat123 opened this issue 5 years ago • 1 comments

<------------------- Error --------------------> Could not connect to the database. Please check your configuration. error:

<-------------------- Code ------------------>

'oracle' => [ 'driver' => 'oracle', 'tns' => env('DB_TNS', ''), 'host' => env('DB_HOST', '192.168.01.44'), 'port' => env('DB_PORT', '1521'), 'database' => env('DB_DATABASE', 'orcl'), 'username' => env('DB_USERNAME', ''), 'password' => env('DB_PASSWORD', ''), 'charset' => env('DB_CHARSET', 'AL32UTF8'), 'prefix' => env('DB_PREFIX', ''), 'prefix_schema' => env('DB_SCHEMA_PREFIX', ''), 'edition' => env('DB_EDITION', ''), 'server_version' => env('DB_SERVER_VERSION', '11g'), ] <-------------- Controller --------------------->

getPdo(); } catch (\Exception $e) { die("Could not connect to the database. Please check your configuration. error:"); } return 0; } }

Meshkat123 avatar Dec 02 '19 11:12 Meshkat123

Try removing these on your config:

'edition' => env('DB_EDITION', ''),
'server_version' => env('DB_SERVER_VERSION', '11g'),

yajra avatar Dec 03 '19 01:12 yajra

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

github-actions[bot] avatar Oct 20 '22 03:10 github-actions[bot]

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

github-actions[bot] avatar Oct 28 '22 03:10 github-actions[bot]