一日,公司某个人为了防止别人使用ERP,故把ERP中之Responsibility全部失效,结果把Responsibility的失效日期去掉后,仍不能用,可以使用此方法解决。
CREATE OR REPLACE Procedure cux_active_rep Is
Begin
update wf_local_user_roles
set role_end_date = '', effective_end_date = date '4712-12-31'
where role_end_date = date '2006-05-01';
update wf_user_role_assignments
set role_end_date = '',
assigning_role_end_date = '',
effective_end_date = date '4712-12-31'
where role_end_date = date '2006-05-01';
commit;
End cux_active_rep;
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/41594/viewspace-50571/,如需转载,请注明出处,否则将追究法律责任。