Even if the PL/SQL code can be successfully executed against the Db2 database when DB2_COMPATIBILITY_VECTOR is set to ORA, in Editor the code is marked as invalid.
原因
An issue with the parser.
解决办法
WORKAROUND
It is possible to switch off the syntax check completely in Options | Editor | Tools and uncheck Perform automatic syntax checks.
SOLUTION
Waiting for a fix in a future version of Toad for DB2.