11 Set Up Context in a Multi-tenant Environment
In a multi-tenant setup, you can view only one enterprise data at a time for which context has been set.
To set the context for an enterprise, execute the following steps:
-
Connect to the Argus Mart User (AM_MART_USER).
-
Execute the following command:
pkg_rls.set_context(:LoginUserName, :Enterpriseid, 'ARGUS_MART', NULL);
Where,
-
LoginUserName refers to the User Name
-
Enterpriseid refers to the ID for the enterprise
-
ARGUS_MART refers to the Application Name
This completes the steps to set the context for the enterprise.
-
Example 11-1 Setting Context for an Enterprise
Execute pkg_rls.set_context('admin',3,'ARGUS_MART',NULL);
Parent topic: Administration