MyCAT+MySQL 搭建高可用企業級數據庫集羣——第3章 MyCat核心配置講解

  • 3-1 章節綜述
  • 3-2 經常使用配置文件間的關係
  • 3-3 server.xml配置詳解
  • 3-4 log4j2.xml配置文件
  • 3-5 rule.xml
  • 3-6 經常使用分片算法(上)
  • 3-7 經常使用分片算法(下)
  • 3-8 schema.xml文件用途
  • 3-9 schema定義邏輯庫
  • 3-10 table標籤
  • 3-11 dataNode標籤
  • 3-12 dataHost標籤
  • 3-13 dataHost標籤屬性
  • 3-14 heartbeat標籤
  • 3-15 writehost標籤
  • 3-16 schema總結

3-1 章節綜述

一、詳解Mycat主要配置文件的標籤和屬性

二、實戰經過Mycat實現數據庫的分庫分表及分片配置

3-2 經常使用配置文件間的關係

一、Mycat配置文件概述;

  • server.xml#配置系統相關參數;
  • schema.xml
  • rule.xml
  • log4j2.xml

3-3 server.xml配置詳解

一、server.xml詳解;node

  • 配置系統相關參數;
  • 配置用戶訪問權限
  • 配置SQL防火牆及SQL攔截功能

<?xml version="1.0" encoding="UTF-8"?>
<!-- - - Licensed under the Apache License, Version 2.0 (the "License"); 
    - you may not use this file except in compliance with the License. - You 
    may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 
    - - Unless required by applicable law or agreed to in writing, software - 
    distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT 
    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the 
    License for the specific language governing permissions and - limitations 
    under the License. -->
<!DOCTYPE mycat:server SYSTEM "server.dtd">
<mycat:server xmlns:mycat="http://io.mycat/">
    <system>
    <property name="nonePasswordLogin">0</property> <!-- 0爲須要密碼登錄、1爲不須要密碼登錄 ,默認爲0,設置爲1則須要指定默認帳戶-->
    <property name="useHandshakeV10">1</property>
    <property name="useSqlStat">0</property>  <!-- 1爲開啓實時統計、0爲關閉 -->
    <property name="useGlobleTableCheck">0</property>  <!-- 1爲開啓全加班一致性檢測、0爲關閉 -->

        <property name="sequnceHandlerType">2</property>
    <property name="subqueryRelationshipCheck">false</property> <!-- 子查詢中存在關聯查詢的狀況下,檢查關聯字段中是否有分片字段 .默認 false -->
      <!--  <property name="useCompression">1</property>--> <!--1爲開啓mysql壓縮協議-->
        <!--  <property name="fakeMySQLVersion">5.6.20</property>--> <!--設置模擬的MySQL版本號-->
    <!-- <property name="processorBufferChunk">40960</property> -->
    <!-- 
    <property name="processors">1</property> 
    <property name="processorExecutor">32</property> 
     -->
        <!--默認爲type 0: DirectByteBufferPool | type 1 ByteBufferArena | type 2 NettyBufferPool -->
        <property name="processorBufferPoolType">0</property>
        <!--默認是65535 64K 用於sql解析時最大文本長度 -->
        <!--<property name="maxStringLiteralLength">65535</property>-->
        <!--<property name="sequnceHandlerType">0</property>-->
        <!--<property name="backSocketNoDelay">1</property>-->
        <!--<property name="frontSocketNoDelay">1</property>-->
        <!--<property name="processorExecutor">16</property>-->
        <!--
            <property name="serverPort">8066</property> <property name="managerPort">9066</property> 
            <property name="idleTimeout">300000</property> <property name="bindIp">0.0.0.0</property> 
            <property name="frontWriteQueueSize">4096</property> <property name="processors">32</property> -->
        <!--分佈式事務開關,0爲不過濾分佈式事務,1爲過濾分佈式事務(若是分佈式事務內只涉及全局表,則不過濾),2爲不過濾分佈式事務,可是記錄分佈式事務日誌-->
        <property name="handleDistributedTransactions">0</property>
        
            <!--
            off heap for merge/order/group/limit      1開啓   0關閉
        -->
        <property name="useOffHeapForMerge">1</property>

        <!--
            單位爲m
        -->
        <property name="memoryPageSize">64k</property>

        <!--
            單位爲k
        -->
        <property name="spillsFileBufferSize">1k</property>

        <property name="useStreamOutput">0</property>

        <!--
            單位爲m
        -->
        <property name="systemReserveMemorySize">384m</property>


        <!--是否採用zookeeper協調切換  -->
        <property name="useZKSwitch">false</property>

        <!-- XA Recovery Log日誌路徑 -->
        <!--<property name="XARecoveryLogBaseDir">./</property>-->

        <!-- XA Recovery Log日誌名稱 -->
        <!--<property name="XARecoveryLogBaseName">tmlog</property>-->

    </system>
    
    <!-- 全局SQL防火牆設置 -->
    <!--白名單可使用通配符%或着*-->
    <!--例如<host host="127.0.0.*" user="root"/>-->
    <!--例如<host host="127.0.*" user="root"/>-->
    <!--例如<host host="127.*" user="root"/>-->
    <!--例如<host host="1*7.*" user="root"/>-->
    <!--這些配置狀況下對於127.0.0.1都能以root帳戶登陸-->
    <!--
    <firewall>
       <whitehost>
          <host host="1*7.0.0.*" user="root"/>
       </whitehost>
       <blacklist check="false">
       </blacklist>
    </firewall>
    -->

    <user name="root" defaultAccount="true">
        <property name="password">123456</property>
        <property name="schemas">TESTDB</property>
        
        <!-- 表級 DML 權限設置 -->
        <!--         
        <privileges check="false">
            <schema name="TESTDB" dml="0110" >
                <table name="tb01" dml="0000"></table>
                <table name="tb02" dml="1111"></table>
            </schema>
        </privileges>        
         -->
    </user>

    <user name="user">
        <property name="password">user</property>
        <property name="schemas">TESTDB</property>
        <property name="readOnly">true</property>
    </user>

</mycat:server>
server.xml

3-4 log4j2.xml配置文件

一、log4j2.xml文件用途;mysql

  • 配置輸出日誌的格式
  • 配置輸出日誌的級別

 

<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="WARN">
    <Appenders>
        <Console name="Console" target="SYSTEM_OUT">
            <PatternLayout pattern="%d [%-5p][%t] %m %throwable{full} (%C:%F:%L) %n"/>
        </Console>

        <RollingFile name="RollingFile" fileName="${sys:MYCAT_HOME}/logs/mycat.log"
                     filePattern="${sys:MYCAT_HOME}/logs/$${date:yyyy-MM}/mycat-%d{MM-dd}-%i.log.gz">
        <PatternLayout>
                <Pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %5p [%t] (%l) - %m%n</Pattern>
            </PatternLayout>
            <Policies>
                <OnStartupTriggeringPolicy/>
                <SizeBasedTriggeringPolicy size="250 MB"/>
                <TimeBasedTriggeringPolicy/>
            </Policies>
        </RollingFile>
    </Appenders>
    <Loggers>
        <!--<AsyncLogger name="io.mycat" level="info" includeLocation="true" additivity="false">-->
            <!--<AppenderRef ref="Console"/>-->
            <!--<AppenderRef ref="RollingFile"/>-->
        <!--</AsyncLogger>-->
        <asyncRoot level="info" includeLocation="true">

            <!--<AppenderRef ref="Console" />-->
            <AppenderRef ref="RollingFile"/>

        </asyncRoot>
    </Loggers>
</Configuration>
log4j2.xml

3-5 rule.xml

一、rule.xml詳解;

 

3-6 經常使用分片算法(上)

一、分片算法初識;

  • 簡單取模-PartitionByMod(只能用於列爲整數的表的狀況)

  • 哈希取模-PartitionByHashMod

3-7 經常使用分片算法(下)

一、分片算法初識2;

  • 枚舉分片-PartitonByFileMap

  • 字符串範圍取模分片算法-PartitionByPrefixPattern

配置文件位於:$Mycat/conf/prefix-partition-pattern.txt文件名;

 

小結:

使用場景中,最多見的仍是簡單取模-PartitionByMod(只能用於列爲整數的表的狀況),比如LVS中負載均衡算法中,輪詢算法;算法

3-8 schema.xml文件用途

一、最關鍵的配置文件schema.xml;

  • 配置邏輯庫及邏輯表
  • 配置邏輯表所存儲的數據節點
  • 配置數據節點對應的物理數據庫服務器信息

3-9 schema定義邏輯庫

一、schema.xml中邏輯庫配置;

