Creating Production Workspace

On the Workspace Summary page, click Add Workspace. The Create Workspace window is displayed with the following process:
  1. Basic Details
  2. Workspace Schema
  3. Data Sourcing
  4. Metadata Sourcing
  5. Validate
  6. Summary
Basic Details
To create a basic details of the production workspace, follow these steps:
  1. Enter the Workspace Code and Purpose of the workspace.

    Note:

    Provide the workspace name same as ECM Infodom name.
  2. From the drop-down list, select the User-group.
  3. Select the subtype as Production.
  4. Click Next.

    Figure 5-68 Basic Details


    Basic Details

Workspace Schema
To create the workspace schema, follow these steps:
  1. Select the Data Schema as ECM Schema alias name.

    Note:

    Leave the Kafka Topics and API Configurations fields as blank.

    For more information about creating Data Store, see How to Create Data Store.

  2. Select the following Conda Environments:
    1. default_8.1.3.1.0
    2. ml4aml_8.1.3.1.0
  3. Click Next.
Data Sourcing
To select Database objects from the data stores, perform the following steps:
  1. From the Source Data Schema drop-down list, select the Data Store. For more information about creating Data Store, see How to Create Data Store.
  2. From the Object Type drop-down list, select the following tables from the sanction production data store where sufficient historical data is present:
    • FCC_DM_GATHER_STAT_CONFIG
    • FCC_DM_EXEC_LOG
    • FCC_DM_DEPENDENT_TABLE
    • FCC_BATCH_DATAORIGIN
    • FCC_DM_ERROR_DETAILS
    • FCC_DM_AUDIT
    • FCC_DM_FIELD_MAPPING
  3. Click Next to navigate to the Metadata Sourcing tab.
Metadata Sourcing
To select available objects from the Metadata Sourcing, follow these steps:
  1. From the Object Type drop-down list, select AMLES related Scheduler batches.
  2. In the Available Objects, select AMLES_Scheduler_8.1.1, AMLES_Scheduler_8.1.2.1, and AMLES_Scheduler_8.1.3.1.
  3. Click Next.

    Figure 5-70 Metadata Sourcing


    Metadata Sourcing

Validate Workspace

You can validate the Basic details, Workspace schema, Data Sourcing and Metadata sourcing before you physicalize the workspace.

To Physicalize the workspace, Click Finish and then select Physicalize Workspace.

Figure 5-71 Physicalize Workspace


Physicalize Workspace

Summary
You can view summary of the created workspace.

Creating Additional Tables in the Production Schema

If the BD and ECM Schemas are different but are in the same database, then create additional supporting tables by using the following script in the BD_ATOMIC_SCHEMA:

BEGIN DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'SQLTERMINATOR',FALSE);
DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'EMIT_SCHEMA',FALSE);
DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'SEGMENT_ATTRIBUTES', FALSE);
END;
/

DECLARE
    v_ddl   CLOB;
    v_pos   NUMBER := 1;
    v_chunk NUMBER := 32000; -- max DBMS_OUTPUT chunk
BEGIN    
    -------------------- FCC_DM_CONN_CONF --------------------
    v_ddl := DBMS_METADATA.GET_DDL('TABLE', 'FCC_DM_CONN_CONF', '##SCHEMA_ USERNAME##');

    execute immediate v_ddl;    
   
    v_pos := 1;  -- Reset position

    -------------------- FCC_DM_EXEC_STATUS --------------------
    v_ddl := DBMS_METADATA.GET_DDL('TABLE', 'FCC_DM_EXEC_STATUS', '##SCHEMA_USERNAME##');
    execute immediate v_ddl;   

END;
/

Note:

If the BD_ATOMIC_SCHEMA and the ECM atomic schema are on the same database then replace the ##SCHEMA_USERNAME## placeholder with the BD_ATOMIC_SCHEMA.

Create the PKG_FCC_DM_FTP and PKG_FCC_DM package on the BD_ATOMIC_SCHEMA schema

Create the packages on the BD_ATOMIC_SCHEMA schema for transferring PKG_FCC_DM_FTP and then PKG_FCC_DM by using the following process:
  1. Provide grants to the production users via the respective SYS user.

    GRANT READ, WRITE ON DIRECTORY data_pump_dir TO <USER>;

  2. Log in as a database user in the source database.
  3. Navigate to DATA_PUMP_DIR.
  4. Replace the ##PACKAGE_NAME## placeholder with the appropriate package name (PKG_FCC_DM_FTP and then PKG_FCC_DM) and run the commands.
    expdp <user>/<pwd>@<db_service_name> \
      	directory=DATA_PUMP_DIR \
      	dumpfile=<dump_name>.dmp \
      	logfile=<log_name>.log \
      	content=METADATA_ONLY
    INCLUDE=PACKAGE:\"=\'##PACKAGE_NAME##\'\"
    
  5. Run the following command to import the packages by using the DMP and LOG files.
    impdp <TGT_SCHEMA>/<pwd>@<db_service_name> \
      	directory=DATA_PUMP_DIR \
    dumpfile=<dump_name>.dmp \
      	logfile=<log_name>.log \
      	remap_schema=SRC_SCHEMA:TGT_SCHEMA