Search notes:

SQL*Plus: STORE

store saves attributes of the current SQL*Plus session in a script (which then can be executed with start, @ or @@).
store set file_name[.ext]
store set file_name[.ext] create
store set file_name[.ext] replace
store set file_name[.ext] append

Simple example

SQL> store set c:\users\rene\sqlplus-attributes
Created file c:\users\rene\sqlplus-attributes
Note: SQL*Plus does not show the extension, the file is created with the extension .sql.

Content of the creted file

The file that is created with the store command contains a list of set commands:
set appinfo OFF
set appinfo "SQL*Plus"
set arraysize 15
set autocommit OFF
set autoprint OFF
set autorecovery OFF
…
set verify OFF
set wrap ON
set xmloptimizationcheck OFF

Reverting to saved values

After modifying some set values, it's possible to revert to the saved values:
SQL> @ c:\users\rene\sqlplus-attributes

store into

store set stored
Github repository Oracle-Patterns, path: /SQLPlus/store/store_into_stored.sql

See also

SQL*Plus

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