Skip to content


DBAL-375: Warning "Udefined index dbname" while creating database with oci8 driver #1564

doctrinebot opened this Issue · 4 comments

2 participants


Jira issue originally created by user pavelpat:

In config specified:

driver: "oci8"
host: "localhost"
port: "1521"
dbname: "orcl50"
user: "SYSTEM"
password: "123456"
charset: UTF8

When i create database (with symfony 2, doctrine:database:create), got that error:

Could not create database for connection named orcl50

Notice: Undefined index: dbname in /path/to/symfony/vendor/doctrine-dbal/lib/Doctrine/DBAL/Driver/OCI8/Driver.php line 67

If i comment "unset($params['dbname'])" in CreateDatabaseDoctrineCommand.php:54 all works fine.


Comment created by krisw:

I'm experiencing the same issue and your fix appears to work for me too; thanks!


Comment created by @beberlei:

on Oracle CREATE DATABASE is actually a CREATE USER. I am not sure the command should allow to do this.


Comment created by @deeky666:

This is not a DBAL issue, it has to be fixed in DoctrineBundle.


Issue was closed with resolution "Invalid"

@doctrinebot doctrinebot added the Bug label
@deeky666 deeky666 was assigned by doctrinebot
@doctrinebot doctrinebot closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.