ORACLE module
User’s Guide
Section titled “User’s Guide”Overview
Section titled “Overview”This is a module which provides Oracle connectivity for OpenSIPS. It implements the DB API defined in OpenSIPS. If you want to use the nathelper module, or any other modules that calls the get_all_ucontacts API export from usrloc, then you need to set the DORACLE_USRLOC define in the Makefile.defs file before compilation.
Dependencies
Section titled “Dependencies”OpenSIPS Modules
Section titled “OpenSIPS Modules”The following modules must be loaded before this module:
- No dependencies on other OpenSIPS modules.
External Libraries or Applications
Section titled “External Libraries or Applications”The following libraries or applications must be installed before running OpenSIPS with this module loaded:
- instantclient-sdk-10.2.0.3 - the development headers and libraries of OCI.
Exported Parameters
Section titled “Exported Parameters”timeout (fixedpoint)
Section titled “timeout (fixedpoint)”Timeout value for any operation with BD.
Possible values is from 0.1 to 10.0 seconds.
Default value is 3.0 (3 second).
If value of timeout parameter set to 0, module use synchronous mode (without timeout).
...modparam("db_oracle", "timeout", 1.5)......modparam("db_oracle", "timeout", 0)...reconnect (fixedpoint)
Section titled “reconnect (fixedpoint)”Timeout value for connect (create session) operation.
Possible values is from 0.1 to 10.0 seconds.
Default value is 0.2 (200 milliseconds).
...modparam("db_oracle", "reconnect", 0.5)...Exported Functions
Section titled “Exported Functions”No function exported to be used from configuration file.
Installation
Section titled “Installation”Because it dependes on an external library, the oracle module is not compiled and installed by default. You can use one of the next options.
- edit the “Makefile” and remove “db_oracle” from “excluded_modules” list. Then follow the standard procedure to install OpenSIPS: “make all; make install”.
- from command line use: ‘make all include_modules=“db_oracle”; make install include_modules=“db_oracle”’.
Utility opensips_orasel
Section titled “Utility opensips_orasel”For working with opensipsctl script, should be able to print the ‘query’ results to the terminal in a user-readable form. The standard command-line Oracle client (sqlplus) is not quite suitable for this, as it cannot align row width to real (received) data’s (it always prints a cell width as described in the db scheme). This problem has been solved by inclusion the utility opensips_orasel, which formats printing approximately in the same way as the ‘mysql’ client utility. In addition, this utility known about the “agreements and types” in DB that are used in OpenSIPS for the work with Oracle and formats printing taking these into account.
Contributors
Section titled “Contributors”By Commit Statistics
Section titled “By Commit Statistics”Top contributors by DevScore(1), authored commits(2) and lines added/removed(3)
| # | Name | DevScore | Commits | Lines++ | Lines— |
|---|---|---|---|---|---|
| 1. | Iouri Kharon | 21 | 1 | 2363 | 0 |
| 2. | Bogdan-Andrei Iancu (@bogdan-iancu) | 11 | 8 | 60 | 66 |
| 3. | Stefan Darius (@dariusstefan) | 7 | 4 | 155 | 25 |
| 4. | Henning Westerholt (@henningw) | 5 | 3 | 19 | 7 |
| 5. | Sergio Gutierrez | 3 | 1 | 4 | 1 |
| 6. | Razvan Crainea (@razvancrainea) | 3 | 1 | 2 | 2 |
| 7. | Razvan Pistolea | 3 | 1 | 2 | 2 |
(1) DevScore = author_commits + author_lines_added / (project_lines_added / project_commits) + author_lines_deleted / (project_lines_deleted / project_commits)
(2) including any documentation-related commits, excluding merge commits
(3) ignoring whitespace edits, renamed files and auto-generated files
By Commit Activity
Section titled “By Commit Activity”| # | Name | Commit Activity |
|---|---|---|
| 1. | Stefan Darius (@dariusstefan) | Jun 2026 - Jul 2026 |
| 2. | Razvan Crainea (@razvancrainea) | Jun 2026 - Jun 2026 |
| 3. | Bogdan-Andrei Iancu (@bogdan-iancu) | Jul 2008 - Oct 2009 |
| 4. | Razvan Pistolea | Jul 2009 - Jul 2009 |
| 5. | Sergio Gutierrez | Feb 2009 - Feb 2009 |
| 6. | Henning Westerholt (@henningw) | Apr 2008 - Jun 2008 |
| 7. | Iouri Kharon | Apr 2008 - Apr 2008 |
(1) including any documentation-related commits, excluding merge commits
Documentation
Section titled “Documentation”Contributors
Section titled “Contributors”Last edited by: Razvan Crainea (@razvancrainea), Bogdan-Andrei Iancu (@bogdan-iancu), Henning Westerholt (@henningw), Iouri Kharon.
License
Section titled “License”All documentation files (i.e. .md extension) are licensed under the Creative Common License 4.0