Data Import Process

Data Import Process
1. prepare the file
All the files are ended with the vendorId, *.11101. All these files are listed in /mnt/feeds.

first we need to zip all the files.
>tar -cjvf /working_directory/loadfilename.bz2 *.11101

download the file to local directory
>scp username@server.com:/working_directory/loadfilename.bz2 ./loadfilename.bz2

>tar zxvf loadfilename.bz2

2. prepare the server
update the latest server codes.
modify the basicConfiguration.xml, delete the other email users.

3. execute URL
http://server.com:8080/30cm-dbupdate/process?vendorId=11101
http://server.com:8080/30cm-dbupdate/executeDBUpdater.jsp?name=storename

we need to check the store name in DBUpdater.java class. The store name is hard code there.

4. prepare the database
export the structure from server.
>mysqldump -u username -ppassword -h localhost -P 3306 -d databasename >/home/hua.luo/database.sql

>scp username@server.com:/home/hua.luo/database.sql ./database.sql

>mysql -u username -ppassword -h localhost -P 3306 databasename </Users/carl/feeds/database.sql

Every thing is done.

5. prepare the JBOSS configuration
click 'Open launch configuration' ----> Arguments ---> VM Arguments ----->
-Dprogram.name=run.bat -Xms768m -Xmx1568m -XX:MaxPermSize=356m

>curl executeURL

Check if the server is running well
>ps -ef | grep mysql

references:
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值