Skip to Main Content

SQLcl

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

SQLcl 4.2 - Script command throws exception - Expected an operand but found /

Gunther PippèrrMay 17 2016 — edited Jun 29 2016

Hello Team,

Version: SQLcl: Release 4.2.0.16.131.1023 from May 13th

If I create with script a script over the command prompt, I get:

SQL> script

  2   ctx.write("Hello Word\n");

  3  /

  1. javax.script.ScriptException: <eval>:1:27 Expected an operand but found /

ctx.write("Hello Word\n");/

                           ^ in <eval> at line number 1 at column number 27

        at jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:455)

        at jdk.nashorn.api.scripting.NashornScriptEngine.compileImpl(NashornScriptEngine.java:522)

Last Week in the old version this works.

If I call the same from a file it works.

Other way to execute this?

Best Regards

Gunther

This post has been answered by Gunther Pippèrr on Jun 29 2016
Jump to Answer
Comments
Post Details
Added on May 17 2016
2 comments
2,160 views