0% found this document useful (0 votes)
332 views107 pages

Aa9-Ev2-Supervisión A Los Parámetros de Gestión y Desempeño de La Base de Datos.

This document provides an overview of database performance monitoring and tuning tools in Oracle, including JMeter for load testing, AWR for historical performance data, and various Oracle tools like the Advisor Central, workload repository reports, and statistics on SQL, wait events, I/O, memory, undo segments, latches and more. It discusses using these tools to analyze performance and identify issues needing addressed through configuration changes, SQL tuning, or adding resources.

Uploaded by

miguel angel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
332 views107 pages

Aa9-Ev2-Supervisión A Los Parámetros de Gestión y Desempeño de La Base de Datos.

This document provides an overview of database performance monitoring and tuning tools in Oracle, including JMeter for load testing, AWR for historical performance data, and various Oracle tools like the Advisor Central, workload repository reports, and statistics on SQL, wait events, I/O, memory, undo segments, latches and more. It discusses using these tools to analyze performance and identify issues needing addressed through configuration changes, SQL tuning, or adding resources.

Uploaded by

miguel angel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 107

GESTION Y SEGURIDAD DE BASES DE DATOS

AA9-EV2-SUPERVISIÓN A LOS PARÁMETROS DE GESTIÓN Y DESEMPEÑO


DE LA BASE DE DATOS.

DAVID STIVEN MONSALVE RESTREPO


JUAN ESTEBAN LOPERA CUERVO
MIGUEL ANGEL RUIZ VEGA
LUIS EDILSON CORTES LOZANO

Docente: JAVIER MAURICIO ALVAREZ VARGAS; MONICA ANDRADE


RIOS; NELSON RUIZ GAMBA

MEDELLIN 19 SEPTIEMBRE 2019


Tabla de contenido

Contenido
INTRODUCCION ................................................................................................................................... 5
OBJETIVOS ........................................................................................................................................... 6
PRIMARIO: .................................................................................................................................... 6
SECUNDARIOS: .......................................................................................................................... 6
CONFIGURACION INICIAL DE JMETER ................................................................................................. 7
ANALISIS DE RENDIMIENTO JMETER ................................................................................................. 11
HERRAMIENTAS DE RENDIMIENTO ORACLE ..................................................................................... 13
AWR ............................................................................................................................................... 17
CREACION DE USUARIOS ................................................................................................................... 19
LOG CREACION DE USUARIOS ....................................................................................................... 23
SENTENCIAS DDL SOBRE BASES DE DATOS DE LA SECRETARIA ........................................................ 25
CONSULTAS MULTITABLA ................................................................................................................. 29
CONSULTAS DE AGRUPAMIENTO...................................................................................................... 32
EJECUTAR ARCHIVO SQL MONITOR .................................................................................................. 35
ADVISOR CENTRAL ............................................................................................................................ 36
REPORTE EXTENDIDO ........................................................................................................................ 38
WORKLOAD REPOSITORY report for ................................................................................................. 38
Report Summary ....................................................................................................................... 38
Main Report .................................................................................................................................. 40
Wait Events Statistics .................................................................................................................... 41
Wait Events ............................................................................................................................... 41
Background Wait Events ........................................................................................................... 42
Time Model Statistics ................................................................................................................ 43
Operating System Statistics....................................................................................................... 44
Service Statistics ........................................................................................................................ 45
Service Wait Class Stats ............................................................................................................. 45
SQL Statistics ................................................................................................................................. 45
SQL ordered by Elapsed Time ................................................................................................... 46
SQL ordered by CPU Time ......................................................................................................... 48
SQL ordered by Gets.................................................................................................................. 51
SQL ordered by Reads ............................................................................................................... 53
SQL ordered by Executions ....................................................................................................... 55
SQL ordered by Parse Calls ........................................................................................................ 56
SQL ordered by Sharable Memory ............................................................................................ 58
SQL ordered by Version Count .................................................................................................. 58
Complete List of SQL Text ......................................................................................................... 58
Instance Activity Statistics ............................................................................................................. 66
Instance Activity Stats ............................................................................................................... 67
Instance Activity Stats - Absolute Values .................................................................................. 73
Instance Activity Stats - Thread Activity .................................................................................... 73
IO Stats .......................................................................................................................................... 74
Tablespace IO Stats ................................................................................................................... 74
File IO Stats ................................................................................................................................ 74
Buffer Pool Statistics ................................................................................................................. 75
Advisory Statistics ......................................................................................................................... 75
Instance Recovery Stats ............................................................................................................ 75
Buffer Pool Advisory .................................................................................................................. 76
PGA Aggr Summary ................................................................................................................... 76
PGA Aggr Target Stats ............................................................................................................... 77
PGA Aggr Target Histogram....................................................................................................... 77
PGA Memory Advisory .............................................................................................................. 78
Shared Pool Advisory ................................................................................................................ 78
Java Pool Advisory ..................................................................................................................... 79
Wait Statistics ................................................................................................................................ 80
Buffer Wait Statistics ................................................................................................................. 80
Enqueue Activity ....................................................................................................................... 81
Undo Statistics............................................................................................................................... 81
Undo Segment Summary .......................................................................................................... 81
Undo Segment Stats .................................................................................................................. 81
Latch Statistics ............................................................................................................................... 81
Latch Activity ............................................................................................................................. 82
Latch Sleep Breakdown ............................................................................................................. 86
Latch Miss Sources .................................................................................................................... 86
Parent Latch Statistics ............................................................................................................... 87
Child Latch Statistics .................................................................................................................. 87
Segment Statistics ......................................................................................................................... 87
Segments by Logical Reads........................................................................................................ 87
Segments by Physical Reads ...................................................................................................... 88
Segments by Buffer Busy Waits ................................................................................................ 88
Segments by Row Lock Waits .................................................................................................... 88
Segments by ITL Waits .............................................................................................................. 88
Dictionary Cache Stats............................................................................................................... 89
Library Cache Activity ................................................................................................................ 90
SGA Statistics ................................................................................................................................. 90
SGA Memory Summary ............................................................................................................. 90
SGA breakdown difference ....................................................................................................... 90
Resource Limit Stats .................................................................................................................. 92
init.ora Parameters ................................................................................................................... 93
PARAMETROS DE MEMORIA ............................................................................................................. 94
2 SEGUNDA PARTE ............................................................................................................................ 95
CONSULTAS MULTITABLA ................................................................................................................. 95
SENTENCIAS DDL ............................................................................................................................... 97
AGRUPAMIENTO ............................................................................................................................... 98
EJECUTAR COMANDO SQL MONITOR SOBRE BASES DE DATOS HR ................................................. 99
ASESESOR DE MEMORIA PARA SGA ................................................................................................ 100
CONSEJO DE TAMAÑO DE CONJUNTO COMPARTIDO ................................................................ 100
CONSEJO DE TAMAÑO DE CACHE DE BUFFERS........................................................................... 101
HERRAMIENTA DE ANÁLISIS DE RENDIMIENTO DE WINDOWS SERVER 2003 ................................ 101
MONITOR WINDOWS SERVER..................................................................................................... 101
SIN REALIZAR PETICIONES ........................................................................................................... 104
AGREGAR 3 NUEVOS CONTROLADORES ..................................................................................... 104
ADMINISTRADOR DE TAREAS Y VISOR DE EVENTOS ................................................................... 105
CONCLUSIONES DE LAS 3 HERRAMIENTAS DE ANALISIS DE RENDIMIENTO ................................... 106
CIBERGRAFIA ................................................................................................................................... 107

INTRODUCCION
El control interno es un proceso necesario para la organización, diseñado con el
fin de proporcionar un grado de seguridad y confianza frente a los parámetros
establecidos en la base de datos. La Supervisión y Monitoreo está dirigido ala
detección de errores e irregularidades que no fueron detectados con las
actividades de control, permitiendo realizarlas correcciones y modificaciones
necesarias para mejorar el desempeño de las bases de datos.
La supervisión de parámetros y gestión del desempeño nos ayuda a garantizar la
integridad de la información de la bases de datos, mejorar la trazabilidad.
En el siguiente trabajo se analizan los diferentes tipos de gestores y evaluadores
de desempeño, los suministrados por java, Windows server y la herramienta
jmeter.
OBJETIVOS
PRIMARIO:

Demostrar la importancia de establecer controles de gestión y desempeño en las


bases de datos.

SECUNDARIOS:

 Reconocer la importancia de monitorear el desempeño.


 Reconocer los beneficios de utilizar y manipulatr las herramientas
suministradas por oracle
 Reconocer la importancia realizar correcciones y manipular parámetros
para mejorar el desempeño de la base de datos.
CONFIGURACION INICIAL DE
JMETER
ANALISIS DE RENDIMIENTO JMETER
HERRAMIENTAS DE RENDIMIENTO
ORACLE
https://www.youtube.com/watch?v=V4u5OEh9WrM

HERRAMIENTAS DE RENDIMIENTO DE ORACLE

AWR
CREACION DE USUARIOS
LOG CREACION DE USUARIOS
Connected

user PRUEBA_1 creado.

GRANT correcto.

Connected
La conexión creada por el comando de script CONNECT se ha desconectado

Connected

user PRUEBA_2 creado.

GRANT correcto.

Connected

La conexión creada por el comando de script CONNECT se ha desconectado

Connected

user PRUEBA_3 creado.

GRANT correcto.

Connected

La conexión creada por el comando de script CONNECT se ha desconectado

Connected

user PRUEBA_4 creado.

GRANT correcto.

Connected

La conexión creada por el comando de script CONNECT se ha desconectado

Connected

user PRUEBA_5 creado.

GRANT correcto.

Connected

La conexión creada por el comando de script CONNECT se ha desconectado

Connected

user PRUEBA_6 creado.

GRANT correcto.

Connected

La conexión creada por el comando de script CONNECT se ha desconectado

Connected

user PRUEBA_7 creado.

GRANT correcto.
Connected

La conexión creada por el comando de script CONNECT se ha desconectado

Connected

user PRUEBA_8 creado.

GRANT correcto.

Connected

La conexión creada por el comando de script CONNECT se ha desconectado

Connected

user PRUEBA_9 creado.

GRANT correcto.

Connected

La conexión creada por el comando de script CONNECT se ha desconectado

Connected

user PRUEBA_10 creado.

grant correcto.

Connected

La conexión creada por el comando de script CONNECT se ha desconectado

SENTENCIAS DDL SOBRE BASES DE


DATOS DE LA SECRETARIA
create table FACTURAVIGENTE2 as

select * from FACTURAVIGENTE;

select * from FACTURAVIGENTE2;

desc FACTURAVIGENTE2;

insert into FACTURAVIGENTE2(NROFACTURA, REFERENCIA, FICHAPREDIO, FECHAVENCIMIENTO,


FECHAEMISION, TOTALPAGAR, TOTALDESCUENTO)

values (29, 1036939113, 50, '15/09/2019', '14/09/2019', 100000, 50000);

select * from FACTURAVIGENTE2


where REFERENCIA = 1036939113;

delete from FACTURAVIGENTE2

where REFERENCIA = 1036939113;

insert into FACTURAVIGENTE2(NROFACTURA, REFERENCIA, FICHAPREDIO, FECHAVENCIMIENTO,


FECHAEMISION, TOTALPAGAR, TOTALDESCUENTO)

values (29, 1036939113, 50, '15/09/2019', '14/09/2019', 100000, 50000);

select * from FACTURAVIGENTE2

where REFERENCIA = 1036939113;

create index INDICE_FACTURAVIGENTE2

on FACTURAVIGENTE2(REFERENCIA);

LOG

NOTA: DONDE EJECUTA ERROR SE DEBE A QUE VOLVI A EJECUTAR EL CODIGO Y LAS TABLAS YA
HABIAN SIDO CREADAS

Error que empieza en la línea 1 del comando:

create table FACTURAVIGENTE2 as

select * from FACTURAVIGENTE

Error en la línea de comandos:1 Columna:14

Informe de error:
Error SQL: ORA-00955: este nombre ya lo está utilizando otro objeto existente

00955. 00000 - "name is already used by an existing object"

*Cause:

*Action:

NROFACTURA REFERENCIA FICHAPREDIO FECHAVENCIMIENTO FECHAEMISION TOTALPAGAR


TOTALDESCUENTO

---------- ---------- ----------- ---------------- ------------ ---------- --------------

1 12345 4 05/03/11 02/02/11 485200 148000

2 12345 6 25/06/12 02/02/11 385400 62000

3 12345 4 25/06/12 02/02/11 425362 130500

4 12345 6 25/06/12 18/01/12 425362 200000

5 12345 7 25/06/12 18/01/12 425362 146500

6 12345 8 25/06/12 18/01/12 425362 146500

7 12345 13 25/06/12 18/01/12 128352 75000

8 12345 12 25/06/12 18/01/12 425362 146500

9 12345 5 25/06/12 18/01/12 425362 146500

10 12345 9 25/06/12 18/01/12 78452 62500

11 12345 1 25/06/12 18/01/12 283000 83520

12 12345 11 25/06/12 18/01/12 175421 95000

13 12345 14 25/06/12 18/01/12 425362 146500

14 12345 14 25/06/12 18/01/12 425362 146500

15 12345 14 25/06/12 18/01/12 425362 146500

16 12345 4 25/06/12 18/01/12 480000 158000

17 12345 4 25/06/12 18/01/12 425362 130500

18 12345 6 25/06/12 18/01/12 425362 200000

19 12345 7 25/06/12 18/01/12 425362 146500

20 12345 8 25/06/12 18/01/12 425362 146500

21 12345 13 25/06/12 18/01/12 128352 75000

22 12345 12 25/06/12 18/01/12 425362 146500


23 12345 5 25/06/12 18/01/12 425362 146500

24 12345 9 25/06/12 18/01/12 78452 62500

25 12345 10 25/06/12 18/01/12 283000 83520

26 12345 11 25/06/12 18/01/12 175421 95000

27 12345 14 25/06/12 18/01/12 425362 146500

28 12345 4 25/06/12 18/01/12 480000 158000

