Home » Other » Marketplace » McOptions: a program which allows to know which options are used in a database (10gR2 to 12cR2)
McOptions: a program which allows to know which options are used in a database [message #649263] Sun, 20 March 2016 11:35 Go to next message
Michel Cadot
Messages: 65190
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

I have posted a program in our Oracle licensing wiki page.
This is a Windows program which allows you to know the installed and used options and to immediately check these later ones.

The help is the following one:
C:\>McOptions -h

McOptions Utility by Michel Cadot: Version 2017.09.05

Copyright (c) Michel Cadot, 2016-2017. All rights reserved.

Usage: McOptions.exe [-h] [-f [-fr]] [-c] [-o] [-ro] [<logon>]

where <options> can be one or several of:
  { -c  | --check }      Checks now (requires SYSDBA privilege).
  { -f  | --features }   Displays the paying used features in addition to the options and packs
  { -fr | --free }       Includes the free used features (this option implies "-f").
  { -h  | --help }       Displays the version and the usage help.
  { -o  | --options }    Displays installed options.
  { -ro | --root_only }  When connected to CDB$ROOT, display root only
                           (this option is ignored in versions 10g and 11g)

and <logon> is:
  { <username>[/<password>][@<connect_identifier>]
  | /[@<connect_identifier>] }
  | <proxyuser>[<username>][/<password>][@<connect_identifier>]
  | [<username>]/[@<connect_identifier>] }
  [AS SYSDBA]
in the 2 lines before the last one, [] around <username> are real [] not syntactical
characters denoting an optional parameter. These lines refer to proxy connection.

The program shows the options and packs used in an Oracle database.
If the "-c" option is given, the program checks which ones are used in the current
instance. This option requires an account with SYSDBA privilege (there is no need
to specify "AS SYSDBA" in the <logon> parameter).
The other options requires an account with SELECT privilege on the V$DATABASE,
V$OPTION, V$VERSION, DBA_FEATURE_USAGE_STATISTICS, DBA_REGISTRY and
DBA_REGISTRY_SQLPATCH catalog views.
The program works for Oracle versions from 10gR1 to 12cR2.
In 12c multitenant databases, if you are connected to the root container then the
program gives information for all the containers unless the option "-ro" is given.

The program is provided as it is without any guarantees or warranty. Although the
author has attempted to find and correct any bugs in this free program, the author
is not responsible for any damage or losses of any kind caused by the use or misuse
of the program. The author is under no obligation to provide support, service,
corrections, or upgrades to this program.

You can freely use, copy and distribute this program but you can't modify it without
the permission of the author you can contact on http://www.orafaq.com
You can post your comments, ask for improvements, report bugs... on the program at
http://www.orafaq.com/forum/t/200328/

Here's an example of execution with the default option on a 12cR1 database:
C:\>McOptions-64 michel/michel@mikcdb1

McOptions Utility by Michel Cadot: Version 2017.09.05

Copyright (c) Michel Cadot, 2016-2017. All rights reserved.

Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Advanced Analytics, Data Mining, OLAP, Partitioning and Real Application Testing options

Database MIKC container MIKCDB1 instance mikc on myserver on 5-SEPT.-2017 11:34:06

Component       Version         Status      Description
--------------- --------------- ----------- --------------------------------------------------
APEX            4.2.5.00.08     VALID       Oracle Application Express
APS             12.1.0.2.0      VALID       OLAP Analytic Workspace
CATALOG         12.1.0.2.0      VALID       Oracle Database Catalog Views
CATJAVA         12.1.0.2.0      VALID       Oracle Database Java Packages
CATPROC         12.1.0.2.0      VALID       Oracle Database Packages and Types
CONTEXT         12.1.0.2.0      VALID       Oracle Text
DV              12.1.0.2.0      VALID       Oracle Database Vault
EXF             12.1.0.2.0      VALID       Oracle Expression Filter
JAVAVM          12.1.0.2.0      VALID       JServer JAVA Virtual Machine
OLS             12.1.0.2.0      VALID       Oracle Label Security
ORDIM           12.1.0.2.0      VALID       Oracle Multimedia
OWM             12.1.0.2.0      VALID       Oracle Workspace Manager
RAC             12.1.0.2.0      OPTION OFF  Oracle Real Application Clusters
RUL             12.1.0.2.0      VALID       Oracle Rules Manager
SDO             12.1.0.2.0      VALID       Spatial
XDB             12.1.0.2.0      VALID       Oracle XML Database
XML             12.1.0.2.0      VALID       Oracle XDK
XOQ             12.1.0.2.0      VALID       Oracle OLAP API

