Connect a database through your company network (Gateway)
LumeDB | Gateway is an agent installed on a machine inside your company network. It reads the databases there and sends the data to LumeDB. LumeDB never opens a connection into your network: it's always the agent that sends.
Use the Gateway when the database can't be exposed to the internet. One gateway serves several connections: PostgreSQL, SQL Server and Oracle.
Before you start
- A Windows machine that stays on and can reach the databases.
- Administrator permission on that machine, to install.
- On each database, a read-only user.
1. Create the gateway
- On the Hub, type / in the top bar and choose /gateway.
- Click + New gateway.
- Give it a name that identifies the machine or the site, like ERP server · Headquarters, and save.
You'll see the installation code and the address the installer will ask for.
2. Install the agent
- Under Agent installer, click Download Windows installer.
- The installer comes in a
.zipfile. Extract it and run the.exeas administrator. - Choose the language on the first screen: Portuguese, Spanish or English. The Windows language is preselected.
- Enter the address and the code shown on the gateway's screen.
Once the agent checks in, the gateway's screen shows the machine and the installed version.
The agent's language
The language chosen during installation applies to the installer and to the gateway panel on the machine, and automatic updates do not change it. To change it, run the installer again.
The messages the agent sends to LumeDB, such as the result of Test and Collect now, follow the company's language (Settings), not the machine's.
Language selection is available from agent 2.3.0.
I lost the code, or I'm reinstalling
In the gateway's More actions menu, use Installation code to generate another one. The previous code stops working.
3. Register the connection
- On the gateway, click + New connection and choose PostgreSQL Gateway, SQL Server Gateway or Oracle Gateway.
- Fill in:
| Field | What to enter |
|---|---|
| Connection name | How your team will recognize it, for example ERP · PostgreSQL. |
| Server | The database address as seen from the gateway machine, like 10.0.0.5 or srv-erp. |
| Database | The database name (optional). On Oracle, the Service. |
| User and password | The read-only user. |
| Schemas to read | Leave empty to read all of them, or list them separated by commas. |
| Schemas to ignore | What shouldn't show up, such as temporary or audit schemas. |
| Schema prefix in LumeDB | Optional. Use it when two databases have schemas with the same name, for example branch2. |
- Save.
The password is encrypted in your browser with the gateway's key. Only the agent can open it; LumeDB never sees it. That's why the agent has to be installed before you register the password.
4. Test and activate
- Click Test. The test is run by the agent, from inside the network.
- Open Catalog and collection and click Update catalog so the agent sends the list of schemas and tables.
- Activate the connection.
5. Choose the tables
Tables enter the collection through Modeling: add a Source node with the connection, create a Table node and choose the table from the catalog.
Back in Catalog and collection, you can see the tables being collected, turn one off or take it off the list. Collect now asks the agent to send right away.
Keep the agent up to date
In the More actions menu, Automatic update turns updates on and sets the maintenance window, in the gateway machine's local time.
Delete a gateway
Delete with its connections removes the gateway and its connections. The installed agent is no longer accepted; to use the machine again, create another gateway and reinstall.
Common problems
| What you see | What to do |
|---|---|
| Agent not installed yet | Install it with the installation code, or generate a new one. |
| The test fails | Check, on the gateway machine itself, whether it can reach the database's server and port. |
| A notice about two connections with the same schema | Edit one of them and give it a prefix. To change the prefix, the connection has to be deactivated. |
| The installer hasn't been released yet | Talk to the LumeDB team. |