Installation Guide
This guide walks you through installing OmniView and configuring the necessary dependencies for your platform.Prerequisites
Before installing OmniView, ensure you have the following:Required Software
Go 1.24 or higher
Go 1.24 or higher
Oracle Instant Client
Oracle Instant Client
Required for connecting to Oracle databases via ODPI-C.Recommended Version: 23.7 or higherDownload from Oracle Instant Client Downloads
- Windows
- macOS (ARM64)
- Linux
- Download Instant Client Basic (64-bit)
- Extract to
C:\oracle_inst\instantclient_23_7 - Add to PATH:
C:\oracle_inst\instantclient_23_7
CGO Environment
CGO Environment
OmniView uses CGO to interface with ODPI-C. Ensure CGO is enabled:Compilers Required:
- Windows: MinGW-w64 or MSYS2 with GCC
- macOS: Xcode Command Line Tools
- Linux: GCC
GNU Make
GNU Make
OmniView uses Make for building. Most Unix systems have it pre-installed.Windows: Install via MSYS2, Git Bash, or WSLVerify installation:
Oracle Database Requirements
- Oracle Database 12c or higher
- User with the following privileges:
CREATE SESSIONCREATE PROCEDURE(for deploying packages)CREATE TYPE(for queue payload types)EXECUTEonDBMS_AQandDBMS_AQADMAQ_ADMINISTRATOR_ROLEor equivalent AQ privileges
Building from Source
Install Go Dependencies
Download and tidy Go modules:This runs:
go mod download- Downloads dependenciesgo mod tidy- Cleans up module files
Build ODPI-C Library
Build the Oracle Database Programming Interface for C:This compiles the ODPI-C library from
third_party/odpi and creates:- Windows:
third_party/odpi/lib/odpi.dll(copied to workspace root) - macOS:
third_party/odpi/lib/libodpi.dylib
The ODPI-C library is built automatically when you run
make build, so this step is optional if you’re building the full application.Build OmniView
Build the main application binary:This compiles the Go application with CGO and creates the The version is embedded in the binary via linker flags:
omniview binary.Build with version:Installation from Binary Release
Download pre-built binaries from the GitHub Releases page.- Windows (amd64)
- macOS (arm64)
- Download
omniview-windows-amd64-<version>.zip - Extract the archive
- The package includes:
omniview.exe- Main executableodpi.dll- ODPI-C library
- Add the directory to your PATH or run directly
You still need Oracle Instant Client installed on your system even when using pre-built binaries. The ODPI-C library depends on Oracle Instant Client at runtime.
Configuration
Create asettings.json file in your working directory with your Oracle database connection details:
settings.json
Oracle service name or SID (e.g.,
FREEPDB1)Database host address
Oracle listener port (typically
1521)Database username with required privileges
Database password
Mark as default connection configuration
Enable UTF-8 encoding for client connections
Troubleshooting
CGO Compilation Errors
If you encounter CGO compilation issues, debug with:Oracle Instant Client Not Found
If the build fails with “oci.dll not found” or similar:- Verify Instant Client path in Makefile
- Set custom path:
- Ensure Instant Client is in your PATH (Windows) or LD_LIBRARY_PATH (Linux)
Platform-Specific Issues
Windows: 'gcc' is not recognized
Windows: 'gcc' is not recognized
Install MinGW-w64 or MSYS2:MSYS2 Installation:
- Download from msys2.org
- Install gcc:
pacman -S mingw-w64-x86_64-gcc - Add to PATH:
C:\msys64\mingw64\bin
macOS: library not loaded
macOS: library not loaded
If you get “library not loaded: libodpi.dylib”:
Linux: cannot find -lclntsh
Linux: cannot find -lclntsh
Oracle client library not found:
Next Steps
Quick Start
Run your first trace message and start monitoring
Configuration
Learn about advanced configuration options