vi_task_id integer; --task log id
vv_procedure_name varchar2(30); --task name
vv_table_name varchar2(30); --table name
vd_begin_date date; --task begin date/time
vi_count integer; --number check flag
vd_end_date date; --task end date/time
vv_err_text varchar2(200) default null; --error message
vi_log_status integer default 0; --0:read-in log with executed successfully,-1:read-in log with executed error
vd_deal_date date; --deal date
vn_err_code number default 0; --error code variable in program processing
cursor c_table_list --get partition information
is
select owner,
table_name,
partition_name,
tablespace_name,
tablespace_name_odd,
tablespace_name_even,
compression,
partition_count,
partition_date,
proc_flag_id,
deal_cycle,
partition_type_id,
tablespace_type_id,
last_day_type_id,
date_type_id
from tb_sys_tab_partitions
where upper(deal_cycle) in( 'D','M');
l_table_list c_table_list%rowtype; --get partition information
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/12961536/viewspace-1061427/
,如需转载,请注明出处,否则将追究法律责任。