Skip to Main Content
  • Questions
  • SQL profile and SQL plan baseline in Standard Edition 2 (SE2)

Breadcrumb

Question and Answer

Chris Saxon

Thanks for the question, Pierre.

Asked: April 21, 2026 - 3:45 pm UTC

Last updated: April 22, 2026 - 3:43 pm UTC

Version: 19

You Asked

Hello,

If we are using Oracle SE2 there is no Tuning Pack or Diagnostic Pack available.

So I don't think it's possible to create a SQL profile with SQL Tuning Advisor. would it be possible with SQLTXPLAIN coe_xfr_sql_profile.sql script ?

I know it's possible to create a SQL plan baseline from cursor cache but what if the good plan is not in the cursor cache ?

Thanks.

and Chris said...

Right, these packs are unavailable in SE2. The coe_xfr_sql_profile.sql script uses SQL profiles which are part of the Tuning Pack. So you also can't use this.

If the plan you want is no longer in the cursor cache, you can use SQL patch to inject hints to get the plan you want. Then capture it as a baseline.

You can find details on how to do this at https://blogs.oracle.com/optimizer/using-sql-patch-to-add-hints-to-a-packaged-application

Rating

  (1 rating)

Comments

Very Good

Pierre., April 22, 2026 - 3:59 pm UTC

thanks again.

More to Explore

PL/SQL demos

Check out more PL/SQL tutorials on our LiveSQL tool.

PL/SQL docs

PL/SQL reference manual from the Oracle documentation library