Oracle by Example brandingLoading Data to an Essbase Target Using Data Sync

section 0Before You Begin

This 15-minute tutorial shows you how to load data to an Oracle Analytics Cloud - Essbase target using Data Sync. You also import a spreadsheet file to create an application, cube, and rules file in Oracle Analytics Cloud - Essbase.

Background

To use Data Sync to load data to an Essbase target, you must create an application and cube in Oracle Analytics Cloud - Essbase. In this tutorial, you import a spreadsheet file and create the required application and cube, and then you use Data Sync to load data to the Essbase application and cube.

What Do You Need?

  • Access to Oracle Analytics Cloud - Essbase
  • Download and install Data Sync V2.4
  • Before installing Data Sync, you must install Java Development Kit (JDK) V1.8.x.

  • Download the following files to your computer:
  • You must have an existing application and cube to use for this tutorial in Essbase.
  • You can use the Creating an Oracle Analytics Cloud Essbase Application and Cube tutorial to prepare your Essbase environment. This tutorial uses the sample_basic_dynamic.xlsx file to create the application and cube.


section 1Create a Data Sync Project

Before performing this step, you must configure Data Sync. You should log on to verify your access to Essbase. Resolve any configuration and sign on issues before beginning this tutorial.

  1. From the directory where you installed Data Sync, run datasync.bat on Windows or datasync.sh on Linux/UNIX.
  2. In Enter Password, enter your password, click Remember password, and then click Login.
  3. Click Create a New Project, enter a name for the project, and then click OK.
  4. In Data Sync, click Connections, and click New.
  5. In New Connection, in Name, enter Essbase. From the Type list, select Essbase, and then click OK.
  6. In Edit, enter your User name and Password for your Oracle Analytics Cloud - Essbase instance. In the URL field, click the check Edit icon.
  7. In URL, enter the URL for your Oracle Analytics Cloud - Essbase instance, for example, http://myEssbasehost.com:9000/, and then click OK.
    Target Connection for Essbase
    Description of the illustration target_connection_essbase.jpg
  8. Click Test Connection.
  9. In Connection Successful, click OK.
  10. In the Edit tab, click Save.
  11. In Sources/Target, click New.
  12. In New Connection, in Name, enter File Source. From the Type list, select File Source, and then click OK.
  13. On the Edit tab, click Save.
    File Source Connection for Essbase
    Description of the illustration file_source_connection.jpg

section 2Select the Dimension File Source

  1. Click the Project tab.
  2. On the Source Data tab, click Data From Objects. In the Select Source list, click File Source, and then click OK.
  3. In New Source File, in the File Location field, click the check Find File icon, navigate to and select the dim_market.txt file, and click Next.
  4. In Import Options, remove the check from First line contains headers check box, and then click Next.
  5. In Configure Target, in the Create new field, enter Market_Dim as the target name. From the Choose output format list, select Essbase, and click Next.
  6. In Select New Source File: Map Columns, click OK.
    Market Dimensions File Source Added to the Project
    Description of the illustration files_source_market.jpg

section 3Specify Attributes for the MARKET_DIM Target

In this section, you specify the attributes of the Essbase application and cube in Data Sync. You can view the values for these attributes on the Outline page for the application in the Essbase data target. You can find the rules file name on the Scripts page for the application in Essbase.

  1. Click Target Objects. In the Target Objects tab, click Attributes.
  2. In the Application Name row, double-click the Value column. In Value, enter the name of your Essbase application.
  3. In the Cube Name row, double-click the Value column. In Value, enter the name of your Essbase cube.
  4. In the Object Name row, double-click the Value column. In Value, enter the name of the Essbase object.

    If you used the sample_basic_dynamic.xlsx file to create the application and cube, the Object Name is Market.

  5. In the Load Type (Dimension Build/Load Data) row, double-click the Value column. In Value, enter Dimension Build.
  6. In the Rules File Name row, double-click the Value column. In Value, enter the name of the Essbase rules file.

    If you used the sample_basic_dynamic.xlsx file to create the application and cube, the Rules File Name is Dim_Market.

  7. In Target Object Attributes, click Save.
    Attributes for the Market Dimensions Target
    Description of the illustration market_dim_attributes.jpg

section 4Select the Measures File Source

  1. Click the Source Data tab, and click Data From Object(s). From the Select Source list, choose File Source, and then click OK.
  2. In New Source File, in the File Location field, click the check Find File icon, navigate to and select the data_basic.txt file, and click Next.
  3. In Import Options, remove the check from First line contains headers check box, and then click Next.
  4. In Configure Target, in the Create new, enter Data_Measure as the target name. From the Choose output format list, select Essbase, and click Next.
  5. In Select New Source File: Map Columns, click OK.
    Measures File Source Added to the Project
    Description of the illustration source_file_measures.jpg

section 5Specify Attributes for the DATA_MEASURES Target

  1. Click Target Objects. In the Target Objects tab, click Attributes.
  2. In the Application Name row, double-click the Value column. In Value, enter the name of your Essbase application.
  3. In the Cube Name row, double-click the Value column. In Value, enter the name of your Essbase cube.
  4. In the Object Name row, double-click the Value column. In Value, enter the name of the Essbase object.

    If you used the sample_basic_dynamic.xlsx file to create the application and cube, the Object Name is Measures.

  5. In the Load Type (Dimension Build/Load Data) row, double-click the Value column. In Value, enter Dimension Build.
  6. In the Rules File Name row, double-click the Value column. In Value, enter the name of the Essbase rules file.

    If you used the sample_basic_dynamic.xlsx file to create the application and cube, the Rules File Name is Dim_Measures.

  7. In Target Object Attributes, click Save.
    Essbase Attributes for Measures
    Description of the illustration dim_measures_attributes.jpg

section 6Define Groups for Loading Data

In this section, you define the order for loading the file source data defined in the project. You must load dimension tables serially before loading the measures (facts data). In Data Sync, create one group per cube. You can create a group using your preferred naming conventions.

  1. Click the Project Summary tab. In the Data_Measures row, click the Group Name column, and enter MyGroup. In the Market_Dim row, click the Group Name column, and enter MyGroup.
  2. In the Market_Dim row, in the Group Order column, enter 1, and then in the Edit tab, click Save.
  3. In the Data_Measures row, in the Group Order column, enter 2, and then in the Edit tab, click Save.
    Project Summary Data Load Group Order
    Description of the illustration mygroup_order.jpg

section 7Run the Load Data Job

  1. Click Run Job.
  2. In Do you want to run the job "your job name"?, click OK.
  3. In Request successfully submitted, click OK.
  4. Click the Jobs tab. Click Current Jobs to see the data loading progress.
  5. Click History. Click Tasks to review the job.
    Job History Task Details
    Description of the illustration history_tasks_details.jpg

more informationWant to Learn More?