Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> 10g and cacheManager
Hi all,
using Oracle 10g cacheManager, do I have to reset the dbms_session
before closing the connection, or is it done by Oracle ?
OracleConnectionCacheManager connMgr =
OracleConnectionCacheManager.getConnectionCacheManagerInstance();
Properties properties = new Properties();
properties.setProperty("MinLimit", "1"); properties.setProperty("MaxLimit", "25"); properties.setProperty("InitialLimit", "10"); properties.setProperty("ConnectionWaitTimeout", "10"); properties.setProperty("AbandonedConnectionTimeout", "900");connMgr.createCache(m_CacheId, m_OracleDataSource, properties); Connection con = m_OracleDataSource.getConnection();
con.prepareCall("begin dbms_session.set_identifier(?);end;");
ps.setString(1, userName);
ps.execute();
/// Stuffs.....
// Do I need to reset the client identifier using
// dbms_session.set_identifier(null) ??? before closing?
// or is it done automatically,
con.close();
thanks
Frederic Received on Wed Jun 23 2004 - 02:51:28 CDT