Creating a New HDB and Long Term Storage
- ▷
- SQL Server or SQL Server Express is selected.
- ▷
- You have SQL Server administrator rights to create a History Database.
- ▷
- The destination folder where the HDB data and log files will be stored, typically GMSDatabases, is not compressed.
- ▷
- For the hard disk sector-size support boundaries in the SQL server, see http://support.microsoft.com/kb/926930/[language code] from Microsoft.
- 1.
- In the SMC tree, select History Infrastructure > [SQL Server Name].
- 3.
- Open the Settings expander and enter data into the following fields:
- -
- HDB name: Enter a name for the HDB (do not use special characters, see Settings)
- -
- Data size: Set the size of the HDB:
‒ Maximum 10 GB for SQL Server Express
‒ Maximum 250 GB for SQL Server
(See the NOTE following this procedure on database size).
- -
- Recovery model: Select the backup model (see Recovery Models).
- -
- Administration model: Select the option Automatic or Manual.
NOTE: If you select Manual mode, the GMS HDB Service is switched off. The administration of the History Database is controlled (for example, backups or size of the history database) by the customer’s IT department.
- 4.
- Select the Files and Paths expander (do not use special characters - see Files and Paths) and enter the following data:
- -
- Data file: C:\[MyHDB]\HDB.mdf
- -
- Log file: C:\[MyLog]\HDB.ldf
- -
- Backup file: C:\[MyBak]\HDB.bak
- -
- Recovery log path: C:\[MyRevoveryPath]
NOTE: If you do not use the standard paths in the Data file, Log file, Backup file, and Recovery log path fields and if the SQL Server is on a different computer, you must first create the folders before you click Save.
- 5.
- Select the Security expander and check the entered user.
- 6.
- (Optional) Select the Long Term Storage expander and enter or select the following data:
- -
- Data files: Select the destination where you want to save the data files (.mdf).
- -
- Log files: Select the destination where you want to save the log files (.ldf).
NOTE: Due to security and performance reasons, save the data and log files on two separate physical hard disks (not two separate partitions).
- -
- Recovery files: Select the destination where you want to save the recovery files.
- -
- Storage slices: Enter how many storage slices the Long Term Storage should have (max. 10). When this number is reached, the oldest storage slice is archived. The Slices table shows the storage slices.
- -
- Max size: Enter the maximum size of a storage slice. When this number is reached, another storage slice is created.
NOTE: This entry may override the entry in the Time Sliced field.
- -
- Archives: Select a destination where you want to save the archived storage slices. The Archives table shows the archived storage slices.
NOTE: If you do not use the standard paths in the Data files, Log files, Recovery files, and Archives fields and if the SQL Server is on a different computer, you must first create the folders before you click Save.
- -
- Start: Select to activate the storage. The storage will be activated when you click Save.
- -
- Time Sliced: Select when a new storage slice is created. For example, if you select monthly, a new storage slice is created each month.
NOTE: This entry may override the entry in the Max size field.
- -
- Closing Time: Select at what time a new storage slice is created.
- -
- Add Storage: Click to create more Long Term Storages.
NOTE: Rename the default storage name in System Browser if requested.
- 8.
- Click Yes.
- ⇨
- The History Database is created and displays in the SMC tree. This may take a few minutes depending on the selected database size.
- ⇨
- The History Database starts automatically.
- ⇨
- History data is logged after linking to the project.
- ⇨
- The Long Term Storage is created when the state in the State column in the Storage table changes to On. A Long Term Storage slice with the state CURRENT is created in the Slices table. See also Configuring History Database and Add or Rename Storage Names.
Further information