2013-07-25 21 views

回答

0

要啓用OracleDataSource對象隱含語句緩存,您需要執行以下步驟:與ImplicitCachingEnabled屬性設置爲true

  1. 調用OracleDataSource.getConnection(),或將通過ImplicitCachingEnabled在OracleDataSource調用OracleDataSource.setImplicitCachingEanble(true);

  2. 通過調用OracleDataSource.setMaxStatements(int maxNumberOfStatements) 來設置緩存大小,例如:OracleDataSource.setMaxStatements(10);