Skip Headers
Oracle® Argus Mart Installation and Administration Guide
Release 7.0.3
E48402-01
  Go To Table Of Contents
Contents
Go To Index
Index

Previous
Previous
 
Next
Next
 

8 Extracting, Transforming, and Loading Data

This chapter describes the steps required to run the Extract, Transform, and Load (ETL) process using the Oracle Data Integrator (ODI) Studio and ODI Console.

The following table illustrates some of the terms along with the name of the Load Plan that has been used to refer the different types of ETL in the later sections of this chapter:

Table 8-1 Describing ETL Types

Type of ETL Description Name of the Load Plan

Initial ETL

The Initial ETL process involves full load of data from Argus Safety and DLP to Argus Mart. It can be described as the first ETL run that is executed for a fresh setup.

LP_INI_AM

Incremental ETL

The Incremental ETL brings changed case data, from last ETL run till start of current ETL run, from Argus Safety and DLP. The LM/CFG data is reloaded only if any change in record(s) is identified. Dictionary data is always reloaded in case of an Incremental ETL.

If a new enterprise is added, the Incremental ETL loads complete data of the new enterprise along with delta data of other enterprises.

LP_INC_AM


The following figure depicts your progress in the complete installation process:

Figure 8-1 Installation Progress: Extracting, Transforming, and Loading Data

Surrounding text describes Figure 8-1 .

This chapter comprises the following sub-sections:

8.1 Managing Initial ETL Process: ODI Studio

This section describes the steps required to manage the ETL process using the Database Integrator Studio.

This section comprises the following sub-sections:

8.1.1 Running the ETL

To run the Initial ETL, execute the following steps:

  1. Open the ODI Studio, and click Connect to Repository. This displays the Oracle Data Integrator Login window, as depicted in the following figure:

    Figure 8-2 Oracle Data Integrator Login Window

    Surrounding text describes Figure 8-2 .
  2. In the Oracle Data Integrator Login window:

    1. Select the ODI Work Repository name from the Login Name drop-down list.

    2. Enter the name of the ODI user in the User field.

    3. Enter the password for the ODI user in the Password field. The password for the SUPERVISOR user was specified by you in the Creating Master Repository section while configuring the ODI settings.

    4. Click OK. This displays the Oracle Data Integrator Screen.

  3. Select the Operator tab in the left pane.

  4. Expand the Load Plans and Scenarios section, as highlighted in the following figure:

    Figure 8-3 Load Plans and Scenarios

    Surrounding text describes Figure 8-3 .
  5. Expand SCN_LP_ARGUSMART703 and scroll-down to LP_INI_AM. This option in this section represents the load plan for the initial ETL process for Argus Mart.

    Figure 8-4 Load Plan for Initial ETL

    Surrounding text describes Figure 8-4 .
  6. Right-click the LP_INI_AM option. This displays a menu, as shown in the following figure:

    Figure 8-5 Executing the Initial ETL

    Surrounding text describes Figure 8-5 .
  7. Click Execute. This displays the Start Load Plan window, as shown in the following figure:

    Figure 8-6 Start Load Plan Window

    Surrounding text describes Figure 8-6 .
  8. In the Start Load Plan window:

    1. Select CTX_ARGUSMART from the Context drop-down list.

    2. Select LA_AM from the Logical Agent drop-down list.

    3. Select the desired log level from the Log Level drop-down list.

    4. Click OK. This displays the Information dialog box with the Load Plan Started confirmation message, as shown in the following figure:

      Figure 8-7 Load Plan Started Confirmation Message

      Surrounding text describes Figure 8-7 .
  9. Click OK.

    You can verify the status of the ETL process by navigating to the Load Plan Executions section and expanding the Load Plan folder. You can view the status of the Load Plan in Green color with tilted s, which signifies that the ETL session is in progress, as highlighted in the following figure:

    Figure 8-8 Status of the Load Plan

    Surrounding text describes Figure 8-8 .

