Lumen does not automatically load all configuration files. Ensure you have a config/database.php file and append the oracle connection array to it. You can then use .env variables to populate these values.
'oracle' => [
'driver' => 'oracle',
'tns' => env('DB_TNS', ''),
'host' => env('DB_HOST', ''),
'port' => env('DB_PORT', '1521'),
'database' => env('DB_DATABASE', ''),
'service_name' => env('DB_SERVICE_NAME', ''),
'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', 'ora$base'),
'server_version' => env('DB_SERVER_VERSION', '11g'),
'load_balance' => env('DB_LOAD_BALANCE', 'yes'),
'connect_timeout' => env('DB_CONNECT_TIMEOUT', ''),
'retry_count' => env('DB_RETRY_COUNT', '3'), // 12c and above only
'retry_delay' => env('DB_RETRY_DELAY', '1'), // 12c and above only
'transport_connect_timeout' => env('DB_TRANSPORT_CONNECT_TIMEOUT', '60'), // 12c and above only
'expire_time' => env('DB_EXPIRE_TIME', '0'), // 19c and above only
'dynamic' => [],
'max_name_len' => env('ORA_MAX_NAME_LEN', 30),
],