Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2573769
  • 博文数量: 323
  • 博客积分: 10211
  • 博客等级: 上将
  • 技术积分: 4934
  • 用 户 组: 普通用户
  • 注册时间: 2006-08-27 14:56
文章分类

全部博文(323)

文章存档

2012年(5)

2011年(3)

2010年(6)

2009年(140)

2008年(169)

分类: Oracle

2008-11-10 11:45:54

EBS版本: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.

这种方法治标不治本,ORACLE也提供了相关的PATCH。patch 4719658。
阅读(1573) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~