8.1.2 Stopping the ETL

To stop the initial ETL, execute the following steps:

  1. Right-click the Load Plan, which you want to stop, in the Load Plan folder of the Load Plan Executions section. This displays a menu, as shown in the following figure:

    Figure 8-9 Stopping the Initial ETL

    Surrounding text describes Figure 8-9 .
  2. Select Stop Normal. This displays the Stop Load Plan dialog box, as depicted in the following figure:

    Figure 8-10 Selecting the Physical Agent

    Surrounding text describes Figure 8-10 .
  3. Select PA_AM from the Physical Agent drop-down list.

  4. Click OK. This stops the execution of the Load Plan.

    You can verify the status of the ETL process by navigating to the Load Plan Executions section and expanding the Load Plan folder. You can view the status of the Load Plan in Red color with the X symbol, which signifies that the ETL session is not in progress, as highlighted in the following figure:

    Figure 8-11 Stopped Initial ETL Session

    Surrounding text describes Figure 8-11 .

    Note:

    You must verify in Argus Mart database if the ETL session has been successfully ended after this step.

8.1.3 Restarting the ETL

Restarting the Initial ETL process enables you to start the ETL process from the last execution step where it was stopped or failed.

To restart the Initial ETL, execute the following steps:

  1. Right-click the Load Plan, which you want to restart, in the Load Plan folder of the Load Plan Executions section. This displays a menu, as shown in the following figure:

    Figure 8-12 Restarting the Initial ETL

    Surrounding text describes Figure 8-12 .
  2. Click Restart. This displays the Restart Load Plan dialog box, as shown in the following figure:

    Figure 8-13 Restart Load Plan Dialog Box

    Surrounding text describes Figure 8-13 .
  3. Select PA_AM from the Physical Agent drop-down list.

  4. Select the required log level from the Log Level drop-down list.

  5. Click OK. This displays the Information dialog box with the Load Plan restarted message, as depicted in the following figure:

    Figure 8-14 Loan Plan restarted Confirmation Message

    Surrounding text describes Figure 8-14 .
  6. Click OK.

    This adds another Load Plan, with the same name as that of the stopped ETL, in the Load Plan folder of the Load Plan Executions section. However, this instance of the ETL Process is in Green color with a tilted S, which signifies that the ETL is in progress, as highlighted in the following figure:

    Figure 8-15 Restarted Load Plan

    Surrounding text describes Figure 8-15 .

    Once the ETL process is complete, the Load Plan is displayed in Green color with a completed symbol, as highlighted in the following figure:

    Figure 8-16 Completed Load Plan

    Surrounding text describes Figure 8-16 .

8.1.4 Processing a Failed ETL

If an ETL process fails, you have the option of continuing the process from the failed step or executing it again from the beginning of ETL.

This section explains the steps to continue a failed ETL from the failed step and to execute it again from the beginning of ETL.

This section comprises the following sub-sections:

8.1.4.1 Continuing the Failed Initial ETL

The process to continue the failed Initial ETL from the failed step is exactly the same as that of the process of restarting the Initial ETL after stopping it.

See the Restarting the ETL section for the step-by-step procedure to continue the failed Initial ETL from the failed step.

8.1.4.2 Restarting the Failed Initial ETL

The process to restart the failed Initial ETL from the beginning is exactly the same as that of the process of running the Initial ETL.

However, before restarting the ETL you must log on to the Oracle SQL Developer using the Argus ETL User credentials and execute the following statements:

EXEC pkg_sm_stage_util.p_set_cmn_profile_value ('DATABASE', 'ODI_ETL_STATUS', '0');EXEC pkg_sm_stage_util.p_set_cmn_profile_value ('DATABASE', 'ETL_SM_ITERATION_NUMBER', NULL);

COMMIT;

