RE: Oracle license requirements for unused options

Hi Richard,

>> In dba_feature_usage__stats which I read somewhere may not be exactly
>> correct, but now they know if you've ever used the feature never mind
>> currently using.  Tricky.

Well, the script I was supplied with by Oracle Licensing to run an
audit, and which will be used if Oracle ever audit you, uses it as
follows:

SELECT
0                     ||',' ||
DBID                  ||',"'||
NAME                  ||'",'||
VERSION               ||',' ||
DETECTED_USAGES       ||',' ||
TOTAL_SAMPLES         ||',' ||
CURRENTLY_USED        ||',' ||
FIRST_USAGE_DATE      ||',' ||
LAST_USAGE_DATE       ||',' ||
AUX_COUNT             ||',' ||
''                    ||',' || -- skip FEATURE_INFO clob
LAST_SAMPLE_DATE      ||',' ||
LAST_SAMPLE_PERIOD    ||',' ||
SAMPLE_INTERVAL       ||',"'||
DESCRIPTION           ||'",'||
'&&HOST_NAME'         ||',' ||
'&&INSTANCE_NAME'     ||',' ||
SYSDATE               ||','
FROM DBA_FEATURE_USAGE_STATISTICS;



and also:


-- 10g DBA_FEATURE_USAGE_STATISTICS (10g and higher)
----------------------------------------------------
define  OPTION_NAME=DBA_FEATURE_USAGE_STATISTICS
define OPTION_QUERY=10g
define OCOUNT=-942
col OCOUNT new_val OCOUNT noprint
select ltrim(rtrim(to_char(count(*)))) as OCOUNT
  FROM DBA_FEATURE_USAGE_STATISTICS;

select '&&GREP_PREFIX.,&OPTION_NAME.,&OPTION_QUERY.,&&OCOUNT.,count,"'||
        NAME               ||'",'||
        VERSION            || ','||
        DETECTED_USAGES    || ','||
        TOTAL_SAMPLES      || ','||
        CURRENTLY_USED     || ','||
        FIRST_USAGE_DATE   || ','||
        LAST_USAGE_DATE    || ','||
        LAST_SAMPLE_DATE   || ','||
        SAMPLE_INTERVAL     ||','
  FROM DBA_FEATURE_USAGE_STATISTICS;

select '&&GREP_PREFIX.,&OPTION_NAME.,&OPTION_QUERY.,&&OCOUNT.,'||
        decode(&&OCOUNT., 0, 'count,', '"ORA-00942: table or view does
not exist",')
  from dual where &&OCOUNT. in (-942, 0);

The first one creates a csv file and the latter creates another one that
looks like it is "grepped" (by Oracle Egypt where the data are analysed)
- so, even if the view is "wobbly" it is still used by Oracle.


Cheers,
Norm.

Norman Dunbar
Contract Senior Oracle DBA
Capgemini Database Team (EA)
Internal : 7 28 2051
External : 0113 231 2051


Information in this message may be confidential and may be legally privileged. 
If you have received this message by mistake, please notify the sender 
immediately, delete it and do not copy it to anyone else.

We have checked this email and its attachments for viruses. But you should 
still check any attachment before opening it.
We may have to make this message and any reply to it public if asked to under 
the Freedom of Information Act, Data Protection Act or for litigation.  Email 
messages and attachments sent to or from any Environment Agency address may 
also be accessed by someone other than the sender or recipient, for business 
purposes.

If we have sent you information and you wish to use it please read our terms 
and conditions which you can get by calling us on 08708 506 506.  Find out more 
about the Environment Agency at www.environment-agency.gov.uk
--
http://www.freelists.org/webpage/oracle-l


Other related posts: