A profile option in Oracle EBS can be set at several levels, and the most specific one wins (user over responsibility over application over site). All values are in FND_PROFILE_OPTION_VALUES, where LEVEL_ID says the level and LEVEL_VALUE holds the ID of the user, responsibility, application, server or organization. The query below decodes both, so you see each value with a readable level name and level value.
SQL: profile option values at every level
SELECT fa.application_name,
fpov.level_id,
fa.application_short_name,
fpo.USER_PROFILE_OPTION_NAME,
fpo.PROFILE_OPTION_NAME,
DECODE (fpov.level_id,
10001, 'Site',
10002, 'Application',
10003, 'Responsibility',
10004, 'User',
10005, 'Server',
10006, 'Organization',
10007, 'ServResp',
'Unknown')
Level_name,
DECODE (fpov.LEVEL_ID,
10001, NULL,
10002, fal.APPLICATION_NAME,
10003, frt.RESPONSIBILITY_NAME,
10004, fu.USER_NAME,
10005, svr.node_name,
10006, org.name,
10007, (SELECT n.node_name
FROM fnd_nodes n
WHERE n.node_id = level_value2)
|| '/'
|| (DECODE (fpov.level_value,
-1, 'Default',
(SELECT responsibility_key
FROM fnd_responsibility
WHERE responsibility_id = level_value))),
fpov.level_id)
Level_value,
fpov.PROFILE_OPTION_VALUE
FROM fnd_profile_options_vl fpo,
fnd_profile_option_values fpov,
fnd_application_vl fa,
fnd_application_vl fal,
fnd_responsibility_vl frt,
fnd_user fu,
fnd_nodes svr,
hr_operating_units org
WHERE fpo.profile_option_id = fpov.profile_option_id
AND fa.application_id = fpo.application_id
AND fpov.LEVEL_VALUE = fal.APPLICATION_ID(+)
AND fpov.LEVEL_VALUE = frt.RESPONSIBILITY_ID(+)
AND fpov.LEVEL_VALUE = fu.USER_ID(+)
AND fpov.LEVEL_VALUE_APPLICATION_ID = frt.APPLICATION_ID(+)
AND fpov.level_value = svr.node_id(+)
AND fpov.level_value = org.organization_id(+)
AND fpo.USER_PROFILE_OPTION_NAME LIKE
'<profile option name>'
ORDER BY USER_PROFILE_OPTION_NAME;
Profile option levels
| LEVEL_ID | Level | LEVEL_VALUE refers to |
|---|---|---|
| 10001 | Site | 0 |
| 10002 | Application | FND_APPLICATION.APPLICATION_ID |
| 10003 | Responsibility | FND_RESPONSIBILITY.RESPONSIBILITY_ID |
| 10004 | User | FND_USER.USER_ID |
| 10005 | Server | FND_NODES.NODE_ID |
| 10006 | Organization | HR_ALL_ORGANIZATION_UNITS.ORGANIZATION_ID |
| 10007 | Server + Responsibility | Responsibility ID, with server in LEVEL_VALUE2 |
Filter on fpo.user_profile_option_name to check one profile. To get the effective value for the current session, use FND_PROFILE.VALUE('INTERNAL_NAME') after initializing the context with FND_GLOBAL.APPS_INITIALIZE.
Which table stores profile option values in Oracle EBS?
FND_PROFILE_OPTION_VALUES, with the profile definitions in FND_PROFILE_OPTIONS and FND_PROFILE_OPTIONS_TL.
Which profile level takes priority?
The most specific level set: User, then Responsibility, then Application, then Site (Server and Organization apply only to profiles that support them).
Related queries
- Query to Get Responsibility Level Profile Option Values in Oracle Apps
- Query to Get Site Level and Organization Level Profile Option Values
- How to Enable FND Debug Log in Oracle Apps EBS and Read the Messages
- Query to Find Responsibilities Attached to a User in Oracle Apps
- Register a Test Concurrent Program from the Backend in Oracle EBS (FND_PROGRAM)
- Supervisor Hierarchy and Approval Limits Query in Oracle EBS R12
- Query to Find Vacation Rules (Workflow Delegations) in Oracle R12
- View Java Class Source in Oracle Database
- Load and Call Java Source Code in Oracle Database (Step by Step)
- Query to Find All Public APIs of Oracle Apps Modules
- OAF Personalization and Customization Queries (JDR_UTILS)
- Query to List Concurrent Programs in a Request Set (Stages and Executables)
- Query to Get Organization Hierarchy in Oracle Apps
- Query to Find Incompatible Programs Blocking a Concurrent Request (Pending Standby)
- Query to Find Which Responsibility and User Has a Form Function
- Query to Find Responsibilities Attached to a User in Oracle Apps
- How to Enable FND Debug Log in Oracle Apps EBS and Read the Messages
- How to Add AME Roles and Responsibility to a User in Oracle Apps R12
- Find Which Responsibility a Form Is Attached To, with Full Navigation Path
- Oracle SQL Query to Get the MIME Type for a File Extension
- Query to Get Concurrent Program and Executable Details in Oracle Apps
- Query to Get Responsibility Level Profile Option Values in Oracle Apps
- Query to Validate Migration of XML/BI Publisher Templates and Data Definitions
- Query to Get Details of XML/BI Publisher Templates and Data Definitions
- Query to Get Site Level and Organization Level Profile Option Values
- PL/SQL Code to Reset an Oracle Apps User Password (FND_USER_PKG.CHANGEPASSWORD)
- PL/SQL Procedure to Send Email with Attachment (UTL_SMTP)
- PL/SQL to Delete a Concurrent Program and Executable (FND_PROGRAM)
- Query to Get Details of Locks in the Oracle Database (Lock Mode and Request)
- PL/SQL Code to Delete an XML/BI Publisher Template and Data Definition
- Query to Find Form Personalizations in Oracle Apps
- Query to Find Profile Option Values at All Levels in Oracle Apps
- Query to Get Concurrent Program Parameter Details
- PL/SQL Code to Find the Menu Hierarchy of a Responsibility
- Query to Find Flex Value Set Details and Values in Oracle Apps
- Query to Find a Concurrent Program’s Responsibility and Request Group
- Find the SQL Statement a Concurrent Program Is Currently Running
- Query to Find Scheduled Concurrent Programs in Oracle Apps
- Kill the Database Session of a Concurrent Request from the Backend
- Query to Get Descriptive Flexfield (DFF) Details in Oracle Apps