<?xml version="1.0"?>
<!DOCTYPE mycat:schema SYSTEM "schema.dtd">
<mycat:schema xmlns:mycat="http://io.mycat/">

    <schema name="TESTDB" checkSQLschema="false" sqlMaxLimit="100">
        <!-- auto sharding by id (long) -->
        <table name="travelrecord" dataNode="dn1,dn2,dn3" rule="auto-sharding-long" />

        <!-- global table is auto cloned to all defined data nodes ,so can join
            with any table whose sharding node is in the same data node -->
        <table name="company" primaryKey="ID" type="global" dataNode="dn1,dn2,dn3" />
        <table name="goods" primaryKey="ID" type="global" dataNode="dn1,dn2" />
        <!-- random sharding using mod sharind rule -->
        <table name="hotnews" primaryKey="ID" autoIncrement="true" dataNode="dn1,dn2,dn3"
               rule="mod-long" />
        <!-- <table name="dual" primaryKey="ID" dataNode="dnx,dnoracle2" type="global"
            needAddLimit="false"/> <table name="worker" primaryKey="ID" dataNode="jdbc_dn1,jdbc_dn2,jdbc_dn3"
            rule="mod-long" /> -->
        <table name="employee" primaryKey="ID" dataNode="dn1,dn2"
               rule="sharding-by-intfile" />
        <table name="customer" primaryKey="ID" dataNode="dn1,dn2"
               rule="sharding-by-intfile">
            <childTable name="orders" primaryKey="ID" joinKey="customer_id"
                        parentKey="id">
                <childTable name="order_items" joinKey="order_id"
                            parentKey="id" />
            </childTable>
            <childTable name="customer_addr" primaryKey="ID" joinKey="customer_id"
                        parentKey="id" />
        </table>
        <!-- <table name="oc_call" primaryKey="ID" dataNode="dn1$0-743" rule="latest-month-calldate"
            /> -->
    </schema>
    <!-- <dataNode name="dn1$0-743" dataHost="localhost1" database="db$0-743"
        /> -->
    <dataNode name="dn1" dataHost="localhost1" database="db1" />
    <dataNode name="dn2" dataHost="localhost1" database="db2" />
    <dataNode name="dn3" dataHost="localhost1" database="db3" />
    <!--<dataNode name="dn4" dataHost="sequoiadb1" database="SAMPLE" />
     <dataNode name="jdbc_dn1" dataHost="jdbchost" database="db1" />
    <dataNode    name="jdbc_dn2" dataHost="jdbchost" database="db2" />
    <dataNode name="jdbc_dn3"     dataHost="jdbchost" database="db3" /> -->
    <dataHost name="localhost1" maxCon="1000" minCon="10" balance="0"
              writeType="0" dbType="mysql" dbDriver="native" switchType="1"  slaveThreshold="100">
        <heartbeat>select user()</heartbeat>
        <!-- can have multi write hosts -->
        <writeHost host="hostM1" url="localhost:3306" user="root"
                   password="123456">
            <!-- can have multi read hosts -->
            <readHost host="hostS2" url="192.168.1.200:3306" user="root" password="xxx" />
        </writeHost>
        <writeHost host="hostS1" url="localhost:3316" user="root"
                   password="123456" />
        <!-- <writeHost host="hostM2" url="localhost:3316" user="root" password="123456"/> -->
    </dataHost>
    <!--
        <dataHost name="sequoiadb1" maxCon="1000" minCon="1" balance="0" dbType="sequoiadb" dbDriver="jdbc">
        <heartbeat>         </heartbeat>
         <writeHost host="hostM1" url="sequoiadb://1426587161.dbaas.sequoialab.net:11920/SAMPLE" user="jifeng"     password="jifeng"></writeHost>
         </dataHost>

      <dataHost name="oracle1" maxCon="1000" minCon="1" balance="0" writeType="0"     dbType="oracle" dbDriver="jdbc"> <heartbeat>select 1 from dual</heartbeat>
        <connectionInitSql>alter session set nls_date_format='yyyy-mm-dd hh24:mi:ss'</connectionInitSql>
        <writeHost host="hostM1" url="jdbc:oracle:thin:@127.0.0.1:1521:nange" user="base"     password="123456" > </writeHost> </dataHost>

        <dataHost name="jdbchost" maxCon="1000"     minCon="1" balance="0" writeType="0" dbType="mongodb" dbDriver="jdbc">
        <heartbeat>select     user()</heartbeat>
        <writeHost host="hostM" url="mongodb://192.168.0.99/test" user="admin" password="123456" ></writeHost> </dataHost>

        <dataHost name="sparksql" maxCon="1000" minCon="1" balance="0" dbType="spark" dbDriver="jdbc">
        <heartbeat> </heartbeat>
         <writeHost host="hostM1" url="jdbc:hive2://feng01:10000" user="jifeng"     password="jifeng"></writeHost> </dataHost> -->

    <!-- <dataHost name="jdbchost" maxCon="1000" minCon="10" balance="0" dbType="mysql"
        dbDriver="jdbc"> <heartbeat>select user()</heartbeat> <writeHost host="hostM1"
        url="jdbc:mysql://localhost:3306" user="root" password="123456"> </writeHost>
        </dataHost> -->
</mycat:schema>
schema.xml
<?xml version="1.0" encoding="UTF-8"?>
<!-- - - Licensed under the Apache License, Version 2.0 (the "License"); 
    - you may not use this file except in compliance with the License. - You 
    may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 
    - - Unless required by applicable law or agreed to in writing, software - 
    distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT 
    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the 
    License for the specific language governing permissions and - limitations 
    under the License. -->
<!DOCTYPE mycat:server SYSTEM "server.dtd">
<mycat:server xmlns:mycat="http://io.mycat/">
    <system>
    <property name="nonePasswordLogin">0</property> <!-- 0爲須要密碼登錄、1爲不須要密碼登錄 ,默認爲0,設置爲1則須要指定默認帳戶-->
    <property name="useHandshakeV10">1</property>
    <property name="useSqlStat">0</property>  <!-- 1爲開啓實時統計、0爲關閉 -->
    <property name="useGlobleTableCheck">0</property>  <!-- 1爲開啓全加班一致性檢測、0爲關閉 -->

        <property name="sequnceHandlerType">2</property>
    <property name="subqueryRelationshipCheck">false</property> <!-- 子查詢中存在關聯查詢的狀況下,檢查關聯字段中是否有分片字段 .默認 false -->
      <!--  <property name="useCompression">1</property>--> <!--1爲開啓mysql壓縮協議-->
        <!--  <property name="fakeMySQLVersion">5.6.20</property>--> <!--設置模擬的MySQL版本號-->
    <!-- <property name="processorBufferChunk">40960</property> -->
    <!-- 
    <property name="processors">1</property> 
    <property name="processorExecutor">32</property> 
     -->
        <!--默認爲type 0: DirectByteBufferPool | type 1 ByteBufferArena | type 2 NettyBufferPool -->
        <property name="processorBufferPoolType">0</property>
        <!--默認是65535 64K 用於sql解析時最大文本長度 -->
        <!--<property name="maxStringLiteralLength">65535</property>-->
        <!--<property name="sequnceHandlerType">0</property>-->
        <!--<property name="backSocketNoDelay">1</property>-->
        <!--<property name="frontSocketNoDelay">1</property>-->
        <!--<property name="processorExecutor">16</property>-->
        <!--
            <property name="serverPort">8066</property> <property name="managerPort">9066</property> 
            <property name="idleTimeout">300000</property> <property name="bindIp">0.0.0.0</property> 
            <property name="frontWriteQueueSize">4096</property> <property name="processors">32</property> -->
        <!--分佈式事務開關,0爲不過濾分佈式事務,1爲過濾分佈式事務(若是分佈式事務內只涉及全局表,則不過濾),2爲不過濾分佈式事務,可是記錄分佈式事務日誌-->
        <property name="handleDistributedTransactions">0</property>
        
            <!--
            off heap for merge/order/group/limit      1開啓   0關閉
        -->
        <property name="useOffHeapForMerge">1</property>

        <!--
            單位爲m
        -->
        <property name="memoryPageSize">64k</property>

        <!--
            單位爲k
        -->
        <property name="spillsFileBufferSize">1k</property>

        <property name="useStreamOutput">0</property>

        <!--
            單位爲m
        -->
        <property name="systemReserveMemorySize">384m</property>


        <!--是否採用zookeeper協調切換  -->
        <property name="useZKSwitch">false</property>

        <!-- XA Recovery Log日誌路徑 -->
        <!--<property name="XARecoveryLogBaseDir">./</property>-->

        <!-- XA Recovery Log日誌名稱 -->
        <!--<property name="XARecoveryLogBaseName">tmlog</property>-->

    </system>
    
    <!-- 全局SQL防火牆設置 -->
    <!--白名單可使用通配符%或着*-->
    <!--例如<host host="127.0.0.*" user="root"/>-->
    <!--例如<host host="127.0.*" user="root"/>-->
    <!--例如<host host="127.*" user="root"/>-->
    <!--例如<host host="1*7.*" user="root"/>-->
    <!--這些配置狀況下對於127.0.0.1都能以root帳戶登陸-->
    <!--
    <firewall>
       <whitehost>
          <host host="1*7.0.0.*" user="root"/>
       </whitehost>
       <blacklist check="false">
       </blacklist>
    </firewall>
    -->

    <user name="root" defaultAccount="true">
        <property name="password">123456</property>
        <property name="schemas">TESTDB</property>
        
        <!-- 表級 DML 權限設置 -->
        <!--         
        <privileges check="false">
            <schema name="TESTDB" dml="0110" >
                <table name="tb01" dml="0000"></table>
                <table name="tb02" dml="1111"></table>
            </schema>
        </privileges>        
         -->
    </user>

    <user name="user">
        <property name="password">user</property>
        <property name="schemas">TESTDB</property>
        <property name="readOnly">true</property>
    </user>

