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

Home -> Community -> Mailing Lists -> Oracle-L -> ALTER SESSION implicit execution?

ALTER SESSION implicit execution?

From: Johnson, George <GJohnson_at_GAM.COM>
Date: Mon, 13 Dec 2004 17:11:37 -0000
Message-ID: <ECD91EB68018C04CA1B6801EE47A910F335C72B3@ntas-ldn15.gam.com>

        May sound like a silly question, but does Oracle implicitly execute ALTER SESSION statements for any connection into the database? My suspicion is it must do, to ensure local variables like time zones and languages are set correctly. We are currently going through our SQL and picking out candidates for tuning, we constantly come across this statement from almost every single application, whether home-grown or off the shelf, be it VB, ProC , C++, etc.

        ALTER SESSION SET NLS_LANGUAGE= :1 NLS_TERRITORY= :2 NLS_CURRENCY= :3 NLS_ISO_CURRENCY= :2 NLS_NUMERIC_CHARACTERS= :4 NLS_CALENDAR= :5

NLS_DATE_FORMAT= :6 NLS_DATE_LANGUAGE= :1  NLS_SORT= :7 TIME_ZONE= :8
NLS_DUAL_CURRENCY = :3 NLS_TIME_FORMAT = :9 NLS_TIMESTAMP_FORMAT = :10
NLS_TIME_TZ_FORMAT = :11 NLS_TIMESTAMP_TZ_FORMAT = :12
	
	Rgds
	George J



****************************************************************************
This message contains confidential information and is intended only for the individual or entity named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as an invitation or offer to buy or sell any securities or related financial instruments.
GAM operates in many jurisdictions and is regulated or licensed in those jurisdictions as required.
--
http://www.freelists.org/webpage/oracle-l
Received on Mon Dec 13 2004 - 11:07:48 CST

Original text of this message

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