Everything You Need to Know

Database Server

Listeners

Estimated reading: 4 minutes 26 views

The Listeners menu is used to configure and manage OneDB listener services. A listener acts as the access point between client applications and the configured database connection.

Each listener defines the port exposed by OneDB, the target database connection, listener status, maximum allowed connections, and idle timeout behavior.

Listeners Management

To access this page, go to:

Database Server > Listeners

The Listeners Management page displays all configured listeners in OneDB.

Each listener is shown in a table with the following information:

Column Description
Listener Name The name of the listener configuration.
Port The port exposed by OneDB for client application connections.
Connection The database connection associated with the listener.
IP Destination The destination IP address of the target database server.
Port Destination The destination port of the target database server.
Status The current status of the listener, such as ENABLED or DISABLED.
Action Provides options to edit or delete the listener configuration.

Add Listener

To create a new listener, click the Add listeners button from the Listeners Management page.

The Add Listener form will be displayed.

Listener Configuration Fields

Fill in the required listener configuration details.

Field Description
Listener Name Defines the name of the listener. Use a clear and descriptive name, such as mysql-local-gateway or pg-local-gateway.
Connections Selects the database connection that will be associated with this listener.
Port Defines the OneDB listener port that client applications will connect to.
Listener Status Enables or disables the listener without deleting the configuration.
Max Connections Defines the maximum number of concurrent client connections allowed for this listener.
Idle Timeout (Seconds) Defines how long an idle connection can remain open before it is automatically closed.

Connection Selection

The Connections field allows the administrator to select an existing database connection.

Only previously configured connections are available in this dropdown list.

Example connection options may include:

PostgreSQL-Cloud
MsSQL-Cloud
Oracle-cloud
postgresql-local
pg-local
mysql-local

The selected connection determines the backend database destination used by the listener.

Port Configuration

The Port field defines the port exposed by OneDB.

Client applications will connect to OneDB using this port instead of connecting directly to the database server.

Valid port range:

1024 - 65535

Example:

Listener Name OneDB Listener Port Target Database Port
mysql-local-gateway 1950 3307
pg-local-gateway 1948 5433
oracle-cloud 1946 1522
mssql-cloud-gateway 1945 1432

Listener Status

The Listener Status field controls whether the listener is active.

Status Description
Enabled The listener is active and can accept client connections.
Disabled The listener configuration is saved but does not accept client connections.

This option is useful when the administrator wants to temporarily disable access without deleting the listener configuration.

Max Connections

The Max Connections field defines the maximum number of concurrent client connections allowed for the listener.

Default value shown:

10

Valid range:

1 - 1000

Use this setting to control connection capacity and prevent excessive client connections from reaching the target database through OneDB.

Idle Timeout

The Idle Timeout (Seconds) field defines how long an idle client connection can remain open.

Default value shown:

60

Valid range:

10 - 3600 seconds

If a connection remains idle longer than the configured timeout value, OneDB will automatically close the connection.

Submit Listener Configuration

After all required fields have been completed, click Submit to save the listener configuration.

Once saved, the listener will appear in the Listeners Management table.

Edit Listener

To modify an existing listener, click the Edit icon from the listener row.

The administrator can update the listener configuration, such as:

Configuration Description
Listener Name Rename the listener.
Connection Change the associated database connection.
Port Update the OneDB listener port.
Listener Status Enable or disable the listener.
Max Connections Adjust the maximum concurrent connections.
Idle Timeout Adjust the idle timeout duration.

Delete Listener

To remove a listener, click the Delete icon from the listener row.

Deleting a listener removes the configuration from OneDB. After deletion, client applications will no longer be able to connect through that listener port.

Make sure the listener is no longer used by any application before deleting it.

Notes

Each listener should use a unique port.

The selected port must not conflict with another listener or any service already running on the OneDB server.

A listener should be associated with a valid database connection before it can be used by client applications.

The target database IP address and destination port are inherited from the selected connection configuration.

Share this Doc

Listeners

Or copy link

Table of Contents