Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-15109

ezoracle : No database handler was found for 'oracle'

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • extension/ezoracle 2.0.1
    • extension/ezoracle 2.0.0
    • Install
    • None

    Description

      Hi

      I am installing ezoracle extension on ezp 4.1.2.
      When following the manual installation instructions at http://ez.no/doc/extensions/database/2_0/installation/manual_initialization it stops at the point where you are going to install the db schema:

      $ php bin/php/ezsqlinsertschema.php --type=oracle --user=... --password=... share/db_schema.dba ORCL --clean-existing
      Could not initialize database:
      * Tried database 'ORCL' locally with user 'ezp' and with a password
      * Noa database handler was found for 'oracle'
      $ tail var/log/error.log
      [ Jun 30 2009 12:18:11 ] [] eZDB::instance:
      Database implementation not supported: oracle
      

      If I then retry, but using --type=ezoracle instead I get the following error:

      $ php bin/php/ezsqlinsertschema.php --type=ezoracle --user=... --password=... share/db_schema.dba ORCL --clean-existing
      Error instantiating the appropriate schema handler
      $ tail var/log/error.log
      [ Jun 30 2009 12:18:13 ] [] eZDbSchema::instance():
      No schema handler for database type: ezoracle
      

      It turns out that the db implementation alias is called ezoracle, while the schema alias is called oracle (This inconsistency happens in extension/ezoracle/settings/site.ini.append.php and extension/ezoracle/settings/dbschema.ini.append.php).

      Proposed fix:

      --- extension/ezoracle/settings/site.ini.append.php.org 2009-06-30 13:39:22.000000000 +0200
      +++ extension/ezoracle/settings/site.ini.append.php     2009-06-30 13:39:16.000000000 +0200
      @@ -1,4 +1,4 @@
       <?php /*
       [DatabaseSettings]
      -ImplementationAlias[ezoracle]=eZOracleDB
      +ImplementationAlias[oracle]=eZOracleDB
       */ ?>
      

      (If you instead want to call the dbchema ezoracle, you'll need to update install documentation as well)

      Attachments

        Activity

          People

            72f8acac-185f-4a54-9470-a7473f50daab@accounts.ibexa.co Gaetano Giunta
            vl vl
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: