How do you specify the explain plan table when using the embedded ‘Auto Optimize SQL’ feature in Toad's Editor?
When trying to run ‘Auto Optimize SQL’, an error is given:
"ORA 00905: missing keyword"
and/or
"ORA-00904: Invalid Identifier"
The SQL statement being optimized is valid and can run. Explain plan can be run on this statement also. It just does not run with ‘Auto Optimize SQL’.
Currently the explain plan table cannot be specified. It will attempt to create a temporary plan table based off the current schema. If the user does not have permissions to create this temp table, this error could occur.
In SQL Optimizer, specify a plan table via Options | General, and ensure your schema has access to that plan table.
WORKAROUND:
A Toad Xpert license includes Quest SQL Optimizer for Oracle. Please launch the full Optimizer and optimize the SQL statement there.
Within Optimizer, go to Options | General and specify the explain plan there. Optimize a single SQL statement under the "Optimize SQL" tab.
STATUS:
Enhancement request ST75713 has been submitted to Development for consideration in future release of Toad for Oracle.
© ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center