Local database connections work, but remote clients cannot connect? This is one of the most common problems after installing GBase Database(GBase 8s).
The error may look like a network failure, but the actual cause could be an incorrect listening address, an unapplied configuration change, hostname resolution, an instance name mismatch, a blocked port, or even a license connection limit.
Here are six common causes, ordered by how often they appear in first-install and daily operations scenarios.
1. The Database Listener Is Bound to localhost
Typical symptom: Local dbaccess works, but remote clients and the database console report:
Attempt to connect to database server(...) failed
Check the sqlhosts configuration:
ol_gbasedbt12120 onsoctcp localhost 9088
If the instance listens on localhost, remote clients cannot reach it through the server's external IP address.
Replace localhost with the server's actual network IP:
ol_gbasedbt12120 onsoctcp 192.168.x.x 9088
Restart the database instance after making the change.
This is a common first-install issue in GBase Database(GBase 8s).
2. The Configuration Was Changed, but the Instance Was Not Restarted
Typical symptom: The sqlhosts file contains the correct IP, but ss still shows 127.0.0.1.
Apply the configuration change by restarting the instance:
onmode -ky
oninit -vy
Saving the configuration file does not mean the running instance has applied it.
After restarting, verify the listener again:
ss -tlnp | grep 9088
Do not move on until the listener shows the expected address.
3. Hostname Resolution Is Incorrect
Typical symptom: The listening address has been changed, but remote connections still fail. Hostname resolution errors may also appear in the logs.
Check the hostname:
hostname
Then verify the corresponding mapping in /etc/hosts:
192.168.x.x hostname
You can add the mapping with:
echo "192.168.x.x hostname" >> /etc/hosts
Use the actual hostname returned by the system rather than relying on memory.
A spelling mismatch can produce connection failures that look like network problems.
4. DBSERVERNAME Does Not Match
Typical symptom: The connection fails even though the server address and port appear correct.
The database server name used by the client must correspond to the appropriate entry in sqlhosts. Check the DBSERVERNAME setting in the active onconfig file:
grep DBSERVERNAME $GBASEDBTDIR/etc/onconfig.*
Compare the configured name with the corresponding sqlhosts entry:
ol_gbasedbt12120 onsoctcp 192.168.x.x 9088
A one-character mismatch can prevent the connection from being established.
When troubleshooting GBase Database remote connections, verify the server name before assuming the network is unavailable.
5. The Firewall Blocks the Database Port
Typical symptom: The database listener shows the correct network address, but remote clients still cannot connect.
Check whether TCP port 9088 is permitted by the server firewall.
For firewalld:
firewall-cmd --add-port=9088/tcp --permanent
firewall-cmd --reload
Also check upstream firewalls, cloud security groups, and network access control rules where applicable.
The database can be listening correctly while the network path remains blocked.
6. The Licensed Connection Limit Has Been Reached
Typical symptom: Connections work normally during off-peak hours but fail intermittently when application traffic increases.
Check the license information:
onpsc -q
Look for:
Connect limit
This field defines the licensed concurrent connection limit.
If the application connection pools collectively request more connections than the license permits, additional connection attempts may fail.
Remember that Connect limit concerns concurrent connections, not the cumulative number of connections established over time.
This is not a network failure, but the application may report it as a connection problem.
A Practical Debugging Order
Instead of checking everything randomly, follow a fixed sequence:
| Order | What to check | Command or file |
|---|---|---|
| 1 | Listening address | `ss -tlnp \ |
| 2 | Host and port configuration | {% raw %}sqlhosts
|
| 3 | Instance name | grep DBSERVERNAME ... |
| 4 | Licensed connection capacity | onpsc -q |
| 5 | Firewall and network path |
firewall-cmd, network tests |
If hostname resolution is involved, verify /etc/hosts and the actual hostname as part of the second check.
This order helps identify database-side configuration problems before spending time investigating network infrastructure.
Make Troubleshooting Easier for the Next Engineer
When escalating a remote connection issue, collect these outputs:
- The relevant
sqlhostsentry. - The active
DBSERVERNAMEsetting. - The
ss -tlnplistener output. - The hostname and
/etc/hostsmapping. - The
onpsc -qlicense output. - The relevant firewall rules.
These records provide a reproducible starting point for the next engineer and reduce repeated questions during technical handover.
GBase Database connection errors often describe the symptom rather than the root cause. A consistent troubleshooting sequence turns six possible causes into a set of verifiable checks.
The principle is simple: verify the listener, configuration, instance identity, and connection capacity before concluding that the network is responsible.
Top comments (0)