Skip to main content

oracledb_listener_conf resource

[edit on GitHub]

Use the oracledb_listener_conf Chef InSpec audit resource to test the listeners settings of Oracle DB, typically located at $ORACLE_HOME/network/admin/listener.ora or $ORACLE_HOME\network\admin\listener.ora depending upon the platform.

Installation

This resource is distributed with Chef InSpec and is automatically available for use.

Requirements

  • You must have sufficient permission to access listener settings defined in listener.ora file.
  • Value for environment variable ORACLE_HOME should be set in the system.

Syntax

A oracledb_listener_conf resource block fetches listeners settings in the listener.ora file, and then compares them with the value stated in the test:

describe oracledb_listener_conf do
  its('config item') { should eq 'value' }
end

Examples

The following examples show how to use this Chef InSpec audit resource.

Test parameters set within the listener file

describe oracledb_listener_conf do
  its('DEFAULT_SERVICE_LISTENER') { should eq 'XE' }
  its('EM_EXPRESS_PORT') { should eq '5500' }
end

Matchers

For a full list of available matchers, please visit our matchers page.

Was this page helpful?

×









Search Results