Description                                             Patch UID  Version     Flags Action   Status      Action time
------------------------------------------------------- ---------- ----------- ----- -------- ----------- -------------------
PATCH 22119791                                            19711199 12.1.0.2    N     APPLY    SUCCESS     01/08/2017 18:26:41
WINDOWS DB BUNDLE PATCH 12.1.0.2.160719(64bit):23530387   20414656 12.1.0.2    NB    APPLY    SUCCESS     01/08/2017 18:26:41

Option or Pack                        Usage                 Detected usages
------------------------------------- --------------------- ---------------
Diagnostics Pack                      Currently used                     48
Entreprise Edition (no option/pack)   Currently used                    120
Multitenant                           Currently used                     24
Tuning Pack                           Currently used                     48 (requires Diagnostics Pack)
This is the minimal output you will get.
The program first displays the standard Oracle banner (from the server not the client):
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Advanced Analytics, Data Mining, OLAP, Partitioning and Real Application Testing options
Then it displays a database specific banner:
Database MIKC container MIKCDB1 instance mikc on myserver on 5-SEPT.-2017 11:34:06
Then the installed components with their version and status (these information come from DBA_REGISTRY view):
Component       Version         Status      Description
--------------- --------------- ----------- --------------------------------------------------
APEX            4.2.5.00.08     VALID       Oracle Application Express
APS             12.1.0.2.0      VALID       OLAP Analytic Workspace
CATALOG         12.1.0.2.0      VALID       Oracle Database Catalog Views
CATJAVA         12.1.0.2.0      VALID       Oracle Database Java Packages
CATPROC         12.1.0.2.0      VALID       Oracle Database Packages and Types
CONTEXT         12.1.0.2.0      VALID       Oracle Text
DV              12.1.0.2.0      VALID       Oracle Database Vault
EXF             12.1.0.2.0      VALID       Oracle Expression Filter
JAVAVM          12.1.0.2.0      VALID       JServer JAVA Virtual Machine
OLS             12.1.0.2.0      VALID       Oracle Label Security
ORDIM           12.1.0.2.0      VALID       Oracle Multimedia
OWM             12.1.0.2.0      VALID       Oracle Workspace Manager
RAC             12.1.0.2.0      OPTION OFF  Oracle Real Application Clusters
RUL             12.1.0.2.0      VALID       Oracle Rules Manager
SDO             12.1.0.2.0      VALID       Spatial
XDB             12.1.0.2.0      VALID       Oracle XML Database
XML             12.1.0.2.0      VALID       Oracle XDK
XOQ             12.1.0.2.0      VALID       Oracle OLAP API
Then, in versions 12c, the SQL or database patches (these information come from the DBA_REGISTRY_SQLPATCH, see the Oracle Reference book for an explaination of the columns):
Description                                             Patch UID  Version     Flags Action   Status      Action time
------------------------------------------------------- ---------- ----------- ----- -------- ----------- -------------------
PATCH 22119791                                            19711199 12.1.0.2    N     APPLY    SUCCESS     01/08/2017 18:26:41
WINDOWS DB BUNDLE PATCH 12.1.0.2.160719(64bit):23530387   20414656 12.1.0.2    NB    APPLY    SUCCESS     01/08/2017 18:26:41
And in the end the used options. The last 2 columns are similar to the CURRENTLY_USED/LAST_USAGE_DATE and DETECTED_USAGES columns of the DBA_FEATURE_USAGE_STATISTICS view.
"Currently used" is currently used in Oracle meaning that is it was in use the last time Oracle checked.

You can see which features are used to justify these options using the "-f" option ("EE" means "Enterprise Edition"):
C:\>McOptions-64 -f michel/michel@mikcdb1

McOptions Utility by Michel Cadot: Version 2017.09.05

Copyright (c) Michel Cadot, 2016-2017. All rights reserved.

Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Advanced Analytics, Data Mining, OLAP, Partitioning and Real Application Testing options

Database MIKC container MIKCDB1 instance mikc on myserver on 5-SEPT.-2017 11:35:42

Component       Version         Status      Description
--------------- --------------- ----------- --------------------------------------------------
APEX            4.2.5.00.08     VALID       Oracle Application Express
APS             12.1.0.2.0      VALID       OLAP Analytic Workspace
CATALOG         12.1.0.2.0      VALID       Oracle Database Catalog Views
CATJAVA         12.1.0.2.0      VALID       Oracle Database Java Packages
CATPROC         12.1.0.2.0      VALID       Oracle Database Packages and Types
CONTEXT         12.1.0.2.0      VALID       Oracle Text
DV              12.1.0.2.0      VALID       Oracle Database Vault
EXF             12.1.0.2.0      VALID       Oracle Expression Filter
JAVAVM          12.1.0.2.0      VALID       JServer JAVA Virtual Machine
OLS             12.1.0.2.0      VALID       Oracle Label Security
ORDIM           12.1.0.2.0      VALID       Oracle Multimedia
OWM             12.1.0.2.0      VALID       Oracle Workspace Manager
RAC             12.1.0.2.0      OPTION OFF  Oracle Real Application Clusters
RUL             12.1.0.2.0      VALID       Oracle Rules Manager
SDO             12.1.0.2.0      VALID       Spatial
XDB             12.1.0.2.0      VALID       Oracle XML Database
XML             12.1.0.2.0      VALID       Oracle XDK
XOQ             12.1.0.2.0      VALID       Oracle OLAP API

