Database access and license management often involve a small set of recurring questions. What do the two dashes in dbaccess - - mean? Does database creation require transaction logging? Why can a local connection work while a remote connection fails?
This guide answers eight practical questions about GBase Database (GBase 8s), covering database access, creation, remote connectivity, configuration, and license verification.
1. What Do the Two Dashes in dbaccess - - Mean?
The command:
dbaccess - - uses two separate arguments:
- The first
-indicates that no database is selected when starting the client. - The second
-tellsdbaccessto read SQL commands from standard input.
This is a common entry point for interactive SQL execution.
Once the client starts successfully, you should see the > prompt, where SQL statements can be entered directly.
2. Must Database Creation Include WITH LOG?
No. The WITH LOG clause is not mandatory, but it is generally recommended for business databases that require transaction logging.
Example:
CREATE DATABASE gbase8s WITH LOG; Transaction logging is important for rollback and recovery strategies.
For GBase Database (GBase 8s), the logging configuration is selected when the database is created. Therefore, decide whether transaction logging is required before creating the database.
3. How Can I Confirm That Database Creation Succeeded?
Use two checks.
First: Check the command output.
A successful creation should return:
Database created. Second: Query the system catalog.
SELECT name FROM sysdatabases; Confirm that the newly created database appears in the result.
Do not use the number of user tables as proof of database creation. A newly created database can be completely empty and still be valid.
4. What Does tabid > 99 Mean?
In GBase Database (GBase 8s), the systables system catalog stores information about database tables.
System objects occupy earlier table ID values, while user-created tables generally start at tabid = 100.
For example:
SELECT tabid, tabname FROM systables WHERE tabid > 99; This filters out the system objects and helps produce a cleaner list of user tables.
It is a useful condition when inspecting database objects or writing administrative SQL queries.
5. Remote Connections Fail. What Should I Check First?
Start with one question:
Does the connection work locally?
There are two different troubleshooting paths.
Case A: Local connection works, but remote connection fails.
Focus on:
- The listening IP address.
- The
sqlhostsconfiguration. - Hostname resolution.
- Firewall rules and network connectivity.
- Whether the database service is listening on the expected interface and port.
Case B: Local connection also fails.
Check the database instance state, startup status, and license configuration before changing remote connection settings.
This distinction prevents unnecessary network troubleshooting when the actual problem is local to the database instance.
6. Why Does Editing sqlhosts Sometimes Have No Effect?
Because changing a configuration file does not necessarily change the settings already loaded by a running instance.
After modifying the relevant connection configuration, restart the instance when required:
onmode -ky oninit -vy Then check the listening port:
ss -tlnp | grep 9088 Verify that the actual listening address matches the intended configuration.
For remote connection troubleshooting in GBase Database (GBase 8s), checking the active listener is more reliable than assuming a successful file edit means the change has taken effect.
7. Which Fields in onpsc -q Matter Most?
Run:
onpsc -q Four fields are particularly useful when checking license information:
| Field | What It Tells You |
|---|---|
Time limit | License expiration time |
Connect limit | Maximum permitted concurrent connections |
MAC Address | Hardware binding information |
Dedicated To | License purpose or designated usage |
There is another detail worth remembering: capability fields containing enable indicate whether a capability is permitted by the license. They should not automatically be interpreted as proof that the corresponding feature is currently enabled or configured.
Understanding this distinction helps avoid incorrect conclusions during GBase Database license verification.
8. Does a License Change Require an Instance Restart?
Yes, replacing the license file requires an instance restart for the new license configuration to take effect.
GBase Database (GBase 8s) reads its license information during startup.
Without restarting, onpsc -q may continue to display the previous license values.
A typical license replacement procedure includes:
- Back up the existing
pfrl.ini. - Upload the replacement license file.
- Set the correct ownership and permissions.
- Schedule and perform the instance restart.
- Run
onpsc -qto verify the updated license information.
Because restarting interrupts database service, this operation should be included in an approved maintenance window.
The file replacement is straightforward. Planning the downtime and verifying the result are what make the operation reliable.
Final Thoughts: Three Questions to Ask First
Database access and license management ultimately answer three practical questions:
- Can you connect? Check the database instance, client settings, and network listener.
- What are you permitted to do? Check database configuration and license capabilities.
- How do you maintain that permission? Check license validity, registration, and renewal procedures.
These questions establish a useful troubleshooting boundary.
They do not replace performance tuning, backup and recovery, or high availability planning. Each area has its own commands, configuration parameters, and operational requirements.
In GBase Database, much of the information needed for initial troubleshooting is already available through commands and system catalogs. The key is knowing which command to run first and how to interpret its output.
