Possible config entries for RDB archiving

This section describes the possible config entries in connection with archiving values and alerts from WinCC OA to a relational database. In order to make the RDB Archive Manager fully functional, you must configure entries in the sections [general] and [ValueArchiveRDB].

In addition, optional entries in the [ui] and [ctrl] sections can accelerate database queries.

Entries in the config file in the [general] section

Entry Type Default Range Description
useRDBArchive int 0 0|1
  • 0 = RDB Archive Manager not functional
  • 1 = RDB Archive Manager activated (RDB write/read)

Entries in the config file in the [ValueArchiveRDB] section

Optional entries in the config file in the [ui] and [ctrl] sections

Entry Type Default Range Description
queryRDBdirect bool 0 0|1

Indicates the mode of database write queries:

0 = Standard CTRL read functions (dpGet...()) via the WinCC OA Event Manager and the WinCC OA Data Manager.

1 = The standard CTRL read functions (dpGet...()) are redirected to the direct read functions in the Control add-on.

Note that the two required CTRL DLLs must also be loaded in order to be able to use the RDB read functions (see next line).

CAUTION:

If you use queryRDBdirect = 1 and query DPs using the event screen, enter the DPs or *.* for the query. Otherwise the event screen does not show the DPs.

CtrlDLL="CtrlRDBArchive"

CtrlDLL="CtrlRDBCompr"

Note:
To use queryRDBdirect inside a distributes system, the database schemata must be configured with additional database links (see Configuration of DB Links).

Entries in the [data] section of the config file

Entry Type Default Range Description
statFctInitInterval uint 7200 0 - 7200

Specifies (when using RDB) the time how long after an archive is finished, value changes of static datapoints that are dated back (can be detected via time stamp milliseconds = 0) are still sent to the archive when the archive is restarted. If an archive is e.g. finished at 14:30 , the Data Manager normally sends all last values with a time stamp after 14:30 to a new starting archive.

For statistical datapoints, however, all last values are sent with the time stamp after 12:30 (7200) and thus sent to the old archive (since statistical functions are calculated delayed and the last calculated value could otherwise get lost.).

Maximum value: 2 hours (7200) old values are sent to the old archive.

Possible error messages when using RDB archiving

WCCOArdb (97), 2005.02.16 01:06:24.322, PARAM,SEVERE, 0 , Could not find a valid Archive Set in DB for MCC:10_DS007_TT_6101.In.disvalue.value (Type: 207 Sys: 1 Dp: 65296 El: 6 Conf: 0 Det: 0 Attr: 0x0) 

In this case, the RDB manager does not find a valid archive group to which the data can be written.

WCCOArdb (97), 2005.02.16 01:43:05.911, SYS, INFO, 0, , No group found for , MCC:23_DS001_PT_6101.In.disvalue.value WCCOArdb (97), 2005.02.16 01:43:05.912, SYS, SEVERE, 0, , MCC:23_DS001_PT_6101.In.disvalue.value :Could not insert this one! I will try it again.

This is a subsequent error of the error above. The archive group is not known. Values cannot be added.

WCCOArdb (97), 2005.02.26 08:29:48.262, SYS, INFO, 0, , Couldn´t find a valid Archive Set in the DB for , > MCC:10_LVS121_COP01S01.In.state:_original.._value, createEventStatement

In this case, the RDB manager does not find a valid archive group and cannot read data from a group.

WCCOArdb (97), 2005.02.23 16:28:28.957, SYS, INFO, > 0, , DpName:

WCCOArdb (97), 2005.02.23 16:28:28.957, SYS, INFO, > 0, , DpName: MCC:10_PS004_PT_1201.In.disvalue.value, ElementID: 772305585921.000000, Time stamp: 2005.02.23 16:21:36.955, DB Error: ORA-02291:  ¥·´ÍêÕûÔ¼ÊøÌõ¼þ (WESTEAST.FK_TRENDLASTVAL_ELEMEN) - δÕÒµ½¸¸Ïî¹Ø¼ü×Ö, Check the values in the table Elements. Maybe the Datamanager did not send the DP Info to me.

This message describes that an entry is missing in the Element table. This could be the reason for the error above.

writeBlockfailed - Fehler -300 -400 etc. (z.B. Bulk data NOT written into database!, ErrorCode: -300)

Errors -300 -400 etc: In error case (not in case of unique constant violations), the return code is multiplied by 100. This means that if, for example, 3 rows could not be imported correctly, the return value is -300 and in case of 21, it is -2100. The error source always remains the same but the number of lines that are not OK changes with each bulk insert.

Debug and Report Flags

Debug Flag Description
RDB_CONN Outputs information about opening and closing a connection to the database.
RDB_INPUT Debug outputs are triggered for every received value.
Report Flag Description
CONNLIST Outputs information whether a connection to the database is opened or closed.