To verify the successful execution of these statements, you can execute the following Select statements:

  • SELECT * FROM rm_cmn_profile_global WHERE KEY = 'ODI_ETL_STATUS';

    The entry for the Value column must be 0 after executing this statement, as depicted in the following figure:

    Figure 8-17 Select Statement 1 to Verify Successful Execution

    Surrounding text describes Figure 8-17 .
  • SELECT * FROM rm_cmn_profile_global WHERE KEY = 'ETL_SM_ITERATION_NUMBER';

    The entry for the Value column must be blank after executing this statement, as depicted in the following figure:

    Figure 8-18 Select Statement 2 to Verify Successful Execution

    Surrounding text describes Figure 8-18 .

See the Running the ETL section for the step-by-step procedure to restart the failed Initial ETL from the beginning of ETL.

8.2 Monitoring Initial ETL Process: ODI Studio

This section describes the steps required to monitor the ETL process using the Database Integrator Studio.

This section comprises the following sub-sections:

8.2.1 Viewing the Steps of Load Plan

Before executing the Initial ETL, you can view the steps of the Load Plan for the Initial and the Incremental ETL.

To view the Load Plan steps, execute the following steps:

  1. Open the Oracle Data Integrator Studio and click Connect To Repository.

  2. Log on to the ODI Work Repository using the ODI User credentials.

  3. Select the Designer tab and expand the Load Plans and Scenarios section, as shown in the following figure:

    Figure 8-19 Navigating to the LP_INC_AM Load Plan

    Surrounding text describes Figure 8-19 .
  4. Double-click the LP_INC_AM load plan.

  5. Select the Steps option in the right pane. This displays all the steps of the Load Plan, as depicted in the following figure:

    Figure 8-20 Viewing Steps of the Load Plan

    Surrounding text describes Figure 8-20 .

Similarly, you can also view the steps for the Incremental Load Plan by double-clicking the LP_INC_AM Load Plan from the Load Plans and Scenarios section of the Designer tab.

8.2.2 Monitoring the ETL

To monitor the progress of the Initial ETL after executing the LP_INI_AM Load Plan, execute the following steps:

  1. Select the Operator tab and expand the Load Plan folder in the Load Plan Executions section.

  2. Expand the LP_INI_AM load plan to view the ETL process in progress. You can view a tilted s in Green color, which signifies that the process is running properly, as depicted in the following figure:

    Figure 8-21 Viewing the Status of the ETL Process

    Surrounding text describes Figure 8-21 .
  3. Double-click the ETL session, highlighted in the figure above, and select Steps in the right pane. This displays the list of steps for the Load Plan. It also displays the steps that have been completed successfully, as depicted in the following figure:

    Figure 8-22 Viewing Completed Steps in the ETL Process

    Surrounding text describes Figure 8-22 .

8.2.3 Debugging the Failed ETL

You can view the step where the ETL process failed and also view the error message related to the ETL process failure, using the following procedure:

  1. In the Operator tab, expand the Load Plan folder in the Load Plan Executions section to view the current status of the ETL process, as shown in the following figure:

    Figure 8-23 Viewing the Failed ETL Process

    Surrounding text describes Figure 8-23 .

    You can view the status of the Load Plan in Red color with the X symbol, which signifies that the ETL session is not in progress.

  2. Double-click the Load Plan and select Steps. This displays the list of steps for the Load Plan in the right pane. The step because of which the ETL process has failed, is highlighted in Red color with the X symbol, as highlighted in the following figure:

    Figure 8-24 Viewing the Failed Step for the ETL Process

    Surrounding text describes Figure 8-24 .

    You can move the mouse cursor over the error message to view the complete message, as shown in the following figure:

    Figure 8-25 Viewing the Error Message

    Surrounding text describes Figure 8-25 .

    You can also select Execution for more information about the error message, as depicted in the following figure:

    Figure 8-26 Viewing the Error Message using the Execution Section

    Surrounding text describes Figure 8-26 .

    You can also log on to the Oracle SQL Developer using the Argus ETL user credentials and execute the queries to view the error message, as shown in the following figure:

    Figure 8-27 Viewing Error Message using SQL Developer

    Surrounding text describes Figure 8-27 .

    The following are the queries that you can use to view the location of the error:

    1. SELECT * FROM etl_stage_log ORDER BY id DESC;

      If you are not able to view any error message after executing this query, you can execute the query mentioned in point 2.

    2. SELECT * FROM etl_mart_log ORDER BY id DESC;

