Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to get sqlplus to print current date/time

27785Jan 16 2002 — edited Mar 29 2007
From a unix command line I can type:

prompt> date; <any_Cmd>; date

This will result in a timestamp being output before and after the command you inserted. Is there a way to make sqlplus print the current date/time after it is done executing an sql statment. This would be useful for me to know how long it took to execute and sql statement without watching it.

Something like:

SQL> select * from table; date;
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 26 2007
Added on Jan 16 2002
8 comments
45,899 views