Master Database
InfoWorks ICM is a workgroup based, modelling and configuration management system that can also be used as a standalone product. To facilitate workgroup and standalone operation, InfoWorks ICM maintains model data in a centralised, multi-user master database.
Local working copies of parts of the data are then made available in each user's Local Folders.
The master database provides a flexible hierarchy for managing
The following database types are currently supported by InfoWorks ICM:
- Standard (WorkGroup) Database - the default database type for InfoWorks ICM. This is intended for use by individuals and groups of users. Requires the use of the Workgroup Data Server software, running as a service on the machine hosting the database.
- Standard Standalone Database - intended for use by individual users working on a single PC. This database type is only appropriate for use on a standalone machine.
- SQL Server (WorkGroup) Database - you must already have your own Microsoft SQL Server database installation.
- Oracle (WorkGroup) Database - you must already have your own Oracle database installation.
Each master database has a Unique Database Identifier. When a new database is created, this identifier is generated automatically as a string of letters and numbers taking the form 629810C2-3F6B-11D3-9BF3-00600891B690.
Database versions
Each master database has a version number. For example, a master database created with version 2023.0 of the software will have a database version of 2023.0. You can choose which version of the database is to be used when you create a master database. This can be useful if you collaborate with other users who do not work with the same version of InfoWorks ICM as you.
Note:
- If you work with a master database that is older than the version of the software you are using, for example, database version 2023.0 with software version 2023.1, you may not be able to access all the new features that are available in the newer version of InfoWorks ICM. The availability of a new feature depends on whether or not it requires database tables and fields, such as object properties or a database item, that are only available in the newer version of the database, or if there have been other changes that may affect results.
- You can update an older version of a master database to a newer one. This lets you access all the features available in the newer version of the software. However, the updated master database cannot be used, by you or any other user, in an older version of the software.
- You cannot paste data copied from a master database which has a newer database version than the database you are pasting to.
The version number of the currently selected master database is displayed in the Explorer window.
The first time you use InfoWorks ICM, you will need to create a master database.
InfoWorks ICM can be used as both a standalone product or in a workgroup. The Workgroup Data Server is a server component provided by Innovyze that manages access to workgroup databases by InfoWorks ICM. It is designed to improve the performance and reliability of database operations in a workgroup environment. To share the master database as part of a workgroup, it must be located on a machine where it can be accessed by all users.
See the Workgroup Data Server topic for further details. For details on setting up the data server, please refer to the Workgroup Data Server Administration Guide available for download from the Innovyze web site or on request from Innovyze.
DO NOT KEEP YOUR MASTER DATABASE IN YOUR LOCAL FOLDER DIRECTORY. You run a risk of corrupting your data because Local Folder and Remote Root files may now be saved in the same directory, and these files can potentially have identical names.
SQL Server or Oracle workgroup databases are created using the tools supplied with the database installation. Innovyze provides scripts to format the new database correctly.
A standard workgroup or standalone master database is created from within InfoWorks ICM.
To create a new standard master database:
- Select Open | Open/Create master database from the File menu.
- To create a new workgroup database:
- Select the Workgroup radio button.
- Enter the Server name and Server port in the Workgroup Data Server section of the dialog.
- Click Connect.
- Click New in the Master database section of the dialog.
The New Master Database dialog is displayed:
- If the database is to belong to a group, specify the name for the group in the Group field.
- Specify the name for the new master database in the Database field.
- From the Database version dropdown, choose which version of the database is to be used for the new workgroup master database.
- Click OK. The New Master Database dialog closes and the names of the group and database will be displayed in the Group and Database fields in the Open Master Database dialog.
- To create a new standalone database:
- Select the Standalone radio button.
- Click New in the Standalone section of the dialog. This displays a standard Windows Save AS dialog.
- Enter the name for the new master database file. The name of an existing database cannot be used.
- From the Database version dropdown, choose which version of the database is to be used for the new standalone master database.
- Click Open. The Windows Save As dialog closes. The name of the new standalone master database is displayed the Standalone section of the Open Master Database dialog.
- Click OK.
The Open Master Database dialog closes and a new database is created.
The master database is made up of:
- A basic index file with the database name as specified above and an .icmm extension.
- A data subdirectory of the directory where the .icmm file is located, which will contain the master database data. The directory name is automatically generated and will be the same as the database unique identifier.
The Open Master Database dialog is displayed. You can create a workgroup or standalone database.
If you had an open database at the end of your last InfoWorks ICM session, the same database will be open the next time you run InfoWorks ICM.
Select New Explorer window from the Window menu to work with the database. The database tree is displayed in the Explorer Window.
InfoWorks ICM remembers the last 10 most recently opened databases and the associated Local Folders of each database.
To open a master database that has previously been opened:
- Select the database from the Recent master databases list under the File menu.
In the list, standard workgroup and standalone master database names are preceded by their database path e.g. snumbat://localhost:40000/Database_Name (workgroup) and C:/Users/Innovyze/Database_Name (standalone).
To open a master database that has not recently been opened:
- Choose Open | Open/Create master database from the File menu.Note
You cannot use the Open / Create master database option to open a database that is already opened as a guest. A suitable message will be displayed if you try to do so. Ensure that you close the guest database before opening it as a master database.
- To open an existing workgroup database:
- Select the Workgroup radio button.
- Enter the Server name and Server port in the Workgroup Data Server section of the dialog.
- Click Connect.
- If the database belongs to a group, select the group from the Group dropdown. This restricts the entries in the Database dropdown list to those that belong to the selected group.
- Select the required master database from the Database dropdown. If no Group is selected, the names of all available databases, including the name of the group they belong to, if applicable, will be displayed in the list.
- To open an existing standalone database:
- Select the Standalone radio button.
- Click Browse. This displays a standard Windows Open dialog.
- Choose the database file (with an extension of .icmm) and then click Open. The Windows Open dialog closes and the name of the selected standalone master database is displayed the Standalone section of the Open Master Database dialog.
- Click OK when finished.
When you receive a new version of InfoWorks ICM, master databases may need to be updated so you can access all new features included in the software. It is recommended that you backup your existing database before you update to a new version. When a master database is updated, you, or any other users, will not be able to use it in an older version of InfoWorks ICM.
Oracle or SQL Server databases
If the software version you are updating includes changes to the database tables and fields used by InfoWorks ICM, the SQL Server and Oracle databases may need to be updated. A message will be displayed informing you that you must manually update the databases using a script.
If you do not update every time you are asked to, you will have to run several scripts in the correct order to update a database.
The process to update an Oracle or SQL Server database requires running scripts on the Oracle/SQL Server server. Full instructions on updating these databases can be found in the Workgroup Data Server Administration document, which can be downloaded from the Innovyze web site.
Standard database
A standard workgroup or standalone master database is updated from within InfoWorks ICM.
You must ensure that there are no users accessing the master databases before you attempt to update them.
There are two methods for updating a master database:
Updates the currently selected master database to the latest version of the database.
To use this method:
- Select Database update | Update current master database to latest version from the File menu. The currently selected workgroup or standalone master database is updated to the latest version.
Lets you choose which master database is to be updated and what version of the database it is to be updated to.
To use this method:
- Select Database update | Update master database from the File menu. This displays the Open Master Database dialog.
- To update a workgroup database:
- Select the Workgroup radio button.
- Enter the Server name and Server port in the Workgroup Data Server section of the dialog.
- Click Connect.
- If the database belongs to a group, select the group from the Group dropdown. This restricts the entries in the Database dropdown list to those that belong to the selected group.
- Select the required master database from the Database dropdown. If no Group is selected, the names of all available databases, including the name of the group they belong to, if applicable, will be displayed in the list.
- To update a standalone database:
- Select the Standalone radio button.
- Click Browse. This displays a standard Windows Open dialog.
- Choose the database file (with an extension of .icmm) and then click Open. The Windows Open dialog closes and the name of the selected standalone master database is displayed the Standalone section of the Open Master Database dialog.
- From the Update to dropdown, choose which version of the database the selected workgroup database is to be updated to.
- Click OK. The selected database is updated to the latest version.
Never copy a master database, rename the copy, and then carry on using the new and original databases.
You can move a Standard master database to a new location if needed. You must copy the database file and the additional file data for the database to work correctly.
With an Oracle or SQL Server database, you can move the Remote Root directories to a new location and then change your Remote Roots to point at the new locations. See File Locations for more details on what files make up the master database.
Never copy a master database, rename the copy, and then carry on using the new and original databases.
Every master database has a Unique Database Identifier used to manage files in the local folders, and in some circumstances, files that form part of the master database itself.
If you work with two master databases that have the same Unique Database Identifier your working files will get mixed up and you run a very real risk of losing or corrupting data. Because your working copies of networks may well be based on the same root network, it could be difficult to spot that these problems are occurring.
The correct way to copy data is to create a new master database, and then open the existing master database as a guest to copy data from. Alternatively, use a Transportable Database to transfer data from the old to the new database. This approach is designed to:
- let you copy data into a new master database or an existing database that already contains data
- protect the integrity of the data in both databases
- support copying data between databases of different types
See Copying Data Between Databases for further information.
A database cannot be deleted directly from InfoWorks ICM. This reduces
the chance of databases being lost accidentally. However, InfoWorks ICM does include an option for deleting database items. These items will remain in the Recycle Bin until you empty it or restore the items.
To delete a Standard master database, use the standard Windows procedures. The master database is made up of:
- A basic index file with a .icmm extension.
- A data subdirectory of the directory where the .icmm file is located containing the master database data. The directory name is the same as the database identifier.
To delete an Oracle or SQL Server database use the tools supplied with SQL Server/Oracle. Speak to the administrator of the database server.
Master database properties can be viewed from the Explorer Window.
- Right-click on the master database icon in the tree view in the Explorer Window and select Properties from the context menu to display the About Box.
- Hover the mouse cursor over the master database icon in the tree view to display a tooltip including database path and GUID information.