Home » Other » Marketplace » McOptions: a program which allows to know which options are used in a database (10gR2 to 19c)
McOptions: a program which allows to know which options are used in a database [message #649263] |
Sun, 20 March 2016 11:35  |
 |
Michel Cadot
Messages: 67648 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 2020.06.27
Copyright (c) Michel Cadot, 2016-2020. All rights reserved.
Usage: McOptions.exe [-h] [-f [-fr]] [-c [--disable option>[...]]] [-o] [-ro] [-v] [<logon>]
where <options> can be one or several of:
{ -c | --check } Checks now (requires SYSDBA privilege).
{ --disable <feature or option> }
Disable the checking of the given feature or option
(ignored if "-c" is not given)
{ -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 before 12c).
{ -v | --verbose } Displays additional information about patches:
registry history, patches list, incompatibilities between a PDB
and the CDB to which it belongs and PDB alerts
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 feature 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 "-v" option requires SELECT privileges on the DBA_REGISTRY_HISTORY,
DBA_REGISTRY_SQLPATCH, PDB_PLUG_IN_VIOLATIONS and PDB_ALERTS catalog views,
and the EXECUTE privilege on the DBMS_QOPATCH package.
* The program works for Oracle versions from 10gR1 to 19c.
* In 12c+ multitenant databases, if you are connected to the root container then the
program gives information for all the containers you have access unless the option
"-ro" is given.
* There can be several "--disable" parameter.
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/
I encourage you to subscribe to this topic (link at top of the page) if you want to
be warned when a new version is released.
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)
Latest 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-26 (April 2020)
Oracle® Database Licensing Information User Manual 12c Release 2 (12.2) E85683-16 (April 2020)
Oracle® Database Licensing Information User Manual 18c E87202-18 (April 2020)
Oracle® Database Licensing Information User Manual 19c E94254-18 (April 2020)
Latest version: 2020.06.27, download in Oracle licensing wiki page
32-bit:
MD5: f6803b67d215269a8dea7a083d02a01b
SHA-1: 9ec390714ad113d2e1b221f3e710ac1e4963ea61
64-bit:
MD5: 04e994d3133f8a0fb64fd660dc321cb8
SHA-1: f0a5acccdec7ac86335e9b14b9922da3dcc3195b
[Updated on: Mon, 18 January 2021 10:53] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
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   |
 |
willnb10
Messages: 5 Registered: August 2016
|
Junior Member |
|
|
Here is the result
Toggle SpoilerResult of set:
>set
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\Administrator\AppData\Roaming
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=ERASED
ComSpec=C:\Windows\system32\cmd.exe
DATA_PUMP_DIR=c:\oracle11\admin\DB\dpdump\
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Users\Administrator
JAVA_HOME=C:\Progra~1\Java\jdk1.7.0_79\bin
LOCALAPPDATA=C:\Users\Administrator\AppData\Local
LOGONSERVER=\\ESM-VALID-INT
NUMBER_OF_PROCESSORS=8
ORACLE_BASE=c:\oracle11\
ORACLE_HOME=c:\oracle11\DatabaseOra11\
ORACLE_SID=DB
OS=Windows_NT
Path=c:\oracle11\DatabaseOra11\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;;C:\Program Files (x86)\NTP\bin;C:\Program Files\Java\jre7\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 62 Stepping 4, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=3e04
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC=C:\Users\Public
RANDFILE=C:\Program Files (x86)\NTP\etc\.rnd
SESSIONNAME=RDP-Tcp#0
SID=DB
SystemDrive=C:
SystemRoot=C:\Windows
TEMP=C:\Users\ADMINI~1\AppData\Local\Temp\1
TMP=C:\Users\ADMINI~1\AppData\Local\Temp\1
USERDOMAIN=ERASED
USERNAME=Administrator
USERPROFILE=C:\Users\Administrator
windir=C:\Windows
Result of dir C:\Perl
>dir C:\Perl
Volume in drive C is SYSTEM
Volume Serial Number is F204-16BD
Directory of C:\
File Not Found
|
|
|
|
|
|
|
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   |
 |