</mycat:server>
server.xml

小結:

  • 一個schema標籤中,能夠支持存在多個邏輯庫;

3-10 table標籤

一、schema中table標籤;

  • mycat中邏輯表的表名惟一且與後端數據庫的表名相一致!
  • 邏輯表的主鍵通常與後端真實的主鍵相一致;
  • 邏輯庫與邏輯表相似於數據庫中的‘視圖’概念,不存貯真實的數據;

3-11 dataNode標籤

一、schema.xml下dataNode標籤;

3-12 dataHost標籤

一、schema.xml下dataHost標籤;

3-13 dataHost標籤屬性

一、schema.xml中dataHost定義後端數據庫主機信息;

  • balance

3-14 heartbeat標籤

一、schema.xml中hearbeat;

  • 經過簡單的查詢語句,判斷數據庫服務是否可用;
  • 數據庫可鏈接,但不必定可用,select user()可用來判斷是否可用;

3-15 writehost標籤

一、schema.xml中writehost;

3-16 schema總結

一、小結;sql

<?xml version="1.0"?>
<!DOCTYPE mycat:schema SYSTEM "schema.dtd">
<mycat:schema xmlns:mycat="http://io.mycat/">

<!--001xxx項目_所需數據表配置_xxxx環境-->        
        <schema name="ec_pre_schemas" checkSQLschema="false" >
                <table name="bd_auditing" primaryKey="PK_AUDITING_ID" type="global" dataNode="pre_node" />
                <table name="bd_auditing_detail" primaryKey="PK_AUDITING_DETAIL_ID" type="global" dataNode="pre_node" />
                <table name="bd_auditor" primaryKey="PK_AUDITOR_ID" type="global" dataNode="pre_node" />
                <table name="bd_authority" primaryKey="PK_AUTH_ID" type="global" dataNode="pre_node" />
                <table name="bd_balance_detail" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_balance_detail_budget" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_balance_rule" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_balance_rule_budget" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_balance_user" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_balance_user_budget" primaryKey="ID" type="global" dataNode="pre_node" />
                <!--2017-09-26 新增bd_base_report表 -->
                <table name="bd_base_report" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <!--2017-11-17 新增bd_butler_product-->
                <table name="bd_butler_product" primaryKey="PK_ID" type="global" dataNode="pre_node" />    
                <table name="bd_case" primaryKey="PK_ID" type="PK_CASE_ID" dataNode="pre_node" />
                <table name="bd_case_allot" primaryKey="PK_ALLOT_ID"  dataNode="pre_node" />
                <table name="bd_case_balance" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_case_balance_budget" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_case_file" primaryKey="PK_ACASE_FILE_ID" type="global" dataNode="pre_node" />
                <table name="bd_case_flow" primaryKey="id" type="global" dataNode="pre_node" />
                <table name="bd_case_official_code_config" primaryKey="pk_id" type="global" dataNode="pre_node" />
                <!--2017-12-21 新增bd_case_official表-->
                <table name="bd_case_official" primaryKey="PK_CASE_OFFICIAL_ID" type="global" dataNode="pre_node" />    
                <table name="bd_case_operation" primaryKey="PK_CASE_ORERA_ID" type="global" dataNode="pre_node" />
                <!--2017-10-31 新增bd_case_property_configuration表-->
                <table name="bd_case_property_configuration" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="bd_channel" primaryKey="V_ID" type="global" dataNode="pre_node" />
                <table name="bd_contact" primaryKey="PK_CONTACT_ID" type="global" dataNode="pre_node" />
                <table name="bd_contract" primaryKey="PK_CONTRACT_ID" type="global" dataNode="pre_node" />
                <table name="bd_contract_file" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_contract_operation" primaryKey="PK_CONTRACT_ORERA_ID" type="global" dataNode="pre_node" />  
                <table name="bd_contract_product" primaryKey="PK_CONTRACT_PRODUCT_ID" type="global" dataNode="pre_node" />
                <table name="bd_contract_product_payment" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_contract_ratio" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="bd_cooperation_drools" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_cooperation_drools_config" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_corp_info" primaryKey="PK_CORP_ID" type="global" dataNode="pre_node" />
                <table name="bd_corp_system_info" primaryKey="PK_SYSTEM_ID" type="global" dataNode="pre_node" />
                <table name="bd_custom_workbench" primaryKey="PK_CUSTOM_WORKBENCH_ID" type="global" dataNode="pre_node" />
                <table name="bd_customer" primaryKey="PK_CUSTOMER_ID" type="global" dataNode="pre_node" />
                <table name="bd_customer_address" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_customer_body" primaryKey="PK_CUSTOMER_BODY_ID" type="global" dataNode="pre_node" />
                <table name="bd_customer_body_file" primaryKey="PK_CUSTOMER_BODY_FILE_ID" type="global" dataNode="pre_node" />
                <table name="bd_customer_file" primaryKey="PK_FILE_ID" type="global" dataNode="pre_node" />
                <table name="bd_customer_operation" primaryKey="PK_ORERA_ID" type="global" dataNode="pre_node" />
                <table name="bd_dealing_people" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_department_info" primaryKey="PK_DEPARTMENT_ID" type="global" dataNode="pre_node" />
                <!--2017-11-24 新增bd_diarly_type表 -->
                <table name="bd_diarly_type" primaryKey="PK_DIARLY_TYPE_ID" type="PK_FLOW_ID" dataNode="pre_node" />                
                <table name="bd_districtvalues" primaryKey="PK_DISTRICT_ID" type="global" dataNode="pre_node" />
                <!--2017-10-18 新增bd_fee、bd_fee_business表 -->
                <table name="bd_fee" primaryKey="PK_FEE_ID" type="PK_FLOW_ID" dataNode="pre_node" />
                <table name="bd_fee_business" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="bd_flow" primaryKey="ID" type="PK_FLOW_ID" dataNode="pre_node" />
                <table name="bd_group_user" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="bd_industry" primaryKey="PK_INDUSTRT_ID" type="global" dataNode="pre_node" />
                <table name="bd_invoice" primaryKey="PK_INVOICE_ID" type="global" dataNode="pre_node" />
                <table name="bd_invoice_body" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_invoice_title" primaryKey="PD_INVOICE_TITLE_ID" type="global" dataNode="pre_node" />  
                <table name="bd_invoice_title_body" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_invoicetitle" primaryKey="PK_INVOICETITLE_ID" type="global" dataNode="pre_node" />
                <table name="bd_issued_audit" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="bd_issued_file" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="bd_joint_applicant" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_knowledge" primaryKey="PK_KNOWLEDGE_ID" type="global" dataNode="pre_node" />
                <table name="bd_knowledge_category" primaryKey="Id" type="global" dataNode="pre_node" />
                <table name="bd_knowledge_file" primaryKey="PK_FILE_ID" type="global" dataNode="pre_node" />
                <table name="bd_knowledge_link" primaryKey="Id" type="global" dataNode="pre_node" />
                <table name="bd_knowledge_manage" primaryKey="Id" type="global" dataNode="pre_node" />
                <table name="bd_knowledge_type" primaryKey="PK_KNOWLEDGE_TYPE_ID" type="global" dataNode="pre_node" />
                <table name="bd_label" primaryKey="PK_LABEL_ID" type="global" dataNode="pre_node" />
                <table name="bd_label_customer" primaryKey="PK_LABEL_CUSTOMER_ID" type="global" dataNode="pre_node" />
                <table name="bd_label_type" primaryKey="PK_LABEL_TYPE_ID" type="global" dataNode="pre_node" />
                <table name="bd_log_info" primaryKey="ID" type="global" dataNode="pre_node" />
                <!--2017-11-07 新增bd_match表 -->
                <table name="bd_match" primaryKey="PK_MATCH_ID" type="PK_FLOW_ID" dataNode="pre_node" />                
                <table name="bd_message" primaryKey="PK_MESSAGE_ID" type="global" dataNode="pre_node" />
                <table name="bd_message_text" primaryKey="PK_TEXT_ID" type="global" dataNode="pre_node" />
                <table name="bd_message_text_file" primaryKey="PK_MESSAGE_TEXT_FILE_ID" type="global" dataNode="pre_node" />
                <table name="bd_niceclassification" primaryKey="PK_NiceClassification_ID" type="global" dataNode="pre_node" />
                <table name="bd_niceclassification_copy" primaryKey="PK_NiceClassification_ID" type="global" dataNode="pre_node" />
                <table name="bd_offical_result_remind" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="bd_order_auditor" primaryKey="PK_AUDITOR_ID" type="global" dataNode="pre_node" />
                <table name="bd_order_balance" primaryKey="ID" type="global" dataNode="pre_node" />  
                <table name="bd_order_balance_budget" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_order_body" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_order_info" primaryKey="PK_ORDER_ID" type="global" dataNode="pre_node" />
                <table name="bd_order_operation" primaryKey="PK_ORDER_ORERA_ID" type="global" dataNode="pre_node" />
                <table name="bd_order_price_value" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_order_property_value" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_partner_drools" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_pay" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_pay_contract" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_payment" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_payment_contract" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_potential" primaryKey="V_CUSTOMER_ID" type="global" dataNode="pre_node" />
                <table name="bd_price" primaryKey="PK_PRICE_ID" type="global" dataNode="pre_node" />
                <table name="bd_price_value" primaryKey="ID" type="global" dataNode="pre_node" />
                <!--2017-12-21 新增bd_process_remind_config表 -->
                <table name="bd_process_remind_config" primaryKey="PK_PROCESS_REMIND_CONFIG_ID" type="global" dataNode="pre_node" />
                <table name="bd_product" primaryKey="PK_PRODUCT_ID" type="global" dataNode="pre_node" />
                <table name="bd_product_property" primaryKey="PK_PROPERTY_ID" type="global" dataNode="pre_node" />
                <table name="bd_product_property_value" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_product_type" primaryKey="PK_PRODUCT_TYPE_ID" type="global" dataNode="pre_node" />
                <table name="bd_progressive_sales" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_progressive_sales_config" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_project" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="bd_receiptaddress" primaryKey="PK_RECEIPTADDRESS_ID" type="global" dataNode="pre_node" />
                <!--2017-09-26 新增bd_reminder表-->
                <table name="bd_reminder" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <!--2017-12-21 新增bd_remind_label_config表-->
                <table name="bd_remind_label_config" primaryKey="PK_REMIND_LABEL_CONFIG_ID" type="global" dataNode="pre_node" />
                <table name="bd_replenishment" primaryKey="PK_REPLENISHMENT_ID" type="global" dataNode="pre_node" />  
                <table name="bd_replenishment_detail" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_replenishment_operation" primaryKey="PK_REPLENISHMENT_ORERA_ID" type="global" dataNode="pre_node" />
                <table name="bd_returnvisit" primaryKey="PK_RETURNVISIT_ID" type="global" dataNode="pre_node" />
                <table name="bd_returnvisit_file" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_returnvisit_order" primaryKey="PK_OD" type="global" dataNode="pre_node" />
                <table name="bd_role" primaryKey="role_id" type="global" dataNode="pre_node" />
                <table name="bd_role_authority" primaryKey="pk_role_auth_id" type="global" dataNode="pre_node" />
                <table name="bd_share" primaryKey="PK_SHARE_ID" type="global" dataNode="pre_node" />
                <table name="bd_system_info" primaryKey="PK_SYSTEM_ID" type="global" dataNode="pre_node" />
                <table name="bd_system_info_copy" primaryKey="PK_SYSTEM_ID" type="global" dataNode="pre_node" />
                <table name="bd_user" primaryKey="userId" type="global" dataNode="pre_node" />
                <table name="bd_user_authdata" primaryKey="PK_USER_AUTHDATA_ID" type="global" dataNode="pre_node" />
                <table name="bd_user_info" primaryKey="PK_USER_ID" dataNode="pre_node" />
                <table name="bd_user_progressive_sale_to_june" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_user_role" primaryKey="pk_user_role_id" type="global" dataNode="pre_node" />
                <table name="bd_visit" primaryKey="PK_VISIT_ID" type="global" dataNode="pre_node" />
                <!--2017-11-06 新增bd_work_diary表 -->
                <table name="bd_work_diary" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <!--2017-11-07新增bd_work_diary_detail表 -->
                <table name="bd_work_diary_detail" primaryKey="PK_ID" type="global" dataNode="pre_node" />                
                <table name="bd_work_order" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="bd_work_order_file" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="bd_work_order_flow" primaryKey="PK_SHARE_ID" type="global" dataNode="pre_node" />
                <table name="bd_work_order_group" primaryKey="PK_USER_ID" type="global" dataNode="pre_node" />
                <table name="bd_work_order_operation" primaryKey="PK_ORDER_ORERA_ID" type="global" dataNode="pre_node" />
                <table name="bd_work_order_resource" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="bd_work_order_result" primaryKey="PK_ID" type="global" dataNode="pre_node" />      
                <table name="ini_dic" primaryKey="PK_DIC_ID" type="global" dataNode="pre_node" />
                <table name="ini_dic_detail" primaryKey="PK_DIC_DETAIL_ID" type="global" dataNode="pre_node" />
                <table name="rel_case_order" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="rel_channel_api" primaryKey="V_PK_ID" type="global" dataNode="pre_node" />
                <table name="rel_channel_product" primaryKey="V_PK_ID" type="global" dataNode="pre_node" />
                <table name="rel_contract_order" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="rel_corp_progressive_sales" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="rel_corp_user" primaryKey="pk_id" type="global" dataNode="pre_node" />
                <table name="rel_group_customer" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="rel_invoice_order" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="rel_knowledge_point" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <!--2017-12-21新增bd_official_doc表 -->
                <table name="bd_official_doc" primaryKey="PK_OFFICIAL_DOC_ID" type="global" dataNode="pre_node" />
                <!--2017-12-21新增rel_official_process_config表 -->
                <table name="rel_official_process_config" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="rel_order_property_price" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="rel_order_property_price_copy" primaryKey="PK_LABEL_ID" type="global" dataNode="pre_node" />
                <table name="rel_order_relation" primaryKey="PK_RELATION_ID" type="global" dataNode="pre_node" />
                <table name="rel_price_product" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="rel_price_property" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="rel_product_property" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="rel_product_userstar_royalty" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="rel_projectorder" primaryKey="ID" type="global" dataNode="pre_node" />
                <!--2017-11-15新增rel_relate_review表 -->
                <table name="rel_relate_review" primaryKey="pk_relate_review_id" type="global" dataNode="pre_node" />            
                <!--2017-12-06新增rel_user_duty表 -->
                <table name="rel_user_duty" primaryKey="PK_DUTY_ID" type="global" dataNode="pre_node" />                    
                <table name="rel_work_order_group" primaryKey="PK_USER_ID" type="global" dataNode="pre_node" />
                <table name="rel_workorder" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="st_sale_census" primaryKey="pk_id" type="global" dataNode="pre_node" />
                <table name="sys_message" primaryKey="PK_SYS_MESSAGE_ID" type="global" dataNode="pre_node" />      
                <table name="sys_property" primaryKey="PK_PROPERTY_ID" type="global" dataNode="pre_node" />
                <table name="sys_property_area" primaryKey="PK_PROPERTY_AREA_ID" type="global" dataNode="pre_node" />
                <table name="sys_property_value" primaryKey="PK_PROPERTY_VALUE_ID" type="global" dataNode="pre_node" />
                <table name="vi_balance_case" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="vi_balance_case_thismonth" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="vi_balance_order" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="vi_balance_order_thismonth" primaryKey="ID" type="global" dataNode="pre_node" />    
                <table name="bd_account_bm" primaryKey="pk_account_id" type="global" dataNode="pre_node" />
                <table name="bd_customer_bm" primaryKey="PK_CUSTOMER_ID" type="global" dataNode="pre_node" />
                <table name="bd_customer_body_bm" primaryKey="PK_CUSTOMER_BODY_ID" type="global" dataNode="pre_node" />
                <table name="bd_customer_body_file_bm" primaryKey="PK_CUSTOMER_BODY_FILE_ID" type="global" dataNode="pre_node" />
                <table name="bd_order_info_bg" primaryKey="PK_ORDER_ID" type="global" dataNode="pre_node" />
                <table name="bd_order_body_bg" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_order_property_value_bg" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_password_bm" primaryKey="pk_password_id" type="global" dataNode="pre_node" />
                <table name="bd_user_info_bg" primaryKey="PK_USER_ID" type="global" dataNode="pre_node" /> 
                <!--2018/01/22 -->     
                <table name="bd_customer_h" primaryKey="PK_CUSTOMER_ID" type="global" dataNode="pre_node" />
                <table name="bd_customer_rating" primaryKey="PK_CUSTOMER_RATING_ID" type="global" dataNode="pre_node" />
                <table name="bd_customer_d" primaryKey="PK_ADVANCED_PROPERTIES" type="global" dataNode="pre_node" />
                <table name="bd_customer_attachment_summary" primaryKey="PK_ATTACHMENT_ID" type="global" dataNode="pre_node" />
                <table name="bd_customer_communication_file" primaryKey="PK_COMMUNICATION_FILE_ID" type="global" dataNode="pre_node" />
                <table name="bd_customer_communication" primaryKey="PK_CUSTOMER_COMMUNICATION" type="global" dataNode="pre_node" />
                <table name="bd_customer_property_value" primaryKey="PK_PROPERTY_VALUE_ID" type="global" dataNode="pre_node" />
                <table name="BD_CUSTOMER_STATISTICS" primaryKey="PK_CUSTOMER_STATISTICS_ID" type="global" dataNode="pre_node" />
                <table name="bd_remind" primaryKey="PK_REMIND_ID" type="global" dataNode="pre_node" />
                <table name="bd_remind_modal" primaryKey="PK_REMIND_MODAL_ID" type="global" dataNode="pre_node" />
                <!--2018/01/29 --> 
                <table name="bd_customer_valuation" primaryKey="PK_CUSTOMER_VALUATION_ID" type="global" dataNode="pre_node" />
                <!--2018/03/07 --> 
                <table name="bd_case_process_info" primaryKey="PK_CASE_PROCESS_INFO_ID" type="global" dataNode="pre_node" />
                <table name="bd_relevant_people" primaryKey="PK_RELEVANT_PEOPLE_ID" type="global" dataNode="pre_node" />
                <!--2018/03/14 --> 
                <table name="bd_idn" primaryKey="PK_IDN_ID" type="global" dataNode="pre_node" />
                <!--2018/03/16 --> 
                <table name="bd_districtvalues_cpc" primaryKey="PK_DISTRICT_ID" type="global" dataNode="pre_node" />
                <!--2018/03/23 --> 
                <table name="bd_customer_dn" primaryKey="PK_NEW_ATTRIBUTES_ID" type="global" dataNode="pre_node" />
                <table name="bd_process_bio" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <!--2018/04/04--> 
                <table name="bd_document_list" primaryKey="PK_DOCUMENT_ID" type="global" dataNode="pre_node" />
                <table name="bd_document_property" primaryKey="PK_PROPERTY_ID" type="global" dataNode="pre_node" />
                <table name="bd_document_property_value" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="rel_document_property" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_case_doc_property_value" primaryKey="ID" type="global" dataNode="pre_node" />
                <!--2018/04/18 --> 
                <table name="bd_question_naire" primaryKey="PK_QUESTION_NAIRE_ID" type="global" dataNode="pre_node" />
                <!--2018/04/28 -->
                <table name="bd_archive_file" primaryKey="PK_ARCHIVE_FILE_ID" type="global" dataNode="pre_node" />
                <table name="bd_case_official_status_config" primaryKey="PK_CASE_OFFICIAL_STATUS_CONFIG_ID" type="global" dataNode="pre_node" />
                <table name="bd_staff_contact" primaryKey="PK_STAFF_CONTACT_ID" type="global" dataNode="pre_node" />
                <table name="bd_staff_notice" primaryKey="PK_STAFF_NOTICE_ID" type="global" dataNode="pre_node" />
                <table name="bd_staff_operation" primaryKey="PK_ORERA_ID" type="global" dataNode="pre_node" />
                <table name="bd_staff_records" primaryKey="PK_STAFF_ID" type="global" dataNode="pre_node" />
                <table name="bd_training_record" primaryKey="PK_TRAINING_RECORD_ID" type="global" dataNode="pre_node" />
                <table name="rel_staff_training_record" primaryKey="PK_STAFF_TRAINING_RECORD_ID" type="global" dataNode="pre_node" />
                <table name="bd_approval_process" primaryKey="PK_APPROVAL_PROCESS_ID" type="global" dataNode="pre_node" />        
        </schema>