Description                                             Patch UID  Version     Flags Action   Status      Action time
------------------------------------------------------- ---------- ----------- ----- -------- ----------- -------------------
PATCH 22119791                                            19711199 12.1.0.2    N     APPLY    SUCCESS     01/08/2017 18:26:41
WINDOWS DB BUNDLE PATCH 12.1.0.2.160719(64bit):23530387   20414656 12.1.0.2    NB    APPLY    SUCCESS     01/08/2017 18:26:41

Option or Pack                        Usage                 Detected usages
------------------------------------- --------------------- ---------------
Diagnostics Pack                      Currently used                     48
Entreprise Edition (no option/pack)   Currently used                    120
Multitenant                           Currently used                     24
Tuning Pack                           Currently used                     48 (requires Diagnostics Pack)

Feature                                                EE  Option or Pack              Usage Comment
------------------------------------------------------ --- ------------------------- ------- --------------------------------
Adaptive Plans                                         Yes                                24 Currently used
Automatic Maintenance - SQL Tuning Advisor             Yes Tuning Pack                    24 Currently used
Deferred Segment Creation                              Yes                                24 Currently used
Oracle Pluggable Databases                             Yes Multitenant                    24 Currently used
Parallel SQL Query Execution                           Yes                                24 Currently used
Partitioning (system)                                  Yes                                24 Currently used
Result Cache                                           Yes                                24 Currently used
SQL Plan Directive                                     Yes Tuning Pack                    24 Currently used
In addition, if you want to see which free features you used you can give the "--free" option:
C:\>McOptions-64 --free michel/michel@mikcdb1

McOptions Utility by Michel Cadot: Version 2017.09.05

Copyright (c) Michel Cadot, 2016-2017. All rights reserved.

Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Advanced Analytics, Data Mining, OLAP, Partitioning and Real Application Testing options

Database MIKC container MIKCDB1 instance mikc on myserver on 5-SEPT.-2017 11:36:44

Component       Version         Status      Description
--------------- --------------- ----------- --------------------------------------------------
APEX            4.2.5.00.08     VALID       Oracle Application Express
APS             12.1.0.2.0      VALID       OLAP Analytic Workspace
CATALOG         12.1.0.2.0      VALID       Oracle Database Catalog Views
CATJAVA         12.1.0.2.0      VALID       Oracle Database Java Packages
CATPROC         12.1.0.2.0      VALID       Oracle Database Packages and Types
CONTEXT         12.1.0.2.0      VALID       Oracle Text
DV              12.1.0.2.0      VALID       Oracle Database Vault
EXF             12.1.0.2.0      VALID       Oracle Expression Filter
JAVAVM          12.1.0.2.0      VALID       JServer JAVA Virtual Machine
OLS             12.1.0.2.0      VALID       Oracle Label Security
ORDIM           12.1.0.2.0      VALID       Oracle Multimedia
OWM             12.1.0.2.0      VALID       Oracle Workspace Manager
RAC             12.1.0.2.0      OPTION OFF  Oracle Real Application Clusters
RUL             12.1.0.2.0      VALID       Oracle Rules Manager
SDO             12.1.0.2.0      VALID       Spatial
XDB             12.1.0.2.0      VALID       Oracle XML Database
XML             12.1.0.2.0      VALID       Oracle XDK
XOQ             12.1.0.2.0      VALID       Oracle OLAP API

Description                                             Patch UID  Version     Flags Action   Status      Action time
------------------------------------------------------- ---------- ----------- ----- -------- ----------- -------------------
PATCH 22119791                                            19711199 12.1.0.2    N     APPLY    SUCCESS     01/08/2017 18:26:41
WINDOWS DB BUNDLE PATCH 12.1.0.2.160719(64bit):23530387   20414656 12.1.0.2    NB    APPLY    SUCCESS     01/08/2017 18:26:41

Option or Pack                        Usage                 Detected usages
------------------------------------- --------------------- ---------------
Diagnostics Pack                      Currently used                     48
Entreprise Edition (no option/pack)   Currently used                    120
Multitenant                           Currently used                     24
Tuning Pack                           Currently used                     48 (requires Diagnostics Pack)

