Overview
OmniView uses asettings.json file to configure database connections and client behavior. On first run, if no configuration exists, OmniView will guide you through an interactive setup.
Configuration File Location
The configuration is stored in BoltDB (omniview.bolt) in the application directory. The initial configuration can be loaded from a settings.json file.
Configuration Structure
Basic Example
Here’s a complete example of asettings.json file:
settings.json
DatabaseSettings Fields
Required Fields
The Oracle database service name or SID. For pluggable databases, use the PDB name (e.g.,
FREEPDB1).Example: "FREEPDB1", "ORCL", "XEPDB1"The hostname or IP address of the Oracle database server.Example:
"127.0.0.1", "localhost", "db.company.com"The TCP port number for Oracle listener. Default Oracle port is
1521.Example: 1521, 1522The Oracle database user that OmniView will connect as. This user needs specific permissions (see below).Example:
"IFSAPP", "SYSTEM", "TRACER_USER"The password for the database user.
Set to
true to mark this as the default connection. Currently, OmniView supports one active connection.Example: trueClientSettings Options
Enable UTF-8 character encoding for database communication. Set to
true if your database uses UTF-8 and you need proper handling of multi-byte characters.Example: false, trueRequired Database Permissions
The database user specified inDatabaseSettings.Username needs the following permissions:
Environment Variables
OmniView supports environment variables for sensitive configuration:Environment variables take precedence over values in
settings.json. This is useful for CI/CD pipelines or containerized deployments.Multiple Database Configurations
For managing multiple database configurations:-
Create separate
settings.jsonfiles: -
Copy the appropriate file before starting OmniView:
-
Or use different working directories:
Configuration Validation
OmniView validates configuration on startup:Common Validation Errors
| Error | Cause | Solution |
|---|---|---|
ORA-12541: TNS:no listener | Database listener not running or wrong port | Verify Host and Port, check listener status with lsnrctl status |
ORA-01017: invalid username/password | Wrong credentials | Verify Username and Password |
ORA-01031: insufficient privileges | Missing database grants | Grant required permissions (see above) |
failed to deploy tracer package | Missing CREATE privileges | Grant CREATE PROCEDURE, CREATE TYPE, CREATE SEQUENCE |
Advanced Configuration
Connection Pooling
OmniView maintains a single persistent connection to the database. Connection pooling is not currently supported but may be added in future versions for multi-tenant scenarios.TNS Names Support
To use TNS names instead of direct connection:-
Set environment variable:
-
Use TNS alias in configuration:
Next Steps
After configuring OmniView:Using the Tracer
Learn how to send and view trace messages
Multi-Subscriber Setup
Configure multiple OmniView instances