<!--002xxx項目_所需數據表配置_xxxx環境-->  
        <schema name="bingo_pre_schemas" checkSQLschema="false"  >
                <table name="applicants" primaryKey="id" type="global" dataNode="pre_node" />
                <table name="bd_account_bm" primaryKey="pk_account_id" type="global" dataNode="pre_node" />
                <table name="bd_account_copy" primaryKey="pk_account_id" type="global" dataNode="pre_node" />
                <table name="bd_account_login_bm" primaryKey="PK_ACCOUNT_LOGIN" type="global" dataNode="pre_node" />
                <table name="bd_activity_bg" primaryKey="PK_ACTIVITY_ID" type="global" dataNode="pre_node" />
                <table name="bd_appraise_bg" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="bd_auditing_bg" primaryKey="PK_AUDITING_ID" type="global" dataNode="pre_node" />
                <table name="bd_auditing_detail_bg" primaryKey="PK_AUDITING_DETAIL_ID" type="global" dataNode="pre_node" />
                <table name="bd_auditor_bg" primaryKey="PK_AUDITOR_ID" type="global" dataNode="pre_node" />
                <table name="bd_authority_bg" primaryKey="PK_AUTH_ID" type="global" dataNode="pre_node" />
                <table name="bd_carousel_figure_bg" primaryKey="PK_CAROUSEL_FIGURE_ID" type="global" dataNode="pre_node" />
                <table name="bd_contact_bg" primaryKey="PK_CONTACT_ID" type="global" dataNode="pre_node" />
                <table name="bd_corp_info_bg" primaryKey="PK_CORP_ID" type="global" dataNode="pre_node" />
                <table name="bd_coupon_bg" primaryKey="PK_COUPON_ID" type="global" dataNode="pre_node" />
                <table name="bd_coupon_template_bg" primaryKey="PK_COUPON_TEMPLATE_ID" type="global" dataNode="pre_node" />
                <table name="bd_coupon_template_value_bg" primaryKey="PK_COUPON_TEMPLATE_VALUE_ID" type="global" dataNode="pre_node" />
                <table name="bd_customer_bm" primaryKey="PK_CUSTOMER_ID" type="global" dataNode="pre_node" />
                <table name="bd_customer_body_bm" primaryKey="PK_CUSTOMER_BODY_ID" type="global" dataNode="pre_node" />
                <table name="bd_customer_body_file_bm" primaryKey="PK_CUSTOMER_BODY_FILE_ID" type="global" dataNode="pre_node" />
                <table name="bd_customer_operation_bm" primaryKey="PK_ORERA_ID" type="global" dataNode="pre_node" />
                <table name="bd_dealing_people_bg" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_department_info_bg" primaryKey="PK_DEPARTMENT_ID" type="global" dataNode="pre_node" />
                <table name="bd_districtvalues_bg" primaryKey="PK_DISTRICT_ID" type="global" dataNode="pre_node" />
                <table name="bd_exclusive_bm" primaryKey="PK_EXCLUSIVE_ID" type="global" dataNode="pre_node" />
                <table name="bd_exclusive_member_bm" primaryKey="PK_MEMBER_ID" type="global" dataNode="pre_node" />
                <table name="bd_field_bg" primaryKey="PK_FIELD_ID" type="global" dataNode="pre_node" />
                <table name="bd_field_value_bg" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_industry_bg" primaryKey="PK_INDUSTRT_ID" type="global" dataNode="pre_node" />
                <table name="bd_info_bg" primaryKey="PK_INFO_ID" type="global" dataNode="pre_node" />
                <table name="bd_info_operation_bg" primaryKey="PK_ORERA_ID" type="global" dataNode="pre_node" />
                <table name="bd_invoice_bg" primaryKey="PK_INVOICE_ID" type="global" dataNode="pre_node" />
                <table name="bd_invoice_body_bg" primaryKey="PK_INVOICE_BODY_ID" type="global" dataNode="pre_node" />
                <table name="bd_invoice_body2" primaryKey="PK_INVOICE_BODY_ID" type="global" dataNode="pre_node" />
                <table name="bd_invoice_body3" primaryKey="PK_INVOICE_BODY_ID" type="global" dataNode="pre_node" />
                <table name="bd_invoice2" primaryKey="PK_INVOICE_ID" type="global" dataNode="pre_node" />
                <table name="bd_invoice3" primaryKey="PK_INVOICE_ID" type="global" dataNode="pre_node" />
                <table name="bd_ipc_class_bg" primaryKey="PK_IPC_CLASS_ID" type="global" dataNode="pre_node" />
                <table name="bd_ipdata_bg" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="bd_log_info_bm" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_log_module_bm" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_message_module_bm" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_niceclassification_bg" primaryKey="PK_NiceClassification_ID" type="global" dataNode="pre_node" />
                <table name="bd_order_body_bg" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_order_info_bg" primaryKey="PK_ORDER_ID" type="global" dataNode="pre_node" />
                <table name="bd_order_info_copy" primaryKey="PK_ORDER_ID" type="global" dataNode="pre_node" />
                <table name="bd_order_operation_bg" primaryKey="PK_ORDER_ORERA_ID" type="global" dataNode="pre_node" />
                <table name="bd_order_property_value_bg" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_order_property_value_copy" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_password_bm" primaryKey="pk_password_id" type="global" dataNode="pre_node" />
                <table name="bd_password_copy" primaryKey="pk_password_id" type="global" dataNode="pre_node" />
                <table name="bd_process_bm" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_process_item_bm" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_process_item_value_bm" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_process_subitem_bm" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_product_bg" primaryKey="PK_PRODUCT_ID" type="global" dataNode="pre_node" />
                <table name="bd_product_operation_bg" primaryKey="PK_PRODUCT_ORERA_ID" type="global" dataNode="pre_node" />
                <table name="bd_product_property_bg" primaryKey="PK_PROPERTY_ID" type="global" dataNode="pre_node" />
                <table name="bd_product_property_value_bg" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_product_property_value1" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_product_property1" primaryKey="PK_PROPERTY_ID" type="global" dataNode="pre_node" />
                <table name="bd_product_range_bg" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_product_type_bg" primaryKey="PK_PRODUCT_TYPE_ID" type="global" dataNode="pre_node" />
                <table name="bd_product1" primaryKey="PK_PRODUCT_ID" type="global" dataNode="pre_node" />
                <table name="bd_resource_bg" primaryKey="PK_RESOURCE_ID" type="global" dataNode="pre_node" />
                <table name="bd_role_authority_bg" primaryKey="pk_role_auth_id" type="global" dataNode="pre_node" />
                <table name="bd_role_bg" primaryKey="role_id" type="global" dataNode="pre_node" />
                <table name="bd_senior_log_bm" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="bd_shelf_product_type_bg" primaryKey="PK_PRODUCT_TYPE_ID" type="global" dataNode="pre_node" />
                <table name="bd_shopping_cart_bg" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_template_bg" primaryKey="PK_TEMPLATE_ID" type="global" dataNode="pre_node" />
                <table name="bd_template_operation_bg" primaryKey="PK_TEMPLATE_ORERA_ID" type="global" dataNode="pre_node" />
                <table name="bd_user_authdata_bg" primaryKey="PK_USER_AUTHDATA_ID" type="global" dataNode="pre_node" />
                <table name="bd_user_bg" primaryKey="PK_USER_ID" type="global" dataNode="pre_node" />
                <table name="bd_user_info_bg" primaryKey="PK_USER_ID" type="global" dataNode="pre_node" />
                <table name="bd_user_info1" primaryKey="PK_USER_ID" type="global" dataNode="pre_node" />
                <table name="bd_user_role_bg" primaryKey="pk_user_role_id" type="global" dataNode="pre_node" />
                <table name="bd_work_order_body_bg" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_work_order_info_bg" primaryKey="PK_WORK_ORDER_ID" type="global" dataNode="pre_node" />
                <table name="bd_workorder_operation_bg" primaryKey="PK_WORKORDER_ORERA_ID" type="global" dataNode="pre_node" />
                <table name="ini_dic_bg" primaryKey="PK_DIC_ID" type="global" dataNode="pre_node" />
                <table name="ini_dic_detail_bg" primaryKey="PK_DIC_DETAIL_ID" type="global" dataNode="pre_node" />
                <table name="rel_activity_product_bg" primaryKey="PK_ACTIVITY_PRODUCT_ID" type="global" dataNode="pre_node" />
                <table name="rel_activity_template_bg" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="rel_invoice_order_bg" primaryKey="PK_REL_INVOICE_ORDER_ID" type="global" dataNode="pre_node" />
                <table name="rel_order_relation_bg" primaryKey="PK_RELATION_ID" type="global" dataNode="pre_node" />
                <table name="rel_process_messagemodule_bm" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="rel_product_process_bm" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="rel_product_product_bg" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="rel_product_property_bg" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="rel_product_property_copy1" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="rel_product_property1" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="rel_product_property2" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="rel_productrange_product_bg" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="rel_template_field_bg" primaryKey="PK_TEMPLATE_FIELD_ID" type="global" dataNode="pre_node" />
                <table name="rel_zcuser_info_bg" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="st_consult_data_bg" primaryKey="pk_id" type="global" dataNode="pre_node" />
                <table name="st_coupon_data_bg" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="st_cs_operations_bg" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="st_daily_operations_bg" primaryKey="PK_OPERATIONS_ID" type="global" dataNode="pre_node" />
                <table name="st_detail_data_bg" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="st_iceclick_data_bm" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="st_law_product_data_bg" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="st_lottery_draw_data_bg" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="st_microblog_data_bg" primaryKey="pk_id" type="global" dataNode="pre_node" />
                <table name="st_order_data_bg" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="st_pay_data_bg" primaryKey="pk_id" type="global" dataNode="pre_node" />
                <table name="st_phone_data_bg" primaryKey="pk_id" type="global" dataNode="pre_node" />
                <table name="st_product_operations_bg" primaryKey="PK_PRODUCT_OPERATIONS_ID" type="global" dataNode="pre_node" />
                <table name="st_receive_data_bg" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="st_sign_data_bg" primaryKey="pk_id" type="global" dataNode="pre_node" />
                <table name="st_special_data_bg" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="st_user_data_bg" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="st_wechat_data_bg" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="st_window_data_bg" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="user" primaryKey="ID" type="global" dataNode="pre_node" />
                <!--2018/01/22 14:41 -->  
                <table name="bd_customer_rating" primaryKey="PK_CUSTOMER_RATING_ID" type="global" dataNode="pre_node" />
                <table name="bd_customer_property_value" primaryKey="PK_PROPERTY_VALUE_ID" type="global" dataNode="pre_node" />
                <table name="BD_customer_statistics" primaryKey="PK_CUSTOMER_STATISTICS_ID" type="global" dataNode="pre_node" />
                <table name="bd_industry" primaryKey="PK_INDUSTRT_ID" type="global" dataNode="pre_node" />
                <table name="ini_dic_detail" primaryKey="PK_DIC_DETAIL_ID" type="global" dataNode="pre_node" />
                <table name="bd_relate_info_bg" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="bd_user_info" primaryKey="PK_USER_ID" type="global" dataNode="pre_node" />
                <table name="sys_property_value" primaryKey="PK_PROPERTY_VALUE_ID" type="global" dataNode="pre_node" />
                <table name="sys_property" primaryKey="PK_PROPERTY_ID" type="global" dataNode="pre_node" />
                <table name="bd_customer_file" primaryKey="PK_FILE_ID" type="global" dataNode="pre_node" />
                <table name="bd_contact" primaryKey="PK_CONTACT_ID" type="global" dataNode="pre_node" />
                <table name="bd_contract" primaryKey="PK_CONTRACT_ID" type="global" dataNode="pre_node" />
                <table name="bd_customer_body" primaryKey="PK_CUSTOMER_BODY_ID" type="global" dataNode="pre_node" />
                <table name="sys_property_area" primaryKey="PK_PROPERTY_AREA_ID" type="global" dataNode="pre_node" />
                <table name="bd_customer_communication" primaryKey="PK_CUSTOMER_COMMUNICATION_ID" type="global" dataNode="pre_node" />
                <table name="bd_visit" primaryKey="PK_VISIT_ID" type="global" dataNode="pre_node" />
                <table name="bd_label" primaryKey="PK_LABEL_ID" type="global" dataNode="pre_node" />            
                <table name="bd_label_type" primaryKey="PK_LABEL_TYPE_ID" type="global" dataNode="pre_node" />
                <table name="bd_customer_d" primaryKey="PK_ADVANCED_PROPERTIES_ID" type="global" dataNode="pre_node" />
                <table name="bd_customer_h" primaryKey="PK_CUSTOMER_ID" type="global" dataNode="pre_node" />
                <!--2018/01/25 16:50 -->
                <table name="bd_returnvisit" primaryKey="PK_RETURNVISIT_ID" type="global" dataNode="pre_node" />
                <table name="bd_corp_info" primaryKey="PK_CORP_ID" type="global" dataNode="pre_node" />
                <!--2018-01-29 -->
                <table name="bd_case" primaryKey="PK_CASE_ID" type="global" dataNode="pre_node" />    
                <table name="bd_order_info" primaryKey="PK_ORDER_ID" type="global" dataNode="pre_node" />     
                <table name="bd_label_customer" primaryKey="PK_LABEL_CUSTOMER_ID" type="global" dataNode="pre_node" />    
                <table name="bd_case_property_configuration" primaryKey="PK_ID" type="global" dataNode="pre_node" />    
                <table name="bd_case_official" primaryKey="PK_CASE_OFFICIAL_ID" type="global" dataNode="pre_node" />
                <table name="bd_case_file" primaryKey="PK_ACASE_FILE_ID" type="global" dataNode="pre_node" />
                <!--2018-03-20 -->
                <table name="rel_qquser_info_bg" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <!--2018-04-20 -->
                <table name="bd_product_serveitem_bg" primaryKey="PK_PRODUCT_SERVEITEM_ID" type="global" dataNode="pre_node" />
                <table name="rel_product_serveitem_bg" primaryKey="PK_ID" type="global" dataNode="pre_node" />                
                
        </schema>    
