If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

It doesnt execute the anonymous block. it doesnt even execute the SELECT sysdate as endtime from dual;
statement at the end of the script. However it does execute the
"SELECT sysdate as starttime from dual" statement at the beginning of the script which proves that sqlplus is recognozing commands from within the here document.