是否有任何 SQL 查询来识别身份和资源属性差异
Is there any SQL query to identify identity and resource attribute discrepancy
我正在寻找一个 SQL 查询来验证用户详细信息是否与配置的资源同步,以创建包含检测到的差异的 BI 报告。
基本上是一个 SQL 查询,用于检查提供给用户的资源是否处于正确状态并正确链接到用户
select orc.orc_key,obj.obj_name, pkg.pkg_name,orc.usr_key,usr.usr_login from orc orc,tos tos, oiu oiu, pkg, obj, usr
where
orc.usr_key=usr.usr_key
and tos.tos_key=orc.tos_key
and orc.orc_status not in ('X', 'PX')
and oiu.orc_key=orc.orc_key
and oiu.oiu_prov_start_date is null
and oiu.oiu_prov_end_date is null
and orc.pkg_key = pkg.pkg_key
and pkg.obj_key = obj.obj_key
and oiu.oiu_serviceaccount != '1';
我正在寻找一个 SQL 查询来验证用户详细信息是否与配置的资源同步,以创建包含检测到的差异的 BI 报告。
基本上是一个 SQL 查询,用于检查提供给用户的资源是否处于正确状态并正确链接到用户
select orc.orc_key,obj.obj_name, pkg.pkg_name,orc.usr_key,usr.usr_login from orc orc,tos tos, oiu oiu, pkg, obj, usr
where
orc.usr_key=usr.usr_key
and tos.tos_key=orc.tos_key
and orc.orc_status not in ('X', 'PX')
and oiu.orc_key=orc.orc_key
and oiu.oiu_prov_start_date is null
and oiu.oiu_prov_end_date is null
and orc.pkg_key = pkg.pkg_key
and pkg.obj_key = obj.obj_key
and oiu.oiu_serviceaccount != '1';