<!--003xxx項目_所需數據表配置_xxxx環境-->  
        <schema name="butler_pre_schemas" checkSQLschema="false" >
                <!--2017-11-16 新增bd_butler_product-->
                <table name="bd_butler_product" primaryKey="PK_ID" type="global" dataNode="pre_node" />                    
                <table name="bd_case" primaryKey="PK_CASE_ID" type="global" dataNode="pre_node" />
                <table name="bd_case_flow" primaryKey="id" type="global" dataNode="pre_node" />
                <table name="bd_contact" primaryKey="PK_CONTACT_ID" type="global" dataNode="pre_node" />
                <table name="bd_contract" primaryKey="PK_CONTRACT_ID" type="global" dataNode="pre_node" />
                <table name="bd_contract_file" primaryKey="ID" type="global" dataNode="pre_node" />
                <!--2017-10-25 新增bd_contract_product -->
                <table name="bd_contract_product" primaryKey="PK_CONTRACT_PRODUCT_ID" type="global" dataNode="pre_node" />        
                <!--2017-10-19 新增bd_corp_info -->
                <table name="bd_corp_info" primaryKey="PK_CORP_ID" type="global" dataNode="pre_node" />                
                <table name="bd_customer" primaryKey="PK_CUSTOMER_ID" type="global" dataNode="pre_node" />
                <table name="bd_customer_body" primaryKey="PK_CUSTOMER_BODY_ID" type="global" dataNode="pre_node" />
                <table name="bd_customer_file" primaryKey="PK_FILE_ID" type="global" dataNode="pre_node" />
                <!--2017-10-19 新增bd_department_info,bd_corp_info 同事-->
                <table name="bd_department_info" primaryKey="PK_DEPARTMENT_ID" type="global" dataNode="pre_node" />                
                <table name="bd_districtvalues" primaryKey="PK_DISTRICT_ID" type="global" dataNode="pre_node" />
                <table name="bd_flow" primaryKey="PK_FLOW_ID" type="global" dataNode="pre_node" />
                <table name="bd_industry" primaryKey="PK_INDUSTRT_ID" type="global" dataNode="pre_node" />
                <table name="bd_issued_audit" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="bd_issued_file" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="bd_label" primaryKey="PK_LABEL_ID" type="global" dataNode="pre_node" />
                <table name="bd_label_customer" primaryKey="PK_LABEL_CUSTOMER_ID" type="global" dataNode="pre_node" />
                <table name="bd_order_info" primaryKey="PK_ORDER_ID" type="global" dataNode="pre_node" /> 
                <table name="bd_product" primaryKey="PK_PRODUCT_ID" type="global" dataNode="pre_node" />
                <table name="bd_product_property" primaryKey="PK_PROPERTY_ID" type="global" dataNode="pre_node" />
                <table name="bd_product_property_value" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_share" primaryKey="PK_SHARE_ID" type="global" dataNode="pre_node" />
                <table name="bd_user_info" primaryKey="PK_USER_ID" type="global" dataNode="pre_node" />
                <table name="sys_property" primaryKey="PK_PROPERTY_ID" type="global" dataNode="pre_node" />
                <!--2017-11-20 新增ini_dic_detail -->
                <table name="ini_dic_detail" primaryKey="PK_DIC_DETAIL_ID" type="global" dataNode="pre_node" />
                <table name="sys_property_area" primaryKey="PK_PROPERTY_AREA_ID" type="global" dataNode="pre_node" />
                <table name="sys_property_value" primaryKey="PK_PROPERTY_VALUE_ID" type="global" dataNode="pre_node" /> 
                <table name="bd_account_bm" primaryKey="pk_account_id" type="global" dataNode="pre_node" />
                <table name="bd_account_login_bm" primaryKey="PK_ACCOUNT_LOGIN" type="global" dataNode="pre_node" />
                <table name="bd_activity_bg" primaryKey="PK_ACTIVITY_ID" type="global" dataNode="pre_node" />
                <table name="bd_appraise_bg" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="bd_authority_bg" primaryKey="PK_AUTH_ID" type="global" dataNode="pre_node" />
                <table name="bd_carousel_figure_bg" primaryKey="PK_CAROUSEL_FIGURE_ID" type="global" dataNode="pre_node" />
                <table name="bd_corp_info_bg" primaryKey="PK_CORP_ID" type="global" dataNode="pre_node" />
                <table name="bd_coupon_bg" primaryKey="PK_COUPON_ID" type="global" dataNode="pre_node" />
                <table name="bd_coupon_template_bg" primaryKey="PK_COUPON_TEMPLATE_ID" type="global" dataNode="pre_node" />
                <table name="bd_coupon_template_value_bg" primaryKey="PK_COUPON_TEMPLATE_VALUE_ID" type="global" dataNode="pre_node" />
                <table name="bd_customer_bm" primaryKey="PK_CUSTOMER_ID" type="global" dataNode="pre_node" />
                <table name="bd_customer_body_bm" primaryKey="PK_CUSTOMER_BODY_ID" type="global" dataNode="pre_node" />
                <table name="bd_customer_body_file_bm" primaryKey="PK_CUSTOMER_BODY_FILE_ID" type="global" dataNode="pre_node" />
                <table name="bd_customer_operation_bm" primaryKey="PK_ORERA_ID" type="global" dataNode="pre_node" />
                <table name="bd_dealing_people_bg" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_department_info_bg" primaryKey="PK_DEPARTMENT_ID" type="global" dataNode="pre_node" />
                <table name="bd_districtvalues_bg" primaryKey="PK_DISTRICT_ID" type="global" dataNode="pre_node" />
                <!--2017-10-10 新增bd_exclusive,bd_exclusive_member -->
                <table name="bd_exclusive_bm" primaryKey="PK_EXCLUSIVE_ID" type="global" dataNode="pre_node" />
                <table name="bd_exclusive_member_bm" primaryKey="PK_MEMBER_ID" type="global" dataNode="pre_node" />
                <table name="bd_field_bg" primaryKey="PK_FIELD_ID" type="global" dataNode="pre_node" />
                <table name="bd_field_value_bg" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_industry_bg" primaryKey="PK_INDUSTRT_ID" type="global" dataNode="pre_node" />
                <table name="bd_info_bg" primaryKey="PK_INFO_ID" type="global" dataNode="pre_node" />
                <table name="bd_info_operation_bg" primaryKey="PK_ORERA_ID" type="global" dataNode="pre_node" />
                <table name="bd_invoice_bg" primaryKey="PK_INVOICE_ID" type="global" dataNode="pre_node" />
                <table name="bd_invoice_body_bg" primaryKey="PK_INVOICE_BODY_ID" type="global" dataNode="pre_node" />
                <table name="bd_ipc_class_bg" primaryKey="PK_IPC_CLASS_ID" type="global" dataNode="pre_node" />
                <table name="bd_ipdata_bg" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="bd_log_info_bm" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_log_module_bm" primaryKey="ID" type="global" dataNode="pre_node" />
                <!--2017-10-10 新增bd_message_module_bm表 -->
                <table name="bd_message_module_bm" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_niceclassification_bg" primaryKey="PK_NiceClassification_ID" type="global" dataNode="pre_node" />
                <table name="bd_order_body_bg" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_order_info_bg" primaryKey="PK_ORDER_ID" type="global" dataNode="pre_node" />
                <table name="bd_order_operation_bg" primaryKey="PK_ORDER_ORERA_ID" type="global" dataNode="pre_node" />
                <table name="bd_order_property_value_bg" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_password_bm" primaryKey="pk_password_id" type="global" dataNode="pre_node" />
                <table name="bd_process_bm" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_process_item_bm" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_process_item_value_bm" primaryKey="ID" type="global" dataNode="pre_node" />
                <!--2017-11-16 新增bd_process_subitem_bm表 -->
                <table name="bd_process_subitem_bm" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_product_bg" primaryKey="PK_PRODUCT_ID" type="global" dataNode="pre_node" />
                <table name="bd_product_operation_bg" primaryKey="PK_PRODUCT_ORERA_ID" type="global" dataNode="pre_node" />
                <table name="bd_product_property_bg" primaryKey="PK_PROPERTY_ID" type="global" dataNode="pre_node" />
                <table name="bd_product_property_value_bg" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_product_range_bg" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_product_type_bg" primaryKey="PK_PRODUCT_TYPE_ID" type="global" dataNode="pre_node" />
                <table name="bd_resource_bg" primaryKey="PK_RESOURCE_ID" type="global" dataNode="pre_node" />
                <table name="bd_role_bg" primaryKey="role_id" type="global" dataNode="pre_node" />
                <table name="bd_role_authority_bg" primaryKey="pk_role_auth_id" type="global" dataNode="pre_node" />
                <table name="bd_senior_log_bm" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="bd_shelf_product_type_bg" primaryKey="PK_PRODUCT_TYPE_ID" type="global" dataNode="pre_node" />
                <table name="bd_shopping_cart_bg" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_template_bg" primaryKey="PK_TEMPLATE_ID" type="global" dataNode="pre_node" />
                <table name="bd_template_operation_bg" primaryKey="PK_TEMPLATE_ORERA_ID" type="global" dataNode="pre_node" />
                <table name="bd_user_info_bg" primaryKey="PK_USER_ID" type="global" dataNode="pre_node" />
                <table name="bd_user_role_bg" primaryKey="pk_user_role_id" type="global" dataNode="pre_node" />
                <table name="bd_work_order_body_bg" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_work_order_info_bg" primaryKey="PK_WORK_ORDER_ID" type="global" dataNode="pre_node" />
                <table name="bd_workorder_operation_bg" primaryKey="PK_WORKORDER_ORERA_ID" type="global" dataNode="pre_node" />
                <table name="ini_dic_bg" primaryKey="PK_DIC_ID" type="global" dataNode="pre_node" />
                <table name="ini_dic_detail_bg" primaryKey="PK_DIC_DETAIL_ID" type="global" dataNode="pre_node" />
                <table name="rel_activity_product_bg" primaryKey="PK_ACTIVITY_PRODUCT_ID" type="global" dataNode="pre_node" />
                <table name="rel_activity_template_bg" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="rel_invoice_order_bg" primaryKey="PK_REL_INVOICE_ORDER_ID" type="global" dataNode="pre_node" />
                <!--2017-10-10 新增rel_process_messagemodule_bm表 -->
                <table name="rel_process_messagemodule_bm" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="rel_product_process_bm" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="rel_product_property_bg" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="rel_productrange_product_bg" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="rel_template_field_bg" primaryKey="PK_TEMPLATE_FIELD_ID" type="global" dataNode="pre_node" />
                <table name="rel_zcuser_info_bg" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="st_consult_data_bg" primaryKey="pk_id" type="global" dataNode="pre_node" />
                <table name="st_coupon_data_bg" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="st_cs_operations_bg" primaryKey="PK_CS_OPERATIONS_ID" type="global" dataNode="pre_node" /> 
                <table name="st_detail_data_bg" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <!--2017-09-26 新增表st_iceClick_data_bm -->
                <table name="st_iceclick_data_bm" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="st_law_product_data_bg" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="st_lottery_draw_data_bg" primaryKey="PK_ID" type="global" dataNode="pre_node" />    
                <table name="st_microblog_data_bg" primaryKey="pk_id" type="global" dataNode="pre_node" />
                <table name="st_order_data_bg" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="st_pay_data_bg" primaryKey="pk_id" type="global" dataNode="pre_node" />
                <table name="st_phone_data_bg" primaryKey="pk_id" type="global" dataNode="pre_node" />
                <table name="st_product_operations_bg" primaryKey="PK_PRODUCT_OPERATIONS_ID" type="global" dataNode="pre_node" />
                <table name="st_receive_data_bg" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="st_sign_data_bg" primaryKey="pk_id" type="global" dataNode="pre_node" />
                <table name="st_special_data_bg" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="st_user_data_bg" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="st_wechat_data_bg" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <table name="st_window_data_bg" primaryKey="PK_ID" type="global" dataNode="pre_node" />
                <!--2018/01/30 -->     
                <table name="bd_customer_h" primaryKey="PK_CUSTOMER_ID" type="global" dataNode="pre_node" />
                <!--2018/2/10 -->     
                <table name="BD_CASE_OFFICIAL" primaryKey="PK_CASE_OFFICIAL_ID" type="global" dataNode="pre_node" />
                <!--2018/2/28 -->     
                <table name="bd_case_file" primaryKey="PK_ACASE_FILE_ID" type="global" dataNode="pre_node" />
                <table name="bd_replenishment_detail" primaryKey="ID" type="global" dataNode="pre_node" />
                <table name="bd_replenishment" primaryKey="PK_REPLENISHMENT_ID" type="global" dataNode="pre_node" />
                <!--2018-03-20 -->
                <table name="rel_qquser_info_bg" primaryKey="PK_ID" type="global" dataNode="pre_node" />                      
        </schema>