8.2.4 Monitoring the Restarted ETL (Resume)

Once you have restarted a stopped ETL process, you can view the status of the process using the following procedure:

  1. In the Operator tab, expand the Load Plan folder in the Load Plan Executions section to view the current status of the ETL process, as shown in the following figure:

    Figure 8-28 Viewing the Restarted ETL Process Status

    Surrounding text describes Figure 8-28 .

    This restarted ETL Process is in Green color with a tilted s, which signifies that the ETL is in progress again.

    You can view the status of the remaining steps in the process by double-clicking the Load Plan in the LP_INI_AM folder and selecting Steps, as depicted in the following figure:

    Figure 8-29 Viewing the Steps of the Restarted ETL

    Surrounding text describes Figure 8-29 .

8.3 Managing Initial ETL Process: ODI Console

This section describes the steps required to manage the ETL process using the Database Integrator Console.

This section comprises the following sub-sections:

8.3.1 Running the ETL

To run the Initial ETL, execute the following steps:

  1. Open the ODI Console. This displays the Oracle Data Integrator Console Sign In window, as depicted in the following figure:

    Figure 8-30 Oracle Data Integrator Sign In Window

    Surrounding text describes Figure 8-30 .
  2. In the Oracle Data Integrator Sign In window:

    1. Select the ODI Work Repository name from the Repository drop-down list.

    2. Enter the name of the ODI user in the User Id field.

    3. Enter the password for the ODI user in the Password field.

    4. Click Sign In. This displays the Oracle Data Integrator Console Screen, as shown in the following figure:

      Figure 8-31 Oracle Data Integrator Console Screen

      Surrounding text describes Figure 8-31 .
  3. Select the Management tab in the left pane.

  4. Expand the Runtime folder and navigate to Runtime > Scenarios/Load Plans > LP_INI_AM, as highlighted in the following figure:

    Figure 8-32 Scenarios/Load Plans

    Surrounding text describes Figure 8-32 .

    The LP_INI_AM option in this section represents the load plan for the initial ETL process for Argus Mart.

  5. Click Execute, as highlighted in the following figure:

    Figure 8-33 Executing the Initial ETL

    Surrounding text describes Figure 8-33 .

    This displays the Execute Load Plan window, as shown in the following figure:

    Figure 8-34 Execute Load Plan Window

    Surrounding text describes Figure 8-34 .
  6. In the Execute Load Plan window:

    1. Select LA_AM from the Logical Agent drop-down list.

    2. Select CTX_ARGUSMART from the Context drop-down list.

    3. Select the desired log level from the Log Level drop-down list.

    4. Click Execute. This displays the Information dialog box with the Load Plan Execution submitted successfully confirmation message, as shown in the following figure:

      Figure 8-35 Load Plan Started Confirmation Message

      Surrounding text describes Figure 8-35 .
  7. Click OK.

    You can verify the status of the ETL process by expanding the Load Plan Executions folder in the Sessions/Load Plan Executions section. You can view the status of the Load Plan in Green color with tilted s, which signifies that the ETL session is in progress, as highlighted in the following figure:

    Figure 8-36 Status of the Load Plan

    Surrounding text describes Figure 8-36 .

8.3.2 Stopping the ETL

