QUOTE:
原帖由
linda.hu 于 2008-3-19 08:29 发表

我們公司現在也是這樣,以前的帳號如果有終止,現在再去掉終止日期就看不到這個職責了,之前我們也提交了個SR,他們提供一下SQL語句:(11.5.10.2)
1.select ura.user_name, ura.role_name
from wf_local_user_roles ur, wf_user_role_assignments ura
where ur.user_name = ura.user_name
and ur.role_name = ura.role_name
and ura.relationship_id = -1
and ((ur.effective_start_date is null or ur.effective_start_date
ura.effective_start_date)
or (ur.effective_end_date is null or ur.effective_end_date ura.effective_end_date))) ;
2.UPDATE WF_USER_ROLE_ASSIGNMENTS
set effective_end_date = to_date(null)
where rowid in (select ura.rowid
from wf_local_user_roles ur, wf_user_role_assignments ura
where ur.user_name = ura.user_name
and ur.role_name = ura.role_name
and ura.relationship_id = -1
and ( (ur.effective_start_date is null or ur.effective_start_date ura.effective_start_date)
or (ur.effective_end_date is null or ur.effective_end_date ura.effective_end_date)));
3.然后做如下动作
System Administrator responsibility 》request 》 Workflow Directory Services User/Role Validation concurrent program.
按照這樣做以后真的可以了,但是治標不治本,每次出現這種情況還要再執行以上的步驟,后來也懶得再上SR了。