<!--004xxx所需數據表配置_xxxx環境-->  
        <schema name="logs_pre_schemas" checkSQLschema="false"    dataNode="pre_node"  >
        
        </schema>
<!--005xxx系統所需數據表配置_xxxx環境-->  
        <schema name="quartz_pre_schemas" checkSQLschema="false"    dataNode="pre_node"  >
        
        </schema>        
<!--007xxx系統所需數據表配置_xxxx環境-->  
        <schema name="partners_pre_schemas" checkSQLschema="false"    dataNode="pre_node"  >
        
        </schema>    

<!--xxxx環境場景的mycat數據節點(datenode)後端對應數據庫實例名配置--> 
        <!-- 001——Mycat數據節點_xxxx環境,數據庫實例名:db_prd--> 
        <dataNode name="pre_node" dataHost="mysql_host1" database="db_mycat" />            
        <dataHost name="mysql_host1" maxCon="10000" minCon="10" balance="3" writeType="0" dbType="mysql" dbDriver="native" switchType="1">
            <heartbeat>select user()</heartbeat>
            <writeHost host="hostM1" url="47.94.220.179:3306" user="root" password="123456">
                <readHost host="hostS1" url="47.94.211.118:3306" user="root" password="123456" />
            </writeHost>
            <writeHost host="hostM2" url="47.94.211.118:3306" user="root" password="123456"/>
        </dataHost>
