SQL Query获取用户帐户OIU_Key

时间:2017-03-27 02:48:45

标签: identity identity-management oim identitymanager

是否有SQL查询来获取特定资源处于预配或启用状态的用户帐户?

1 个答案:

答案 0 :(得分:0)

SELECT usr.usr_login,usr.usr_key,obj.obj_name,obi.obi_key,oiu.oiu_create,
ost.ost_status,oiu.oiu_key,obj.obj_key FROM orc, usr, obj, oiu, ost, obi WHERE 
orc.orc_key = oiu.orc_key AND  oiu.usr_key = usr.usr_key AND oiu.ost_key = ost.ost_key AND oiu.obi_key = obi.obi_key AND obi.obj_key = obj.obj_key AND obj.obj_name='<Resource Object Name>' AND (ost.ost_status='Provisioned' OR ost.ost_status='Enabled') AND usr.usr_login='<Enter Userlogin>';