Запрос для просмотра полномочий пользователя OEBS:
SELECT distinct u.user_id, u.user_name, fr.responsibility_key, r.responsibility_name as responsiblity, fa.application_short_name, a.application_name as application, sg.security_group_key, 'dbms_output.put_line('''|| r.responsibility_name ||''');'||chr(10)||'fnd_user_pkg.addresp(l_user_name, '''||fa.application_short_name||''', '''|| fr.responsibility_key ||''', '''||sg.security_group_key||''', ''Add by script'', sysdate, null);' as str FROM fnd_user u, fnd_user_resp_groups g, fnd_application_tl a, fnd_application fa, fnd_responsibility_tl r, fnd_responsibility fr, fnd_security_groups sg WHERE g.user_id(+) = u.user_id AND g.responsibility_application_id = a.application_id AND a.application_id = r.application_id and fa.application_id = r.application_id AND g.responsibility_id = r.responsibility_id and fr.responsibility_id = r.responsibility_id and fr.application_id = r.application_id and sg.security_group_id = g.security_group_id AND a.LANGUAGE = 'RU' AND r.LANGUAGE = 'RU' AND u.user_name = '!!!USER_NAME' ORDER BY user_name, responsiblity, application
Последние комментарии