0% found this document useful (0 votes)
52 views2 pages

Explain Plan

This document contains an explain plan for a SQL query against Oracle databases. The query joins two tables, PER_ALL_PEOPLE_F and PER_PERSON_NAMES_F, to retrieve person data. The explain plan shows this will be done using a hash join with full scans of both tables, which is estimated to cost 520 with a time of 1 second.

Uploaded by

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

Explain Plan

This document contains an explain plan for a SQL query against Oracle databases. The query joins two tables, PER_ALL_PEOPLE_F and PER_PERSON_NAMES_F, to retrieve person data. The explain plan shows this will be done using a hash join with full scans of both tables, which is estimated to cost 520 with a time of 1 second.

Uploaded by

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

<SQL_EXPLAIN_PLAN>

<DATA_DS>
<![CDATA[
Datamodel SQL Explain Plan Report
================================================================
Driver Details:JDBC Driver:Oracle JDBC
driver:weblogic.jdbc.wrapper.PoolConnection_oracle_jdbc_driver_T4CConnection:19.17.
0.0.0
DBName:Oracle
DBVersion:Oracle Database 19c EE Extreme Perf Release 19.0.0.0.0 - Production
Version 19.18.0.0.0
SQLQuery:EXPLAIN PLAN SET STATEMENT_ID = 'dm_plan_Q_230928_085554' FOR
SELECT
PAPF.PERSON_NUMBER AS PERSPN_NUMBER
,PPNF.DISPLAY_NAME AS PERSON_NAME

FROM
PER_ALL_PEOPLE_F PAPF
,PER_PERSON_NAMES_F PPNF

WHERE
TRUNC(SYSDATE)BETWEEN PAPF.EFFECTIVE_START_DATE AND PAPF.EFFECTIVE_END_DATE
AND TRUNC(SYSDATE)BETWEEN PPNF.EFFECTIVE_START_DATE AND
PPNF.EFFECTIVE_END_DATE
AND PAPF.PERSON_ID = PPNF.PERSON_ID

SQL Query Timeout: 600


Number of SQL Executions: 1
PLAN_TABLE_OUTPUT
-----------------------------------------------------------------------------------
------------------
Plan hash value: 4134696505

-----------------------------------------------------------------------------------
---------------
| Id | Operation | Name | Rows | Bytes | Cost
(%CPU)| Time |
-----------------------------------------------------------------------------------
---------------
| 0 | SELECT STATEMENT | | 20035 | 1545K| 520
(1)| 00:00:01 |
|* 1 | HASH JOIN | | 20035 | 1545K| 520
(1)| 00:00:01 |
| 2 | JOIN FILTER CREATE | :BF0000 | 10263 | 350K| 140
(1)| 00:00:01 |
|* 3 | TABLE ACCESS STORAGE FULL| per_all_people_f | 10263 | 350K| 140
(1)| 00:00:01 |
| 4 | JOIN FILTER USE | :BF0000 | 21044 | 904K| 380
(1)| 00:00:01 |
|* 5 | TABLE ACCESS STORAGE FULL| per_person_names_f | 21044 | 904K| 380
(1)| 00:00:01 |
-----------------------------------------------------------------------------------
---------------

Predicate Information (identified by operation id):


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

1 - access("PERSON_ID"="PERSON_ID")
3 - storage("EFFECTIVE_END_DATE">=TRUNC(SYSDATE@!) AND
"EFFECTIVE_START_DATE"<=TRUNC(SYSDATE@!) AND (("BUSINESS_GROUP_ID"=0
OR
"BUSINESS_GROUP_ID"=1) OR
"BUSINESS_GROUP_ID"=DECODE(SYS_CONTEXT('FND_VPD_CTX','FND_ENTERP

RISE_ID'),NULL,"BUSINESS_GROUP_ID",TO_NUMBER(SYS_CONTEXT('FND_VPD_CTX','FND_ENTERPR
ISE_ID'
)))))
filter("EFFECTIVE_END_DATE">=TRUNC(SYSDATE@!) AND
"EFFECTIVE_START_DATE"<=TRUNC(SYSDATE@!) AND (("BUSINESS_GROUP_ID"=0
OR
"BUSINESS_GROUP_ID"=1) OR
"BUSINESS_GROUP_ID"=DECODE(SYS_CONTEXT('FND_VPD_CTX','FND_ENTERP

RISE_ID'),NULL,"BUSINESS_GROUP_ID",TO_NUMBER(SYS_CONTEXT('FND_VPD_CTX','FND_ENTERPR
ISE_ID'
)))))
5 - storage("EFFECTIVE_END_DATE">=TRUNC(SYSDATE@!) AND
"EFFECTIVE_START_DATE"<=TRUNC(SYSDATE@!) AND (("BUSINESS_GROUP_ID"=0
OR
"BUSINESS_GROUP_ID"=1) OR
"BUSINESS_GROUP_ID"=DECODE(SYS_CONTEXT('FND_VPD_CTX','FND_ENTERP

RISE_ID'),NULL,"BUSINESS_GROUP_ID",TO_NUMBER(SYS_CONTEXT('FND_VPD_CTX','FND_ENTERPR
ISE_ID'
)))) AND SYS_OP_BLOOM_FILTER(:BF0000,"PERSON_ID"))
filter("EFFECTIVE_END_DATE">=TRUNC(SYSDATE@!) AND
"EFFECTIVE_START_DATE"<=TRUNC(SYSDATE@!) AND (("BUSINESS_GROUP_ID"=0
OR
"BUSINESS_GROUP_ID"=1) OR
"BUSINESS_GROUP_ID"=DECODE(SYS_CONTEXT('FND_VPD_CTX','FND_ENTERP

RISE_ID'),NULL,"BUSINESS_GROUP_ID",TO_NUMBER(SYS_CONTEXT('FND_VPD_CTX','FND_ENTERPR
ISE_ID'
)))) AND SYS_OP_BLOOM_FILTER(:BF0000,"PERSON_ID"))

]]>
</DATA_DS>
</SQL_EXPLAIN_PLAN>

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy