Skip to Main Content

Java Database Connectivity (JDBC)

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!

Connection Pool and NLS_Date_Format

379175Feb 6 2003 — edited Mar 2 2005
Hi!

In our application running with oc4j we configured datasources in data-sources.xml. We configured them as connection pools. Since we need to change the NLS_Date_Format for a connection every time we retrieve a connection from the datasource we execute the statement:

sqlCon.createStatement().execute("alter session set nls_date_format='YYYY-MM-DD-HH24.MI.SS'");

Since we don't want this statement to be executed every time a connection is retrieved from the connection pool but only when the connection is physically established we are wondering if there is a chance to configure this statement or the NSL_Date_Format by setting a property in data-sources.xml.

Thanks in advance!
thomas
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 30 2005
Added on Feb 6 2003
6 comments
754 views