HSQLDB Manager; Adding Fields To The Database - ROES Server
HSQLDB Manager: Adding Fields to the Database - ROES Server
Use this article when support or lab staff need to connect to the ROES Server HSQLDB database and run approved SQL to add a field.
Overview
ROES Server includes access to an HSQLDB database that can be opened with HSQLDB Manager. The manager can inspect tables and execute SQL statements, including approved ALTER TABLE statements that add fields to existing database tables. Because this changes the live database structure, only run SQL that has been reviewed and approved for the specific lab/database.
When to Use This
- Support has provided SQL to add a field to the ROES Server database.
- A production workflow, report, integration, or agent requires a new database column.
- The database connection URL must be collected from the primary ROES Server.
- The lab needs a safe checklist for connecting to HSQLDB Manager before running SQL.
Before You Begin
- Confirm you are working on the primary ROES Server, meaning the server that hosts the database.
- Create or confirm a current backup of the ROES Server configuration/database before making database changes.
- Confirm the exact table name, field name, field type, and SQL statement to run.
- Avoid running SQL against the database during heavy order-processing activity when possible.
- Do not guess SQL field types or table names. If the statement is not known, escalate before proceeding.
Important Database Safety Note
HSQLDB Manager can directly modify the ROES Server database. Run only approved SQL, and keep a backup before making changes. A mistyped table name, field name, or data type can cause production issues.
Solution
Launch the primary ROES Server
Open the ROES Server that hosts the database. This is the primary ROES Server, not a secondary workstation unless that workstation is the database host.
Open the configuration gear
Click the configuration gear in the upper-right corner of ROES Server.
If this image does not display, open it directly: ROESServer_Config_Gear.png
Record the database URL
Record the value shown in the URL: field. It should be similar to an HSQLDB JDBC URL.
If this image does not display, open it directly: ROESServer_URL_ConnectionString_Comments.png
Open HSQLDB Manager
Open the HSQLDB Manager utility used with ROES Server. If launching from file, use the HSQLDB manager file shown in the ROES Server/HSQLDB location for that installation.
If this image does not display, open it directly: hsqldb_file_Comments.png
Review the first-launch connection window
When HSQLDB Manager opens, review the connection dialog. This is where the driver/type, URL, user, and password are entered.
If this image does not display, open it directly: hsqldbManager_FirstLaunch.png
Connection values
- Type / Driver: HSQL Database Engine Server, or the HSQLDB driver option shown in the manager.
- URL: Paste the URL recorded from the ROES Server configuration gear.
- User: Use the configured database user. If the lab uses the default HSQLDB user, this may be SA.
- Password: Use the configured database password. If the database uses the default empty password, leave the password blank.
If this image does not display, open it directly: hsqldbManager_URL_Comments.png
Connect to the database
Click OK or the equivalent connect button. Confirm that the database opens and that the table list or command/query area is visible before running any SQL.
Paste the approved ALTER TABLE statement
Paste only the approved SQL statement into the SQL command area. A typical add-field statement follows this pattern:
If this image does not display, open it directly: hsqldbManager_Query_Comments.png
Execute the SQL
Run the SQL statement. Review the result area for success or errors before closing the manager.
Verify the field was added
Refresh or inspect the target table to confirm the new field exists. Then confirm that the related ROES Server workflow, report, or integration behaves as expected.
If this image does not display, open it directly: hsqldbManager_Query_ResultSet_Comments.png
Expected Result
HSQLDB Manager should connect to the active ROES Server database, execute the approved SQL successfully, and show the new field in the target table.
Troubleshooting
- Cannot connect: confirm the URL came from the primary ROES Server and that the database host is reachable.
- Login fails: confirm the database user and password for this lab.
- SQL error: confirm the table name, column name, and field type exactly match the approved statement.
- Field does not appear: refresh the table view, reconnect, or verify against the correct database.
Original Image References
Escalation Notes
- Record the database URL from the ROES Server configuration gear.
- Record the exact SQL statement that was run.
- Capture any error shown in HSQLDB Manager.
- Confirm whether the database was backed up before the change.
- Confirm the related workflow, report, or integration that required the new field.