要先查询keygen里面的数，以下提到每个*.sh文件里面的id要加上keygen+1000，也就是加上个偏移量比如：

加之前：
SELECT id as id,receiverid as account_id,senderid as sender_id,isread as status,sendtime as create_time  FROM msg_message
加了后：
SELECT (id+keygen+1000) as id,receiverid as account_id,senderid as sender_id,isread as status,sendtime as create_time  FROM msg_message

1.mysql到mysql:
convert_content.sh
convert_message.sh

如果mysql到mysql就选择xdb_mysql.jar那个包，用之前要把它改下名，改成xdb.jar,把原来的xdb.jar改成xdb_oracle.jar

2.orcle到mysql
convert_relation.sh

如果orcle到mysql就选择xdb_oracle.jar那个包，用之前要把它改下名，改成xdb.jar,把原来的xdb.jar改成xdb_mysql.jar

3.执行完1或者2
生成的很多*.sql，就可以执行
for b in *.sql ; do date; echo $b; ./imp.sh $b; date; done >& import.log

