壹佰网|ERP100 - 企业信息化知识门户

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 489|回复: 0

oracle discover常用后台表资料

[复制链接]
发表于 2013/7/1 11:43:50 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。如果您注册时有任何问题请联系客服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 '% <报表名> %'
;


后台主要表.doc

43 KB, 下载次数: 3, 下载积分: 努力值 -5 点

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|手机版|壹佰网 ERP100 ( 京ICP备19053597号-2 )

Copyright © 2005-2012 北京海之大网络技术有限责任公司 服务器托管由互联互通
手机:13911575376
网站技术点击发送消息给对方83569622   广告&合作 点击发送消息给对方27675401   点击发送消息给对方634043306   咨询及人才点击发送消息给对方138011526

GMT+8, 2025/11/29 07:30 , Processed in 0.017743 second(s), 15 queries , File On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表