.NET调用Oracle存储过程,使用数组类型的参数(如ArrayList)Statement Cache Size This attribute enables or disables ODP.NET statement caching. By default, this attribute is set to 0 (disabled). If it is set to a value greater than 0, ODP.NET statement caching is enabled and the value specifies the maximum number of statements that can be cached for a connection. Once a connection has cached up to the specified maximum cache size, the cursor least recently used is freed to make room to cache the newly created cursor. Statement Cache Purge This attribute provides a way for connections to purge all statements that are cached when a connection is closed or placed back into the connection pool. By default, this attribute is set to false, which means that cursors are not freed when connections are placed back into the pool.
OracleCommand.AddToStatementCache property If statement caching is enabled, having this property set to true (default) adds statements to the cache when they are executed. If statement caching is disabled or if this property is set to false, the executed statement is not cached. OracleConnection.PurgeStatementCache method This method purges all the cached statements by closing all open cursors on the database that are associated with the particular connection. Note that statement caching remains enabled after this call.
上一篇:oracle OCCI 的一个简单的包装类的实现 下一篇:oracle修改计算机名后重启服务失败解决办法 更多相关文章
|
推荐文章
精彩文章
|