Michel Cadot
Messages: 67648 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
|
|
|
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   |
 |
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 #665436 is a reply to message #664513] |
Tue, 05 September 2017 11:15   |
 |
Michel Cadot
Messages: 67648 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
|
|
|
|
|
|
|
|
|
|
|
Re: McOptions: a program which allows to know which options are used in a database [message #672813 is a reply to message #665436] |
Sun, 28 October 2018 03:52   |
 |
Michel Cadot
Messages: 67648 Registered: March 2007 Location: Nanterre, France, http://...
|
Senior Member Account Moderator |
|
|
New version with the following changes:
- Add option "--disable" (see help in first post and below)
- Updated with the latest licensing information:
Oracle® Database Licensing Information User Manual 12c Release 1 (12.1) E49208-23 (May 2018)
Oracle® Database Licensing Information User Manual 12c Release 2 (12.2) E85683-04 (August 2018)
- Apply fix for bug 1993134.1 in the code
- Code for option "-c" has been completely rewritten; now the program executes, whatever is your patch level, either the code of the latest PSU at the time McOptions is delivered (currently PSU 181016) or the code of your database if it is newer; more, it backports the code of the latest versions to the previous ones when appropriate so you have fixes on versions that are no more updated by Oracle
Sometimes "-c" option aborts with an error in the OCI layer and then you have not the result of the checking. This has been discovered in 10g for features "Change Data Capture" and "Oracle Database Vault" but may happen in other cases.
The new option "--disable" has been introduced to prevent from this as you can disable the checking of the features or options that lead to this error in your case.
You can give several "--disable" options on the command line.
[Updated on: Tue, 30 October 2018 07:02] Report message to a moderator
|
|
|
|
|
Re: McOptions: a program which allows to know which options are used in a database [message #681229 is a reply to message #673581] |
Sat, 27 June 2020 11:07  |
 |
Michel Cadot
Messages: 67648 Registered: March 2007 Location: Nanterre, France, http://...
|
Senior Member Account Moderator |
|
|
New version (2020.06.27) with the following changes:
- Support of Oracle version 19c with licensing information from:
Oracle® Database Licensing Information User Manual 19c E94254-18 (April 2020)
- Update the previous versions with the latest licensing information:
Oracle® Database Licensing Information User Manual 12c Release 1 (12.1) E49208-26 (April 2020)
Oracle® Database Licensing Information User Manual 12c Release 2 (12.2) E85683-16 (April 2020)
Oracle® Database Licensing Information User Manual 18c E87202-18 (April 2020)
- Improve the previous versions, for instance check the control_management_pack_access init.ora parameter
- Fix a couple of minor bugs
- New option "-v" or "--verbose" which gives the following information (if you are allowed to get it) (see example below):
- registry history
- list of patches
- PDB violations and alerts
Verbose option
Here's an example of use of the verbose option:
C:\>McOptions-64 -ro -v michel/michel
McOptions Utility by Michel Cadot: Version 2020.06.27
Copyright (c) Michel Cadot, 2016-2020. All rights reserved.
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
With the Advanced Analytics, Data Mining, OLAP, Partitioning and Real Application Testing options
Database MIKJ3 container CDB$ROOT instance mikj3 on arda on 27-JUN-2020 17:17:26
Component Version Status Description
--------------- --------------- ----------- --------------------------------------------------
APEX 18.2.0.00.12 VALID Oracle Application Express
APS 19.0.0.0.0 VALID OLAP Analytic Workspace
CATALOG 19.0.0.0.0 VALID Oracle Database Catalog Views
CATJAVA 19.0.0.0.0 VALID Oracle Database Java Packages
CATPROC 19.0.0.0.0 VALID Oracle Database Packages and Types
CONTEXT 19.0.0.0.0 VALID Oracle Text
DV 19.0.0.0.0 VALID Oracle Database Vault
JAVAVM 19.0.0.0.0 VALID JServer JAVA Virtual Machine
OLS 19.0.0.0.0 VALID Oracle Label Security
ORDIM 19.0.0.0.0 VALID Oracle Multimedia
OWM 19.0.0.0.0 VALID Oracle Workspace Manager
RAC 19.0.0.0.0 OPTION OFF Oracle Real Application Clusters
SDO 19.0.0.0.0 LOADING Spatial
XDB 19.0.0.0.0 VALID Oracle XML Database
XML 19.0.0.0.0 VALID Oracle XDK
XOQ 19.0.0.0.0 VALID Oracle OLAP API
Operation time Operation Space Version Patch Comments
---------------- ------------ --------- --------------- ------- ------------------------------------------------------------
BOOTSTRAP DATAPATCH 19 RDBMS_19.3.0.0.0DBRU_WINDOWS.X64_190528
2020/06/19 10:59 RU_APPLY SERVER 19.0.0.0.0 Patch applied from 19.3.0.0.0 to 19.7.0.0.0: Release_Update
2020/06/19 15:22 jvmpsu.sql SERVER 19.7.0.0.200414 0 RAN jvmpsu.sql
2020/06/19 15:22 APPLY SERVER 19.7.0.0.200414 0 OJVM RU post-install
Patch description Patch UID Version Flags Action Status Action time
------------------------------------------------------- ---------- ------------- ----- -------- ----------- -------------------
Windows Database Bundle Patch : 19.7.0.0.200414 (309013 23471163 19.1.0>19.7.0 N APPLY SUCCESS 19/06/2020 11:05:29
OJVM RELEASE UPDATE: 19.7.0.0.200414 (30805684) 23504850 19.7.0>19.7.0 NJ APPLY SUCCESS 19/06/2020 15:23:32
Patch Id : 30901317
Action : APPLY
Action Time : 19-JUN-2020 11:05:29
Description : Windows Database Bundle Patch : 19.7.0.0.200414 (30901317)
Logfile : D:\Oracle2\cfgtoollogs\sqlpatch\30901317\23471163/30901317_apply_MIKJ3_CDBROOT_2020Jun19_10_55_54.log
Status : SUCCESS
Patch Id : 30805684
Action : APPLY
Action Time : 19-JUN-2020 15:23:32
Description : OJVM RELEASE UPDATE: 19.7.0.0.200414 (30805684)
Logfile : D:\Oracle2\cfgtoollogs\sqlpatch\30805684\23504850/30805684_apply_MIKJ3_CDBROOT_2020Jun19_15_21_01.log
Status : SUCCESS
==> No PDB alerts
Option or Pack Usage Detected usages
------------------------------------- --------------------- ---------------
Entreprise Edition (no option/pack) Currently used 40
Diagnostics Pack Currently used 32
Multitenant Currently used 10
Tuning Pack Currently used 31 (requires Diagnostics Pack)
The verbose option adds the following parts:
- The registry history which is the chart with first column "Operation time" giving the operation, its type ("Space" column), its version and some comments
- The list of the patches (each section starting with "Patch Id :") with the patch id, the action and action time, the description of the patch, its log file and status
- The PDB alerts (empty here)
An example of PDB alerts is (from another database):
Operation time Type Error Status Cause
---------------- --------- ------ --------- ---------------------------------------------------------------------------------
PDBs Action
------------------------------------------- ---------------------------------------------------------------------------------
Message
-----------------------------------------------------------------------------------------------------------------------------
2016/10/20 19:48 WARNING 0 RESOLVED missing XDB schema type
MIKCDB1,MIKCDB2 Please execute xdb.DBMS_XMLSTORAGE_MANAGE.GetTypeDDL
There are common XDB schema types missing from ROOT.
=============================================================================================================================
2018/10/23 10:35 ERROR 0 RESOLVED SQL Patch
PDB$SEED Call datapatch to install in the PDB or the CDB
PSU bundle patch 160719 (WINDOWS DB BUNDLE PATCH 12.1.0.2.160719(64bit):23530387): Installed in the CDB but not in the PDB.
This chart gives the time of the operation, the type of alert, the error if applicable, the status of the alert (changed to RESOLVED when the appropriate action has been taken), its cause, the PDBs it concerns, the action to solve the alert, and a descriptive message.
[Updated on: Mon, 18 January 2021 11:02] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Wed Jan 20 20:16:40 CST 2021
|