{"id":15954,"date":"2018-01-18T11:44:21","date_gmt":"2018-01-18T13:44:21","guid":{"rendered":"http:\/\/orabr.com\/?p=15954"},"modified":"2018-01-18T11:44:21","modified_gmt":"2018-01-18T13:44:21","slug":"oracle-ebs-query-profile-e-seus-niveis","status":"publish","type":"post","link":"https:\/\/orabr.virttus.com\/?p=15954","title":{"rendered":"Oracle EBS &#8211; Query profile e seus n\u00edveis"},"content":{"rendered":"<p><HTML><HTML><\/p>\n<pre class=\"lang:plsql decode:true \">SELECT SUBSTR(e.profile_option_name, 1, 25) INTERNAL_NAME\r\n      ,SUBSTR(pot.user_profile_option_name, 1, 60) NAME_IN_FORMS\r\n      ,DECODE(a.level_id, 10001, 'Site', 10002, 'Application', 10003,\r\n              'Resp', 10004, 'User', 10005, 'Server', 10007, 'Server+Resp',\r\n              a.level_id) LEVELl\r\n      ,DECODE(a.level_id, 10001, 'Site', 10002, c.application_short_name,\r\n              10003, b.responsibility_name, 10004, d.user_name, 10005,\r\n              n.node_name, 10007,\r\n              m.node_name || ' + ' || b.responsibility_name, a.level_id) LEVEL_VALUE\r\n      ,NVL(a.profile_option_value, 'Is Null') VALUE\r\n      ,to_char(a.last_update_date, 'DD-MON-YYYY HH24:MI') LAST_UPDATE_DATE\r\n      ,dd.USER_NAME LAST_UPDATE_USER\r\n  FROM applsys.fnd_profile_option_values a\r\n      ,applsys.fnd_responsibility_tl     b\r\n      ,applsys.fnd_application           c\r\n      ,applsys.fnd_user                  d\r\n      ,applsys.fnd_profile_options       e\r\n      ,applsys.fnd_nodes                 n\r\n      ,applsys.fnd_nodes                 m\r\n      ,applsys.fnd_responsibility_tl     x\r\n      ,applsys.fnd_user                  dd\r\n      ,applsys.fnd_profile_options_tl    pot\r\n WHERE e.profile_option_name = 'NOME DA PROFILE'\r\n   AND e.PROFILE_OPTION_NAME = pot.profile_option_name(+)\r\n   AND e.profile_option_id = a.profile_option_id(+)\r\n   AND a.level_value = b.responsibility_id(+)\r\n   AND a.level_value = c.application_id(+)\r\n   AND a.level_value = d.user_id(+)\r\n   AND a.level_value = n.node_id(+)\r\n   AND a.LEVEL_VALUE_APPLICATION_ID = x.responsibility_id(+)\r\n   AND a.level_value2 = m.node_id(+)\r\n   AND a.LAST_UPDATED_BY = dd.USER_ID(+)\r\n   AND pot.LANGUAGE = 'PTB' --US\r\n ORDER BY e.profile_option_name\r\n<\/pre>\n<p>&nbsp;<\/HTML><\/HTML><\/p>\n","protected":false},"excerpt":{"rendered":"<p>SELECT SUBSTR(e.profile_option_name, 1, 25) INTERNAL_NAME ,SUBSTR(pot.user_profile_option_name, 1, 60) NAME_IN_FORMS ,DECODE(a.level_id, 10001, &#8216;Site&#8217;, 10002, &#8216;Application&#8217;, 10003, &#8216;Resp&#8217;, 10004, &#8216;User&#8217;, 10005, &#8216;Server&#8217;, 10007, &#8216;Server+Resp&#8217;, a.level_id) LEVELl ,DECODE(a.level_id,&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29,124,121],"tags":[],"class_list":["post-15954","post","type-post","status-publish","format-standard","hentry","category-base-de-conhecimentos","category-database","category-oracle_ebs_tecnico"],"_links":{"self":[{"href":"https:\/\/orabr.virttus.com\/index.php?rest_route=\/wp\/v2\/posts\/15954","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/orabr.virttus.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/orabr.virttus.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/orabr.virttus.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/orabr.virttus.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=15954"}],"version-history":[{"count":1,"href":"https:\/\/orabr.virttus.com\/index.php?rest_route=\/wp\/v2\/posts\/15954\/revisions"}],"predecessor-version":[{"id":15955,"href":"https:\/\/orabr.virttus.com\/index.php?rest_route=\/wp\/v2\/posts\/15954\/revisions\/15955"}],"wp:attachment":[{"href":"https:\/\/orabr.virttus.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=15954"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/orabr.virttus.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=15954"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/orabr.virttus.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=15954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}