Information for EXPLAIN PLAN FOR on CREATE TABLE AS SELECT (CTAS) Statements is not Recorded in V$SQL and V$SQLAREA
Last updated on SEPTEMBER 19, 2016
Applies to:Oracle Database - Enterprise Edition - Version 18.104.22.168 and later
Information in this document applies to any platform.
- When an EXPLAIN PLAN FOR is executed against a CREATE TABLE AS SELECT (CTAS) query, the sql statement is not recorded in v$SQL or v$SQLAREA. This is illustrated in the following example :
- If the CREATE TABLE AS SELECT (CTAS) query is run without EXPLAIN PLAN FOR, then rows are returned.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms