Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

TimeSeries reader for a FEWS Master Controller database. The identifier for this reader is "FewsdatabseFewsdatabase". This import allows a FSS or stand alone system to import data from another FEWS master controller database. The import reads the database directly and does NOT communicate with the MC. The following limitations apply:

  1. It can only handle external historical and external forecasting data
  2. It does not use the timestep as a key. As such the behavior is undefined if the remote database has the same series (location/parameter) with different timesteps.
  3. The relativeviewPeriod relativeViewPeriod element in the general section is required although the schema (see below) indicates it is optional.

...

Syntax for SQL Server:

Code Block
xml
xml

<jdbcDriverClass>net.sourceforge.jtds.jdbc.Driver</jdbcDriverClass>
<jdbcConnectionString>jdbc:jtds:sqlserver://MYSERVER:1433;databaseName=MYNAME</jdbcConnectionString>
<user>fews</user>
<password>123</password>

Syntax for oracle:

Code Block
xml
xml

<jdbcDriverClass>oracle.jdbc.driver.OracleDriver</jdbcDriverClass> 
<jdbcConnectionString>jdbc:oracle:thin:@ fewsdbsvr04:1521:eami00</jdbcConnectionString> 
<user>fews</user> 
<password>123</password> 

Syntax for localDatastore, that should be placed into an import directory. Notice that jdbcDriverClass etc are not required, but import folder is required now. The system automatically detects if the type of the localdatastore (Acces MSAccess, Derby or firebird)

Code Block
xml
xml

<importType>Fewsdatabase</importType>
<folder>$IMPORT_FOLDER_FEWS$</folder>
<failedFolder>$IMPORT_FAILED_FOLDER_FEWS$</failedFolder>
<backupFolder>$IMPORT_BACKUP_FOLDER_FEWS$</backupFolder>