Home » Developer & Programmer » Reports & Discoverer » SQLPlus Enviornment Setting
SQLPlus Enviornment Setting [message #170161] Tue, 02 May 2006 07:32 Go to next message
sauami
Messages: 54
Registered: October 2005
Location: india
Member
Dear Sir,

What setting i have to use to enable showing total time for a query or subprogramm after completing the task
for enable feedback i have use (set feedback on)

for example:


total time 00:00:20 -- what to do enable this format for every query--
10 rows updated

Thanks,
Saurabh
Re: SQLPlus Enviornment Setting [message #170174 is a reply to message #170161] Tue, 02 May 2006 08:00 Go to previous messageGo to next message
Maaher
Messages: 7065
Registered: December 2001
Senior Member
SQL> SET TIMING ON

MHE
Re: SQLPlus Enviornment Setting [message #170176 is a reply to message #170161] Tue, 02 May 2006 08:09 Go to previous message
bsmith18
Messages: 8
Registered: April 2006
Junior Member
set timing on at the beginning of your sql script. I typically set an environment variable that is passed into the sql script to turn on or off the timing. Example, in unix or linux:

time_env=on; export time_env

sqlplus user/password@db sqlscript.sql $time_env

In the sql script,

set timing=&1

This way if you ever need to turn it off you just have to reset the environment variable before the sql script is executed. Much greater flexibility if ever needed. Not sure of the OS your running on but you can translate to a different OS if needed very easily. Hope this helps.

Brad Smith
Previous Topic: discoverer
Next Topic: how show placeholder column in my report
Goto Forum:
  


Current Time: Sat Jun 29 03:04:58 CDT 2024