<ROOT>
 <APPS_INITIALIZE_DATA>
  <USER_NAME>ENGINATICS</USER_NAME>
  <RESPONSIBILITY_KEY>SYSTEM_ADMINISTRATOR</RESPONSIBILITY_KEY>
  <APPLICATION_SHORT_NAME>SYSADMIN</APPLICATION_SHORT_NAME>
 </APPS_INITIALIZE_DATA>
<REPORTS>
<!-- loader xml for Enginatics Blitz Report: DBA Resource Limits -->
 <REPORTS_ROW>
  <GUID>361327CC904C46D69C36C6CC8313BE6E</GUID><ENABLED>Y</ENABLED>
  <SQL_TEXT>select
x.inst_id,
x.resource_name,
x.current_utilization,
x.max_utilization,
x.initial_allocation,
x.limit_value,
x.current_percent,
x.max_percent
from
(
select
y.*,
case when y.limit_value not in (&apos;UNLIMITED&apos;,&apos;0&apos;) then y.current_utilization/to_number(y.limit_value)*100 end current_percent,
case when y.limit_value not in (&apos;UNLIMITED&apos;,&apos;0&apos;) then y.max_utilization/to_number(y.limit_value)*100 end max_percent
from
(
select
grl.inst_id,
grl.resource_name,
grl.current_utilization,
grl.max_utilization,
trim(grl.initial_allocation) initial_allocation,
trim(grl.limit_value) limit_value
from
gv$resource_limit grl
union all
select
gp.inst_id,
gp.name resource_name,
decode(gp.name,&apos;processes&apos;,(select count(*) from gv$process gp2 where gp.inst_id=gp2.inst_id),(select count(*) from gv$session gs where gp.inst_id=gs.inst_id)) current_utilization,
null max_utilization,
gp.value initial_allocation,
gp.value limit_value
from
gv$parameter gp
where
gp.name in (&apos;processes&apos;,&apos;sessions&apos;) and
not exists (select null from gv$resource_limit grl)
) y
) x
where
1=1
order by
nvl(x.max_percent,x.current_percent) desc nulls last,
x.inst_id,
x.resource_name</SQL_TEXT>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>DBA Resource Limits</REPORT_NAME>
    <DESCRIPTION>Current and highest utilization since instance startup of database resources such as processes, sessions and transactions, compared to their limits.

A Max Percent close to 100 shows that the instance reached the limit since startup. Reaching the processes or sessions limit causes ORA-00020 or ORA-00018 for new connections.

In a pluggable database, the database shows resource limits only in the container root. There the report shows the current number of processes and sessions against their parameter limits instead, without the highest utilization.

Schedule the report with Max Percent From, for example 90, to get an email only when a limit is nearly reached.</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>Enginatics</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
   <ANCHORS_ROW>
    <ANCHOR>1=1</ANCHOR>
   </ANCHORS_ROW>
  </ANCHORS>
  <PARAMETERS>
   <PARAMETERS_ROW>
    <SORT_ORDER>1</SORT_ORDER>
    <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>nvl(x.max_percent,x.current_percent)&gt;=:max_percent_from</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Number</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Max Percent From</PARAMETER_NAME>
      <DESCRIPTION>Show only resources whose utilization reached this percentage of the limit</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>2</SORT_ORDER>
    <DISPLAY_SEQUENCE>20</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>x.inst_id=:inst_id</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>DBA Instance Id</LOV_NAME>
    <LOV_GUID>8E2FF36EDF1279D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
gi.inst_id value,
gi.instance_name||&apos; &apos;||gi.host_name||&apos; &apos;||gi.startup_time description
from
gv$instance gi</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Instance Id</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
  </PARAMETERS>
  <TEMPLATES>
  </TEMPLATES>
  <DEFAULT_TEMPLATES>
  </DEFAULT_TEMPLATES>
  <UPLOAD_COLUMNS>
  </UPLOAD_COLUMNS>
  <UPLOAD_PARAMETERS>
  </UPLOAD_PARAMETERS>
  <UPLOAD_SQLS>
  </UPLOAD_SQLS>
 </REPORTS_ROW>
</REPORTS>
</ROOT>
