Databases with External Server Components
You can configure a Model Manager server database to use components managed externally by your organization. This is useful if, for example, you already have a SQL database server installation with associated backup routines set up.
External SQL Databases
On the pages for adding or editing a database configuration:
1
Select Custom in the SQL Database>Type list to use a SQL database in an external SQL database server.
2
Select the type of SQL database platform in the Platform list. The supported platforms are:
-
-
-
-
PostgreSQL® Database
1
In the Server name field, write the name of the computer that the PostgreSQL® database server process runs on. Defaults to localhost.
2
In the Port field, write the number of the port that the PostgreSQL® database server listens on. Defaults to 5432.
3
In the Database name field, write the name of a SQL database that you want the Model Manager to use.
4
In the Method list, under Authentication, select the method of authentication. Select Password to authenticate using password-based authentication methods. Select Passwordless to authenticate using passwordless authentication methods (for example, SSPI on Windows®).
5
In the Username field, write the username used to authenticate with the PostgreSQL® database server.
6
In the Password field, write the password used to authenticate with the PostgreSQL® database server. This is only available when using password-based authentication methods.
The password will be encrypted by the Model Manager server and stored in a local SQLite® database in the Model Manager server Preference Directory— see also Password Security.
The Model Manager supports PostgreSQL® version 10.0 and newer.
Microsoft® SQL Server® Database
1
In the Server name field, write the name of the computer that the Microsoft® SQL Server® database server process runs on. Defaults to localhost.
2
In the Port field, write the number of the port that the PostgreSQL® database server listens on. Defaults to 1433.
3
In the Database name field, write the name of a SQL database that you want the Model Manager to use.
4
In the Instance name field, write the instance name of the Microsoft® SQL Server® database server.
5
In the Application name field, write an application name to use when connecting to the database.
6
Select the Use integrated security check box to authenticate using the Windows account running the Model Manager server process.
7
In the Username field, write the username used to authenticate with the Microsoft® SQL Server® database server. Only available if the Use integrated security check box is cleared.
8
In the Password field, write the password used to authenticate with the Microsoft® SQL Server® database server. This is only available if the Use integrated security check box is cleared.
The password will be encrypted by the Model Manager server and stored in a local SQLite® database in the Model Manager server Preference Directory— see also Password Security.
The Model Manager supports Microsoft® SQL Server® 2014 and newer.
Microsoft® SQL Server® must be installed with the Full Text Search component to use it with a Model Manager server database.
You are strongly recommended to enable row versioning via the READ_COMMITTED_SNAPSHOT isolation level for the Microsoft® SQL Server® database you intend to use with the Model Manager server database.
MySQL® Database
1
In the Server name field, write the name of the computer that the MySQL® database server process runs on. Defaults to localhost.
2
In the Port field, write the number of the port that the MySQL® database server listens on. Defaults to 3306.
3
In the Database name field, write the name of a SQL database that you want the Model Manager to use.
4
Select the Use SSL check box to require secure connections.
5
Select the Verify server certificate check box to require that the MySQL® database server’s certificate is verified.
6
In the Username field, write the username used to authenticate with the MySQL® database server.
7
In the Password field, write the password used to authenticate with the MySQL® database server.
The password will be encrypted by the Model Manager server and stored in a local SQLite® database in the Model Manager server Preference Directory— see also Password Security.
Connecting with the Model Manager server to MySQL® requires a JDBC driver that is licensed by your organization. In the file comsolmodelmanagerserver.ini, found inside the installation directory for the Model Manager server:
Windows®: <Installation directory>\bin\win64
Linux®: <Installation directory>/bin/glnxa64
macOS: <Installation directory>/bin/maci64
add the line
-Dcs.modelmanager.mysql.jdbcdriver=<Path to JDBC driver>
with <Path to JDBC driver> being the path to the JDBC driver’s JAR file on the file system.
If running as a Windows® service, the file is comsolmodelmanagerservice.ini.
The Model Manager supports MySQL® version 8.0.20 and newer.
Oracle® Database
1
In the Server name field, write the name of the computer that the Oracle® Database server process runs on. Defaults to localhost.
2
In the Port field, write the number of the port that the Oracle® Database server listens on. Defaults to 1521.
3
In the System Identifier field, write the system identifier (SID) of the Oracle® Database instance.
Leave this field empty if you want to connect using a service name instead.
4
In the Service name field, write the service name for the Oracle® Database instance.
Leave this field empty if you want to connect using the system identifier instead.
5
In the Username field, write the username used to authenticate with the Oracle® Database server.
6
In the Password field, write the password used to authenticate with the Oracle® Database server.
The password will be encrypted by the Model Manager server and stored in a local SQLite® database in the Model Manager server Preference Directory— see also Password Security.
Connecting with the Model Manager server to Oracle® Database requires a JDBC driver that is licensed by your organization. In the file comsolmodelmanagerserver.ini, found inside the installation directory for the Model Manager server:
Windows®: <Installation directory>\bin\win64
Linux®: <Installation directory>/bin/glnxa64
macOS: <Installation directory>/bin/maci64
add the line
-Dcs.modelmanager.oracle.jdbcdriver=<Path to JDBC driver>
with <Path to JDBC driver> being the path to the JDBC driver’s JAR file on the file system.
If running as a Windows® service, the file is comsolmodelmanagerservice.ini.
The Model Manager supports Oracle® Database version 12.2.0.1 and newer.
External Resources Directories
On the pages for adding or editing a database configuration:
1
Select Custom in the Resources Directory>Type list to use an external resources directory.
2
In the Directory field, write the path on the file system to a directory.
External Search Indexes
On the pages for adding or editing a database configuration:
1
Select Custom in the Search Indexes>Type list to use search indexes stored in an external search index server.
2
In the Platform list, select Apache Solr™ server.
3
In the Base URL field, write the base URL used to connect to the Apache Solr™ server. Defaults to http://localhost:8983/solr.
4
In the Method list, select the method of authentication. Select Password to authenticate using a username and password. Select None if the Apache Solr™ server does not require authentication.
5
In the Username field, write the username used to authenticate with the Apache Solr™ server.
6
In the Password field, write the password used to authenticate with the Apache Solr™ server.
The password will be encrypted by the Model Manager server and stored in a local SQLite® database in the Model Manager server Preference Directory— see also Password Security.
7
In the Assets and Items fields, write the names of Apache Solr™ cores to use for the Model Manager server database.