Discovering usage of Oracle Database features

To retrieve detailed information about Oracle Database editions, options and management packs that are used in your infrastructure, distribute the Oracle reporting script on relevant endpoints, and run the Get Oracle Features task. When the information is imported to BigFix Inventory, it is displayed on the Oracle Databases report.

Before you begin

The task establishes Oracle database connection as a user that has rights to run the BigFix Agent process. Ensure that this user has the Oracle SYSDBA privilege.

About this task

The discovery of Oracle Database editions, options and management packs is based on the use of one of the Oracle scripts: options_packs_usage_statistics.sql or ReviewLite.sql. The former should be used by default. Both scripts retrieve information about usage of Oracle features.
Note: BigFix Inventory supports ReviewLite.sql 17.1 and higher. Certification was performed on version 17.1 and 17.2.

The ReviewLite.sql script is used mostly in case of an audit, review, or contract renewal. It additionally gathers data that might be required by the Oracle License Management Services (LMS) and uploads it to the BigFix server. The ReviewLite.sql script produces the options.csv file which might contain data that is not entirely accurate and require confirmation from Oracle LMS. Based on the options.csv file, BigFix Inventory might detect usage or potential usage of Oracle features.

The following examples show the potential usage of Oracle features :
  • Potential use of Tuning Pack or Real Application Testing might be reported based on the data from SQL Tuning Sets. If they are contained in the results, the Tuning Pack or Real Application Testing license is required.
  • Potential use of Diagnostic Pack might be reported based on control_management_pack_access data if the value of control_management_pack_access is DIAGNOSTIC or DIAGNOSTIC+TUNING.

Procedure

  1. Choose the type of the Oracle script that you want to use to discover features of the used Oracle databases, and download it.
    You can choose options_packs_usage_statistics.sql or ReviewLite.sql.
  2. Propagate the downloaded script to all computers on which you want to discover usage of Oracle features. You can propagate the script in one of the following ways.
    • Use the method of propagating files that is typical in your enterprise. Place the script in the following directory: <BES Client>\LMT.
    • Add the script to the Master Action Site and send it to all computers in your enterprise.
      1. In the top navigation bar of the BigFix console, click Tools > Add Files to Site.
      2. From the drop-down list, choose Master Action Site.
      3. Click Browse and go to the directory in which the script is located.
      4. Select the script and click Open.
      5. Select Send to clients and click Add files. The script is sent to all computers that are subscribed to the Master Action site.
    • Create a custom site to which you subscribe computers on which you want to discover the used features. Then, add the script to this site and send it to the subscribed computers.
      1. In the top navigation bar of the BigFix console, click Tools > Create Custom Site. Provide the name of the custom site that begins with "Oracle", and click OK.
      2. Open the Computer Subscriptions tab, and subscribe computers on which you want to discover usage of Oracle features. For example, you can choose Computers which match the condition below, select Relevance Expression, is true, and provide the following relevance expression.
        if (name of operating system as lowercase starts with "win") 
        then (exists services whose (display name of it starts with 
        "Oracle" and not ("Client" is contained by display name of it))) 
        else (exists process whose (name of it = "oracle"))

        Relevance expression
      3. In the top navigation bar of the BigFix console, click Tools > Add Files to Site.
      4. From the drop-down list, choose the custom site that you created.
      5. Click Browse and go to the directory in which the script is located.
      6. Select the script and click Open.
      7. Select Send to clients and click Add files. The script is sent to all computers that are subscribed to the custom site.
  3. To retrieve information about features of the used Oracle databases, log in to the BigFix console, and go to Sites > External Sites > BigFix Inventory v10 > Fixlets and Tasks. Then, click Get Oracle Features.
  4. Choose the type of the Oracle script that you downloaded in step 1.
    If you choose ReviewLite.sql, read and accept the license agreement related to the Oracle script.
    You can find the license terms in the script or you can print them to the console by running the following script on the Oracle database.
    sqlplus <user_name>/<password> @ReviewLite.sql
    When you print the license terms, you are asked whether you accept them. You can ignore this question as you confirm that you accept the terms by selecting Accept License Agreement in the Get Oracle Features task. By selecting this option, you also agree that BigFix will accept the script license on your behalf on all computers on which you run the Get Oracle Features task.
    Accepting license terms of the ReviewLite.sql script.
  5. Optional: To enable debug logging, select Debug mode.
    The information is logged in the script_trace.txt file. By default, the file is in the following location.
    • Unix /var/opt/BESClient/LMT/ORACLE
    • Windows C:\Program Files (x86)\BigFix Enterprise\BES Client\LMT\ORACLE
  6. Optional: On Unix endpoints, you can change the folder in which the temporary script used by the fixlet is created. By default, it is Oracle instance owner's default folder. In case there is a security policy in place which forbids keeping executable scripts in this folder, you can select a subfolder of /tmp folder.
  7. To run the task, click Take Action. On the Target tab, select computers from which you want to retrieve the information, and click OK.
    Tip: To check whether the task completed successfully or to troubleshoot a problem, go to Analyses, right-click Oracle Features Health Check , and then click Activate. The analysis provides information about the type and version of Oracle script that was initiated though the Get Oracle Features fixlet. It also provides information about the time of last execution of the fixlet, and its status: Success, Failure or Partial Success. If the status is Partial Success, the script was run successfully only on some Oracle instances on a given computer.
  8. Ensure that software identification tags scan and upload of its results are scheduled. For more information, see: Initiating software scans and Uploading software scan results.
  9. To make the data available in BigFix Inventory, wait for the scheduled import of data or run it manually.

Results

Information about the used features is available on the Oracle Databases report. It is also included on the Software Installations report.

Oracle Databases report.

Additionally, raw output of the script is sent to the to BigFix server. It can be found in the following directory: <BigFix Enterprise>\BES Server\UploadManagerData\BufferDir\sha1\<last_2digits_of_computer_ID>\<computer_ID>\oracleresults_0_<computer_ID>(.zip/.tar.gz).