About Me.

My self Adinarayana working as Implementation Application DBA with advanced technologies like RAC/PCP,OID/SSO,DMZ,Exadata and Fusion Middleware i.e Demantra,Application Server,SOA,FMW,BPEL and UPK. Created this blog to share the useful information related to DBA and Application DBA Your comments and suggestions are most welcome. Disclaimer: Please note all the views and opinions expressed in this site are my own. It's not recommend to use the fixes/suggestions provided in this site directly in production instance, please test them before implementing.

Monday, July 22, 2013

Profiles

1.To Check All the profiles

column SHORT_NAME format A25
column NAME format A40

column LEVEL_SET format a12
column CONTEXT format a15
column VALUE format A60 wrap

select p.profile_option_name SHORT_NAME, n.user_profile_option_name NAME,
         decode(v.level_id,
                              10001, 'Site',

                              10002, 'Application',

                              10003, 'Responsibility',

                              10004, 'User',
                              10005, 'Server',

                             10007, 'SERVRESP',
               'UnDef') LEVEL_SET,decode(to_char(v.level_id),'10001', '',
                      '10002', app.application_short_name,
                      '10003', rsp.responsibility_key,
                      '10005', svr.node_name,
                      '10006', org.name,
                      '10004', usr.user_name,
                      '10007', 'Serv/resp',
                'UnDef') "CONTEXT",
               v.profile_option_value VALUE
  from apps.fnd_profile_options p,
     apps.fnd_profile_option_values v,
     apps.fnd_profile_options_tl n,
     apps.fnd_user usr,
     apps.fnd_application app,
     apps.fnd_responsibility rsp,
     apps.fnd_nodes svr,
     apps.hr_operating_units org
  where p.profile_option_id = v.profile_option_id (+)
  and p.profile_option_name = n.profile_option_name
  and upper(n.user_profile_option_name) like upper('%&user_profile_option_name%')
  and    usr.user_id (+) = v.level_value
  and    rsp.application_id (+) = v.level_value_application_id
  and    rsp.responsibility_id (+) = v.level_value
  and    app.application_id (+) = v.level_value
  and    svr.node_id (+) = v.level_value
  and    org.organization_id (+) = v.level_value
  order by short_name, level_set;

No comments:

Post a Comment