EE  Option or Pack            Feature                                                  Usage Comment
--- ------------------------- ------------------------------------------------------ ------- --------------------------------
No                            Automatic Maintenance - Optimizer Statistics Gathering      24 Currently used
No                            Automatic Maintenance - Space Advisor                       24 Currently used
No                            Automatic Reoptimization                                    24 Currently used
No                            Automatic SGA Tuning                                        24 Currently used
No                            Automatic SQL Execution Memory                              24 Currently used
No                            Automatic Segment Space Management (system)                 24 Currently used
No                            Automatic Segment Space Management (user)                   24 Currently used
No                            Automatic Undo Management                                   24 Currently used
No                            Character Semantics                                         24 Currently used
No                            Character Set                                               24 Currently used
No                            Editioning Views                                             3 Currently used
No                            Editions                                                     3 Currently used
No                            Job Scheduler                                               24 Currently used
No                            LOB                                                         24 Currently used
No                            Locally Managed Tablespaces (system)                        24 Currently used
No                            Locally Managed Tablespaces (user)                          24 Currently used
No                            Logfile Multiplexing                                        24 Currently used
No                            MTTR Advisor                                                24 Currently used
No                            Oracle Java Virtual Machine (system)                        24 Currently used
No                            RMAN - Disk Backup                                           2 Last: 07/08/2017
No                            Recovery Area                                               24 Currently used
No                            Recovery Manager (RMAN)                                      2 Last: 07/08/2017
No                            SecureFiles (system)                                        24 Currently used
No                            SecureFiles (user)                                          24 Currently used
No                            Server Parameter File                                       24 Currently used
No                            Services                                                    24 Currently used
No                            Traditional Audit                                           24 Currently used
No                            Unified Audit                                               24 Currently used

Yes                           Adaptive Plans                                              24 Currently used
Yes                           Deferred Segment Creation                                   24 Currently used
Yes                           Parallel SQL Query Execution                                24 Currently used
Yes                           Partitioning (system)                                       24 Currently used
Yes                           Result Cache                                                24 Currently used
Yes Multitenant               Oracle Pluggable Databases                                  24 Currently used
Yes Tuning Pack               Automatic Maintenance - SQL Tuning Advisor                  24 Currently used
Yes Tuning Pack               SQL Plan Directive                                          24 Currently used
The previous information come and are aggregated from the DBA_FEATURE_USAGE_STATISTICS view.

Now the program can immediately check the currently used options and features using the "-c" option:
C:\>McOptions-64 -c michel/michel@mikcdb1

McOptions Utility by Michel Cadot: Version 2017.09.05

Copyright (c) Michel Cadot, 2016-2017. All rights reserved.

Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Advanced Analytics, Data Mining, OLAP, Partitioning and Real Application Testing options

Database MIKC container MIKCDB1 instance mikc on myserver on 5-SEPT.-2017 11:37:47

Component       Version         Status      Description
--------------- --------------- ----------- --------------------------------------------------
APEX            4.2.5.00.08     VALID       Oracle Application Express
APS             12.1.0.2.0      VALID       OLAP Analytic Workspace
CATALOG         12.1.0.2.0      VALID       Oracle Database Catalog Views
CATJAVA         12.1.0.2.0      VALID       Oracle Database Java Packages
CATPROC         12.1.0.2.0      VALID       Oracle Database Packages and Types
CONTEXT         12.1.0.2.0      VALID       Oracle Text
DV              12.1.0.2.0      VALID       Oracle Database Vault
EXF             12.1.0.2.0      VALID       Oracle Expression Filter
JAVAVM          12.1.0.2.0      VALID       JServer JAVA Virtual Machine
OLS             12.1.0.2.0      VALID       Oracle Label Security
ORDIM           12.1.0.2.0      VALID       Oracle Multimedia
OWM             12.1.0.2.0      VALID       Oracle Workspace Manager
RAC             12.1.0.2.0      OPTION OFF  Oracle Real Application Clusters
RUL             12.1.0.2.0      VALID       Oracle Rules Manager
SDO             12.1.0.2.0      VALID       Spatial
XDB             12.1.0.2.0      VALID       Oracle XML Database
XML             12.1.0.2.0      VALID       Oracle XDK
XOQ             12.1.0.2.0      VALID       Oracle OLAP API

Description                                             Patch UID  Version     Flags Action   Status      Action time
------------------------------------------------------- ---------- ----------- ----- -------- ----------- -------------------
PATCH 22119791                                            19711199 12.1.0.2    N     APPLY    SUCCESS     01/08/2017 18:26:41
WINDOWS DB BUNDLE PATCH 12.1.0.2.160719(64bit):23530387   20414656 12.1.0.2    NB    APPLY    SUCCESS     01/08/2017 18:26:41

