Initially, the plscope_naming view is created without the comments that confuses SQL*Plus
Then we add these comments by creating a regular comment on the view. That's where they belong! (Too bad comments on views are so poorly supported in SQLcl / SQL Developer as of now. :confused:)
Remark: the COMMENT statement must be wrapped into a PL/SQL anonymous block due to SQL*Plus limitations.
Finally, another PL/SQL anonymous block is used to inject the comment text into the view, where it stood originally, after the with keyword.
The new fix consists of the following:
plscope_naming
view is created without the comments that confuses SQL*PlusCOMMENT
statement must be wrapped into a PL/SQL anonymous block due to SQL*Plus limitations.with
keyword.Regards,