Search notes:

SQLPATH - slash-error

slash-error.sql expects its only parameter to be the path of a script (file) to a PL/SQL object (package, package body, …) without a trailing slash. The script the reads the content of the file (@…) and then adds a slash so that the object gets compiled and then also executes show errors.
This script was once necessary because I worked in an environment where the rule was that slashes and/or show errors statements were prohibited in the source code repository, but I wanted to have a one liner that installed a PL/SQL object and showed errors (if any).
@&1
/
show errors
Github repository Oracle-SQLPATH, path: /slash-error.sql

See also

Oracle: files for ORACLE_PATH / SQLPATH

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...', 1741096920, '3.144.163.15', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/SQL-Plus/sqlpath/slash-error(46): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78