29 12345 50 15/09/19 14/09/19 100000 50000

29 filas seleccionadas

desc FACTURAVIGENTE2

Nombre Nulo Tipo

---------------- -------- ------------

NROFACTURA NOT NULL NUMBER

REFERENCIA NUMBER

FICHAPREDIO NOT NULL NUMBER

FECHAVENCIMIENTO DATE

FECHAEMISION DATE

TOTALPAGAR NUMBER(16,2)

TOTALDESCUENTO NUMBER(16,2)

1 filas insertadas.

NROFACTURA REFERENCIA FICHAPREDIO FECHAVENCIMIENTO FECHAEMISION TOTALPAGAR


TOTALDESCUENTO

---------- ---------- ----------- ---------------- ------------ ---------- --------------

29 1036939113 50 15/09/19 14/09/19 100000 50000

1 filas eliminado

1 filas insertadas.
NROFACTURA REFERENCIA FICHAPREDIO FECHAVENCIMIENTO FECHAEMISION TOTALPAGAR
TOTALDESCUENTO

---------- ---------- ----------- ---------------- ------------ ---------- --------------

29 1036939113 50 15/09/19 14/09/19 100000 50000

Error que empieza en la línea 15 del comando:

create index INDICE_FACTURAVIGENTE2

on FACTURAVIGENTE2(REFERENCIA)

Error en la línea de comandos:15 Columna:14

Informe de error:

Error SQL: ORA-00955: este nombre ya lo está utilizando otro objeto existente

00955. 00000 - "name is already used by an existing object"

*Cause:

*Action:

CONSULTAS MULTITABLA

select a.NROFACTURA, b.CODIGO

from FACTURAVIGENTE a, ESTRATO B

where a.NROFACTURA = B.CODIGO;


select a.cedula, B.propietario_cedula

from PROPIETARIO a, PREDIO B

where a.cedula = B.PROPIETARIO_CEDULA;

select a.CODIGO, B.ESTRATO_CODIGO

from ESTRATO a, PREDIO B

where a.codigo = B.ESTRATO_CODIGO


select a.NROFACTURA, B.NROFACTURA

from FACtURAVIGENTE a, PAGO B

where B.NROFACTURA = B.NROFACTURA

select a.TOTALPAGAR, B.VALORPAGO

from FACTURAVIGENTE a, PAGO B

where a.totalpagar = B.VALORPAGO


CONSULTAS DE AGRUPAMIENTO
select referencia, sum(totalpagar) from FACTURAVIGENTE group by referencia

select referencia, max(totalpagar) from FACTURAVIGENTE group by referencia


select referencia, min(totalpagar) from FACTURAVIGENTE group by referencia

select referencia, count(totalpagar) from FACTURAVIGENTE group by referencia


select referencia, avg(totalpagar) from FACTURAVIGENTE group by referencia
EJECUTAR ARCHIVO SQL MONITOR
ADVISOR CENTRAL
REPORTE EXTENDIDO
WORKLOAD REPOSITORY report for
DB Name DB Id Instance Inst num Release Cluster Host

ORCL 1545995448 orcl 1 10.1.0.2.0 NO SERVIDOR1

Snap Id Snap Time Sessions Cursors/Session

Begin Snap: 29 16-Sep-19 22:10:14 30 15.1

End Snap: 30 16-Sep-19 22:20:37 33 14.5

Elapsed: 10.38 (mins)

DB Time: 0.30 (mins)

Report Summary

Cache Sizes (end)

Buffer Cache: 24M Std Block Size: 8K


Shared Pool Size: 80M Log Buffer: 256K

Load Profile

Per Second Per Transaction

Redo size: 4,132.47 18,917.62

Logical reads: 62.41 285.68

Block changes: 26.39 120.80

Physical reads: 2.14 9.82

Physical writes: 0.89 4.09

User calls: 4.09 18.74

Parses: 3.61 16.54

Hard parses: 0.28 1.30

Sorts: 1.98 9.07

Logons: 0.04 0.21

Executes: 10.89 49.85

Transactions: 0.22

% Blocks changed per Read: 42.29 Recursive Call %: 93.30

Rollback per transaction %: 6.62 Rows per Sort: 10.93

Instance Efficiency Percentages (Target 100%)

Buffer Nowait %: 100.00 Redo NoWait %: 100.00

Buffer Hit %: 96.56 In-memory Sort %: 100.00

Library Hit %: 96.38 Soft Parse %: 92.13

Execute to Parse %: 66.82 Latch Hit %: 100.00


Parse CPU to Parse Elapsd %: 53.13 % Non-Parse CPU: 84.82

Shared Pool Statistics

Begin End

Memory Usage %: 93.86 93.50

% SQL with executions>1: 84.12 72.07

% Memory for SQL w/exec>1: 89.00 79.47

Top 5 Timed Events

Event Waits Time(s) Percent Total DB Time Wait Class

CPU time 9 49.98

class slave wait 1 5 28.65 Other

db file sequential read 685 5 26.04 User I/O

control file sequential read 109 2 8.53 System I/O

control file parallel write 201 1 4.47 System I/O

Main Report
 Report Summary
 Wait Events Statistics
 SQL Statistics
 Instance Activity Statistics
 IO Stats
 Buffer Pool Statistics
 Advisory Statistics
 Wait Statistics
 Undo Statistics
 Latch Statistics
 Segment Statistics
 Dictionary Cache Statistics
 Library Cache Statistics
 SGA Statistics
 Resource Limit Statistics
 init.ora Parameters

Back to Top

Wait Events Statistics


 Wait Events
 Background Wait Events
 Time Model Statistics
 Operating System Statistics
 Service Statistics
 Service Wait Class Stats

Back to Top

Wait Events

 s - second
 cs - centisecond - 100th of a second
 ms - millisecond - 1000th of a second
 us - microsecond - 1000000th of a second
 ordered by wait time desc, waits desc (idle events last)

Total Wait Avg wait Waits


Event Waits Timeouts
Time (s) (ms) /txn

class slave wait 1 1 5 5,136 0.01

db file sequential read 685 0 5 7 5.04

control file sequential read 109 0 2 14 0.80

control file parallel write 201 0 1 4 1.48

log file parallel write 146 0 1 5 1.07

db file scattered read 75 0 1 9 0.55

db file parallel write 272 0 1 2 2.00

log file sync 65 0 0 4 0.48

SQL*Net break/reset to client 94 0 0 0 0.69


SQL*Net message to client 2,291 0 0 0 16.85

SQL*Net more data to client 40 0 0 0 0.29

latch free 1 0 0 11 0.01

process startup 1 0 0 4 0.01

log buffer space 1 0 0 3 0.01

SQL*Net message to dblink 40 0 0 0 0.29

SQL*Net more data from client 19 0 0 0 0.14

SQL*Net message from client 2,289 0 8,180 3,574 16.83

jobq slave wait 368 356 1,111 3,018 2.71

queue messages 122 121 623 5,104 0.90

wait for unread message on broadcast


583 582 617 1,058 4.29
channel

Queue Monitor Wait 20 20 616 30,799 0.15

virtual circuit status 20 20 602 30,115 0.15

wakeup time manager 6 2 473 78,850 0.04

SQL*Net message from dblink 40 0 0 1 0.29

Back to Wait Events Statistics


Back to Top

Background Wait Events

 ordered by wait time desc, waits desc (idle events last)

Event Waits Timeouts Total Wait Time (s) Avg wait (ms) Waits /txn

control file parallel write 201 0 1 4 1.48

log file parallel write 146 0 1 5 1.07

db file parallel write 272 0 1 2 2.00


control file sequential read 30 0 0 0 0.22

process startup 1 0 0 4 0.01

db file sequential read 4 0 -0 -8 0.03

rdbms ipc message 1,870 1,706 4,353 2,328 13.75

Queue Monitor Wait 20 20 616 30,799 0.15

smon timer 2 2 615 307,257 0.01

wakeup time manager 6 2 473 78,850 0.04

Back to Wait Events Statistics


Back to Top

Time Model Statistics

 ordered by Time (seconds) desc

Statistic Name Time (seconds) % Total DB Time

DB time 17.93 100.00

sql execute elapsed time 16.06 89.60

background elapsed time 12.88 71.85

DB CPU 9.48 52.87

PL/SQL execution elapsed time 6.67 37.21

parse time elapsed 5.13 28.60

hard parse elapsed time 4.96 27.64

background cpu time 1.72 9.59

PL/SQL compilation elapsed time 0.97 5.39

failed parse elapsed time 0.07 0.39

connection management call elapsed time 0.07 0.37


hard parse (sharing criteria) elapsed time 0.07 0.42

inbound PL/SQL rpc elapsed time 0.02 0.10

hard parse (bind mismatch) elapsed time 0.01 0.07

Java execution elapsed time 0.00 0.00

failed parse (out of shared memory) elapsed t 0.00 0.00

sequence load elapsed time 0.00 0.00

Back to Wait Events Statistics


Back to Top

Operating System Statistics

Statistic Name Value

AVG_BUSY_TICKS 14,458

AVG_IDLE_TICKS 47,621

AVG_IN_BYTES 2,678,784

AVG_OUT_BYTES 0

AVG_SYS_TICKS 6,408

AVG_USER_TICKS 8,050

BUSY_TICKS 14,458

IDLE_TICKS 47,621

IN_BYTES 2,678,784

OUT_BYTES 0

RSRC_MGR_CPU_WAIT_TIME 0

SYS_TICKS 6,408

USER_TICKS 8,050
Back to Wait Events Statistics
Back to Top

Service Statistics

 ordered by DB Time
 us - microsecond - 1000000th of a second

Service Name DB Time (s) DB CPU (s) Physical Reads Logical Reads

ORCL 11.30 7.20 435 15,832

SYS$USERS 6.60 2.30 854 11,073

ORCLXDB 0.00 0.00 0 0

SYS$BACKGROUND 0.00 0.00 35 11,846

Back to Wait Events Statistics


Back to Top

Service Wait Class Stats

 Wait Class info for services in the Service Statistics section.


 Total Waits and Time Waited displayed for the following wait classes: User I/O,
Concurrency, Administrative, Network
 Time Waited (Wt Time) in centisecond (100th of a second)

User User
Admin Admin
I/O I/O Concurcy Concurcy Network Network
Service Name Total Wt
Total Wt Total Wts Wt Time Total Wts Wt Time
Wts Time
Wts Time

ORCL 333 271 0 0 0 0 1,832 2

SYS$USERS 390 240 0 0 0 0 521 3

SYS$BACKGROUND 39 26 0 0 0 0 0 0

Back to Wait Events Statistics


Back to Top

SQL Statistics
 SQL ordered by Elapsed Time
 SQL ordered by CPU Time
 SQL ordered by Gets
 SQL ordered by Reads
 SQL ordered by Executions
 SQL ordered by Parse Calls
 SQL ordered by Sharable Memory
 SQL ordered by Version Count
 Complete List of SQL Text

Back to Top

SQL ordered by Elapsed Time

 Resources reported for PL/SQL code includes the resources used by all SQL statements
called by the code.
 % Total DB Time is the Elapsed Time of the SQL statement divided into the Total Database
Time multiplied by 100

Ela
%
p
Elapse CPU Tota
Executio per
d Time Tim ns Exe
l DB SQL Id SQL Module SQL Text
(s) e (s) c
Tim
e
(s)

BEGIN
0.2 32.6 OEM.SystemP
6 5 20 2b064ybzkwf1y EMD_NOTIFICATION.QUEUE
9 0 ool
_R...

1.2 select log_mode from


1 0 1 7.09 10dfqkk4brpf4 perl.exe
7 v$databas...

begin
0.5 OEM.DefaultP
1 0 2 6.52 8fx6pqqbpra0s emd_database.getDBSiteMa
8 ool
...

