set timing on
set linesize 180
spool template.log
/*
##########################################################################
-- Name : Template.sql
-- Date : (sysdate)
-- Author : Duncan van der Zalm - dvdzalm
-- Company : stanDaarD-Z.nl
-- Purpose :
-- Usage sqlplus
-- Impact :
-- Required grants : sel on A, upd on B, drop on C
-- Called by : some other process
-- ver user date change
-- 1.0 DDZ 20110622 initial
##########################################################################
*/
sho user
select name from v$database;
select to_char(sysdate, 'Day DD Month yyyy HH24:MI:SS') "Start time"
from dual
;
-- script
select to_char(sysdate, 'Day DD Month yyyy HH24:MI:SS') "End time"
from dual
;
spool off