Prior to running Foundation DBUtils, you can configure the database creation and upgrade processes by editing the corresponding appsettings.json file. By default, this file is stored in the same directory as the application. You can also create a custom JSON configuration file.
Note the following:
-
In order for the options in a custom JSON configuration file to be respected, you must apply the --configoverride switch when running the Foundation DBUtils application. See --configoverride for more information.
-
Any options specified in a custom JSON configuration file override the corresponding option specifications in the default appsettings.json configuration file.
-
Any options specified by applying command line switches override the corresponding option specifications in any default or custom JSON configuration files. See Running Foundation DBUtils from the Command Line for more information.
You can configure the following settings in the appsettings.json file, or you can add these settings to a custom JSON configuration file:
Settings |
Description |
---|---|
datasource |
A unique name, defined by the user, to identify the connection string used to connect to the database. Note the following.
|
TableSpaceOption |
This setting configures the tablespace creation process. Tablespaces can be created using one of the following options:
Note:
The default and custom options are not supported with Azure SQL Database. When using Azure SQL Database, you must use the single option. If no option is specified, the default option is used. For more information on tablespace options, see Tablespace Options. |
TableSpaceOptions | Custom | Definitions | dbspace# | size |
The initial size (in MB) of the corresponding DBSpace. |
TableSpaceOptions | Custom | Definitions | dbspace# | growth |
The growth increment (in MB) of the corresponding DBSpace. |
TableSpaceOptions | Custom | Definitions | dbspace# | path |
The full path to the corresponding DBSpace. Note:
When specifying a path in a Foundation DBUtils JSON configuration file, you must include two backslashes \\ between subdirectories and at the end of the path. |
UserInfo | hsipassword |
The password for the hsi user. Note the following:
|
UserInfo | viewerpassword |
The password for the viewer user. Note:
This setting must be specified when creating an OnBase database. If this setting is not specified in the default appsettings.json file, you must specify it in an alternative JSON file or using a command line switch. |
ConnectionStrings | [DataSourceName] | ConnectionString |
The connection string used to connect to the database. For more information on the components of the ConnectionString setting, see Connection String Parameters. Note the following:
|
ConnectionStrings | [DataSourceName] | providerName |
The data provider type used for the database. Only SQL Server and Oracle data providers can be used to connect to the OnBase database. Use one of the following:
Note:
If this setting is not specified in the default appsettings.json file, you must specify it in an alternative JSON file or using a command line switch. |