Connections
Connect a tenant to the databases that hold your data, and know what a change or a deletion affects.
A connection tells the server how to reach a database with your data. Vector data, attribute data, workflows and the data sources of mobile apps all refer to a connection. You manage the connections of a tenant in Studio under Content → Connections.
These are not the connections under Connections in Management. Those lead to the databases in which M.App Enterprise stores the tenants themselves. See Multi-Tenancy.
Create a connection
Click New, choose the Provider and fill in the fields.
| Provider | Fields |
|---|---|
| Oracle | Data Source, User, Password |
| Microsoft SQL Server | Data Source, Initial Catalog, User, Password |
| PostGIS | Host, Port, Database, User, Password. Without a port, 5432 is used. |
| Hana | Server, Database, User, Password |
User and password are always required. Signing in with the Windows account of the server is not possible.
No Oracle client has to be installed on the server for an Oracle connection.
Saving tests the connection
There is no separate test button. When you save, the server first tries to open the connection. If that fails, the connection is not saved.
| Message | Meaning |
|---|---|
Error opening connection. | The database did not accept the connection: wrong address, wrong user or password, or the database is not reachable from the server. The details are in the log of the tenant. |
Connection already exists. | A connection with exactly these values exists already. |
Given Oracle UserId does not match. Did you mean '...'? | Oracle only. Enter the user name exactly as the message suggests. Oracle user names are usually upper case. |
Can not connect to database. | The request did not reach the server. |
The test runs from the server, not from your computer. A database that you can reach from your desk is not necessarily reachable from the server. See Network, ports and firewall.
Change a connection
Everything that uses a connection refers to it, not to a copy of its values. If the database moves to another server or the password changes, edit the connection once. All vector data, workflows and data sources that use it follow.
Delete a connection
Deleting a connection deletes everything that was built on it. Studio asks only Are you sure you want to delete this item? and does not list what goes with it:
- the vector data and attribute data that were imported through the connection, and with them their layers in legends and vector sets,
- the workflows that use the connection,
- the data sources of mobile apps that use the connection.
The tables in your database are not touched. What is lost is the configuration in Studio.
Before you delete a connection, check under Vector Data, Attribute Data, Workflows and Mobile → Datasources what uses it. If you only want to point to another database, edit the connection instead.
Recommendations
- Use a database user of its own for M.App Enterprise, with only the rights the apps need: read access for viewing, write access only on the tables that users edit.
- Do not use the user that owns the database of the tenant itself.
- Give the database user a password that is used nowhere else.
Next step: Lesson 3: Import vector data in M.App Enterprise.