Option or Pack                        Usage                 Detected usages
------------------------------------- --------------------- ---------------
Diagnostics Pack                      Currently used                     48
Entreprise Edition (no option/pack)   Currently used                    120
Multitenant                           Currently used                     24
Tuning Pack                           Currently used                     48 (requires Diagnostics Pack)


Options currently used:
-----------------------
Entreprise Edition (no option/pack) -----> Adaptive Plans
                                           Deferred Segment Creation
                                           Parallel SQL Query Execution
                                           Partitioning (system)
                                           Result Cache
Multitenant -----------------------------> Oracle Pluggable Databases
Tuning Pack -----------------------------> Automatic Maintenance - SQL Tuning Advisor
                                           SQL Plan Directive
The format is: <the option or pack used> ---> <the used feature that justifies this option>.
"Options currently used" here are options really currently used not the same than the "Currently used" of the previous chart which, I repeat, means used when Oracle checks it the last time.
Note: the "-c" option requires an account with SYSDBA privilege (it is not needed to specify AS SYSDBA in the <logon> parameter).

In the end, if you want to know which options are installed you can use the "-o" option (this information is directly gotten from the V$OPTION view):
C:\>McOptions-64 -o michel/michel@mikcdb1

McOptions Utility by Michel Cadot: Version 2017.09.05

Copyright (c) Michel Cadot, 2016-2017. All rights reserved.

Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Advanced Analytics, Data Mining, OLAP, Partitioning and Real Application Testing options

Database MIKC container MIKCDB1 instance mikc on myserver on 5-SEPT.-2017 11:39:06

Installed options
-----------------
Active Data Guard
Adaptive Execution Plans
Advanced Analytics
Advanced Compression
Advanced Index Compression
Advanced replication
Application Role
Automatic Data Optimization
Backup Encryption
Basic Compression
Bit-mapped indexes
Block Change Tracking
Block Media Recovery
Cache Fusion Lock Accelerator
Change Data Capture
Coalesce Index
Connection multiplexing
Connection pooling
Cross Transportable Backups
DICOM
Data Mining
Data Redaction
Database queuing
Database resource manager
Deferred Segment Creation
Duplexed backups
Enterprise User Security
Exadata Discovery
Export transportable tablespaces
Fast-Start Fault Recovery
File Mapping
Fine-grained Auditing
Fine-grained access control
Flashback Data Archive
Flashback Database
Flashback Table
Global Data Services
Heat Map
In-Memory Aggregation
In-Memory Column Store
Incremental backup and recovery
Instead-of triggers
Java
Join index
Managed Standby
Materialized view rewrite
OLAP
OLAP Window Functions
Objects
Online Index Build
Online Redefinition
Oracle Data Guard
Parallel backup and recovery
Parallel execution
Parallel load
Partitioning
Plan Stability
Point-in-time tablespace recovery
Privilege Analysis
Proxy authentication/authorization
Real Application Security
Real Application Testing
Result Cache
SQL Plan Management
Sample Scan
SecureFiles Encryption
Server Flash Cache
Snapshot time recovery
Spatial
Streams Capture
Table Clustering
Transparent Application Failover
Transparent Data Encryption
Transparent Sensitive Data Protection
Trial Recovery
Unused Block Compression
XStream
Zone Maps

Component       Version         Status      Description
--------------- --------------- ----------- --------------------------------------------------
APEX            4.2.5.00.08     VALID       Oracle Application Express
APS             12.1.0.2.0      VALID       OLAP Analytic Workspace
CATALOG         12.1.0.2.0      VALID       Oracle Database Catalog Views
CATJAVA         12.1.0.2.0      VALID       Oracle Database Java Packages
CATPROC         12.1.0.2.0      VALID       Oracle Database Packages and Types
CONTEXT         12.1.0.2.0      VALID       Oracle Text
DV              12.1.0.2.0      VALID       Oracle Database Vault
EXF             12.1.0.2.0      VALID       Oracle Expression Filter
JAVAVM          12.1.0.2.0      VALID       JServer JAVA Virtual Machine
OLS             12.1.0.2.0      VALID       Oracle Label Security
ORDIM           12.1.0.2.0      VALID       Oracle Multimedia
OWM             12.1.0.2.0      VALID       Oracle Workspace Manager
RAC             12.1.0.2.0      OPTION OFF  Oracle Real Application Clusters
RUL             12.1.0.2.0      VALID       Oracle Rules Manager
SDO             12.1.0.2.0      VALID       Spatial
XDB             12.1.0.2.0      VALID       Oracle XML Database
XML             12.1.0.2.0      VALID       Oracle XDK
XOQ             12.1.0.2.0      VALID       Oracle OLAP API

