Doctrine DBAL
  1. Doctrine DBAL
  2. DBAL-375

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

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • 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

        pavel patrin created issue -
        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!
        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.

        This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

        • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DBAL-375, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            pavel patrin
          • Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated: