Some scripts that I inherited will blindly call SET FEEDBACK OFFeither SET ECHO OFFat the beginning of the script, and then install them at ONor OFFat the end of the script. I would like to modify these scripts to determine what value was set before running the script, and return the environment back to that value when the script exits.
How can I query the values ββof the SQL Plus environment, save them and restore them when the script is finished?
One of the ways I thought of:
SPOOL env-backup.sql
SHOW ECHO FEEDBACK TIMING
REM ...
@env-backup.sql
But
- Thrown values
SHOW ECHO FEEDBACK TIMINGcannot be executed directly ( ECHO OFFvs SET ECHO OFF) - I would prefer not to create another file (or any changes to the database)
, , SqlPlus Oracle XE (10g) Windows