Dapper.Oracle icon indicating copy to clipboard operation
Dapper.Oracle copied to clipboard

Close a ref_cursor

Open ZwapKillrath opened this issue 3 years ago • 0 comments

I am trying out Dapper.Oracle in a large project and currently experimenting with sys ref cursor as return type from an Oracle function. Our dba says that the cursors are not closed and keeps hanging after each call to .QueryAsync<T>(...). Eventually Oracle will be hogged with orphaned cursors until the connection is closed. I am using .Net 6, DI container (IServiceColletion) etc.

Do you know a way to make Dapper.Oracle or Dapper to close the cursor once the call has been made and the result returned?

ZwapKillrath avatar Oct 27 '22 13:10 ZwapKillrath