Oracle10g 将sonar更新为4.1.2无法升级DB

Oracle10g 将sonar更新为4.1.2无法升级DB,oracle10g,sonarqube,Oracle10g,Sonarqube,我正在使用Oracle 10.2从Sonar 3.4.1升级到4.1.2 我已经根据目标版本支持的版本更新了所有插件 单击/设置页面中的升级按钮后,我出现以下错误: 2014.07.08 19:15:06 INFO [DbMigration] 2014.07.08 19:15:06 INFO [DbMigration] == AddNetworkUseSubCharacteristic: migrating =============================

我正在使用Oracle 10.2从Sonar 3.4.1升级到4.1.2

我已经根据目标版本支持的版本更新了所有插件

单击/设置页面中的升级按钮后,我出现以下错误:

2014.07.08 19:15:06 INFO  [DbMigration]
2014.07.08 19:15:06 INFO  [DbMigration]  ==  AddNetworkUseSubCharacteristic: migrating =============================                                                                                                                          ====
2014.07.08 19:15:06 ERROR [o.s.s.ui.JRubyFacade]  Fail to upgrade database
An error has occurred, all later migrations canceled:

ActiveRecord::JDBCError: ORA-00904: "DESCRIPTION": invalid identifier
: INSERT INTO characteristics (kee, name, rule_id, characteristic_order, enabled, parent_id, root_id, function_key,                                                                                                                           factor_value, factor_unit, offset_value, offset_unit, created_at, updated_at, quality_model_id, depth, description,                                                                                                                           id) VALUES('NETWORK_USE_EFFICIENCY', 'Network use', NULL, NULL, 1, 10347, 10347, NULL, NULL, NULL, NULL, NULL, TO_TI                                                                                                                          MESTAMP('2014-07-08 19:15:06:825000','YYYY-MM-DD HH24:MI:SS:FF6'), TO_TIMESTAMP('2014-07-08 19:15:06:825000','YYYY-M                                                                                                                          M-DD HH24:MI:SS:FF6'), NULL, NULL, NULL, ?)
        /opt/sonarqube-4.1.2/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/connection_adapters/abstrac                                                                                                                          t_adapter.rb:227:in `log'
        /opt/sonarqube-4.1.2/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/connection_adapters/abstrac                                                                                                                          t_adapter.rb:212:in `log'
        /opt/sonarqube-4.1.2/web/WEB-INF/gems/gems/activerecord-jdbc-adapter-1.1.3/lib/arjdbc/oracle/adapter.rb:183:                                                                                                                          in `ora_insert'
        /opt/sonarqube-4.1.2/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/connection_adapters/abstrac                                                                                                                          t/query_cache.rb:26:in `insert_with_query_dirty'
        /opt/sonarqube-4.1.2/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/base.rb:2967:in `create'
        /opt/sonarqube-4.1.2/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/timestamp.rb:53:in `create_                                                                                                                          with_timestamps'
        /opt/sonarqube-4.1.2/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/callbacks.rb:266:in `create                                                                                                                          _with_callbacks'
        /opt/sonarqube-4.1.2/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/base.rb:2933:in `create_or_                                                                                                                          update'
        /opt/sonarqube-4.1.2/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/callbacks.rb:250:in `create                                                                                                                          _or_update_with_callbacks'
        /opt/sonarqube-4.1.2/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/base.rb:2583:in `save'
        /opt/sonarqube-4.1.2/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/validations.rb:1089:in `sav                                                                                                                          e_with_validation'
        /opt/sonarqube-4.1.2/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/dirty.rb:79:in `save_with_d                                                                                                                          irty'
        org/jruby/RubyKernel.java:2225:in `send'
        /opt/sonarqube-4.1.2/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/transactions.rb:229:in `wit                                                                                                                          h_transaction_returning_status'
        /opt/sonarqube-4.1.2/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/connection_adapters/abstrac                                                                                                                          t/database_statements.rb:136:in `transaction'
        /opt/sonarqube-4.1.2/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/transactions.rb:182:in `tra                                                                                                                          nsaction'
        /opt/sonarqube-4.1.2/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/transactions.rb:228:in `wit                                                                                                                          h_transaction_returning_status'
        /opt/sonarqube-4.1.2/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/transactions.rb:196:in `sav                                                                                                                          e_with_transactions'
        /opt/sonarqube-4.1.2/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/transactions.rb:208:in `rol                                                                                                                          lback_active_record_state!'
        /opt/sonarqube-4.1.2/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/transactions.rb:196:in `sav                                                                                                                          e_with_transactions'
        /opt/sonarqube-4.1.2/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/base.rb:727:in `create'
        /opt/sonarqube-4.1.2/web/WEB-INF/db/migrate/466_add_network_use_sub_characteristic.rb:42:in `up'
        org/jruby/RubyKernel.java:2221:in `send'
        /opt/sonarqube-4.1.2/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/migration.rb:282:in `migrat                                                                                                                          e'
        jar:file:/opt/sonarqube-4.1.2/web/WEB-INF/lib/jruby-complete-1.7.6.jar!/META-INF/jruby.home/lib/ruby/1.8/ben                                                                                                                          chmark.rb:293:in `measure'
        /opt/sonarqube-4.1.2/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/migration.rb:282:in `migrat                                                                                                                          e'
        org/jruby/RubyKernel.java:2225:in `send'
        /opt/sonarqube-4.1.2/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/migration.rb:365:in `migrat                                                                                                                          e'
        /opt/sonarqube-4.1.2/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/migration.rb:491:in `migrat                                                                                                                          e'
        org/jruby/RubyProc.java:290:in `call'
        org/jruby/RubyProc.java:224:in `call'
        /opt/sonarqube-4.1.2/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/migration.rb:567:in `ddl_tr                                                                                                                          ansaction'
        /opt/sonarqube-4.1.2/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/migration.rb:490:in `migrat                                                                                                                          e'
        org/jruby/RubyArray.java:1613:in `each'
        /opt/sonarqube-4.1.2/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/migration.rb:477:in `migrat                                                                                                                          e'
        /opt/sonarqube-4.1.2/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/migration.rb:401:in `up'
        /opt/sonarqube-4.1.2/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/migration.rb:383:in `migrat                                                                                                                          e'
        /opt/sonarqube-4.1.2/web/WEB-INF/lib/database_version.rb:62:in `upgrade_and_start'
        /opt/sonarqube-4.1.2/web/WEB-INF/app/models/database_migration_manager.rb:109:in `start_migration'
        org/jruby/RubyProc.java:290:in `call'
        org/jruby/RubyProc.java:228:in `call'
不确定为什么会出现与无效标识符相关的错误。 提前感谢你的帮助

特征表结构:

{ 名称空?类型

ID不是空的数字38 KEE VARCHAR2100 名称VARCHAR2100 规则编号38 特征_订单号38 启用号码1 家长身份证号码38 根用户ID号38 功能键VARCHAR2100 系数_值编号30,20 系数单位VARCHAR2100 偏移量值编号30,20 偏移量单位VARCHAR2100 在时间戳6创建了_ 在时间戳6更新了_
}

请问您的表特征的结构列是什么?您能尝试从3.4.1升级到3.7.x然后升级到4.x吗?我会尝试让您知道。最后我会找出问题所在。Sonar常见问题解答说:in:in部分由于用户表结构不正确,无法使用Oracle启动SonarQube,即使这适用于任何表而不仅仅是用户表。问题是我从Sonar模式中克隆了一个模式expdp/impdp,该模式使用相同的对象和数据,因此当我启动迁移时失败了。我最终做的是放弃克隆的模式,升级可以成功完成。