Doctrine DBAL
  1. Doctrine DBAL
  2. DBAL-375

Warning "Udefined index dbname" while creating database with oci8 driver

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Invalid
    • Affects Version/s: 2.2.2, 2.3.1
    • Fix Version/s: None
    • Component/s: Drivers
    • Labels:

      Description

      In config specified:

      doctrine:
      dbal:
      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.

        Activity

        Hide
        Steve Müller added a comment -

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

        Show
        Steve Müller added a comment - This is not a DBAL issue, it has to be fixed in DoctrineBundle.
        Hide
        Benjamin Eberlei added a comment -

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

        Show
        Benjamin Eberlei added a comment - on Oracle CREATE DATABASE is actually a CREATE USER. I am not sure the command should allow to do this.
        Hide
        Kris Willis added a comment -

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

        Show
        Kris Willis added a comment - I'm experiencing the same issue and your fix appears to work for me too; thanks!

          People

          • Assignee:
            Steve Müller
            Reporter:
            pavel patrin
          • Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: