Oracle Apps tables ending with ALL holds transaction data for multiple org ( Operating Units).
In 11i we had views on these tables. It requires setting context in order to fetch data from these views.This is for security concerns as these objects holds transaction details.
This is one of major difference in application architecture between 11i and R12.
In R12 oracle uses VPD (Virtual Private Database) to secure these transactional data.We shall discuss about VPD and MOAC concepts in other post.
In order to retrieve data from transactional objects, set policy context first ( as below ) -
BEGIN
MO_GLOBAL.set_policy_context ('MODE' char(1),Org_ID number);
END;
MODE - This is either "S" - For Single Operating Unit
"M" - For Multiple Operating Unit
Org_ID - Operating unit (Value from column ORG_ID in all transactional objects)
This is mandatory for "S" mode.
Example -
BEGIN
MO_GLOBAL.set_policy_context ('S' ,204);
END;
In 11i we had views on these tables. It requires setting context in order to fetch data from these views.This is for security concerns as these objects holds transaction details.
This is one of major difference in application architecture between 11i and R12.
In R12 oracle uses VPD (Virtual Private Database) to secure these transactional data.We shall discuss about VPD and MOAC concepts in other post.
In order to retrieve data from transactional objects, set policy context first ( as below ) -
BEGIN
MO_GLOBAL.set_policy_context ('MODE' char(1),Org_ID number);
END;
MODE - This is either "S" - For Single Operating Unit
"M" - For Multiple Operating Unit
Org_ID - Operating unit (Value from column ORG_ID in all transactional objects)
This is mandatory for "S" mode.
Example -
BEGIN
MO_GLOBAL.set_policy_context ('S' ,204);
END;
No comments:
Post a Comment