|
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。如果您注册时有任何问题请联系客服QQ: 83569622 。
您需要 登录 才可以下载或查看,没有帐号?注册
x
oracle discover常用后台表资料
举例如下:
--如查报表权限 :PO暂估应付账款明细余额表 303923
-- 这里说明一下 EUL4_ZHS.EUL4_eul_users.eu_username
-- 当有两个#号,说明是责任id+应用id
-- 当有一个#号,对应是用户id
select doc.doc_name
,ba.ba_name
,ba.ba_description
,eu.eu_username
,res.RESPONSIBILITY_NAME --责任名
,app.APPLICATION_NAME --应用名
,usr.user_name --用户名
,usr2.user_name create_user --创建者
,eap.*
from EUL4_ZHS.EUL4_ACCESS_PRIVS eap
,EUL4_ZHS.EUL4_DOCUMENTS doc
,EUL4_ZHS.EUL4_eul_users eu
,EUL4_ZHS.EUL4_BAS ba
,fnd_responsibility_vl res
,fnd_application_vl app
,fnd_user usr
,fnd_user usr2
where eap.gd_doc_id= doc.doc_id
and nvl(eap.gba_ba_id,0)= ba.ba_id(+)
and eap.ap_eu_id = eu.eu_id
and eap.ap_type='GD'
and to_number(nvl(SUBSTR (eu.eu_username, 2,INSTR (eu.eu_username, '#', 2) - 2),'-100')) = res.responsibility_id(+)
AND to_number(decode(INSTR (eu.eu_username, '#', 2),0,'-100',substr(eu.eu_username,INSTR(eu.eu_username,'#',2)+ 1))) = app.application_id(+)
and to_number(DECODE (INSTR (eu.eu_username, '#', 2),
0, SUBSTR (eu.eu_username, 2),
'-100'
)) = usr.user_id(+)
and eap.ap_created_by = concat('#',usr2.user_id)
and doc.doc_name like '% <报表名> %'
;
|
|