How can I create a .log file that will only be created when an exception occurs during executing .sql file via sqlplus.
WHENEVER SQLERROR EXIT SQL.SQLCODE
ALTER PRODUCT IDENTIFIED BY &1;
ALTER CUSTOMER IDENTIFIED BY &1;
EXIT;
This script is executed via sqlplus I add parameter in the command line and it is executed when a parameter is incorrect or an ORA error occurs how can I log it into a file where this .sql is located. I do not want to track all execute just create a log file that contains the error ORA
EXIT SQL.SQLCODEis OK on Windows it is not a good idea on Linux, because its exit codes only go up to 255. - William Robertson