Using an Rdbms for NiagaraAX alarm database

This section describes how to use an RDBMS (SQL Server, Oracle, DB2, or, with NiagaraAX-3.4, MySQL) as the "alarm database" for a NiagaraAX station. This feature has been added (and requires) NiagaraAX-3.2 or higher.

 
NOTE: Use of an RDBMS to store NiagaraAX alarm records is different than exporting histories to an RDBMS. Exported histories also still reside in the station's default history database (^\history\segN\(etc)), whereas, configuring for RDBMS storage of alarms replaces use of the station's default alarm database (^\alarm\alarm.adb).
 

    Setup the RdbAlarmService

     
    NOTE: This procedure describes how to setup the RdbAlarmService using NiagaraAX-3.4. In NiagaraAX-3.2 and 3.3, individual database-specific alarmService components are available in the alarmRdb module and should be copied to the Services folder in Step 2, below.
     

    To setup the RdbAlarmService, do the following:

  1. Install and configure the RdbmsNetwork driver and test the connection to your desired database, as described in Installing the RdbmsNetwork driver and rdbDatabase device.
  2. Open the alarmRdb palette and copy the rdbAlarmService component into the station's Services Graphic folder.
     
    NOTE: If you need to retain child components of any previous (standard) AlarmService component (AlarmClasses, Recipients), cut them from the old AlarmService component and paste them into the new RdbAlarmService component before deleting the original AlarmService.
     
  3. Delete the old (standard) AlarmService component from the station's Services Graphic folder.
     
    NOTE: Existing alarms are not migrated to the new data store.
     
  4. Right-click on the rdbAlarmService in the nav tree and select View Property Sheet. The rdbAlarmService property sheet view displays.
  5. In the rdbAlarmService property sheet, select the desired rdbms database device type from the Driver option list.
     
    NOTE: Only those Rdbms database devices that are located under the station’s RdbmsNetwork node appear as options in the list.
     
  6. Click the Save button at the bottom of the view.

    Once you complete this final step, the new RdbAlarmService is available for use.