Skip to Main Content

SQLcl

Announcement

For appeals, questions and feedback, please email oracle-forums_moderators_us@oracle.com

how to check if javascript engine is available

rode_mbFeb 8 2024

Hi,

I want to automate checking if the sqlcl scripting engine is available, but sqlcl always returns 0:

$ sql -S /nolog <<EOF
> whenever sqlerror exit sql.sqlcode
> whenever oserror exit failure
> script
> var System = Java.type("java.lang.System");
> /
> EOF

JavaScript-Engine nicht gefunden.
GraalVM mit Unterstützung von Nodejs/Javascript ist erforderlich.
Download:
        https://www.oracle.com/downloads/graalvm-downloads.html
Stellen Sie sicher, dass NodeJS/Javascript gemäß der Dokumentation installiert wird
        https://docs.oracle.com/en/graalvm/jdk/17/docs/reference-manual/graalvm-updater/#install-components
$ echo $?
0
Comments
Post Details
Added on Feb 8 2024
3 comments
82 views