SQL Performance (MOSC)

MOSC Banner

What does my SQL Profile exactly do?

edited Mar 25, 2019 3:34AM in SQL Performance (MOSC) 8 commentsAnswered ✓

Hi all,

I have a simple query that runs for 8 hours. And same query runs on other similar environments also similar times.

select pzlastmodified, pzbinarycontent from OWNER_TLR.pr_engineclasses where (pzpackage = :1 or pzpackage = :2 ) and pzclass = :3 and pzjar = :4 and pzcodeset = :5 and pzcodesetversion = :6 and pzpatchdate = :7

I introduced a SQL Profiles through EM13c and now it runs in seconds.

I want to investigate what this SQL Profile is doing so I can reproduce it on new environments.

This is the content of the Profiles:

SELECT * FROM DBMSHSXP_SQL_PROFILE_ATTR WHERE PROFILE_NAME='SYS_SQLPROF_0169a05e75770001';

<outline_data>

<hint><![CDATA[OPT_ESTIMATE(

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center