</mycat:schema>
schema.xml舉例
<?xml version="1.0" encoding="UTF-8"?>
<!-- - - Licensed under the Apache License, Version 2.0 (the "License"); 
             - you may not use this file except in compliance with the License. - You 
        may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 
        - - Unless required by applicable law or agreed to in writing, software - 
        distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT 
        WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the 
        License for the specific language governing permissions and - limitations 
        under the License. -->
<!DOCTYPE mycat:server SYSTEM "server.dtd">
<mycat:server xmlns:mycat="http://io.mycat/">
        <system>
        <property name="defaultSqlParser">druidparser</property>
        <property name="processors">64</property>
        <property name="processorExecutor">256</property>
        <property name="processorBufferPool">268435456</property>
        <property name="processorBufferChunk">32768</property>
        <property name="useGlobleTableCheck">0</property>
        </system>
        
        <!--001xxx項目——Mycat對應jdbc鏈接帳號_生產環境-->
        <user name="ec_pre_user">
                <property name="password">ecpre123456789</property>
                <property name="schemas">ec_pre_schemas</property>
        </user>
        <!--002xxx項目——Mycat對應jdbc鏈接帳號_生產環境-->
        <user name="bingo_pre_user">
                <property name="password">bingopre123456789</property>
                <property name="schemas">bingo_pre_schemas</property>
        </user>
        <!--003xxx項目——Mycat對應jdbc鏈接帳號_生產環境-->
        <user name="butler_pre_user">
                <property name="password">butlerpre123456789</property>
                <property name="schemas">butler_pre_schemas</property>
        </user>
        <!--004xxx項目——Mycat對應jdbc鏈接帳號_生產環境-->
        <user name="logs_pre_user">
                <property name="password">logspre123456789</property>
                <property name="schemas">logs_pre_schemas</property>
        </user>
        <!--005xxx項目——Mycat對應jdbc鏈接帳號_生產環境-->
        <user name="quartz_pre_user">
                <property name="password">quartzpre123456789</property>
                <property name="schemas">quartz_pre_schemas</property>
        </user>
        <!--007xxx系統——Mycat對應jdbc鏈接帳號_生產環境-->
        <user name="partners_pre_user">
                <property name="password">partnerspre123456789</property>
                <property name="schemas">partners_pre_schemas</property>
        </user>    

                    
</mycat:server>
server.xml舉例
相關文章
相關標籤/搜索