Professional Documents
Culture Documents
TN500 - Using Old and New Alarm Data From WWALMDB
TN500 - Using Old and New Alarm Data From WWALMDB
TN500 - Using Old and New Alarm Data From WWALMDB
Doc Id TN500
896
SUMMARY
This Tech Note explains how to use the old WWALMDB data in the new InTouch version.
Use this Tech Note when you need to use the old and the new Alarm data at the same time.
This usually happens after upgrading a system. For example, the InTouch/System Platform system has been upgraded but the WWALMDB
database may have been overlooked, or the data may not have been needed at the point of upgrade. Subsequently, you might require the old data
from the original WWALMDB, but the new WWALMDB has already been created.
There is no one-click method to merge the data into one single WWALMDB.
SITUATION
Application Versions
InTouch 10.1 or later
Important Information
Important: Review the following points before using this Tech Note.
Note: The old WWALMDB should be as small as possible, so that the resulting combined DB will not be too huge. This will also help to reduce the
time needed to restore the archived files. The bigger the WWALMDB size, the slower the query performance will be.
You can merge the old WWALMDB into a current WWALMDB using the following steps:
The Schneider Electric industrial software business and AVEVA have merged to trade as AVEVA Group plc, a UK listed company. The Schneider Electric and Life
Is On trademarks are owned by Schneider Electric and are being licensed to AVEVA by Schneider Electric.
In case the old server does not exist and you only have a backup of the old WWALMDB, then make sure you restore it to an existing SQL
Server as follows:
Create a new database called WWALMDBOLD and restore the old WWALMDB into this database using the Restore option inside SQL
Management Studio. Before starting the restore you have to go to the Options tab and rename the .mdf and .ldf files to
WWALMDBOLD.mdf and WWALMDBOLD_Log.ldf (Figure 3 below).
The Schneider Electric industrial software business and AVEVA have merged to trade as AVEVA Group plc, a UK listed company. The Schneider Electric and Life
Is On trademarks are owned by Schneider Electric and are being licensed to AVEVA by Schneider Electric.
The Schneider Electric industrial software business and AVEVA have merged to trade as AVEVA Group plc, a UK listed company. The Schneider Electric and Life
Is On trademarks are owned by Schneider Electric and are being licensed to AVEVA by Schneider Electric.
1. If possible, stop the Alarm DB logger Manager writing to the current WWALMDB. It is not a requirement but a good practice for the following
reasons.
a) If both the Alarm DB Logger and Restore utility write to same database at same time, the records might be out of sequence.
b) If the Recreate Tables option is checked on the restore utility's Selection tab, it is good practice to stop Alarm DB Logger.
2. Click Start -> Programs -> Wonderware -> InTouch and select Alarm DB Restore.
3. Click the Configuration tab and specify the current WWALMDB details (Figure 7 below).
4. Click Test Connection and verify it succeeds.
The Schneider Electric industrial software business and AVEVA have merged to trade as AVEVA Group plc, a UK listed company. The Schneider Electric and Life
Is On trademarks are owned by Schneider Electric and are being licensed to AVEVA by Schneider Electric.
For this example, Figure 6 (above) shows the timestamp of the Archive files as 9/13/2012 10:36 am so you would set the Restore files later
than (Date/Time) field to 9/13/2012 10:00:00 am (Figure 8 below).
Figure 8: Set the Archive Folder Path and Restore Files Timestamp
7. Click Restore and wait for the restore process to finish (Figure 9 below).
The Schneider Electric industrial software business and AVEVA have merged to trade as AVEVA Group plc, a UK listed company. The Schneider Electric and Life
Is On trademarks are owned by Schneider Electric and are being licensed to AVEVA by Schneider Electric.
The Restore process can take a few seconds to many hours to complete, depending on the size of the archived files.
For example, if the old WWALMDB is very large, merging the old and new alarm data (if any) could result in an even bigger database.
In terms of InTouch scripting and ActiveX configuration, they have to be updated to point to the old WWALMDB.
Instead of merging old alarm data into the new WWALMDB, create a coexistence for the old and new WWALMDBs:
If you detach the old WWALMDB, make sure to rename the WWALMDB to a different name in the original SQL Server before the
detachment.
Before renaming the DB, stop all processes, such as WindowViewer, AlarmDBLogger or other processes that lock the WWALMDB.
Rename the database to WWALMDBOLD or something similar.
Restore the WWALMDB to a separate database name OR attach the WWALMDBOLD.
Configure another AlarmDBViewer in InTouch to connect to the WWALMDBOLD.
1. Shut down all processes (AlarmDBLogger / WindowViewer / etc) that lock the WWALMDB.
2. In the old SQL Server Management Studio, rename the WWALMDB to WWALMDBOLD.
3. Right-click on the database and select Tasks/Detach (Figure 10 below).
The Schneider Electric industrial software business and AVEVA have merged to trade as AVEVA Group plc, a UK listed company. The Schneider Electric and Life
Is On trademarks are owned by Schneider Electric and are being licensed to AVEVA by Schneider Electric.
1. Before starting the Restore operation, go to the Options tab and rename the .mdf and .ldf files to WWALMDBOLD.mdf and
WWALMDBOLD_Log.ldf as shown in Figure 3 (above).
2. Create a new database called WWALMDBOLD and restore the old WWALMDB into this database using the Restore option inside SQL
Management Studio.
The Schneider Electric industrial software business and AVEVA have merged to trade as AVEVA Group plc, a UK listed company. The Schneider Electric and Life
Is On trademarks are owned by Schneider Electric and are being licensed to AVEVA by Schneider Electric.