Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Cache on sysdate? --From 9i performance planning manual

RE: Cache on sysdate? --From 9i performance planning manual

From: Naveen Nahata <naveen_nahata_at_mindtree.com>
Date: Thu, 26 Dec 2002 07:58:37 -0800
Message-ID: <F001.00522470.20021226075837@fatcity.com>


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:chao_ping_at_163.com
www.happyit.net
www.cnoug.org(ChinaOracle User Group)

--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: chao_ping
  INET: chao_ping_at_vip.163.com

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: ListGuru_at_fatcity.com (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: naveen_nahata_at_mindtree.com

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: ListGuru_at_fatcity.com (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). Received on Thu Dec 26 2002 - 09:58:37 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US