0.9 10nptm88sw54 select * from ( SELECT


1 0 1 5.13 SQL Developer
2 v OBJECT_...

0.7 select 1 from


1 0 1 3.94 643cfdnf2ks9w SQL Developer
1 dba_xml_schemas ...
BEGIN
0.6 OEM.DefaultP
1 0 1 3.51 dszg05gzmprk1 emd_mntr.get_types_resou.
3 ool
..

0.5 OEM.DefaultP begin


1 0 1 3.27 4h4sca4f234n2
9 ool ecm_inv.get_inv_sw_info(...

0.0 select /*+ index(idl_ub1$


1 0 29 3.12 cvn54b7yz0s8u
2 i_id...

0.4 OEM.DefaultP SELECT EXTERNAL_NAME AS


0 0 1 2.43 fr2v4v7t9k8mz
4 ool PRODUC...

0.2 3tm1zmqpydq DECLARE job


0 0 2 2.40
2 u3 BINARY_INTEGER := ...

0.4 aqm4v6p0t9sn OEM.DefaultP BEGIN :1 :=


0 0 1 2.34
2 b ool MGMT_CREDENTIAL.ge...

begin
0.0 OEM.SystemP
0 0 372 2.27 cb75rw3w1tt0s MGMT_JOB_ENGINE.get_sc
0 ool
he...

0.0 select owner#, name,


0 0 62 2.09 cqgv56fmuj63x
1 namespace...

0.1 begin
0 0 2 2.07 ggyy05ubt80jr
9 sys.dbms_snapshot_utl....

0.3 BEGIN
0 0 1 1.95 6q766vsk5290x
5 dbms_stats_internal.flus...

0.3 MERGE INTO cache_stats_1$


0 0 1 1.94 gcdhfp8kjxa4a
5 D US...

0.0 8swypbbr0m37 select order#, columns,


0 0 62 1.85
1 2 types ...

0.0 OEM.SystemP INSERT INTO


0 0 728 1.84 8hk7xvhua40va
0 ool MGMT_METRICS_RAW(C...

0.3 0mjbmu9169p Admin SELECT IO_TIME.SNAP_ID,


0 0 1 1.83
3 m8 Connection IO_TI...
0.3 0pm62u100t24 Admin select dbid,
0 0 1 1.80
2 c Connection instance_number,...

0.3 25jpmvsm171x Admin DECLARE v_dbid NUMBER :=


0 0 1 1.74
1 d Connection :1; v...

0.0 select /*+ index(idl_sb4$


0 0 29 1.66 ga9j9xk5cy9s0
1 i_id...

0.0 select /*+ rule */


0 0 107 1.51 96g93hntrzjtr
0 bucket_cnt,...

0.1 0wuf229dxmxb Admin SELECT a.advisor_name,


0 0 2 1.30
2 w Connection a.task...

0.2 SELECT DISTINCT Job_id


0 0 1 1.21 1j3uncx8wf00u SQL Developer
2 FROM Em...

begin
0.2 amytm4gwj1f9 OEM.DefaultP
0 0 1 1.14 mgmt_user.get_mgmt_privs
0 9 ool
...

0.2 SELECT /* OPT_DYN_SAMP


0 0 1 1.10 bjw5x2drsjzbr
0 */ /*+ ...

0.0 DECLARE job


0 0 10 1.08 6gvch1xu9ca3g
2 BINARY_INTEGER := ...

0.0 83taa7kaw59c select name, intcol#,


0 0 88 1.06
0 1 segcol#,...

0.1 insert into


0 0 1 1.04 584ypkst2k8p7
9 wrh$_bg_event_summ...

Back to SQL Statistics


Back to Top

SQL ordered by CPU Time

 Resources reported for PL/SQL code includes the resources used by all SQL statements
called by the code.
 % Total DB Time is the Elapsed Time of the SQL statement divided into the Total Database
Time multiplied by 100
CP
%
U
CPU Elapse Tota
Executio per
Tim d Time ns Exe
l DB SQL Id SQL Module SQL Text
e (s) (s) Tim
c
e
(s)

BEGIN
0.2 32.6 OEM.SystemP
5 6 20 2b064ybzkwf1y EMD_NOTIFICATION.QUEUE
4 0 ool
_R...

begin
0.2 OEM.DefaultP
0 1 2 6.52 8fx6pqqbpra0s emd_database.getDBSiteMa
2 ool
...

begin
0.0 OEM.SystemP
0 0 372 2.27 cb75rw3w1tt0s MGMT_JOB_ENGINE.get_sc
0 ool
he...

0.0 OEM.SystemP INSERT INTO


0 0 728 1.84 8hk7xvhua40va
0 ool MGMT_METRICS_RAW(C...

0.2 OEM.DefaultP begin


0 1 1 3.27 4h4sca4f234n2
6 ool ecm_inv.get_inv_sw_info(...

0.2 BEGIN
0 0 1 1.95 6q766vsk5290x
5 dbms_stats_internal.flus...

0.2 MERGE INTO cache_stats_1$


0 0 1 1.94 gcdhfp8kjxa4a
5 D US...

0.2 10nptm88sw54 select * from ( SELECT


0 1 1 5.13 SQL Developer
2 v OBJECT_...

0.2 OEM.DefaultP SELECT EXTERNAL_NAME AS


0 0 1 2.43 fr2v4v7t9k8mz
1 ool PRODUC...

0.1 SELECT /* OPT_DYN_SAMP


0 0 1 1.10 bjw5x2drsjzbr
9 */ /*+ ...

0.1 SELECT DISTINCT Job_id


0 0 1 1.21 1j3uncx8wf00u SQL Developer
9 FROM Em...

0.1 select 1 from


0 1 1 3.94 643cfdnf2ks9w SQL Developer
9 dba_xml_schemas ...
0.1 25jpmvsm171x Admin DECLARE v_dbid NUMBER :=
0 0 1 1.74
2 d Connection :1; v...

0.1 aqm4v6p0t9sn OEM.DefaultP BEGIN :1 :=


0 0 1 2.34
1 b ool MGMT_CREDENTIAL.ge...

0.1 0mjbmu9169p Admin SELECT IO_TIME.SNAP_ID,


0 0 1 1.83
0 m8 Connection IO_TI...

0.0 83taa7kaw59c select name, intcol#,


0 0 88 1.06
0 1 segcol#,...

0.0 select /*+ index(idl_ub1$


0 1 29 3.12 cvn54b7yz0s8u
0 i_id...

0.0 DECLARE job


0 0 10 1.08 6gvch1xu9ca3g
1 BINARY_INTEGER := ...

BEGIN
0.0 OEM.DefaultP
0 1 1 3.51 dszg05gzmprk1 emd_mntr.get_types_resou.
8 ool
..

0.0 insert into


0 0 1 1.04 584ypkst2k8p7
8 wrh$_bg_event_summ...

0.0 3tm1zmqpydq DECLARE job


0 0 2 2.40
4 u3 BINARY_INTEGER := ...

0.0 8swypbbr0m37 select order#, columns,


0 0 62 1.85
0 2 types ...

0.0 select /*+ rule */


0 0 107 1.51 96g93hntrzjtr
0 bucket_cnt,...

0.0 0wuf229dxmxb Admin SELECT a.advisor_name,


0 0 2 1.30
3 w Connection a.task...

0.0 select owner#, name,


0 0 62 2.09 cqgv56fmuj63x
0 namespace...

0.0 0pm62u100t24 Admin select dbid,


0 0 1 1.80
3 c Connection instance_number,...

0.0 select /*+ index(idl_sb4$


0 0 29 1.66 ga9j9xk5cy9s0
0 i_id...
0.0 begin
0 0 2 2.07 ggyy05ubt80jr
1 sys.dbms_snapshot_utl....

begin
0.0 amytm4gwj1f9 OEM.DefaultP
0 0 1 1.14 mgmt_user.get_mgmt_privs
1 9 ool
...

0.0 select log_mode from


0 1 1 7.09 10dfqkk4brpf4 perl.exe
0 v$databas...

Back to SQL Statistics


Back to Top

SQL ordered by Gets

 Resources reported for PL/SQL code includes the resources used by all SQL statements
called by the code.
 Total Buffer Gets: 38,853
 Captured SQL accounts for 56.1% of Total Buffer Gets

CP
Elaps
Buff Executi Gets U
%Tot ed
er per Tim SQL Id SQL Module SQL Text
ons al Time
Gets Exec e
(s)
(s)

INSERT INTO
5,50 14.1 0.3 8hk7xvhua40 OEM.System
728 7.55 0.33 MGMT_METRICS_RAW(C
0 6 3 va Pool
...

UPDATE
3,17 0.1 91h2x42zqag
1,038 3.06 8.17 0.10 MGMT_CURRENT_METRI
3 0 cm
CS SE...

begin
2,23 0.4 cb75rw3w1tt OEM.System
372 6.00 5.74 0.41 MGMT_JOB_ENGINE.get
2 1 0s Pool
_sche...

2,08 2,080. 0.2 10nptm88sw SQL select * from ( SELECT


1 5.35 0.92
0 00 2 54v Developer OBJECT_...

begin
1,98 994.0 0.4 8fx6pqqbpra OEM.Default
2 5.12 1.17 emd_database.getDBSite
8 0 3 0s Pool
Ma...
1,77 177.6 0.0 6gvch1xu9ca DECLARE job
10 4.57 0.19
6 0 8 3g BINARY_INTEGER := ...

begin
1,03 1,039. 0.2 4h4sca4f234 OEM.Default
1 2.67 0.59 ecm_inv.get_inv_sw_info
9 00 6 n2 Pool
(...

960.0 0.1 643cfdnf2ks9 SQL select 1 from


960 1 2.47 0.71
0 9 w Developer dba_xml_schemas ...

0.0 53saa2zkr6w select intcol#, nvl(pos#,


836 181 4.62 2.15 0.06
2 c3 0), ...

0.0 cqgv56fmuj6 select owner#, name,


804 62 12.97 2.07 0.37
5 3x namespace...

SELECT
742.0 0.1 0mjbmu9169 Admin
742 1 1.91 0.33 IO_TIME.SNAP_ID,
0 0 pm8 Connection
IO_TI...

692.0 0.1 aqm4v6p0t9s OEM.Default BEGIN :1 :=


692 1 1.78 0.42
0 1 nb Pool MGMT_CREDENTIAL.ge...

655.0 0.1 25jpmvsm17 Admin DECLARE v_dbid


655 1 1.69 0.31
0 2 1xd Connection NUMBER := :1; v...

0.0 6769wyy3yf6 select pos#, intcol#, col#,


654 108 6.06 1.68 0.08
3 6f sp...

317.0 0.0 0wuf229dxm Admin SELECT a.advisor_name,


634 2 1.63 0.23
0 5 xbw Connection a.task...

BEGIN
583.0 0.2 6q766vsk529
583 1 1.50 0.35 dbms_stats_internal.flus.
0 5 0x
..

582.0 0.2 gcdhfp8kjxa4 MERGE INTO


582 1 1.50 0.35
0 5 a cache_stats_1$ D US...

BEGIN
4.8 2b064ybzkwf OEM.System
560 20 28.00 1.44 5.84 EMD_NOTIFICATION.QUE
0 1y Pool
UE_R...

0.0 8swypbbr0m select order#, columns,


550 62 8.87 1.42 0.33
8 372 types ...
0.0 1tjnwqfpzxnn select i.obj#, i.ts#,
542 58 9.34 1.40 0.17
4 g i.file#,...

Oracle
247.0 0.0 bwxpqhtrx3g Enterprise BEGIN IF
494 2 1.27 0.00
0 0 2k Manager.Me (xdb.DBMS_XDBZ0.is_...
tric Engine

491.0 0.2 fr2v4v7t9k8 OEM.Default SELECT EXTERNAL_NAME


491 1 1.26 0.44
0 1 mz Pool AS PRODUC...

BEGIN
468.0 0.0 dszg05gzmpr OEM.Default
468 1 1.20 0.63 emd_mntr.get_types_res
0 8 k1 Pool
ou...

0.0 83taa7kaw59 select name, intcol#,


416 88 4.73 1.07 0.19
9 c1 segcol#,...

Back to SQL Statistics


Back to Top

SQL ordered by Reads

 Total Disk Reads: 1,335


 Captured SQL accounts for 90.9% of Total Disk Reads

CP
Elaps
Physic Executio Read U
%Tot ed
al s per Tim SQL Id SQL Module SQL Text
ns al Time
Reads Exec e
(s)
(s)

576. 43.1 0.2 10nptm88sw SQL select * from ( SELECT


576 1 0.92
00 5 2 54v Developer OBJECT_...

begin
72.0 10.7 0.4 8fx6pqqbpra0 OEM.Default
144 2 1.17 emd_database.getDBSit
0 9 3 s Pool
eMa...

91.0 0.1 643cfdnf2ks9 SQL select 1 from


91 1 6.82 0.71
0 9 w Developer dba_xml_schemas ...

0.0 cvn54b7yz0s8 select /*+


66 29 2.28 4.94 0.56
8 u index(idl_ub1$ i_id...
SELECT
55.0 0.1 0mjbmu9169 Admin
55 1 4.12 0.33 IO_TIME.SNAP_ID,
0 0 pm8 Connection
IO_TI...

0.0 cqgv56fmuj63 select owner#, name,


47 62 0.76 3.52 0.37
5 x namespace...

BEGIN :1 :=
44.0 0.1 aqm4v6p0t9s OEM.Default
44 1 3.30 0.42 MGMT_CREDENTIAL.ge.
0 1 nb Pool
..

BEGIN
44.0 0.0 dszg05gzmprk OEM.Default
44 1 3.30 0.63 emd_mntr.get_types_r
0 8 1 Pool
esou...

36.0 0.1 25jpmvsm171 Admin DECLARE v_dbid


36 1 2.70 0.31
0 2 xd Connection NUMBER := :1; v...

17.5 0.0 0wuf229dxmx Admin SELECT a.advisor_name,


35 2 2.62 0.23
0 5 bw Connection a.task...

0.0 8swypbbr0m select order#, columns,


34 62 0.55 2.55 0.33
8 372 types ...

0.0 39m4sx9k63b select /*+


33 29 1.14 2.47 0.14
5 a2 index(idl_ub2$ i_id...

SELECT
29.0 0.2 fr2v4v7t9k8m OEM.Default
29 1 2.17 0.44 EXTERNAL_NAME AS
0 1 z Pool
PRODUC...

0.0 select /*+ rule */


29 107 0.27 2.17 0.27 96g93hntrzjtr
6 bucket_cnt,...

begin
27.0 0.2 4h4sca4f234n OEM.Default
27 1 2.02 0.59 ecm_inv.get_inv_sw_inf
0 6 2 Pool
o(...

0.0 1tjnwqfpzxnn select i.obj#, i.ts#,


22 58 0.38 1.65 0.17
4 g i.file#,...

0.0 83taa7kaw59 select name, intcol#,


21 88 0.24 1.57 0.19
9 c1 segcol#,...
0.0 ga9j9xk5cy9s select /*+
20 29 0.69 1.50 0.30
3 0 index(idl_sb4$ i_id...

18.0 0.0 0pm62u100t2 Admin select dbid,


18 1 1.35 0.32
0 3 4c Connection instance_number,...

begin
17.0 0.0 amytm4gwj1f OEM.Default
17 1 1.27 0.20 mgmt_user.get_mgmt_
0 1 99 Pool
privs...

0.0 04xtrk7uyhkn select obj#, type#,


15 72 0.21 1.12 0.13
3 h ctime, mti...

Back to SQL Statistics


Back to Top

SQL ordered by Executions

 Total Executions: 6,779


 Captured SQL accounts for 58.7% of Total Executions

CP Ela
Row U p
Rows
Executio Processe s per per
SQL Id SQL Module SQL Text
ns per Exe Exe
d
Exec c c
(s) (s)

UPDATE
0.0 0.0 91h2x42zqagc
1,038 1,038 1.00 MGMT_CURRENT_METRICS
0 0 m
SE...

0.0 0.0 8hk7xvhua40v OEM.SystemP INSERT INTO


728 1,010 1.39
0 0 a ool MGMT_METRICS_RAW(C...

begin
0.0 0.0 cb75rw3w1tt0 OEM.SystemP
372 372 1.00 MGMT_JOB_ENGINE.get_sc
0 0 s ool
he...

0.0 0.0 53saa2zkr6wc select intcol#, nvl(pos#, 0),


181 237 1.31
0 0 3 ...

0.0 0.0 6769wyy3yf66 select pos#, intcol#, col#,


108 219 2.03
0 0 f sp...
0.0 0.0 select /*+ rule */
107 97 0.91 96g93hntrzjtr
0 0 bucket_cnt,...

0.0 0.0 8ggw94h7mvx


102 0 0.00 COMMIT
0 0 d7

0.0 0.0 3c1kubcdjnpp update sys.col_usage$ set


95 95 1.00
0 0 q eq...

10.0 0.0 0.0 83taa7kaw59c select name, intcol#,


88 887
8 0 0 1 segcol#,...

0.0 0.0 g00cj285jmgs update sys.mon_mods$ set


86 86 1.00
0 0 w inser...

0.0 0.0 350f5yrnnmsh lock table sys.mon_mods$


86 0 0.00
0 0 s in ex...

0.0 0.0 grwydz59pu6 select text from view$


82 82 1.00
0 0 mc where r...

0.0 0.0 04xtrk7uyhkn select obj#, type#, ctime,


72 65 0.90
0 0 h mti...

Back to SQL Statistics


Back to Top

SQL ordered by Parse Calls

 Total Parse Calls: 2,249


 Captured SQL accounts for 50.7% of Total Parse Calls

Parse % Total SQL


Executions SQL Id SQL Text
Calls Parses Module

update sys.mon_mods$ set


86 86 3.82 g00cj285jmgsw
inser...

lock table sys.mon_mods$ in


86 86 3.82 350f5yrnnmshs
ex...

select text from view$ where


82 82 3.65 grwydz59pu6mc
r...
select owner#, name,
62 62 2.76 cqgv56fmuj63x
namespace...

select order#, columns, types


62 62 2.76 8swypbbr0m372
...

52 102 2.31 8ggw94h7mvxd7 COMMIT

44 44 1.96 0h6b2sajwb74n select privilege#, level from ...

42 42 1.87 2ym6hhaq30r73 select type#, blocks, extents,...

select name, intcol#,


42 88 1.87 83taa7kaw59c1
segcol#,...

lock table sys.col_usage$ in


36 36 1.60 b2gnxm5z6r51n
e...

update sys.col_usage$ set


36 95 1.60 3c1kubcdjnppq
eq...

insert into sys.col_usage$


36 0 1.60 53btfq0dt9bs9
val...

select /*+ index(idl_ub1$


29 29 1.29 cvn54b7yz0s8u
i_id...

29 29 1.29 c6awqs517jpj0 select /*+ index(idl_char$ i_i...

select /*+ index(idl_sb4$


29 29 1.29 ga9j9xk5cy9s0
i_id...

select /*+ index(idl_ub2$


29 29 1.29 39m4sx9k63ba2
i_id...

27 58 1.20 1tjnwqfpzxnng select i.obj#, i.ts#, i.file#,...

select audit$, properties


25 25 1.11 0m78skf1mudnb
from...

24 108 1.07 6769wyy3yf66f select pos#, intcol#, col#, sp...

select obj#, type#, ctime,


23 72 1.02 04xtrk7uyhknh
mti...
select grantee#, privilege#,
23 49 1.02 2q93zsrvbdw48
n...

23 46 1.02 6aq34nj2zb2n7 select col#, grantee#, privi...

Back to SQL Statistics


Back to Top

SQL ordered by Sharable Memory

No data exists for this section of the report.

Back to SQL Statistics


Back to Top

SQL ordered by Version Count

No data exists for this section of the report.

Back to SQL Statistics


Back to Top

Complete List of SQL Text

SQL Id SQL Text

select obj#, type#, ctime, mtime, stime, status, dataobj#, flags, oid$, spare1,
04xtrk7uyhknh spare2 from obj$ where owner#=:1 and name=:2 and namespace=:3 and
remoteowner is null and linkname is null and subname is null

select privilege#, level from sysauth$ connect by grantee#=prior privilege#


0h6b2sajwb74n
and privilege#>0 start with grantee#=:1 and privilege#>0

0m78skf1mudnb select audit$, properties from type_misc$ where obj#=:1

SELECT IO_TIME.SNAP_ID, IO_TIME.SECONDS, DB.SECONDS, CPU.SECONDS


FROM (SELECT SNAP_ID, DBID, INSTANCE_NUMBER,
SUM(TIME_WAITED_MICRO)/1000000 SECONDS FROM
SYS.DBA_HIST_SYSTEM_EVENT WHERE DBID = :B52 AND INSTANCE_NUMBER
0mjbmu9169pm8 = :B51 AND SNAP_ID IN (:B50 , :B49 , :B48 , :B47 , :B46 , :B45 , :B44 , :B43 ,
:B42 , :B41 , :B40 , :B39 , :B38 , :B37 , :B36 , :B35 , :B34 , :B33 , :B32 , :B31 ,
:B30 , :B29 , :B28 , :B27 , :B26 , :B25 , :B24 , :B23 , :B22 , :B21 , :B20 , :B19 ,
:B18 , :B17 , :B16 , :B15 , : B14 , :B13 , :B12 , :B11 , :B10 , :B9 , :B8 , :B7 , :B6 ,
:B5 , :B4 , :B3 , :B2 , :B1 ) AND WAIT_CLASS = 'User I/O' GROUP BY SNAP_ID,
DBID, INSTANCE_NUMBER) IO_TIME, (SELECT SNAP_ID, DBID,
INSTANCE_NUMBER, VALUE/1000000 SECONDS FROM
SYS.DBA_HIST_SYS_TIME_MODEL WHERE STAT_ID = 3649082374) DB,
(SELECT SNAP_ID, DBID, INSTANCE_NUMBER, VALUE/1000000 SECONDS
FROM SYS.DBA_HIST_SYS_TIME_MODEL WHERE STAT_ID = 2748282437) CPU
WHERE IO_TIME.SNAP_ID = DB.SNAP_ID AND IO_TIME.DBID = DB.DBID AND
IO_T IME.INSTANCE_NUMBER = DB.INSTANCE_NUMBER AND DB.SNAP_ID =
CPU.SNAP_ID AND DB.DBID = CPU.DBID AND DB.INSTANCE_NUMBER =
CPU.INSTANCE_NUMBER ORDER BY IO_TIME.SNAP_ID

select dbid, instance_number, a.startup_time, host_name, db_name, snap_id,


instance_name from (select dbid, instance_number, startup_time,
host_name, db_name, instance_name from dba_hist_database_instance) a,
0pm62u100t24c
(select startup_time, min(snap_id) snap_id from dba_hist_snapshot group by
startup_time) b where a.startup_time = b.startup_time order by dbid,
instance_number, a.startup_time

SELECT a.advisor_name, a.task_name, a.inst_id, a.description, a.owner,


a.status, a.execution_start, a.execution_end,
trunc(a.created)+a.days_to_expire-trunc(sysdate), a.task_id,
a.recommendation_count, a.state, jl.status, cast(nvl(a.start_date,
a.last_start_date) as TIMESTAMP), a.created, trunc(sysdate)-trunc(a.created)
FROM (SELECT b.*, j.state as state, j.start_date as start_date, j.last_start_date
as last_start_date FROM (SELECT /*+ NO_MERGE(mt) ORDERED */
t.advisor_name a s advisor_name, t.task_name as task_name, t.description as
description, t.owner as owner, t.created as created, t.status as status,
t.execution_start as execution_start, t.execution_end as execution_end,
t.task_id as task_id, t.recommendation_count as recommendation_count,
mt.exec_time as max_execution_time, p1.parameter_value as
days_to_expire, p2.parameter_value as inst_id FROM (SELECT /*+ ORDERED
0wuf229dxmxbw */ p1.parameter_value as inst_id, t.advisor_id, max(t.execution_start) as
exec_tim e FROM dba_advisor_tasks t, (SELECT task_id, parameter_value
FROM dba_advisor_parameters_proj WHERE parameter_name = 'INSTANCE')
p1, (SELECT task_id, parameter_value FROM dba_advisor_parameters_proj
WHERE parameter_name = 'DB_ID') p2 WHERE task_name like :1 AND
t.task_id=p1.task_id AND t.task_id=p2.task_id(+) AND
(p1.parameter_value='UNUSED' or (p1.parameter_value=to_char(:2) AND
p2.parameter_value = to_char(:3))) GROUP BY p1.parameter_value,
t.advisor_id ) mt, dba_advisor_task s t, dba_advisor_parameters_proj p1,
dba_advisor_parameters_proj p2 WHERE t.advisor_id = mt.advisor_id AND
t.execution_start = mt.exec_time AND mt.inst_id = p2.parameter_value AND
t.advisor_name like :4 AND p1.task_id=t.task_id AND
p1.parameter_name='DAYS_TO_EXPIRE' AND p2.task_id=t.task_id AND
p2.parameter_name='INSTANCE' ) b, dba_scheduler_jobs j WHERE
CONCAT('ADV_', b.task_name)=j.job_name (+) AND b.owner=j.owner (+) ) a,
(SELECT job_name, operation, status, owner FROM dba_scheduler _job_log
WHERE operation='RUN' AND log_id IN (SELECT UNIQUE MAX(log_id) OVER
(PARTITION BY job_name) FROM dba_scheduler_job_log WHERE
operation='RUN') ) jl WHERE CONCAT('ADV_', a.task_name)=jl.job_name(+)
AND a.owner=jl.owner (+)

10dfqkk4brpf4 select log_mode from v$database

select * from ( SELECT OBJECT_NAME, OBJECT_ID, '' short_name,


DECODE(STATUS, 'INVALID', 'TRUE', 'FALSE') INVALID, OWNER
OBJECT_OWNER, CREATED, LAST_DDL_TIME FROM SYS.Dba_OBJECTS WHERE
OWNER = :SCHEMA AND OBJECT_TYPE = :TYPE AND SUBOBJECT_NAME IS
NULL union all SELECT OBJECT_NAME, OBJECT_ID , syn.SYNONYM_NAME
10nptm88sw54v
short_NAME, DECODE(STATUS, 'INVALID', 'TRUE', 'FALSE') INVALID,
SYN.TABLE_OWNER OBJECT_OWNER, O.CREATED, O.LAST_DDL_TIME FROM
SYS.Dba_OBJECTS O, sys.user_synonyms syn WHERE syn.table_owner =
o.owner and syn.TABLE_NAME = o.object_NAME and o.object_type = :TYPE
and :INCLUDE_SYNS = 1 AND SUBOBJECT_NAME IS NULL )

1j3uncx8wf00u SELECT DISTINCT Job_id FROM Employees ORDER BY Job_id

select i.obj#, i.ts#, i.file#, i.block#, i.intcols, i.type#, i.flags, i.property,


i.pctfree$, i.initrans, i.maxtrans, i.blevel, i.leafcnt, i.distkey, i.lblkkey, i.dblkkey,
i.clufac, i.cols, i.analyzetime, i.samplesize, i.dataobj#, nvl(i.degree, 1),
nvl(i.instances, 1), i.rowcnt, mod(i.pctthres$, 256), i.indmethod#, i.trunccnt,
nvl(c.unicols, 0), nvl(c.deferrable#+c.valid#, 0), nvl(i.spare1, i.intcols), i.spare4,
1tjnwqfpzxnng i.spare2, i.spare6, decode(i.pctthres$, null, null, mod(trunc(i.pctthres$/256),
256) ), ist.cachedblk, ist.cachehit, ist.logicalread from ind$ i, ind_stats$ ist,
(select enabled, min(cols) unicols, min(to_number(bitand(defer, 1)))
deferrable#, min(to_number(bitand(defer, 4))) valid# from cdef$ where
obj#=:1 and enabled > 1 group by enabled) c where i.obj#=c.enabled(+) and
i.obj# = ist.obj#(+) and i.bo#=:1

DECLARE v_dbid NUMBER := :1; v_instance_number NUMBER := :2; v_0


NUMBER := :3; v_1 NUMBER := :4; v_2 NUMBER := :5; v_3 NUMBER := :6; v_4
NUMBER := :7; v_5 NUMBER := :8; v_6 NUMBER := :9; v_7 NUMBER := :10; v_8
NUMBER := :11; v_9 NUMBER := :12; v_10 NUMBER := :13; v_11 NUMBER :=
:14; v_12 NUMBER := :15; v_13 NUMBER := :16; v_14 NUMBER := :17; v_15
25jpmvsm171xd NUMBER := :18; v_16 NUMBER := :19; v_17 NUMBER := :20; v_18 NUMBER :=
:21; v_19 NUMBER := :22; v_20 NUMBER := :23; v_21 NUMBER := :24; v_22
NUMBER := : 25; v_23 NUMBER := :26; v_24 NUMBER := :27; v_25 NUMBER :=
:28; v_26 NUMBER := :29; v_27 NUMBER := :30; v_28 NUMBER := :31; v_29
NUMBER := :32; v_30 NUMBER := :33; v_31 NUMBER := :34; v_32 NUMBER :=
:35; v_33 NUMBER := :36; v_34 NUMBER := :37; v_35 NUMBER := :38; v_36
NUMBER := :39; v_37 NUMBER := :40; v_38 NUMBER := :41; v_39 NUMBER :=
:42; v_40 NUMBER := :43; v_41 NUMBER := :44; v_42 NUMBER := :45; v_43
NUMBER := :46; v_44 NUMBER := :47; v_45 NUMBER := :48; v_46 NUMBER :=
:49; v_47 NUMBER := : 50; v_48 NUMBER := :51; v_49 NUMBER := :52; BEGIN
OPEN :53 FOR SELECT io_time.snap_id, io_time.seconds, db.seconds,
cpu.seconds FROM (SELECT snap_id, dbid, instance_number,
SUM(time_waited_micro)/1000000 seconds FROM
sys.dba_hist_system_event WHERE dbid = v_dbid AND instance_number =
v_instance_number AND snap_id IN (v_0, v_1, v_2, v_3, v_4, v_5, v_6, v_7,
v_8, v_9, v_10, v_11, v_12, v_13, v_14, v_15, v_16, v_17, v_18, v_19, v_20,
v_21, v_22, v_23, v_24, v_25, v_26, v_27, v_28, v_29, v_30, v_31, v_32, v_33,
v_34, v_35, v_36, v_37, v_38, v_39, v_40, v_41, v_42, v_43, v_44, v_45, v_46,
v_47, v_48, v_49) AND wait_class = 'User I/O' GROUP BY snap_id, dbid,
instance_number) io_time, (SELECT snap_id, dbid, instance_number,
value/1000000 seconds FROM sys.dba_hist_sys_time_model WHERE stat_id =
3649082374) db, (SELECT snap_id, dbid, instance_number, value/1000000
seconds FROM sys.dba_hist_sys_time_model WHERE stat_id = 2748282437)
cpu WHERE io_time.snap_id = db.snap_id AND io_t ime.dbid = db.dbid AND
io_time.instance_number = db.instance_number AND db.snap_id =
cpu.snap_id AND db.dbid = cpu.dbid AND db.instance_number =
cpu.instance_number ORDER BY io_time.snap_id; END;

2b064ybzkwf1y BEGIN EMD_NOTIFICATION.QUEUE_READY(:1, :2, :3); END;

select grantee#, privilege#, nvl(col#, 0), max(mod(nvl(option$, 0), 2))from


2q93zsrvbdw48 objauth$ where obj#=:1 group by grantee#, privilege#, nvl(col#, 0) order by
grantee#

select type#, blocks, extents, minexts, maxexts, extsize, extpct, user#, iniexts,
2ym6hhaq30r73 NVL(lists, 65535), NVL(groups, 65535), cachehint, hwmincr, NVL(spare1, 0),
NVL(scanhint, 0) from seg$ where ts#=:1 and file#=:2 and block#=:3

350f5yrnnmshs lock table sys.mon_mods$ in exclusive mode nowait

select /*+ index(idl_ub2$ i_idl_ub21) +*/ piece#, length, piece from idl_ub2$
39m4sx9k63ba2
where obj#=:1 and part=:2 and version=:3 order by piece#

update sys.col_usage$ set equality_preds = equality_preds +


decode(bitand(:flag, 1), 0, 0, 1), equijoin_preds = equijoin_preds +
decode(bitand(:flag, 2), 0, 0, 1), nonequijoin_preds = nonequijoin_preds +
3c1kubcdjnppq decode(bitand(:flag, 4), 0, 0, 1), range_preds = range_preds +
decode(bitand(:flag, 8), 0, 0, 1), like_preds = like_preds + decode(bitand(:flag,
16), 0, 0, 1), null_preds = null_preds + decode(bitand(:flag, 32), 0, 0, 1), tim
estamp = :time where obj# = :objn and intcol# = :coln
DECLARE job BINARY_INTEGER := :job; next_date DATE := :mydate; broken
BOOLEAN := FALSE; BEGIN
3tm1zmqpydqu3
dbms_refresh.refresh('"SALUD"."SALUD_REPLICADA"'); :mydate := next_date;
IF broken THEN :b := 1; ELSE :b := 0; END IF; END;

4h4sca4f234n2 begin ecm_inv.get_inv_sw_info(:1, :2, :3, :4, :5, :6); end;

insert into sys.col_usage$ values ( :objn, :coln, decode(bitand(:flag, 1), 0, 0, 1),


decode(bitand(:flag, 2), 0, 0, 1), decode(bitand(:flag, 4), 0, 0, 1),
53btfq0dt9bs9
decode(bitand(:flag, 8), 0, 0, 1), decode(bitand(:flag, 16), 0, 0, 1),
decode(bitand(:flag, 32), 0, 0, 1), :time)

53saa2zkr6wc3 select intcol#, nvl(pos#, 0), col#, nvl(spare1, 0) from ccol$ where con#=:1

insert into wrh$_bg_event_summary (snap_id, dbid, instance_number,


event_id, total_waits, total_timeouts, time_waited_micro) select :snap_id,
:dbid, :instance_number, e.event_id, sum(e.total_waits),
584ypkst2k8p7
sum(e.total_timeouts), sum(e.time_waited_micro) from v$session_event e
where e.sid in (select s.sid from v$session s where s.type = 'BACKGROUND')
group by e.event_id

643cfdnf2ks9w select 1 from dba_xml_schemas where 1=2

6769wyy3yf66f select pos#, intcol#, col#, spare1, bo#, spare2 from icol$ where obj#=:1

select col#, grantee#, privilege#, max(mod(nvl(option$, 0), 2)) from objauth$


6aq34nj2zb2n7 where obj#=:1 and col# is not null group by privilege#, col#, grantee# order by
col#, grantee#

DECLARE job BINARY_INTEGER := :job; next_date DATE := :mydate; broken


BOOLEAN := FALSE; BEGIN
6gvch1xu9ca3g
EMD_MAINTENANCE.EXECUTE_EM_DBMS_JOB_PROCS(); :mydate :=
next_date; IF broken THEN :b := 1; ELSE :b := 0; END IF; END;

6q766vsk5290x BEGIN dbms_stats_internal.flush_cache_stats; END;

select name, intcol#, segcol#, type#, length, nvl(precision#, 0), decode(type#,


2, nvl(scale, -127/*MAXSB1MINAL*/), 178, scale, 179, scale, 180, scale, 181,
83taa7kaw59c1 scale, 182, scale, 183, scale, 231, scale, 0), null$, fixedstorage, nvl(deflength,
0), default$, rowid, col#, property, nvl(charsetid, 0), nvl(charsetform, 0),
spare1, spare2, nvl(spare3, 0) from col$ where obj#=:1 order by intcol#

8fx6pqqbpra0s begin emd_database.getDBSiteMapInfo(:1, :2, :3); end;

8ggw94h7mvxd7 COMMIT
INSERT INTO MGMT_METRICS_RAW(COLLECTION_TIMESTAMP, KEY_VALUE,
8hk7xvhua40va METRIC_GUID, STRING_VALUE, TARGET_GUID, VALUE) VALUES ( :1, NVL(:2, '
'), :3, :4, :5, :6)

8swypbbr0m372 select order#, columns, types from access$ where d_obj#=:1

UPDATE MGMT_CURRENT_METRICS SET COLLECTION_TIMESTAMP = :B3 ,


VALUE = :B2 , STRING_VALUE = :B1 WHERE TARGET_GUID = :B6 AND
91h2x42zqagcm
METRIC_GUID = :B5 AND KEY_VALUE = :B4 AND COLLECTION_TIMESTAMP <
:B3

select /*+ rule */ bucket_cnt, row_cnt, cache_cnt, null_cnt, timestamp#,


96g93hntrzjtr sample_size, minimum, maximum, distcnt, lowval, hival, density, col#, spare1,
spare2, avgcln from hist_head$ where obj#=:1 and intcol#=:2

amytm4gwj1f99 begin mgmt_user.get_mgmt_privs(:1, :2, :3, :4); end;

aqm4v6p0t9snb BEGIN :1 := MGMT_CREDENTIAL.get_target_creds_default(:2, :3, :4, :5); END;

b2gnxm5z6r51n lock table sys.col_usage$ in exclusive mode nowait

SELECT /* OPT_DYN_SAMP */ /*+ ALL_ROWS IGNORE_WHERE_CLAUSE


NO_PARALLEL(SAMPLESUB) NO_PARALLEL_INDEX(SAMPLESUB) */
NVL(SUM(C1), 0), NVL(SUM(C2), 0) FROM (SELECT /*+
bjw5x2drsjzbr
NO_PARALLEL("EMPLOYEES") FULL("EMPLOYEES")
NO_PARALLEL_INDEX("EMPLOYEES") */ 1 AS C1, 1 AS C2 FROM "EMPLOYEES"
"EMPLOYEES") SAMPLESUB

BEGIN IF
(xdb.DBMS_XDBZ0.is_hierarchy_enabled_internal(sys.dictionary_obj_owner,
bwxpqhtrx3g2k sys.dictionary_obj_name, sys.dictionary_obj_owner)) THEN
xdb.XDB_PITRIG_PKG.pitrig_truncate(sys.dictionary_obj_owner,
sys.dictionary_obj_name); END IF; EXCEPTION WHEN OTHERS THEN null; END;

select /*+ index(idl_char$ i_idl_char1) +*/ piece#, length, piece from


c6awqs517jpj0
idl_char$ where obj#=:1 and part=:2 and version=:3 order by piece#

cb75rw3w1tt0s begin MGMT_JOB_ENGINE.get_scheduled_steps(:1, :2, :3, :4); end;

select owner#, name, namespace, remoteowner, linkname, p_timestamp,


cqgv56fmuj63x p_obj#, nvl(property, 0), subname, d_attrs from dependency$ d, obj$ o where
d_obj#=:1 and p_obj#=obj#(+) order by order#

select /*+ index(idl_ub1$ i_idl_ub11) +*/ piece#, length, piece from idl_ub1$
cvn54b7yz0s8u
where obj#=:1 and part=:2 and version=:3 order by piece#
dszg05gzmprk1 BEGIN emd_mntr.get_types_resource_bundles(:1); END;

SELECT EXTERNAL_NAME AS PRODUCT_NAME, VERSION AS


PRODUCT_VERSION, NUM_INSTALLS, NUM_INSTANCES, PATCHED FROM (
SELECT ITARGET_TYPE, EXTERNAL_NAME, VERSION, COUNT( DISTINCT
IT.CONTAINER_GUID ) AS NUM_INSTALLS, COUNT(DISTINCT IT.TARGET_GUID)
AS NUM_INSTANCES, CASE SUM(IT.NUM_PATCHED) WHEN 0 THEN 'No' ELSE
'Yes' END AS PATCHED FROM ( SELECT EXTERNAL_NAME AS
EXTERNAL_NAME, VERSION AS VERSION, CONTAINER_GUID AS
CONTAINER_GUID, TARGET_GUID, NUM_PATCHED AS NUM_PATCHED,
INST.TARGET_TYPE AS ITARGET_TYPE FROM ( SELECT MAP.TARGET_TYPE,
MAP.PROPERTY_NAME, MAP.PROPERTY_VALUE,
COMPONENT.EXTERNAL_NAME, CASE WHEN PS_PATCH.VERSION IS NULL
THEN COMPONENT.VERSION ELSE PS_PATCH.VERSION END AS VERSION,
HOST.TARGET_NAME AS HOST_NAME, CONTAINER_LOCATION, CASE WHEN
EXISTS ( SELECT * FROM MGMT_INV_PATCH P WHERE P.CONTAINER_GUID =
HOME.CONTAINER_GUID ) THEN 1 ELSE 0 END AS NUM_PATCHED,
HOME.CONTAINER_GUID FROM MGMT_TARGETS HOST,
MGMT_ECM_SNAPSHOT SNAPSHOT, MGMT_INV_CONTAINER HOME,
MGMT_I NV_COMPONENT COMPONENT, MGMT_INV_VERSIONED_PATCH
PS_PATCH, MGMT_TARGET_TYPE_COMPONENT_MAP MAP, TABLE(CAST(:B1
AS MGMT_INV_TARGET_LIST_OBJ_ARRAY)) TTLIST WHERE
fr2v4v7t9k8mz HOST.TARGET_TYPE = 'host' AND HOST.TARGET_NAME =
SNAPSHOT.TARGET_NAME AND HOST.TARGET_TYPE =
SNAPSHOT.TARGET_TYPE AND SNAPSHOT.SNAPSHOT_TYPE =
'host_configuration' AND SNAPSHOT.IS_CURRENT = 'Y' AND
HOME.SNAPSHOT_GUID = SNAPSHOT.SNAPSHOT_GUID AND
COMPONENT.CONTAINER_GUID = HOME.CONTAINER_GUID AND
COMPONENT.COMPONENT_GUID = PS_PATCH.COMPO NENT_GUID(+) AND
MAP.COMPONENT_NAME = COMPONENT.NAME AND MAP.TARGET_TYPE =
TTLIST.TARGET_TYPE AND ((TTLIST.PROPERTY_NAME IS NULL AND
TTLIST.PROPERTY_VALUE IS NULL AND MAP.PROPERTY_NAME IS NULL AND
MAP.PROPERTY_VALUE IS NULL) OR (TTLIST.PROPERTY_NAME =
MAP.PROPERTY_NAME AND TTLIST.PROPERTY_VALUE =
MAP.PROPERTY_VALUE)) ) INST, ( SELECT TARGET.TARGET_TYPE,
HOST.TARGET_NAME AS HOST_TARGET_NAME, TARGET.TARGET_NAME AS
TARGET_NAME, LOCATION_PROPERTY.PROPERTY_VALUE AS
HOME_LOCATION, TARGET.TARGET_G UID,
TARGET_PROPERTY.PROPERTY_NAME, TARGET_PROPERTY.PROPERTY_VALUE
FROM MGMT_TARGETS HOST, MGMT_TARGETS TARGET,
MGMT_TARGET_PROPERTIES LOCATION_PROPERTY,
MGMT_TARGET_PROPERTIES TARGET_PROPERTY, TABLE(CAST(:B1 AS
MGMT_INV_TARGET_LIST_OBJ_ARRAY)) TTLIST WHERE HOST.TARGET_TYPE =
'host' AND HOST.TARGET_NAME = TARGET.HOST_NAME AND
LOCATION_PROPERTY.TARGET_GUID = TARGET.TARGET_GUID AND
LOCATION_PROPERTY.PROPERTY_NAME = 'OracleHome' AND
TTLIST.TARGET_TYPE = TARGET.TARGET_TYPE AND ((TTLIST.PROPERT
Y_NAME IS NULL AND TTLIST.PROPERTY_VALUE IS NULL) OR EXISTS (SELECT *
FROM MGMT_TARGET_PROPERTIES SUB_TYPE WHERE
TARGET.TARGET_GUID = SUB_TYPE.TARGET_GUID AND
TTLIST.PROPERTY_NAME = SUB_TYPE.PROPERTY_NAME AND
TTLIST.PROPERTY_VALUE = SUB_TYPE.PROPERTY_VALUE) ) AND
TARGET.TARGET_GUID = TARGET_PROPERTY.TARGET_GUID ) TARGS WHERE
INST.HOST_NAME = TARGS.HOST_TARGET_NAME(+) AND
INST.CONTAINER_LOCATION = TARGS.HOME_LOCATION(+) AND
INST.TARGET_TYPE = TARGS.TARGET_TYPE(+) AND ((INST.PROPERTY_NAME IS
NULL AND INST.PROPERTY_VALUE IS NULL) OR (INST.PROPERTY_NAME =
TARGS.PROPERTY_NAME AND INST.PROPERTY_VALUE =
TARGS.PROPERTY_VALUE)) ) IT GROUP BY ITARGET_TYPE, EXTERNAL_NAME,
VERSION )

update sys.mon_mods$ set inserts = inserts + :ins, updates = updates + :upd,


deletes = deletes + :del, flags = (decode(bitand(flags, :flag), :flag, flags, flags +
g00cj285jmgsw
:flag)), drop_segments = drop_segments + :dropseg, timestamp = :time where
obj# = :objn

select /*+ index(idl_sb4$ i_idl_sb41) +*/ piece#, length, piece from idl_sb4$
ga9j9xk5cy9s0
where obj#=:1 and part=:2 and version=:3 order by piece#

MERGE INTO cache_stats_1$ D USING (select * from


table(dbms_stats_internal.format_cache_rows(CURSOR((select dataobj# o,
statistic# stat, nvl(value, 0) val from gv$segstat where statistic# in (0, 3, 5) and
obj# > 0 and inst_id = 1) union all (select obj# o, 7 stat, nvl(sum(num_buf), 0)
val from x$kcboqh x where inst_id = 1 group by obj#) order by o))) where
cachedblk>10) S ON (D.dataobj# = S.obj# AND D.inst_id = S.inst_id) WHEN
MATCHED THEN UPDATE SET cached_avg = CASE WHEN (S.cachedblk>0 AND
cached_sqr_avg <= cached_avg*cached_avg* 5) THEN
2/(cached_no+1)*((cached_no-1)/2*cached_avg+S.cachedblk) WHEN
gcdhfp8kjxa4a (S.cachedblk>0 AND cached_sqr_avg > cached_avg*cached_avg* 5) THEN
S.cachedblk ELSE cached_avg END, cached_sqr_avg = CASE WHEN
(S.cachedblk>0 AND cached_sqr_avg <= cached_avg*cached_avg* 5) THEN
2/(cached_no+1)*((cached_no-1)/2*cached_sqr_avg+
S.cachedblk*S.cachedblk) WHEN (S.cachedblk>0 AND cached_sqr_avg >
cached_avg*cached_avg* 5) THEN S.cachedblk*S.cachedblk ELSE
cached_sqr_avg END, cached_no = CASE WHEN (S.cachedblk>0 AND
cached_sqr_avg <= cached_avg*cached_avg* 5) THEN cached_no+1 WHEN
(S.cachedblk>0 AND cached_sqr_avg > cached_avg*cached_avg* 5) THEN 1
ELSE cached_no END, cached_seq_no = CASE WHEN S.cachedblk>0 THEN 134
ELSE cached_seq_no END, chr_avg = CASE WHEN (S.logrds>lgr_last AND
chr_sqr_avg <= chr_avg*chr_avg* 5) THEN 2/(chr_no+1)*((chr_no-
1)/2*chr_avg+ (1 - (S.phrds-phr_last)/(S.logrds-lgr_last)) ) WHEN
(S.logrds>lgr_last AND (chr_no=0 OR chr_sqr_avg > c hr_avg*chr_avg* 5))
THEN (1 - (S.phrds-phr_last)/(S.logrds-lgr_last)) ELSE chr_avg END,
chr_sqr_avg = CASE WHEN (S.logrds>lgr_last AND chr_sqr_avg <=
chr_avg*chr_avg* 5) THEN 2/(chr_no+1)*((chr_no-1)/2*chr_sqr_avg+ (1 -
(S.phrds-phr_last)/(S.logrds-lgr_last)) *(1 - (S.phrds-phr_last)/(S.logrds-
lgr_last)) ) WHEN (S.logrds>lgr_last AND (chr_no=0 OR chr_sqr_avg >
chr_avg*chr_avg* 5)) THEN (1 - (S.phrds-phr_last)/(S.logrds-lgr_last)) *(1 -
(S.phrds-phr_last)/(S.logrds-lgr_last)) ELSE chr_sqr_avg EN D, chr_no = CASE
WHEN (S.logrds>lgr_last AND chr_sqr_avg <= chr_avg*chr_avg* 5) THEN
chr_no+1 WHEN (S.logrds>lgr_last AND (chr_no=0 OR chr_sqr_avg >
chr_avg*chr_avg* 5)) THEN 1 ELSE chr_no END, chr_seq_no = CASE WHEN
S.logrds>lgr_last THEN 134 ELSE chr_seq_no END, lgr_sum = CASE WHEN
(S.logrds>lgr_last AND chr_sqr_avg <= chr_avg*chr_avg* 5) THEN S.logrds-
lgr_last+lgr_sum WHEN (S.logrds>lgr_last AND (chr_no=0 OR chr_sqr_avg >
chr_avg*chr_avg* 5)) THEN S.logrds-lgr_last ELSE lgr_sum END, lgr_l ast =
S.logrds, phr_last = S.phrds WHERE dataobj#=S.obj# WHEN NOT MATCHED
THEN INSERT (dataobj#, inst_id, cached_avg, cached_sqr_avg, cached_no,
cached_seq_no, chr_avg, chr_sqr_avg, chr_no, chr_seq_no, lgr_sum, lgr_last,
phr_last) VALUES (S.obj#, 1, S.cachedblk, S.cachedblk*S.cachedblk, CASE
WHEN (S.cachedblk>0) THEN 1 ELSE 0 END, 133, 0, 0, 0, 133, 0, S.logrds,
S.phrds)

begin sys.dbms_snapshot_utl.set_up@DBMASTER (:mown_col, :mas_col,


:rollseg_col, :flag_col, :outflag_col, :snaptime_col, :loadertime_col, :num_sid,
:snapid_tab, :max_tab_scn_col, :max_dl_scn_col, :max_pmop_scn_col,
ggyy05ubt80jr
:trunc_scn_col, :max_ins_tim_col, :max_upd_tim_col, :max_del_tim_col,
:max_ins_scn_col, :max_upd_scn_col, :max_del_scn_col, :hdl_col,
:hdl_indx_col, :rscn); end;

grwydz59pu6mc select text from view$ where rowid=:1

Back to SQL Statistics


Back to Top

Instance Activity Statistics


 Instance Activity Stats
 Instance Activity Stats - Absolute Values
 Instance Activity Stats - Thread Activity

Back to Top
Instance Activity Stats

Statistic Total per Second per Trans

active txn count during cleanout 31 0.05 0.23

application wait time 5 0.01 0.04

background checkpoints completed 0 0.00 0.00

background checkpoints started 0 0.00 0.00

background timeouts 1,710 2.75 12.57

buffer is not pinned count 16,087 25.84 118.29

buffer is pinned count 28,293 45.44 208.04

bytes received via SQL*Net from client 366,433 588.57 2,694.36

bytes received via SQL*Net from dblink 8,549 13.73 62.86

bytes sent via SQL*Net to client 300,230 482.23 2,207.57

bytes sent via SQL*Net to dblink 13,730 22.05 100.96

calls to get snapshot scn: kcmgss 9,103 14.62 66.93

calls to kcmgas 393 0.63 2.89

calls to kcmgcs 28 0.04 0.21

change write time 8 0.01 0.06

cleanout - number of ktugct calls 33 0.05 0.24

cleanouts and rollbacks - consistent read gets 0 0.00 0.00

cleanouts only - consistent read gets 0 0.00 0.00

cluster key scan block gets 991 1.59 7.29

cluster key scans 579 0.93 4.26

commit cleanout failures: block lost 6 0.01 0.04


commit cleanout failures: callback failure 0 0.00 0.00

commit cleanouts 799 1.28 5.88

commit cleanouts successfully completed 793 1.27 5.83

commit txn count during cleanout 12 0.02 0.09

concurrency wait time 0 0.00 0.00

consistent changes 194 0.31 1.43

consistent gets 25,969 41.71 190.95

consistent gets - examination 12,049 19.35 88.60

consistent gets direct 0 0.00 0.00

consistent gets from cache 25,969 41.71 190.95

CPU used by this session 896 1.44 6.59

CPU used when call started 887 1.42 6.52

CR blocks created 45 0.07 0.33

cursor authentications 65 0.10 0.48

data blocks consistent reads - undo records


43 0.07 0.32
applied

db block changes 16,429 26.39 120.80

db block gets 12,884 20.69 94.74

db block gets direct 0 0.00 0.00

db block gets from cache 12,884 20.69 94.74

DB time 194,528 312.45 1,430.35

DBWR checkpoint buffers written 418 0.67 3.07

DBWR checkpoints 0 0.00 0.00

DBWR transaction table writes 10 0.02 0.07


DBWR undo block writes 119 0.19 0.88

deferred (CURRENT) block cleanout applications 586 0.94 4.31

dirty buffers inspected 79 0.13 0.58

enqueue conversions 168 0.27 1.24

enqueue releases 6,036 9.70 44.38

enqueue requests 6,036 9.70 44.38

enqueue waits 0 0.00 0.00

execute count 6,779 10.89 49.85

free buffer inspected 1,558 2.50 11.46

free buffer requested 1,580 2.54 11.62

heap block compress 16 0.03 0.12

hot buffers moved to head of LRU 931 1.50 6.85

immediate (CR) block cleanout applications 0 0.00 0.00

immediate (CURRENT) block cleanout


88 0.14 0.65
applications

IMU commits 114 0.18 0.84

IMU contention 0 0.00 0.00

IMU CR rollbacks 20 0.03 0.15

IMU- failed to get a private strand 0 0.00 0.00

IMU Flushes 162 0.26 1.19

IMU ktichg flush 3 0.00 0.02

IMU pool not allocated 0 0.00 0.00

IMU recursive-transaction flush 0 0.00 0.00

IMU Redo allocation size 148,004 237.73 1,088.26


IMU undo allocation size 466,268 748.93 3,428.44

index fast full scans (full) 3 0.00 0.02

index fetch by key 6,349 10.20 46.68

index scans kdiixs1 4,336 6.96 31.88

leaf node splits 10 0.02 0.07

leaf node 90-10 splits 6 0.01 0.04

logons cumulative 28 0.04 0.21

messages received 390 0.63 2.87

messages sent 390 0.63 2.87

no buffer to keep pinned count 0 0.00 0.00

no work - consistent read gets 9,343 15.01 68.70

opened cursors cumulative 2,052 3.30 15.09

parse count (failures) 22 0.04 0.16

parse count (hard) 177 0.28 1.30

parse count (total) 2,249 3.61 16.54

parse time cpu 136 0.22 1.00

parse time elapsed 256 0.41 1.88

physical read IO requests 769 1.24 5.65

physical reads 1,335 2.14 9.82

physical reads cache 1,335 2.14 9.82

physical reads cache prefetch 566 0.91 4.16

physical reads direct 0 0.00 0.00

physical reads direct (lob) 0 0.00 0.00

physical reads direct temporary tablespace 0 0.00 0.00


physical write IO requests 315 0.51 2.32

physical writes 556 0.89 4.09

physical writes direct 0 0.00 0.00

physical writes direct temporary tablespace 0 0.00 0.00

physical writes from cache 556 0.89 4.09

physical writes non checkpoint 164 0.26 1.21

pinned buffers inspected 1 0.00 0.01

prefetched blocks aged out before use 0 0.00 0.00

process last non-idle time 34,511,183,904 55,432,439.96 253,758,705.18

recovery blocks read 0 0.00 0.00

recursive calls 35,477 56.98 260.86

recursive cpu usage 810 1.30 5.96

redo blocks written 5,006 8.04 36.81

redo buffer allocation retries 1 0.00 0.01

redo entries 7,784 12.50 57.24

redo log space requests 0 0.00 0.00

redo log space wait time 0 0.00 0.00

redo ordering marks 0 0.00 0.00

redo size 2,572,796 4,132.47 18,917.62

redo synch time 28 0.04 0.21

redo synch writes 67 0.11 0.49

redo wastage 40,324 64.77 296.50

redo write time 64 0.10 0.47

redo writer latching time 0 0.00 0.00


redo writes 145 0.23 1.07

rollback changes - undo records applied 32 0.05 0.24

rollbacks only - consistent read gets 43 0.07 0.32

rows fetched via callback 3,529 5.67 25.95

session connect time 34,511,183,904 55,432,439.96 253,758,705.18

session logical reads 38,853 62.41 285.68

session pga memory 3,198,692 5,137.79 23,519.79

session pga memory max 4,837,092 7,769.42 35,566.85

session uga memory 1,184,744 1,902.96 8,711.35

session uga memory max 11,596,728 18,626.86 85,270.06

shared hash latch upgrades - no wait 4,705 7.56 34.60

sorts (memory) 1,234 1.98 9.07

sorts (rows) 13,493 21.67 99.21

SQL*Net roundtrips to/from client 2,254 3.62 16.57

SQL*Net roundtrips to/from dblink 40 0.06 0.29

summed dirty queue length 117 0.19 0.86

switch current to new buffer 28 0.04 0.21

table fetch by rowid 7,794 12.52 57.31

table fetch continued row 32 0.05 0.24

table scan blocks gotten 2,244 3.60 16.50

table scan rows gotten 178,493 286.70 1,312.45

table scans (long tables) 1 0.00 0.01

table scans (short tables) 410 0.66 3.01

transaction rollbacks 9 0.01 0.07


undo change vector size 833,744 1,339.17 6,130.47

user calls 2,548 4.09 18.74

user commits 127 0.20 0.93

user I/O wait time 537 0.86 3.95

user rollbacks 9 0.01 0.07

workarea executions - onepass 0 0.00 0.00

workarea executions - optimal 833 1.34 6.13

write clones created in background 0 0.00 0.00

write clones created in foreground 0 0.00 0.00

Back to Instance Activity Statistics


Back to Top

Instance Activity Stats - Absolute Values

 Statistics with absolute values (should not be diffed)


 Statistics identified by '(derived)' come from sources other than SYSSTAT

Statistic Begin Value End Value

logons current 30 33

open threads (derived) 1 1

opened cursors current 452 480

Back to Instance Activity Statistics


Back to Top

Instance Activity Stats - Thread Activity

Statistic Total per Hour

log switches (derived) 0 0.00


Back to Instance Activity Statistics
Back to Top

IO Stats
 Tablespace IO Stats
 File IO Stats

Back to Top

Tablespace IO Stats

 ordered by IOs (Reads + Writes) desc

Av Av Av Av Buffer Av Buf
Tablespace Reads Reads/s Rd(ms) Blks/Rd
Writes
Writes/s Waits Wt(ms)

SYSTEM 616 1 6.80 1.71 27 0 0 0.00

SYSAUX 140 0 8.21 1.91 256 0 0 0.00

UNDOTBS1 1 0 0.00 1.00 31 0 0 0.00

USERS 0 0 0.00 0.00 1 0 0 0.00

Back to IO Stats
Back to Top

File IO Stats

 ordered by Tablespace, File

Buf Av
Av Av Av Av
Tables Rea Wri fer Buf
Filename Read Rd( Blks Writ
pace ds tes Wai Wt(
s/s ms) /Rd es/s
ts ms)

SYSAU C:\ORACLE\PRODUCT\10.1.0\ORADATA\
140 0 8.21 1.91 256 0 0 0.00
X ORCL\SYSAUX01.DBF

SYSTE C:\ORACLE\PRODUCT\10.1.0\ORADATA\
616 1 6.80 1.71 27 0 0 0.00
M ORCL\SYSTEM01.DBF
UNDO C:\ORACLE\PRODUCT\10.1.0\ORADATA\
1 0 0.00 1.00 31 0 0 0.00
TBS1 ORCL\UNDOTBS01.DBF

C:\ORACLE\PRODUCT\10.1.0\ORADATA\
USERS 0 0 1 0 0 0.00
ORCL\USERS01.DBF

Back to IO Stats
Back to Top

Buffer Pool Statistics

 Standard block size Pools D: default, K: keep, R: recycle


 Default Pools for other block sizes: 2k, 4k, 8k, 16k, 32k

Number of Pool Buffer Physical Physical Free Buff Writ Comp Buffer Busy
P Buffers Hit% Gets Reads Writes Wait Wait Waits

D 3,006 97 38,855 1,335 556 0 0 0

Back to Top

Advisory Statistics
 Instance Recovery Stats
 Buffer Pool Advisory
 PGA Aggr Summary
 PGA Aggr Target Stats
 PGA Aggr Target Histogram
 PGA Memory Advisory
 Shared Pool Advisory
 Java Pool Advisory

Back to Top

Instance Recovery Stats

 B: Begin snapshot, E: End snapshot

Targt Estd Actual Target Log File Log Ckpt Log Ckpt
 Recovery
MTTR MTTR Redo Redo Size Redo Timeout Interval
Estd IOs
(s) (s) Blks Blks Blks Redo Blks Redo Blks
B 0 66 210 1,739 16,865 18,432 16,865

E 0 66 210 2,410 14,619 18,432 14,619

Back to Advisory Statistics


Back to Top

Buffer Pool Advisory

 Only rows with estimated physical reads >0 are displayed


 ordered by Block Size, Buffers For Estimate

Size for Estimate Size Buffers for Est Physical Read Estimated Physical
P (M) Factr Estimate Factor Reads

D 4 0.17 501 4.22 105,066

D 8 0.33 1,002 2.25 56,037

D 12 0.50 1,503 1.76 43,712

D 16 0.67 2,004 1.36 33,758

D 20 0.83 2,505 1.12 27,781

D 24 1.00 3,006 1.00 24,896

D 28 1.17 3,507 0.88 21,866

D 32 1.33 4,008 0.82 20,465

D 36 1.50 4,509 0.70 17,435

D 40 1.67 5,010 0.60 15,045

D 44 1.83 5,511 0.58 14,488

D 48 2.00 6,012 0.57 14,179

Back to Advisory Statistics


Back to Top

PGA Aggr Summary

 PGA cache hit % - percentage of W/A (WorkArea) data processed only in-memory
PGA Cache Hit % W/A MB Processed Extra W/A MB Read/Written

100.00 20 0

Back to Advisory Statistics


Back to Top

PGA Aggr Target Stats

 B: Begin snap E: End snap (rows dentified with B or E contain data which is absolute i.e.
not diffed over the interval)
 Auto PGA Target - actual workarea memory target
 W/A PGA Used - amount of memory used for all Workareas (manual + auto)
 %PGA W/A Mem - percentage of PGA memory allocated to workareas
 %Auto W/A Mem - percentage of workarea memory controlled by Auto Mem Mgmt
 %Man W/A Mem - percentage of workarea memory under manual control

%PGA %Auto %Man


PGA
 Aggr Auto PGA PGA Mem W/A PGA Global Mem
W/A W/A W/A
Target(M) Target(M) Alloc(M) Used(M) Bound(K)
Mem Mem Mem

B 24 4 40.16 0.00 0.00 0.00 0.00 1,228

E 24 4 43.52 0.00 0.00 0.00 0.00 1,228

Back to Advisory Statistics


Back to Top

PGA Aggr Target Histogram

 Optimal Executions are purely in-memory operations

Low Optimal High Optimal Total Execs Optimal Execs 1-Pass Execs M-Pass Execs

2K 4K 808 808 0 0

64K 128K 2 2 0 0

512K 1024K 23 23 0 0

Back to Advisory Statistics


Back to Top
PGA Memory Advisory

 When using Auto Memory Mgmt, minimally choose a pga_aggregate_target value where
Estd PGA Overalloc Count is 0

PGA Target Size W/A MB Estd Extra W/A MB Estd PGA Estd PGA
Est (MB) Factr Processed Read/ Written to Disk Cache Hit % Overalloc Count

12 0.50 409.53 30.91 93.00 8

18 0.75 409.53 30.91 93.00 8

24 1.00 409.53 3.03 99.00 2

29 1.20 409.53 3.03 99.00 0

34 1.40 409.53 3.03 99.00 0

38 1.60 409.53 3.03 99.00 0

43 1.80 409.53 3.03 99.00 0

48 2.00 409.53 3.03 99.00 0

72 3.00 409.53 0.00 100.00 0

96 4.00 409.53 0.00 100.00 0

144 6.00 409.53 0.00 100.00 0

192 8.00 409.53 0.00 100.00 0

Back to Advisory Statistics


Back to Top

Shared Pool Advisory

 SP: Shared Pool Est LC: Estimated Library Cache Factr: Factor
 Note there is often a 1:Many correlation between a single logical object in the Library
Cache, and the physical number of memory objects associated with it. Therefore
comparing the number of Lib Cache objects (e.g. in v$librarycache), with the number of Lib
Cache Memory Objects is invalid.
Shared Est LC Est LC Est LC Est LC Time Est LC Est LC Est LC
SP Size
Pool Size Mem Time Saved Load Load Time Mem Obj
Factr
Size(M) (M) Obj Saved (s) Factr Time (s) Factr Hits

32 0.40 9 1,542 194 0.97 78 1.08 28,784

40 0.50 16 3,209 199 1.00 73 1.01 29,227

48 0.60 23 4,875 200 1.00 72 1.00 29,354

56 0.70 31 5,865 200 1.00 72 1.00 29,367

64 0.80 31 5,865 200 1.00 72 1.00 29,367

72 0.90 31 5,865 200 1.00 72 1.00 29,367

80 1.00 31 5,865 200 1.00 72 1.00 29,367

88 1.10 31 5,865 200 1.00 72 1.00 29,367

96 1.20 31 5,865 200 1.00 72 1.00 29,367

104 1.30 31 5,865 200 1.00 72 1.00 29,367

112 1.40 31 5,865 200 1.00 72 1.00 29,367

120 1.50 31 5,865 200 1.00 72 1.00 29,367

128 1.60 31 5,865 200 1.00 72 1.00 29,367

136 1.70 31 5,865 200 1.00 72 1.00 29,367

144 1.80 31 5,865 200 1.00 72 1.00 29,367

152 1.90 31 5,865 200 1.00 72 1.00 29,367

160 2.00 31 5,865 200 1.00 72 1.00 29,367

Back to Advisory Statistics


Back to Top

Java Pool Advisory


Est LC Est LC Est LC Est LC Est LC Est LC
Java Pool JP Size Est LC Time
Size Mem Time Load Load Time Mem Obj
Size(M) Factr Saved Factr
(M) Obj Saved (s) Time (s) Factr Hits

8 0.17 5 95 0 0.00 71 1.00 1

16 0.33 5 95 0 0.00 71 1.00 1

24 0.50 5 95 0 0.00 71 1.00 1

32 0.67 5 95 0 0.00 71 1.00 1

40 0.83 5 95 0 0.00 71 1.00 1

48 1.00 5 95 0 0.00 71 1.00 1

56 1.17 5 95 0 0.00 71 1.00 1

64 1.33 5 95 0 0.00 71 1.00 1

72 1.50 5 95 0 0.00 71 1.00 1

80 1.67 5 95 0 0.00 71 1.00 1

88 1.83 5 95 0 0.00 71 1.00 1

96 2.00 5 95 0 0.00 71 1.00 1

Back to Advisory Statistics


Back to Top

Wait Statistics
 Buffer Wait Statistics
 Enqueue Activity

Back to Top

Buffer Wait Statistics

No data exists for this section of the report.

Back to Wait Statistics


Back to Top
Enqueue Activity

No data exists for this section of the report.

Back to Wait Statistics


Back to Top

Undo Statistics
 Undo Segment Summary
 Undo Segment Stats

Back to Top

Undo Segment Summary

 Undo segment block stats:


 uS - unexpired Stolen, uR - unexpired Released, uU - unexpired reUsed
 eS - expired Stolen, eR - expired Released, eU - expired reUsed

Undo Undo Num Max Qry Max Tx Snap OutOf uS/uR/uU/


TS# Blocks Trans Len (s) Concurcy TooOld Space eS/eR/eU

1 99 302 0 3 0 0 0/0/0/0/0/0

Back to Undo Statistics


Back to Top

Undo Segment Stats

 ordered by Time desc

Undo Num Max Qry Max Tx Snap OutOf uS/uR/uU/


End Time Blocks Trans Len (s) Concy TooOld Space eS/eR/eU

16-Sep
99 302 0 3 0 0 0/0/0/0/0/0
22:14

Back to Undo Statistics


Back to Top

Latch Statistics
 Latch Activity
 Latch Sleep Breakdown
 Latch Miss Sources
 Parent Latch Statistics
 Child Latch Statistics

Back to Top

Latch Activity

 "Get Requests", "Pct Get Miss" and "Avg Slps/Miss" are statistics for willing-to-wait latch
get requests
 "NoWait Requests", "Pct NoWait Miss" are for no-wait latch get requests
 "Pct Misses" for both should be very close to 0.0

Pct
Get Pct Get Avg Slps Wait NoWait
Latch Name NoWait
Requests Miss /Miss Time (s) Requests
Miss

active checkpoint queue


472 0.00 0 0
latch

active service list 1,148 0.00 0 0

archive control 7 0.00 0 0

cache buffer handles 51 0.00 0 0

cache buffers chains 101,229 0.00 0 2,131 0.00

cache buffers lru chain 2,838 0.00 0 760 0.00

channel handle pool latch 29 0.00 0 0

channel operations parent


8,012,851 0.00 0 0
latch

checkpoint queue latch 5,541 0.00 0 465 0.00

child cursor hash table 1,942 0.00 0 0

client/application info 106 0.00 0 0

commit callback allocation 18 0.00 0 0

compile environment latch 688 0.00 0 0


Consistent RBA 146 0.00 0 0

constraint object allocation 8 0.00 0 0

cursor bind value capture 138 0.00 0 108 0.00

dml lock allocation 975 0.00 0 0

dummy allocation 53 0.00 0 0

enqueue hash chains 12,226 0.00 0 0

enqueues 11,172 0.00 0 0

event group latch 16 0.00 0 0

FIB s.o chain latch 8 0.00 0 0

file cache latch 40 0.00 0 0

FOB s.o list latch 52 0.00 0 0

global KZLD latch for mem in


10 0.00 0 0
SGA

global tx hash mapping 60 0.00 0 0

hash table column usage


42 0.00 0 34,253 0.00
latch

hash table modification latch 2 0.00 0 0

In memory undo latch 1,560 0.00 0 296 0.00

job workq parent latch 0 0 24 0.00

job_queue_processes
42 0.00 0 0
parameter latch

JS queue state obj latch 4,356 0.00 0 0

JS slv state obj latch 4 0.00 0 0

ksuosstats global area 43 0.00 0 0

KTF sga enqueue 2 0.00 0 177 0.00


ktm global data 2 0.00 0 0

KWQMN job cache list latch 10 0.00 0 0

lgwr LWN SCN 273 0.00 0 0

library cache 61,113 0.00 0 121 0.00

library cache load lock 592 0.00 0 0

library cache lock 15,793 0.00 0 0

library cache lock allocation 516 0.00 0 0

library cache pin 34,441 0.00 0 0

library cache pin allocation 512 0.00 0 0

list of block allocation 65 0.00 0 0

loader state object freelist 4 0.00 0 0

Memory Management Latch 3,000 0.00 0 200 0.00

message pool operations


2 0.00 0 0
parent latch

messages 4,436 0.00 0 0

mostly latch-free SCN 273 0.00 0 0

MQL Tracking Latch 0 0 13 0.00

multiblock read objects 188 0.00 0 0

ncodef allocation latch 11 0.00 0 0

object queue header heap 100 0.00 0 0

object queue header


13,153 0.00 0 0
operation

object stats modification 62 0.00 0 0

parallel query alloc buffer 84 0.00 0 0


parameter list 12 0.00 0 0

parameter table allocation


53 0.00 0 0
management

PL/SQL warning settings 38 0.00 0 0

post/wait queue 129 0.00 0 66 0.00

process allocation 16 0.00 0 16 0.00

process group creation 29 0.00 0 0

redo allocation 1,010 0.00 0 7,745 0.00

redo copy 0 0 7,745 0.00

redo writing 1,337 0.00 0 0

row cache objects 64,204 0.00 0 96 0.00

sequence cache 63 0.00 0 0

session allocation 27,937 0.00 0 0

session idle bit 5,755 0.00 0 0

session switching 11 0.00 0 0

session timer 220 0.00 0 0

shared pool 40,426 0.00 0 0

simulator hash latch 1,200 0.00 0 0

simulator lru latch 104 0.00 0 5 0.00

slave class 2 0.00 0 0

slave class create 8 12.50 1.00 0 0

sort extent pool 56 0.00 0 0

SQL memory manager latch 1 0.00 0 201 0.00


SQL memory manager
13,766 0.00 0 0
workarea list latch

state object free list 2 0.00 0 0

statistics aggregation 140 0.00 0 0

SWRF Alerted Metric


2,245 0.00 0 0
Element list

temp lob duration state obj


1 0.00 0 0
allocation

temporary table state object


2 0.00 0 0
allocation

threshold alerts latch 23 0.00 0 0

transaction allocation 57 0.00 0 0

transaction branch allocation 57 0.00 0 0

undo global data 1,134 0.00 0 0

user lock 64 0.00 0 0

Back to Latch Statistics


Back to Top

Latch Sleep Breakdown

 ordered by misses desc

Latch Name Get Requests Misses Sleeps Spin Gets Sleep1 Sleep2 Sleep3

slave class create 8 1 1 0 1 0 0

Back to Latch Statistics


Back to Top

Latch Miss Sources

 only latches with sleeps are shown


 ordered by name, sleeps desc
Latch Name Where NoWait Misses Sleeps Waiter Sleeps

slave class create ksvcreate 0 1 0

Back to Latch Statistics


Back to Top

Parent Latch Statistics

No data exists for this section of the report.

Back to Latch Statistics


Back to Top

Child Latch Statistics

No data exists for this section of the report.

Back to Latch Statistics


Back to Top

Segment Statistics
 Segments by Logical Reads
 Segments by Physical Reads
 Segments by Buffer Busy Waits
 Segments by Row Lock Waits
 Segments by ITL Waits

Back to Top

Segments by Logical Reads

 % Total shows % of logical reads for each top segment compared with total logical reads
for all segments captured by the Snapshot

Tablespace Subobject Obj. Logical


Owner Object Name %Total
Name Name Type Reads

SYSMAN SYSAUX MGMT_CURRENT_METRICS_PK INDEX 3,168 9.38

SYSMAN SYSAUX MGMT_METRICS_RAW_PK INDEX 2,048 6.07

SYSMAN SYSAUX MGMT_JOB_EXEC_IDX01 INDEX 1,536 4.55


SYS SYSTEM SYS_C00636 INDEX 1,328 3.93

SYS SYSTEM OBJ$ TABLE 1,248 3.70

Back to Segment Statistics


Back to Top

Segments by Physical Reads

Tablespace Subobject Obj. Physical


Owner Object Name %Total
Name Name Type Reads

SYS SYSTEM OBJ$ TABLE 507 49.75

SYS SYSTEM IND$ TABLE 79 7.75

SYSMAN SYSAUX MGMT_METRICS TABLE 71 6.97

SYS SYSTEM IDL_UB1$ TABLE 60 5.89

SYS SYSTEM DEPENDENCY$ TABLE 22 2.16

Back to Segment Statistics


Back to Top

Segments by Buffer Busy Waits

No data exists for this section of the report.

Back to Segment Statistics


Back to Top

Segments by Row Lock Waits

No data exists for this section of the report.

Back to Segment Statistics


Back to Top

Segments by ITL Waits

No data exists for this section of the report.


Back to Segment Statistics
Back to Top

Dictionary Cache Stats

 "Pct Misses" should be very low (< 2% in most cases)


 "Final Usage" is the number of cache entries being used

Cache Get Requests Pct Miss Scan Reqs Pct Miss Mod Reqs Final Usage

dc_awr_control 14 0.00 0 2 1

dc_database_links 26 0.00 0 0 1

dc_files 4 0.00 0 0 4

dc_global_oids 2,380 0.00 0 0 84

dc_histogram_data 1,111 0.18 0 0 448

dc_histogram_defs 1,785 5.99 0 0 2,329

dc_object_ids 5,275 0.40 0 0 1,173

dc_objects 939 7.88 0 0 1,296

dc_profiles 26 0.00 0 0 2

dc_rollback_segments 64 0.00 0 0 22

dc_segments 732 5.74 0 3 671

dc_table_scns 8 0.00 0 4 1

dc_tablespaces 3,370 0.00 0 0 5

dc_usernames 233 0.00 0 0 36

dc_users 6,165 0.02 0 0 74

global database name 4 0.00 0 0 1

outstanding_alerts 7 0.00 0 1 6

Back to Top
Library Cache Activity

 "Pct Misses" should be very low

Namespace Get Requests Pct Miss Pin Requests Pct Miss Reloads Invali- dations

BODY 190 0.00 1,240 0.65 7 0

CLUSTER 22 0.00 36 0.00 0 0

INDEX 4 50.00 6 33.33 0 0

SQL AREA 2,104 12.55 10,609 2.75 80 7

TABLE/PROCEDURE 597 7.54 3,580 8.02 153 0

TRIGGER 8 0.00 779 0.00 0 0

Back to Top

SGA Statistics
 SGA Memory Summary
 SGA breakdown difference

Back to Top

SGA Memory Summary

SGA regions Size in Bytes

Database Buffers 25,165,824

Fixed Size 787,988

Redo Buffers 262,144

Variable Size 145,750,508

Back to SGA Statistics


Back to Top

SGA breakdown difference


Pool Name Begin value End value % Diff

java free memory 44,626,368 44,626,368 0.00

java joxlod exec hp 5,471,424 5,471,424 0.00

java joxs heap 233,856 233,856 0.00

large free memory 8,388,608 8,388,608 0.00

shared alert threshol 4,220 4,220 0.00

shared ASH buffers 2,097,152 2,097,152 0.00

shared event statistics per sess 4,384,640 4,384,640 0.00

shared fixed allocation callback 264 264 0.00

shared free memory 5,152,752 5,449,592 5.76

shared joxlod exec hp 330,852 330,852 0.00

shared joxlod pcod hp 56,104 56,104 0.00

shared joxs heap 8,456 8,456 0.00

shared KGLS heap 989,472 1,275,440 28.90

shared KQR L SO 101,380 101,380 0.00

shared KQR M PO 2,730,748 2,730,748 0.00

shared KQR M SO 215,052 215,052 0.00

shared KQR S PO 271,824 271,824 0.00

shared KQR S SO 9,736 9,736 0.00

shared KQR X PO 2,432 2,432 0.00

shared KSPD key heap 4,220 4,220 0.00

shared KTI-UNDO 1,235,304 1,235,304 0.00

shared library cache 13,317,832 13,095,568 -1.67

shared miscellaneous 20,260,240 20,278,052 0.09


shared parameters 41,972 44,768 6.66

shared partitioning d 7,904 15,600 97.37

shared PLS non-lib hp 29,832 29,832 0.00

shared PL/SQL DIANA 1,025,112 1,166,664 13.81

shared PL/SQL MPCODE 4,548,784 4,762,624 4.70

shared PL/SQL PPCODE 245,256 164,228 -33.04

shared PL/SQL SOURCE 11,772 2,744 -76.69

shared pl/sql source 2,016 3,964 96.63

shared repository 141,464 196,580 38.96

shared row cache 3,707,272 3,707,272 0.00

shared sql area 22,416,348 21,681,872 -3.28

shared table definiti 448 560 25.00

shared temporary tabl 5,036 5,036 0.00

shared trigger defini 3,700 1,136 -69.30

shared trigger inform 2,404 2,436 1.33

shared trigger source 16,064 4,012 -75.02

shared type object de 508,016 545,716 7.42

buffer_cache 25,165,824 25,165,824 0.00

fixed_sga 787,988 787,988 0.00

log_buffer 262,144 262,144 0.00

Back to SGA Statistics


Back to Top

Resource Limit Stats

No data exists for this section of the report.


Back to Top

init.ora Parameters

End value (if


Parameter Name Begin value
different)

background_dump_dest C:\ORACLE\PRODUCT\10.1.0\ADMIN\OR

compatible 10.1.0.2.0

control_files C:\ORACLE\PRODUCT\10.1.0\ORADATA\

core_dump_dest C:\ORACLE\PRODUCT\10.1.0\ADMIN\OR

db_block_size 8192

db_cache_size 25165824

db_domain

db_file_multiblock_read_count 16

db_name ORCL

db_recovery_file_dest C:\oracle\product\10.1.0\flash_re

db_recovery_file_dest_size 2147483648

dispatchers (PROTOCOL=TCP) (SERVICE=ORCLXDB)

java_pool_size 50331648

job_queue_processes 10

large_pool_size 8388608

nls_language LATIN AMERICAN SPANISH

open_cursors 300

pga_aggregate_target 25165824

processes 150
remote_login_passwordfile EXCLUSIVE

shared_pool_size 83886080

sort_area_size 65536

undo_management AUTO

undo_tablespace UNDOTBS1

user_dump_dest C:\ORACLE\PRODUCT\10.1.0\ADMIN\OR

Back to Top

End of Report

PARAMETROS DE MEMORIA
2 SEGUNDA PARTE
Nuevamente realizamos las sentencias con las consultas multitablas, de agrupamiento y
sentencias DDL para volver a evaluar la base de datos

CONSULTAS MULTITABLA

select a.NROFACTURA, b.CODIGO

from FACTURAVIGENTE a, ESTRATO B

where a.NROFACTURA = B.CODIGO;

select a.cedula, B.propietario_cedula

from PROPIETARIO a, PREDIO B

where a.CEDULA = B.PROPIETARIO_CEDULA;


select a.CODIGO, B.ESTRATO_CODIGO

from ESTRATO a, PREDIO B

where a.CODIGO = B.ESTRATO_CODIGO

select a.NROFACTURA, B.NROFACTURA

from FACtURAVIGENTE a, PAGO B

where B.NROFACTURA = B.NROFACTURA

select a.TOTALPAGAR, B.VALORPAGO

from FACTURAVIGENTE a, PAGO B

where a.TOTALPAGAR = B.VALORPAGO


SENTENCIAS DDL

create table FACTURAVIGENTE2 as

select * from FACTURAVIGENTE;

select * from FACTURAVIGENTE2;

desc FACTURAVIGENTE2;

insert into FACTURAVIGENTE2(NROFACTURA, REFERENCIA, FICHAPREDIO, FECHAVENCIMIENTO,


FECHAEMISION, TOTALPAGAR, TOTALDESCUENTO)

values (29, 1036939113, 50, '15/09/2019', '14/09/2019', 100000, 50000);

select * from FACTURAVIGENTE2

where REFERENCIA = 1036939113;

delete from FACTURAVIGENTE2

where REFERENCIA = 1036939113;

insert into FACTURAVIGENTE2(NROFACTURA, REFERENCIA, FICHAPREDIO, FECHAVENCIMIENTO,


FECHAEMISION, TOTALPAGAR, TOTALDESCUENTO)

values (29, 1036939113, 50, '15/09/2019', '14/09/2019', 100000, 50000);

select * from FACTURAVIGENTE2

where REFERENCIA = 1036939113;

create index INDICE_FACTURAVIGENTE2

on FACTURAVIGENTE2(REFERENCIA);
AGRUPAMIENTO
select REFERENCIA, SUM(TOTALPAGAR) from FACTURAVIGENTE group by REFERENCIA

select REFERENCIA, max(TOTALPAGAR) from FACTURAVIGENTE group by REFERENCIA

select REFERENCIA, min(TOTALPAGAR) from FACTURAVIGENTE group by REFERENCIA

select REFERENCIA, COUNT(TOTALPAGAR) from FACTURAVIGENTE group by REFERENCIA

select referencia, avg(totalpagar) from FACTURAVIGENTE group by referencia


EJECUTAR COMANDO SQL MONITOR
SOBRE BASES DE DATOS HR
ASESESOR DE MEMORIA PARA SGA

CONSEJO DE TAMAÑO DE CONJUNTO


COMPARTIDO
CONSEJO DE TAMAÑO DE CACHE DE BUFFERS

HERRAMIENTA DE ANÁLISIS DE
RENDIMIENTO DE WINDOWS
SERVER 2003
MONITOR WINDOWS SERVER
SIN REALIZAR PETICIONES

AGREGAR 3 NUEVOS CONTROLADORES


ADMINISTRADOR DE TAREAS Y VISOR DE
EVENTOS
CONCLUSIONES DE LAS 3
HERRAMIENTAS DE ANALISIS DE
RENDIMIENTO.
Las herramientas suministradas por oracle nos ayudan a detectar la gestión de la
memoria y la capacidad de la base de datos para gestión toda la información, la
herramienta jmetter nos ayuda a simular usuarios concurrentes y determinar la
capacidad del equipo, y las herramientas de Windows server nos demuestra la
capacidad que tiene nuestro equipo para gestionar diferentes instancias en la base
de datos.
En conclusión las 3 herramientas son de bastante ayuda a la hora de supervisar y
gestionar parámetros en una base de datos.
CIBERGRAFIA

https://senaintro.blackboard.com/bbcswebdav/pid-113660777-dt-content-rid-
127065262_4/institution/semillas/217219_1_VIRTUAL/OAAPs/OAAP5/aa9/lab_gestionrendimient
o/index.html

You might also like