Importing history data from an Rdbms database

Each RDBMS device (MySQL, Oracle, and SqlServer) has an associated history device extension, which you can configure and use to create one or more import descriptors. Using an import descriptor you can pull data that did not originate in your station into your station for modeling as a Niagara history. In the following steps, the acronym RDB refers to any of these relational database types.

  1. Expand Drivers > RdbmsNetwork, expand your RDB, right-click the Histories node in the Nav tree and click Views > Rdbms History Import Manager.
    The Rdbms History Import Manager view opens.
  2. To create an import descriptor, click the New button.
    As an alternative to the New button and window, you can click the Discover button and select a discovered RDB table that you want to import and model as a Niagara history.
    If you clicked New, the New window opens.
  3. Select Rdb History Import (the default) from the Type to Add drop-down list and use the Number to Add property to enter the number of import descriptors to add and click OK.
    You need to add one unique import descriptor for each RDB table that contains the data to import.
    A second New window opens.

    The table at the top of the window should be ordered by timestamp as are other system histories.

    In addition to Enabled set to true (the default), you need to configure at least these properties and click OK:

    • Name provides a name for the descriptor.

    • History Id defines the history device name and history name.

    • Execution Time configures when to perform the import.

    If you discover these descriptors, rather than create them individually, the system populates the Timestamp Column, Value Column and Status Column properties, otherwise, you can enter column values.

    The new history import descriptor(s) appear in the Database (lower) pane and each import descriptor appears under the History node in the Nav tree.

  4. To initiate an import action, do one of the following:
    • Select one or more history descriptors in the database pane and click the Archive button.
    • Right-click on a single history descriptor in the database pane and click Actions > Execute.
    • Do nothing. Based on the Daily or Interval settings, as set in the New or Edit windows, the import occurs as scheduled.
    The Database pane displays the status and time of the last import action in the Status and Last Success columns, respectively.
To view the history data you imported, use a history report (expand History, expand the station and double-click a history name), PX view or chart.