Session Manager Database Set Up - Oracle

The following scripts are provided to create the Process Framework and Session Manager schema on an Oracle Server instance:

  • CreatePXTables_Oracle.sql

  • CreateSMTables_Oracle.sql

  • GrantSMRole_Oracle.sql

Database Set Up:

The tables required by the Process Framework engine can be placed on the same Oracle instance that provides the SDE Geodatabase. The tables (created by the SQL scripts) must exist under a user named PROCESS.

  1. Create the PROCESS user in Oracle. This user must be granted the following two privileges:
    Grant   CREATE SESSION to process;
    Grant   CREATE TABLE to process;
  2. Open SQLPlus window, logging in as new PROCESS user.
  3. Run the CreatePxTables_Oracle script. This script will create the tables required by the Process Framework engine.
  4. Run the CreateSMTables_Oracle script. This will create the tables required by Session Manager.
  5. As a DBA user in Oracle, create a role called SM_USER. This role will be used to assign the appropriate table privileges to users of Session Manager. The name of this role is not mandatory; however, if you use a different name for this role you will have to alter the SQL script in the next step. The following SQL syntax will create a role in Oracle:
    Create role SM_USER not identified;
  6. Run the GrantSMRole_Oracle script. This script grants the appropriate table privileges to the SM_USER role in Oracle.
  7. Grant the various existing Oracle users the SM_USER role. Since the number of users involved in this step is probably equal to the number of users that access SDE, you’ll probably want to make a script to perform this task. The SQL syntax to perform this task is as follows:
    Create role SM_USER not identified;
  8. Grant the CREATE SESSION privilege to existing Oracle users. The SQL syntax to perform this task is as follows:
    Grant CREATE SESSION to <user_name>;

Session Manager Administration

Add each user involved in step 7 above to the Process Framework with the Users tab in the Process Framework Administration Tool. After you have imported the workflow (see Add Workflow, below), you can also use the Users tab to assign the Session Manager user roles to each user.

Add Workflow

The following steps allow you to export the workflow from the sample database provided with the ArcFM Solution installation and import that workflow into your own Process Framework database. Once imported, this workflow can be modified to meet your specific business needs.

  1. To add a workflow, use the Import/Export tab in the Process Framework Administration tool and the sample Session Manager database (SessionManager.mdb) provided with the ArcFM Solution install.

  2. Log in to SessionManager.mdb as Process.

  3. Select the Import/Export tab.

  4. Select the Export radio button and select the Process Framework Workflow Importer/Exporter checkbox.

  5. Designate an XML file name to which the workflow is to be exported.

  6. Click Export and select the MMSessionManager extension.

  7. Close the Process Framework Admin tool when the export is complete so you can log in to your enterprise database.

  8. Log in to your Session Manager database (your enterprise database) as Process.

  9. Select the Import/Export tab.

  10. Select the Import radio button and browse to the XML file you just exported from the sample data.

  11. Click Import.

QR code for this page

Was this helpful?