Last updated on JULY 12, 2016
Applies to:Oracle Database - Enterprise Edition - Version 126.96.36.199 and later
Information in this document applies to any platform.
In most applications, application code is static and cannot be modified by users. If there is a performance issue with application SQL, one potential solution is to modify it adding hints to force the desired access path. When the Application SQL statements cannot be modified, we have to look for better alternatives (such as SQL Plan Management Baselines etc.). However, in a time critical situation these solutions may not be applicable and a faster solution may be required.
In a time critical situation, one such alternative is the "SQL Patch". The SQL patch allows a user to "insert hints" into a query whose text cannot be edited due to the application constraints using an undocumented API called DBMS_SQLDIAG_INTERNAL.I_CREATE_PATCH() .
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
Million Knowledge Articles and hundreds of Community platforms