spark的自留地(ofbiz/eclipse rcp/shark/opentaps)

            BlogJava :: 首頁 :: 聯(lián)系 :: 聚合  :: 管理
            54 Posts :: 0 Stories :: 112 Comments :: 0 Trackbacks
          默認(rèn)Opentaps是基于derby的安裝,這個(gè)在實(shí)際生產(chǎn)環(huán)境是不太可能會使用的。往往我們會實(shí)際需要使用Oracle作為生產(chǎn)數(shù)據(jù)庫。很多人問我怎么去修改Opentaps與Oracle的支持。修改方法如下:

          1、編輯 framework/entity/config/entityengine.xml,修改default delegate為 localoracle

          <delegator name="default" entity-model-reader="main" entity-group-reader="main" entity-eca-reader="main" distributed-cache-clear-enabled="false">
          <group-map group-name="org.ofbiz" datasource-name="localoracle"/>
          <group-map group-name="org.ofbiz.olap" datasource-name="localoracle"/>
          <group-map group-name="org.ofbiz.tenant" datasource-name="localoracle"/>
          <group-map group-name="org.opentaps.analytics" datasource-name="localoracle"/>
          <group-map group-name="org.opentaps.testing" datasource-name="localoracle"/>
          </delegator>


          2、修改同個(gè)文件中的的localoracle 的datasource節(jié)點(diǎn)
              <datasource name="localoracle"
                      helper
          -class="org.ofbiz.entity.datasource.GenericHelperDAO"
                      schema
          -name="OFBIZ"
                      field
          -type-name="oracle"
                      check
          -on-start="true"
                      add
          -missing-on-start="true"
                      alias
          -view-columns="false"
                      join
          -style="ansi">
                  
          <read-data reader-name="seed"/>
                  
          <read-data reader-name="seed-initial"/>
                  
          <read-data reader-name="demo"/>
                  
          <read-data reader-name="ext"/>
                  
          <inline-jdbc
                          jdbc
          -driver="oracle.jdbc.driver.OracleDriver"
                          jdbc
          -uri="jdbc:oracle:thin:@127.0.0.1:1521:orcl"
                          jdbc
          -username="ofbiz"
                          jdbc
          -password="ofbiz"
                          pool
          -minsize="2"
                          pool
          -maxsize="250"
                          time
          -between-eviction-runs-millis="600000"/>
              
          </datasource>

          3、將{ORACLE_HOME}\product\10.2.0\db_1\jdbc\lib目錄下的ojdbc14.jar拷貝到framework/entity/lib/jdbc目錄下

          4、重新運(yùn)行ant run-install生成數(shù)據(jù)庫對象

          5、現(xiàn)在Oracle數(shù)據(jù)庫已經(jīng)就緒OK啦


          posted on 2012-03-07 10:56 shanghai_spark 閱讀(802) 評論(0)  編輯  收藏 所屬分類: opentaps
          主站蜘蛛池模板: 台东县| 华安县| 如皋市| 湛江市| 临颍县| 屏东市| 垦利县| 探索| 姜堰市| 高雄市| 阿城市| 浠水县| 屯昌县| 永仁县| 马龙县| 宁强县| 卓资县| 宿州市| 海安县| 武邑县| 乌兰县| 阿拉善左旗| 道孚县| 虞城县| 乐平市| 武宁县| 杭锦旗| 松潘县| 嘉祥县| 洛川县| 滁州市| 马边| 黄冈市| 故城县| 山东省| 静海县| 台州市| 九龙县| 广安市| 尼勒克县| 九江市|