What you can do is like this...
1. At the startup of Application Server, do a SELECT sysdate FROM dual, store
the sysdate, and also get the system date of the application server, that way
you will know the difference between the App Server date and the DB server
date.
2. Everytime you want to use sysdate, get the system date of the application
server, apply the difference calculated in the step 1 and use it instead of
sysdate.
this will save a lot of 'block gets' at the DB level and also the network
round trips.
Regards
Naveen
-----Original Message-----
Sent: Thursday, December 26, 2002 6:49 PM
To: Multiple recipients of list ORACLE-L
Hi, list friends:
I am reading oracle 9.2 performance planning manual, and see it says:
Today's date. SELECT SYSDATE FROM DUAL can account for over 60% of the
workload on a database.
{page 33 of that manual}
How to understand that words? And does it mean to get the sysdate
from application server rather than the db server? How to do it in the sql
statement? anyone have examples?
Regards
zhu chao
msn:[EMAIL PROTECTED]
www.happyit.net
www.cnoug.org(ChinaOracle User Group)
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: chao_ping
INET: [EMAIL PROTECTED]
Fat City Network Services -- 858-538-5051 http://www.fatcity.com
San Diego, California -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Naveen Nahata
INET: [EMAIL PROTECTED]
Fat City Network Services -- 858-538-5051 http://www.fatcity.com
San Diego, California -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).