What Is Required For An Oracle Database User To Access Secure View ...
Có thể bạn quan tâm
Oracle Database
--
Questions
--
Followers
Top Experts
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
If you use per_people_f in your query rather than per_all_people_f that will secure data according to the responsibility's security profile. ... if you're joining to assignments use per_assignments_f2 (f2 supports individual assignment security) as well as per_people_f.I am not a query expert but though below for consideration i was thinking of the "How to Add a Policy to a Table, View, or Synonym", specifically on the section on "Enforcing VPD Policies on Specific SQL Statement Types" and " Users Exempt from VPD Policies" http://docs.oracle.com/cd/B19306_01/network.102/b14266/apdvcntx.htm#i1007410 and other from forum
fnd_client_info.setup_client_info is required when you want to use the views which are based on organization. you can use this function if you want to run the organization base query in TOAD or sqlplus.This function would setup the organization at the backend level also. fnd_global.apps_initialize is used in a program to setup the Apps use related parameters. Generally used in SQL scripts used in Conc programs. Also this function is required to call the submit request API. This function based on resp id, user_id and resp application id.






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
ASKER
David Johnson - Thanks. I will give that a try and get back. Was hoping the issue was obvious to one of you experts. breadtan - Thanks. I am aware of those requirements. Markgeer... agree this is related EBS hr_security. Have a growing knowledge of same as I have an open Oracle SR over 2 years on a RAC failover bug. Troubleshot/provided solution... Oracle agrees however they have internal arguments on which Oracle department must fix, EBS / multitenancy or OLS / rdbms. Todays question is not about RAC. However this is likely a context issue in that I created a new database user, gave the priv and synonyms. And as this new user, I query HR_ORGANIZATION_UNITS prior to apps_initialize to see all the records. Once I call apps_initialize, I get no records. I'm missing something... AS APPS this works and is the core of hr_organization_units... Results: 202 N TRUE Y 202 202 begin fnd_global.apps_initialize (1013415,21540,800,0); end; SELECT hao.organization_id, hr_security.view_all, hr_security.show_record ('HR_ALL_ORGANIZATION_UNITS',haotl.organization_id) zero, hr_general.get_xbg_profile, hao.business_group_id, hr_general.get_business_group_id FROM hr_all_organization_units hao, hr_all_organization_units_tl haotl WHERE hao.organization_id = 202 AND hao.business_group_id = 202 AND hao.organization_id = haotl.organization_id AND haotl.language = 'US' order by 1; AS the NEW Database User get this result for the same apps_initialize and query... Results: 202 N FALSE {null} 202 202 Notes: * HR_SECURITY.SHOW_RECORD is called if the current security profile is a restricted security profile. It validates whether the row in question is visible through the current security profile. * HR_GENERAL.GET_XBG_PROFILE returns the value of the HR:Cross Business Group profile option.Note: FND_GLOBAL is not accessible from HR reporting users. If you have created your own custom tables, perform the following steps to make them accessible to reporting users: Create table. Select a table name that does not conflict with any tables or views that might exist in Oracle Applications. Do not use two or three character prefixes such as HR, PER, PAY, FF, DT, SSP, GHR, BEN, OTA, HXT, EDW, HRI, HXC, PQH, PQP or IRC. Grant select access on the table to HR_REPORTING_USER role, from the user that owns the custom table. GRANT SELECT ON custom_table TO hr_reporting_user; You must repeat this step every time you perform an installation or upgrade. However, you do not need to rerun SECGEN as existing reporting users that have already been granted access to the HR_REPORTING_USER role will automatically receive any new permissions added to the role. Create a synonym to the table. If you use public synonyms, remember that the Oracle user from which you create the public synonym must have CREATE PUBLIC SYNONYM system privilege. CREATE PUBLIC SYNONYM custom_table FOR base_table_account.custom_table;ASKER CERTIFIED SOLUTION

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
ASKER
breadtan - Thanks. The database user xxkx is not setup as an HR reporting user. And I have access to fnd_global. In fact I go a step further to limit access to same by creating a wrapper in APPS and a synonym fnd_global in xxkx to my wrapper [etc.]. This way I have more control of the fnd layer. However you struck gold with the fnd_oracle_userid and the read_only_flag. I did have my Oracle ID there but with the read_only_flag as 'A' [the default]. I changed to 'U' and indeed the Oracle secure view HR_ORGANIZATION_UNITS returns values after fnd_global_apps_intialize. Prior to apps_initialize... select count(assignment_id) from per_assignments_f where business_group_id = 202; --Count=5353 select count(*) from HR_ORGANIZATION_UNITS where business_group_id = 202; -- Count=480 begin fnd_global.apps_initialize (1013415,21540,800,0); end; After apps_initialize... select count(assignment_id) from per_assignments_f where business_group_id = 202; --Count=2458 select count(*) from HR_ORGANIZATION_UNITS where business_group_id = 202; -- Count=185 Earlier test posted above as the NEW Database User now gets this correct result for the same apps_initialize and query. Note that hr_security.show_record ('HR_ALL_ORGANIZATION_UNITS',haotl.organization_id) now equals TRUE 202 N TRUE Y 202 202 I'll find the meaning for the READ_ONLY_FLAG "U" and test further. And thanks to everyone who contributed. I really appreciate your time.ASKER
I've requested that this question be closed as follows: Accepted answer: 0 points for JAKEX's comment #a40124450 for the following reason: The suggestion worked. I will do additional testing but the project deadline is now secure. ThanksASKER
Let me try this again. I am assigning breadtan 500 points. The solution worked.





EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
Oracle Database
--
Questions
--
Followers
Top Experts
Oracle is an object-relational database management system. It supports a large number of languages and application development frameworks. Its primary languages are SQL, PL/SQL and Java, but it also includes support for C and C++. Oracle also has its own enterprise modules and application server software.
Từ khóa » Hr_organization_units In Oracle Apps
-
HR_ORGANIZATION_UNITS - Oracle Help Center
-
HR_ORGANIZATION_UNITS_F_...
-
Organization Table In Oracle Apps R12 - Orapoint
-
Hr_organization_units | OracleAppsDNA
-
VIEW - APPS.HR_ORGANIZATION_UNITS
-
Which Is The Table For Storing Organization Information?
-
Oracle Organizations Tables
-
In Query To Find Organization Information , Tables And Links
-
Hr_operating_units Table Data In Oracle Apps Is Not Coming In ...
-
Organization Query In Oracle Apps R12
-
Oracle HRMS – Define Organization – Functional And Technical ...
-
Oracle Fusion HCM Query For Employee Details And Assignments ...
-
Sql Query To Get Purchasing Setup Of An Employee - Oracle Apps R12
-
Apps General Scripts - ORACLE TIPS