Optimizer_secure_view_merging Parameter Not Effective When Specified In SQL Hint OPT_PARAM
(Doc ID 2502377.1)
Last updated on JULY 20, 2024
Applies to:
Oracle Database - Enterprise Edition - Version 12.1.0.2 and laterOracle Database - Standard Edition - Version 12.1.0.2 and later
Information in this document applies to any platform.
Symptoms
Optimizer parameter optimizer_secure_view_merging is listed as a valid parameter to be used in the OPT_PARAM SQL hint in the 12.2 SQL Language Reference.
https://docs.oracle.com/en/database/oracle/oracle-database/12.2/sqlrf/Comments.html
However, setting optimizer_secure_view_merging=false in OPT_PARAM hint is not effective.
Changes
Optimizer_secure_view_merging parameter is specified in the SQL hint.
For example:
SELECT /*+ OPT_PARAM('optimizer_secure_view_merging' 'false') */
count(EMPNO)
FROM (SELECT * FROM V_EMP WHERE EMPNO=SCOTT.MYFUNC('00007521'));
Cause
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
Symptoms |
Changes |
Cause |
Solution |
References |