Kettle汇总时手动执行小时汇总命令:
./kitchen.sh -norep -file /usr/local/evqm/kettle/kettle_scripts/rpt_hour.kjb -param:start_time=‘2015-2-3 10:00:00‘ -param:end_time=‘2015-2-3 11:00:00‘ -param:insert_time=‘2015-2-3 10:00:00‘
Kettle汇总时手动执行一天汇总命令:
./kitchen.sh -norep -file /usr/local/evqm/kettle/kettle_scripts/rpt_day.kjb -param:start_time=‘2015-2-3 00:00:00‘ -param:end_time=‘2015-2-4 00:00:00‘ -param:insert_time=‘2015-2-3 00:00:00‘
Kettle汇总获取小时的数据:
SELECT TRUNC(SYSDATE - 1 / 24, ‘hh24‘) START_TIME, TRUNC(SYSDATE, ‘hh24‘) END_TIME, TRUNC(SYSDATE - 1 / 24, ‘hh24‘) INSERT_TIME, ‘${start_time}‘ V_START_TIME, ‘${end_time}‘ V_END_TIME, ‘${insert_time}‘ V_INSERT_TIME FROM DUAL
Kettle汇总获取天的数据:
SELECT TRUNC(SYSDATE - 1, ‘dd‘) START_TIME, TRUNC(SYSDATE, ‘dd‘) END_TIME, TRUNC(SYSDATE - 1, ‘dd‘) INSERT_TIME, ‘${start_time}‘ V_START_TIME, ‘${end_time}‘ V_END_TIME, ‘${insert_time}‘ V_INSERT_TIME FROM DUAL
时间: 2024-11-07 10:16:14