| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- #!/bin/bash
- #--------------------------------------------
- #Date: 2021/05/13
- #Author:koucx
- export LANG="en_US.UTF-8"
- source /etc/profile
- source ~/.bash_profile;
- source /home/bireport/TDH-Client/init.sh
- ################################################
- shanglifeecif_sql="
- BEGIN
- -- 执行跑批任务
- dbms_output.put_line( '跑批开始!');
- dbms_output.put_line(to_char(sysdate,'yyyy-MM-dd HH:mm:ss') || '跑批开始!');
-
- shanglifeecif.customertotaltemp();
-
-
- -- DELETE FROM shanglifeecif.individual;
- --初始化客户信息
- -- shanglifeecif.init_all_individual();
- --更新用户等级信息
- -- shanglifeecif.up_t_customers_class_1();
- --更新其它信息
- -- shanglifeecif.up_other_customerinfo();
- --更新被保人信息
- -- shanglifeecif.update_insuredinfo();
- -- shanglifeecif.init_individual_main();
- -- shanglifeecif.same_customer();
- -- shanglifeecif.data_cleaning();
- -- shanglifeecif.init_insurancearrangement_main();
- -- shanglifeecif.insuranceclaimthread_main();
- -- shanglifeecif.init_indrelationship_main();
- -- shanglifeecif.partytimeline_main();
- -- shanglifeecif.age_sex_distribution();
- -- shanglifeecif.riskcode_statistics();
- -- shanglifeecif.bdnum_distribution();
- -- shanglifeecif.surrender_protection_temp();
- -- shanglifeecif.updateIndividualLable();
- -- shanglifeecif.effective_customer();
- EXCEPTION
- -- 引用一个NO_DATA_FOUND的EXCEPTION。
- WHEN NO_DATA_FOUND THEN
- -- 输出变量v_comment的值。
- dbms_output.put_line('当天跑批未完成!')
- WHEN TOO_MANY_ROWS THEN
- dbms_output.put_line('当天出现多条跑批数据!')
- END;"
- beeline -u "jdbc:hive2://10.50.254.45:10000" --hiveconf hive.metastore.client.socket.timeout=86400000 --hiveconf hive.server2.idle.session.timeout=43200000 --hiveconf hive.server2.session.check.interval=900000 -e "${shanglifeecif_sql}"
|