My Oracle Support Banner

CURSOR_SHARING does not result in literal substitution for sql statements executed from PS/SQL blocks (Doc ID 790128.1)

Last updated on OCTOBER 06, 2022

Applies to:

Oracle Database - Enterprise Edition - Version 10.2.0.1 and later
PL/SQL - Version 10.2.0.1 and later
Information in this document applies to any platform.
PL/SQL - Version: 10.2.0.1
Information in this document applies to any platform.

Goal

Database initialization parameter CURSOR_SHARING set to FORCE or SIMILAR does not result in literal substitution for statements executed from PLSQL blocks, as it does for statements executed directly, and can be seen with the following example:

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.