For those of you who are trying to set the organization context within your SQL sessions or custom programs, there’s a new API you must call in R12.
In 11i the way of setting organization context in 11i was to execute the following statement:
dbms_application_info.set_client_info(ORG_ID);
However, in R12, the new way of setting the organization context is as follows:
mo_global.init(’AR’);
mo_global.set_policy_context(’S',ORG_ID);
The 'S' parameter indicates a single organization context. Replace ORG_ID with the ID of the operating unit you wish to use. You can also set a context for multiple operating units by setting the security profile. This is done by executing the following statement:
mo_global.set_org_access(NULL,SECURITY_PROFILE_ID,’ASO’);
Replace SECURITY_PROFILE_ID with the ID of the appropriate security profile. ‘ASO’ represents the application short name associated with the responsibility you’ll be using.
Subscribe to:
Post Comments (Atom)
I really appreciate information shared above. It’s of great help. If someone want to learn Online (Virtual) instructor lead live training in ORACLE SCM, kindly contact us http://www.maxmunus.com/contact
ReplyDeleteMaxMunus Offer World Class Virtual Instructor led training on ORACLE SCM We have industry expert trainer. We provide Training Material and Software Support. MaxMunus has successfully conducted 100000+ trainings in India, USA, UK, Australlia, Switzerland, Qatar, Saudi Arabia, Bangladesh, Bahrain and UAE etc.
For Demo Contact us.
Saurabh Srivastava
MaxMunus
E-mail: saurabh@maxmunus.com
Skype id: saurabhmaxmunus
Ph:+91 8553576305 / 080 - 41103383
http://www.maxmunus.com/