How to: |
The following procedure asserts some steps as best practices. Although it is possible to change them to meet your preferences, note that these best practices make follow-up work with a multi-tenant installation easier to do. For example, naming databases using a different schema (such as DB01 and DB02) works from a technical standpoint, but might result in confusion when updating the configuration at a later point. Following these steps ensures future confusion is reduced.
Note: The following procedure has two sample tenants. ABC Manufacturing will be named ABC and DEF Logistics will be named DEF.
If you have shared client and server instances, you would need to create only one set of folders. If you have a split-tier configuration, you would create separate sets of folders on both the client and the server.
For example, assuming this is a shared client/server configuration and is using SQL Server as host RDBMS for the PMF Data Mart, you would create ABC\ and DEF\ folders under the application root, and then make one copy of the pmfdata and pmfmss folders (with content) under each of these tenant name folders.
Tip: For ultimate security purposes, you could also configure the data mart using OS security to only allow the local OS user for each tenant to access this database.
Sample content of a Profile for tenant ABC would be:
APP MAP pmfdata X:*****\ibi\apps\ABC\pmfdata APP MAP pmfmss X:*****\ibi\apps\ABC\pmfmss -SET &NEW_DATA_DIR='TENANT_NAME/pmfdata'; APP PREPENDPATH pmfdata pmfmss ENGINE SQLMSS SET CONNECTION_ATTRIBUTES mainstreet [SERVER]/[USER-ID],[PASS];PMF_ABC
Sample content of an ODIN.CFG for tenant ABC would be:
NODE = ABC BEGIN PROTOCOL = TCP HOST = 127.0.0.1 PORT = 8120 CLASS = CLIENT SECURITY = [SECURITY TOKEN] DESCRIPTION = ABC END
Note: [SECURITY TOKEN] is the encrypted user and password for this tenant.
Additional groups are (Analyst, Consumer).
-SET &PMF_DOM='xxx/xxx.htm'; -SET &PMF_FOL='#pmfb0e27bt8f'; -SET &PMF_SER='NODENAME';
where:
Is the name of the tenant node in ODIN.CFG.
Is the technical name of tenant PMF domain.
Is the name of the PMF folder within domain (no change needed).
<IF> IBIMR_domain EQ "xxx/xxx.htm" _site_profile = -INCLUDE FILTERS IBIF_wfdescribe = OFF IBIC_server=NODENAME <ENDIF>
where:
Is the name of the odin.cfg node.
Is the name of the new domain for this tenant.
WebFOCUS |