Search notes:

SQLcl: SCRIPT

Execute a script in a file. No suffix is given, therefore SQLcl assumes the script to have a .js suffix (i. e. print-report.js):
SQL> script print-report
The suffix can be explicitely stated:
SQL> script print-report.js
It's possible to run an «ad-hoc» script which must be terminated with a slash on a single line:
hello worldSQL> script
  2  ctx.write('hello world\n');
  3* /
hello world

See also

Scripting SQLcl
SQLcl Commands and user defined commands.

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758199938, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/SQLcl/commands/script(51): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78