9 Replies Latest reply on Mar 6, 2009 4:51 PM by mazz

    Oracle 11g support

    Thorbjørn Blixen-Finecke Newbie

      Hi

      I am unsure if this is the right forum for this.

      In the rhq-installer.war there is a class org.rhq.core.db.DataTypeFactory

      This class has the following if structure inside it:

      else if (db_name.indexOf("oracle") != -1) {
      if (db_version.startsWith("oracle8"))
      database_type_class = Oracle8DatabaseType.class;
      else if (db_version.startsWith("oracle9"))
      database_type_class = Oracle9DatabaseType.class;
      else if (db_version.startsWith("oracle database 10g"))
      database_type_class = Oracle10DatabaseType.class;
      }

      Would it be possible to have this extended as follows:

      else if (db_name.indexOf("oracle") != -1) {
      if (db_version.startsWith("oracle8"))
      database_type_class = Oracle8DatabaseType.class;
      else if (db_version.startsWith("oracle9"))
      database_type_class = Oracle9DatabaseType.class;
      else if (db_version.startsWith("oracle database 10g"))
      database_type_class = Oracle10DatabaseType.class;
      else if (db_version.startsWith("oracle database 11g"))
      database_type_class = Oracle10DatabaseType.class;
      }

      In order to gain support for Oracle 11g as well?

      I think Oracle 11g should be backwards compatible with 10g so that the same DatabaseType class can be reused?