Description                                             Patch UID  Version     Flags Action   Status      Action time
------------------------------------------------------- ---------- ----------- ----- -------- ----------- -------------------
PATCH 22119791                                            19711199 12.1.0.2    N     APPLY    SUCCESS     01/08/2017 18:26:41
WINDOWS DB BUNDLE PATCH 12.1.0.2.160719(64bit):23530387   20414656 12.1.0.2    NB    APPLY    SUCCESS     01/08/2017 18:26:41

Option or Pack                        Usage                 Detected usages
------------------------------------- --------------------- ---------------
Diagnostics Pack                      Currently used                     48
Entreprise Edition (no option/pack)   Currently used                    120
Multitenant                           Currently used                     24
Tuning Pack                           Currently used                     48 (requires Diagnostics Pack)

References initially used:
Oracle® Database Licensing Information 10g Release 2 (10.2) B14199-28 (June 2014, final version)
Oracle® Database Licensing Information 11g Release 2 (11.2) E47877-05 (September 2014)
Oracle® Database Licensing Information 12c Release 1 (12.1) E49208-10 (May 2015)

Last references used:
Oracle® Database Licensing Information 10g Release 2 (10.2) B14199-28 (June 2014, final version)
Oracle® Database Licensing Information 11g Release 2 (11.2) E47877-11 (December 2016, final version)
Oracle® Database Licensing Information User Manual 12c Release 1 (12.1) E49208-22 (June 2017)
Oracle® Database Licensing Information User Manual 12c Release 2 (12.2) E49729-17 (May 2017)

Latest version: 2017.09.05, download in Oracle licensing wiki page
32-bit: 
  MD5:   0918e871b1c5a2437eea8462567a3c22
  SHA-1: 95afb97a30bdb68b3c2dc4e367efb0d1c1059dd1
64-bit: 
  MD5:   dfc295a9018a674d15e39d2f3eaa068b
  SHA-1: e06941bbd1abd9fd62629eb466af5175b2926cd0

[Updated on: Tue, 05 September 2017 11:13]

Report message to a moderator

