Creating and testing a connection#
The connection dialog gathers on a single screen the database, the access, the schemas and the options. It is used to create a connection and to change it, and its Test button checks the details entered before saving them.
Before you start#
- You need System administration.
- Have at hand the server, the port, the database (or the Oracle service), the user, the password and the exact names of the schemas. See Preparing the database.
Create a connection#
- Go to Administration › Connections and press New connection…. You can also do it with New › Connection in the top bar or with the command palette.
- Type the Name users will see it by, for example “Comercial · Producción”.
- In Database, choose the Engine and type the Server, the Port and the Database (in Oracle, the Service). Below it you see the JDBC URL built from them.
- In Access, type the database User and Password.
- In Schemas, type each data schema in Add data schema and press Add… (or Enter). Order them with the Up and Down arrows.
- Type the Work schema, with its exact case.
- In Options, leave Quote table and column names and Only for metadata administrators ticked, unless you have a reason to clear them.
- Press Test and read the result above the foot of the dialog.
- Press Create connection.
When it is created, ECenter reads its catalog and leaves it chosen in the list, with its Next steps. The frame's connection selector offers it straight away, without signing in again.


The dialog options#
Database#
| Option | What it does |
|---|---|
| Engine | Those the server supports: today PostgreSQL, SQL Server and Oracle. When you change it, the port changes to the engine's if it was the previous one's. |
| Server | The name or address of the server, without spaces or “/”, “;”, “?” or “@”. |
| Port | A number from 1 to 65535. Empty, the engine's: 5432 in PostgreSQL, 1433 in SQL Server and 1521 in Oracle. |
| Database or Service | The PostgreSQL or SQL Server database, or the Oracle service name. |
| JDBC URL | The one built from the above. It is the one tested and saved. |
| Type the URL | Replaces the four fields with a single one to type the whole URL, with its options. |
Use Type the URL for what the simple form does not support: options such as SQL Server's encrypt or trustServerCertificate, an Oracle SID instead of a service, a TNS alias or a list of servers. The URL must start with jdbc:postgresql:, jdbc:sqlserver: or jdbc:oracle:; the engine comes from that.
If you clear Type the URL with a URL that contains more than the server, the port and the database, the dialog does not split it so as not to lose its options, and says so: “This URL contains more than the server, the port and the database (options, a SID, a TNS alias): to enter it in parts, leave it in the simple form or delete it”.
Access#
| Option | What it does |
|---|---|
| User | The database user. It cannot be the one of ECenter's own database nor see its tables, if the own database is in that same database (see The connection user and the own database). |
| Password | Its password. It is stored encrypted with the installation key (ECENTER_SECRETS_KEY) and is never shown again. |
| Keep the saved password | Only when editing: keeps the password it already had. Clear it to type another. |
Schemas#
| Option | What it does |
|---|---|
| List of data schemas | From 1 to 20, without repetition. Their order matters: a table named without a schema is looked for in that order. |
| Add data schema | A name that starts with a letter or “” and contains only letters, digits, “”, “$” or “#”, up to 128 characters. |
| Read-only, without a work schema | The connection has no work schema and ECenter creates and writes nothing in the database. Work schema disappears. See A read-only connection. |
| Work schema | Different from the data ones. ECenter creates in it the tables of lists, groupings and external data: the user needs permission to create and drop tables in it. |
Options#
| Option | What it does |
|---|---|
| Quote table and column names | Puts the names in quotes in the SQL. Needed if there are lower-case names, names with spaces or with letters such as Ñ. See Quoting the names. |
| Only for metadata administrators | Only those with Metadata administration (or System administration) see the connection. It is used to design the metadata without users seeing it. A new connection comes with it ticked. |
What Test says#
Test uses the details in the dialog as they are, without saving them. When editing with Keep the saved password, it tests with the saved password.
The first lines are shown in the language of the interface; the reasons that follow come from the server and are in Spanish.
| Result | What it means |
|---|---|
| “The connection works: PostgreSQL 18.1, schemas found, it can write to ECW” | Everything is fine: the engine's product and version, the schemas exist and a table can be created in the work one. |
| “The connection works: PostgreSQL 18.1, schemas found; it is read-only and the test has not created anything” | A read-only connection that works. Without a work schema, the test does not create the test table. |
| “The connection does not work:” and «No se pudo conectar: …» (could not connect) | A session could not be opened: the server, the port, the database, the user or the password are not correct, or the network does not reach. The reason given by the driver follows. |
| “The connection reaches the database, but fails:” | A session opens, but something of what follows is missing. |
| «No existe el esquema de datos '…'» (the data schema does not exist) | That schema does not exist or the user does not see it. |
| «No existe el esquema de trabajo '…'» (the work schema does not exist) | It must be created beforehand, or the user does not see it. |
| «El esquema de trabajo se llama «…» en la base de datos, no «…»» (the work schema is called … in the database) | Type the name with the case it says. |
| «No se puede crear tablas en el esquema de trabajo '…': …» (tables cannot be created in the work schema) | Permissions are missing on the work schema. |
| “The connection works, but its user is not valid:” | The connection reaches the database, finds the schemas and writes in the work one, but its user sees ECenter's own database. The reason in the next row follows. |
| «El usuario de esta conexión puede ver tablas de la BD propia de ECenter, que está en esta misma base de datos: quítele ese acceso o use otro usuario, que no lo tenga» (the user can see tables of ECenter's own database) | The user has some ECenter table within reach. If something else also fails, this reason appears among the others. See Fixing a connection that already sees it. |
| «No se pudo comprobar si el usuario de esta conexión ve la BD propia de ECenter: …» (it could not be checked whether the user sees the own database) | The database could not be asked. The test is not taken as passed: repeat it. |
When saving, if you have not tested what you are saving, the dialog tests it first. If the test fails, it asks “The test fails: save the connection anyway?”: you can press Create anyway (or Save anyway) and fix it later.
A connection whose user sees ECenter's own database can be saved that way, but while it is active the critical alert A connection sees the own DB will be open: fix it as soon as possible. One that signs in with the own database's account is not asked about: it is neither tested nor saved, and the error appears below User (below).
A read-only connection#
Some organizations do not give ECenter a schema to write in: only a user that reads. Tick Read-only, without a work schema and the connection is saved without a work schema. ECenter reads the catalog and queries the data as with any other, and creates and writes nothing in the database, not even when you press Test.
On the Connections page the connection carries the Read-only badge, and in its detail the work schema says “none”. It can be changed at any time: clear the box and type the work schema.
What it does not have#
| What | Why | What the user sees |
|---|---|---|
| Lists | Their records are stored in a table of the work schema. | The Lists page warns about it and does not offer New list… or Refresh. |
| Groupings | Their values are loaded into a table of the work schema. | The Groupings page warns about it, and the viewers, the wizards and the metadata editor do not offer to create them. |
| External data | Files are integrated as tables of the work schema. | The External data page warns about it and does not offer Integrate files… or Refresh data…. |
| Forms that save | Writing to the data tables is exactly what is not allowed. | The form is read, says “Read-only connection: changes are not saved” and does not offer Submit changes. |
| Procedures | A procedure may write to the database. | Scheduling does not offer Scheduled procedure, and a recalculation group has no pre- or post-procedure. |
| Queries with a huge number of values | When a query carries more values in its conditions than a statement of the engine admits, ECenter carries them in a table of the work schema. | The query fails with a message saying that the connection is read-only and has no work schema to carry the rest: reduce the values of its conditions. |
Whatever is attempted anyway through the API responds 409 with the code READ_ONLY_CONNECTION and the message “The connection “…” is read-only: it has no work schema, so it does not allow lists” (or groupings, external data, forms or procedures). Lists, groupings and external data that already existed can still be deleted.
Note
Marking as read-only a connection that already had lists, groupings or external data does not drop their tables from the previous work schema, but ECenter stops using them: the documents that use them are no longer calculated. Do it before creating any of that.
Common errors#
| Message | What to do |
|---|---|
| “Type the connection name” or a name already in use | The name is mandatory and unique in the installation. |
A message saying the URL must be PostgreSQL (jdbc:postgresql:), SQL Server (jdbc:sqlserver:) or Oracle (jdbc:oracle:) |
The URL typed does not start with one of those prefixes. |
| “Add at least one data schema” | A connection reads at least one schema. |
| “It must be different from the data schemas: ECenter only writes to the work schema” | The work schema cannot be one of the data ones. |
| A message saying a connection reads at most 20 data schemas | Remove some. |
| Below User, when testing or saving: a message saying the connection user is that of ECenter's own database, which is in that same database | The connection would sign in to the own database's database with the ECenter user. Use another user, who does not see the ECenter tables (see The connection user and the own database). The API responds 400 OWN_DATABASE_USER. |