laravel-oci8
laravel-oci8 copied to clipboard
cannot connect oracle 10g
<------------------- 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; } }
Try removing these on your config:
'edition' => env('DB_EDITION', ''),
'server_version' => env('DB_SERVER_VERSION', '11g'),
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.