Re: McOptions: a program which allows to know which options are used in a database [message #650472 is a reply to message #649263] Tue, 26 April 2016 03:56 Go to previous messageGo to next message
Michel Cadot
Messages: 65190
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

Updated today with the latest licensing information including 12.1.0.2:

Oracle® Database Licensing Information 11g Release 2 (11.2) E47877-07 (February 2016)
Oracle® Database Licensing Information User Manual 12c Release 1 (12.1) E49208-14 (February 2016)

Note: if you have not the privileges to get the information you will receive the following message:
*** ORA-00942: table or view does not exist

[Updated on: Tue, 26 April 2016 04:13]

Report message to a moderator

Re: McOptions: a program which allows to know which options are used in a database [message #655197 is a reply to message #650472] Wed, 24 August 2016 10:31 Go to previous messageGo to next message
Michel Cadot
Messages: 65190
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

McOptions now supports proxy connection.

Re: McOptions: a program which allows to know which options are used in a database [message #655237 is a reply to message #649263] Thu, 25 August 2016 09:40 Go to previous messageGo to next message
willnb10
Messages: 5
Registered: August 2016
Junior Member
Hi,

I tried you program but got the following error while executing on Windows Server 2008 R2 Standard with Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production

>McOptions -h
Can't load 'C:\Users\ADMINI~1\AppData\Local\Temp\1\par-41646d696e6973747261746f72\cache-7e846778ce271777bc26b67bd2b9ffb5919f1f3e\051dbf
e5.dll' for module DBD::Oracle: load_file:%1 is not a valid Win32 application at C:\Perl\lib/DynaLoader.pm line 194.
at C:/Perl/site/lib/PAR/Heavy.pm line 120.
Compilation failed in require at script/McOptions.pl line 19.
BEGIN failed--compilation aborted at script/McOptions.pl line 19.

Any prerequisite I'm missing ?
Re: McOptions: a program which allows to know which options are used in a database [message #655239 is a reply to message #655237] Thu, 25 August 2016 09:57 Go to previous messageGo to next message
Michel Cadot
Messages: 65190
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

First let us try removing all your possible Perl settings: %PERL5LIB, Perl in %PATH...
Just keep Windows and Oracle stuff in PATH.
Set %ORACLE_HOME* variables as needed.
Try.
What happens?

Re: McOptions: a program which allows to know which options are used in a database [message #655240 is a reply to message #655239] Thu, 25 August 2016 10:05 Go to previous messageGo to next message
willnb10
Messages: 5
Registered: August 2016
Junior Member
I have no Perl in Path and ORACLE_HOME is set correctly.
Re: McOptions: a program which allows to know which options are used in a database [message #655241 is a reply to message #655240] Thu, 25 August 2016 10:20 Go to previous messageGo to next message
Michel Cadot
Messages: 65190
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

Please post the result of
SET
DIR C:\Perl
(Remove COMPUTERNAME, USERDOMAIN or any confidential variables.)
Do you use a local or a domain user?

Re: McOptions: a program which allows to know which options are used in a database [message #655243 is a reply to message #655241] Thu, 25 August 2016 10:50 Go to previous messageGo to next message
willnb10
Messages: 5
Registered: August 2016
Junior Member
what precise environment variable do you want me to show ?
C:\Perl does not exist
Re: McOptions: a program which allows to know which options are used in a database [message #655247 is a reply to message #655243] Thu, 25 August 2016 11:46 Go to previous messageGo to next message
Michel Cadot
Messages: 65190
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

All of them to see if there is any incompatibility.
Please don't tell, copy and paste.


Re: McOptions: a program which allows to know which options are used in a database [message #655293 is a reply to message #655247] Fri, 26 August 2016 02:31 Go to previous messageGo to next message
willnb10
Messages: 5
Registered: August 2016
Junior Member
Here is the result
Toggle Spoiler
Re: McOptions: a program which allows to know which options are used in a database [message #655297 is a reply to message #655293] Fri, 26 August 2016 03:13 Go to previous messageGo to next message
Michel Cadot
Messages: 65190
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

One thing puzzles me: you said: "Windows Server 2008 R2 Standard with Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production" and your processors are 32bit.

I think the problem is that it does not find OCI.DLL, didn't have you a popup Windows when you executed McOptions?
Find the DLL and add its path into PATH variable.


Re: McOptions: a program which allows to know which options are used in a database [message #655298 is a reply to message #655297] Fri, 26 August 2016 03:41 Go to previous messageGo to next message
willnb10
Messages: 5
Registered: August 2016
Junior Member
My processor is 64 bit.
>wmic os get osarchitecture
OSArchitecture
64-bit

No popup was shown.
oci.dll is in %ORACLE_HOME%\bin that already is in my PATH variable.

Do you share your source code somewhere ?

[Updated on: Fri, 26 August 2016 03:41]

Report message to a moderator

Re: McOptions: a program which allows to know which options are used in a database [message #655299 is a reply to message #655298] Fri, 26 August 2016 03:53 Go to previous messageGo to next message
Michel Cadot
Messages: 65190
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

Quote:
My processor is 64 bit.
Oh yes, misread the lines, sorry. ./fa/1606/0/

Quote:
oci.dll is in %ORACLE_HOME%\bin that already is in my PATH variable.
OK, so the error: "load_file:%1 is not a valid Win32", I need 32bit OCI.DLL.

Quote:
Do you share your source code somewhere ?
No (and it won't help you in this case.)

A quick workaround is to install a 32bit client (in a separate home and directory than your current install) and set this environment to use the program.

Re: McOptions: a program which allows to know which options are used in a database [message #656366 is a reply to message #655299] Tue, 04 October 2016 01:36 Go to previous messageGo to next message
Michel Cadot
Messages: 65190
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

McOptions now supports 64-bit client.
There are actually 2 downloads, one for 32-bit and one for 64-bit (see link in first post).

Re: McOptions: a program which allows to know which options are used in a database [message #661156 is a reply to message #656366] Thu, 09 March 2017 04:23 Go to previous messageGo to next message
Michel Cadot
Messages: 65190
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

Changes in the new version are the following ones:
  • Fix minor bugs in all versions
  • Several improvements in all versions
  • Support of multitenant databases in 12c: if you connect to root container, McOptions returns you the information about all containers
  • Updated today with the latest licensing information:
    Oracle® Database Licensing Information 11g Release 2 (11.2) E47877-11 (December 2016)
    Oracle® Database Licensing Information User Manual 12c Release 1 (12.1) E49208-20 (December 2016)
Next step: Support of 12.2.

[Updated on: Thu, 09 March 2017 04:24]

Report message to a moderator

icon4.gif  Re: McOptions: a program which allows to know which options are used in a database [message #664473 is a reply to message #649263] Wed, 19 July 2017 17:17 Go to previous messageGo to next message
ridham
Messages: 1
Registered: July 2017
Junior Member
I ran this utility against 12.1.0.2 database with "-c" option and I got following error message:
DEBUG: Real-Time SQL Monitoring
DEBUG: SELECT used, sofar_exec, dbf_clob
         FROM   (SELECT count(*) used
                 FROM   dba_sql_monitor_usage
                 WHERE  num_db_reports > 0 AND
                        last_db_report_time >=  (select nvl(max(last_sample_date
), sysdate-7) from wri$_dbu_usage_sample) ),
                (SELECT num_db_reports sofar_exec,
                        xmlelement("sqlmon_usage",
                         xmlelement("num_em_reports", num_em_reports),
                         xmlelement("first_db_report_time",
                           to_char(first_db_report_time,
                                   'dd-mon-yyyy hh24:mi:ss')),
                         xmlelement("last_db_report_time",
                           to_char(last_db_report_time,
                                   'dd-mon-yyyy hh24:mi:ss')),
                         xmlelement("first_em_report_time",
                           to_char(first_em_report_time,
                                   'dd-mon-yyyy hh24:mi:ss')),
                         xmlelement("last_em_report_time",
                           to_char(last_em_report_time,
                                   'dd-mon-yyyy hh24:mi:ss'))
                        ).getClobVal(2,2) dbf_clob
                FROM dba_sql_monitor_usage)
DEBUG: ORA-01422: exact fetch returns more than requested number of rows
DEBUG: Real-Time SQL Monitoring

Please update the query appropriately...

FYI - when I executed this SQL in the database, I got following result:

SQL> set lines 200
SQL> SELECT used, sofar_exec, dbf_clob
         FROM   (SELECT count(*) used
               2      FROM   dba_sql_monitor_usage
  3    4                   WHERE  num_db_reports > 0 AND
                        last_db_report_time >=  (select nvl(max(last_sample_date
), sysdate-7) from wri$_dbu_usage_sample) ),
  5                  (SELECT num_db_reports sofar_exec,
                        xmlelement("sqlmon_usage",
  6                           xmlelement("num_em_reports", num_em_reports),
                         xmlelement("first_db_report_time",
  7    8    9   10   11                             to_char(first_db_report_time,
                                   'dd-mon-yyyy hh24:mi:ss')),
                         xmlelement("last_db_report_time",
                           to_char(last_db_report_time,
                                   'dd-mon-yyyy hh24:mi:ss')),
                         xmlelement("first_em_report_time",
                           to_char(first_em_report_time,
                                   'dd-mon-yyyy hh24:mi:ss')),
 12   13   14   15   16   17   18   19                           xmlelement("last_em_report_time",
                           to_char(last_em_report_time,
                                   'dd-mon-yyyy hh24:mi:ss'))
                        ).getClobVal(2,2) dbf_clob
                FROM dba_sql_monitor_usage) 20   21   22   23  ;

      USED SOFAR_EXEC DBF_CLOB
---------- ---------- --------------------------------------------------------------------------------
         3        280 <sqlmon_usage>
                        <num_em_reports>0</num_em_reports>
                        <first_db_report_time>04-a

         3        280 <sqlmon_usage>
                        <num_em_reports>0</num_em_reports>
                        <first_db_report_time>04-a

         3        280 <sqlmon_usage>
                        <num_em_reports>0</num_em_reports>
                        <first_db_report_time>04-a
Re: McOptions: a program which allows to know which options are used in a database [message #664475 is a reply to message #664473] Thu, 20 July 2017 01:10 Go to previous messageGo to next message
Michel Cadot
Messages: 65190
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

Thanks for the information, I will investigate it as soon as possible.
Re: McOptions: a program which allows to know which options are used in a database [message #664513 is a reply to message #664473] Thu, 20 July 2017 10:16 Go to previous messageGo to next message
Michel Cadot
Messages: 65190
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

The problem came from a bug in an Oracle view, code has been fixed to workaround it.

Other changes in the new version are the following ones:
  • Fix minor bugs in all versions
  • Updated with the latest licensing information:
    Oracle® Database Licensing Information User Manual 12c Release 1 (12.1) E49208-22 (June 2017)
Next step: Support of 12.2.

[Updated on: Tue, 05 September 2017 11:15]

Report message to a moderator

Re: McOptions: a program which allows to know which options are used in a database [message #665436 is a reply to message #664513] Tue, 05 September 2017 11:15 Go to previous message
Michel Cadot
Messages: 65190
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

New version with the following changes:
  • Add option "-ro" for "root only" when connected to CDB$ROOT (see help in first post)
  • Add synonyms to program parameters (see help in first post)
  • Add registered components in default display (see example in first post)
  • Add SQL/database patches for 12.1+ versions (see example in first post)
  • Add support of version 12.2 using E49729-17 book (May 2017)
  • Because of bug 23734270 with no workaround (wrong/unavailable data in dictionary), ignore "Real-Time SQL Monitoring" feature in 12.*

[Updated on: Tue, 05 September 2017 11:17]

Report message to a moderator

Previous Topic: Anyone want to buy a SPARC server?
Next Topic: McUnwrap: unwrap your PL/SQL code
Goto Forum:
  


Current Time: Sun Oct 22 17:58:50 CDT 2017

Total time taken to generate the page: 0.01315 seconds