To stop the initial ETL, execute the following steps:

  1. Select the Load Plan, which you want to stop, by expanding the Load Plan Executions folder of the Sessions/Load Plan Executions section and click Stop, as shown in the following figure:

    Figure 8-37 Stopping the Initial ETL

    Surrounding text describes Figure 8-37 .

    This displays the Stop Load Plan Execution dialog box, as depicted in the following figure:

    Figure 8-38 Stop Load Plan Execution Dialog Box

    Surrounding text describes Figure 8-38 .
  2. Select Normal from the Stop Type drop-down list.

  3. Select OracleDIAgent from the Physical Agent drop-down list.

  4. Click Stop. This displays the Information dialog box with the Load Plan was Stopped Successfully confirmation message, as depicted in the following figure:

    Figure 8-39 Load Plan Stopped Confirmation Message

    Surrounding text describes Figure 8-39 .
  5. Click OK.

    You can verify the status of the ETL process by navigating to the Load Plan Executions folder in the Sessions/Load Plan Executions section. You can view the status of the Load Plan in Red color with the X symbol, which signifies that the ETL session is not in progress, as highlighted in the following figure:

    Figure 8-40 Stopped Initial ETL Session

    Surrounding text describes Figure 8-40 .

    Note:

    You must verify in Argus Mart database if the ETL session has been successfully ended after this step.

8.3.3 Restarting the ETL

Restarting the Initial ETL process enables you to start the ETL process from the last execution step where it was stopped or failed.

To restart the Initial ETL, execute the following steps:

  1. Select the Load Plan, which you want to restart, in the Load Plan Executions folder of the Sessions/Load Plan Executions section and click Restart, as shown in the following figure:

    Figure 8-41 Restarting the Initial ETL

    Surrounding text describes Figure 8-41 .

    This displays the Restart Load Plan Execution dialog box, as depicted in the following figure:

    Figure 8-42 Restart Load Plan Execution Dialog Box

    Surrounding text describes Figure 8-42 .
  2. Select OracleDIAgent from the Physical Agent drop-down list.

  3. Select the required log level from the Log Level drop-down list.

  4. Click Restart. This displays the Information dialog box with the Load Plan restarted message, as depicted in the following figure:

    Figure 8-43 Loan Plan restarted Confirmation Message

    Surrounding text describes Figure 8-43 .
  5. Click OK.

    This adds another Load Plan, with the same name as that of the stopped ETL, in the Load Plan Executions folder of the Sessions/Load Plan Executions section. However, this instance of the Load plan is in Green color with a tilted S, which signifies that the ETL is in progress.

8.3.4 Processing a Failed ETL

If an ETL process fails, you have the option of continuing the process from the failed step or executing it again from the beginning of ETL.

This section explains the steps to continue a failed ETL from the failed step and to execute it again from the beginning of ETL.

This section comprises the following sub-sections:

8.3.4.1 Continuing the Failed Initial ETL

The process to continue the failed Initial ETL from the failed step is exactly the same as that of the process of restarting the Initial ETL after stopping it.

See the Restarting the ETL section for the step-by-step procedure to continue the failed Initial ETL from the failed step.

8.3.4.2 Restarting the Failed Initial ETL

The process to restart the failed Initial ETL from the beginning is exactly the same as that of the process of running the Initial ETL.

However, you need to execute certain steps before restarting the Failed Initial ETL, refer to the Restarting the Failed Initial ETL section for the complete details.

See the Running the ETL section for the step-by-step procedure to restart the failed Initial ETL from the beginning of ETL.

8.4 Monitoring Initial ETL Process: ODI Console

This section describes the steps required to monitor the ETL process using the Database Integrator Console.

This section comprises the following sub-sections:

8.4.1 Viewing the Steps of Load Plan

Before executing the Initial ETL, you can view the steps of the Load Plan for the Initial and the Incremental ETL.

To view the steps of Load Plan, execute the following steps:

  1. Log on the Oracle Data Integrator Console and select the Management tab.

  2. Navigate to Runtime > Scenarios/Load Plans > Load Plans.

  3. Right-click LP_INI_AM (Load Plan for Initial ETL) or LP_INC_AM (Load Plan for Incremental ETL) and select View, as shown in the following figure:

    Figure 8-44 Navigating to the Load Plans

    Surrounding text describes Figure 8-44 .

    This displays the steps for the Load Plan in the Relationships section in the right pane, as depicted in the following figure:

    Figure 8-45 Viewing the Steps of the Load Plan

    Surrounding text describes Figure 8-45 .

