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

            BlogJava :: 首頁 :: 聯系 :: 聚合  :: 管理
            54 Posts :: 0 Stories :: 112 Comments :: 0 Trackbacks
          默認Opentaps是基于derby的安裝,這個在實際生產環境是不太可能會使用的。往往我們會實際需要使用Oracle作為生產數據庫。很多人問我怎么去修改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、修改同個文件中的的localoracle 的datasource節點
              <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、重新運行ant run-install生成數據庫對象

          5、現在Oracle數據庫已經就緒OK啦


          posted on 2012-03-07 10:56 shanghai_spark 閱讀(802) 評論(0)  編輯  收藏 所屬分類: opentaps
          主站蜘蛛池模板: 慈利县| 阿拉善盟| 屏南县| 罗山县| 泰来县| 饶河县| 英山县| 南和县| 桐柏县| 江北区| 黄骅市| 鄱阳县| 南川市| 台江县| 蒙自县| 徐闻县| 井研县| 瑞昌市| 天台县| 教育| 盐亭县| 霞浦县| 清徐县| 澎湖县| 两当县| 建瓯市| 太谷县| 会同县| 扶余县| 筠连县| 门源| 贵州省| 四平市| 靖远县| 商丘市| 马关县| 聂荣县| 西城区| 曲周县| 辰溪县| 湘潭县|