8.4.2 Monitoring the ETL

To monitor the progress of the initial ETL after executing the LP_INI_AM Load Plan, execute the following steps:

  1. Select the Management tab and navigate to Runtime > Sessions/Load Plan Executions > Load Plan Executions.

    You can view a tilted s in Green color, which signifies that the ETL process is running properly, as depicted in the following figure:

    Figure 8-46 Initial ETL in Progress

    Surrounding text describes Figure 8-46 .
  2. Double-click the session to view the list of steps in the Relationships section in the right pane. It also displays the list of steps that have been completed, as depicted in the following figure:

    Figure 8-47 Viewing Completed Steps in the ETL Process

    Surrounding text describes Figure 8-47 .

8.4.3 Debugging the Failed ETL

You can view the step where the ETL process failed and also view the error message related to the ETL process failure, using the following procedure:

  1. In the Management tab, navigate to Runtime > Sessions/Load Plan Executions > Load Plan Executions, to view the current status of the ETL process, as shown in the following figure:

    Figure 8-48 Viewing the Failed ETL Process

    Surrounding text describes Figure 8-48 .

    You can view the status of the Load Plan in Red color with the X symbol, which signifies that the ETL session is not in progress.

  2. Double-click the Load Plan. This displays the list of steps for the Load Plan in the Relationship section in the right pane. The step because of which the ETL process has failed, is highlighted in Red color with the X symbol, as highlighted in the following figure:

    Figure 8-49 Viewing the Failed Step for the ETL Process

    Surrounding text describes Figure 8-49 .

    You can move the mouse cursor over the error message to view the complete message, as shown in the following figure:

    Figure 8-50 Viewing the Error Message

    Surrounding text describes Figure 8-50 .

    You can also navigate to Runtime > Sessions/Load Plan Executions > Sessions, right-click the stopped session, highlighted in Red color with the ! symbol, and select View, as depicted in the following figure:

    Figure 8-51 Viewing the Stopped Session

    Surrounding text describes Figure 8-51 .

    This displays the error details in the right pane, as depicted in the following figure:

    Figure 8-52 Viewing the Error Details

    Surrounding text describes Figure 8-52 .

    You can also log on to the Oracle SQL Developer using the Argus ETL user credentials and execute the queries to view the error message, as shown in the following figure:

    Figure 8-53 Viewing Error Message using SQL Developer

    Surrounding text describes Figure 8-53 .

    The following are the queries that you can use to view the location of the error:

    1. SELECT * FROM etl_stage_log ORDER BY id DESC;

      If you are not able to view any error message after executing this query, you can execute the query mentioned in point 2.

    2. SELECT * FROM etl_mart_log ORDER BY id DESC;

8.4.4 Monitoring the Restarted ETL (Resume)

Once you have restarted a stopped ETL process, you can view the status of the process using the following procedure:

  1. In the Management tab, navigate to Runtime > Sessions/Load Plan Executions > Load Plan Executions section, to view the current status of the ETL process, as shown in the following figure:

    Figure 8-54 Viewing the Restarted ETL Process Status

    Surrounding text describes Figure 8-54 .

    This restarted ETL Process is in Green color with a tilted s, which signifies that the ETL is in progress again.

    You can view the status of the steps completed before restarting the ETL and the steps after restarting the ETL, by double-clicking the session in progress.

    The steps display in the Relationship section in the right pane, as depicted in the following figure:

    Figure 8-55 Viewing the Steps of the Restarted ETL

    Surrounding text describes Figure 8-55 .

8.5 Running the Incremental ETL

For step-by-step information related to the Incremental ETL tasks such as Running, Stopping, and Restarting the Incremental ETL through: