Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8865217
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T16:26:53+00:00 2026-06-14T16:26:53+00:00

I am writing a nightly job to move data from SQL Server to Oracle

  • 0

I am writing a nightly job to move data from SQL Server to Oracle using ODP.NET.

We use around 100 connection objects(independent of data) and we don’t expect more than 1500 rows to transfer in a single run(in total).
The ODP.NET notes and materials I read never talk about keeping connection pooling off.

In dev, I keep the connection pooling off and it just works fine.

Is it advisable in the given scenario to keep the connection pooling off,(given all the connections are disposed properly after use)since:

  1. It is a nightly job and there wont be much load on the Oracle server.

  2. Connection Pooling might return stale connections, for which validate settings/exception handing needs to be done.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T16:26:54+00:00Added an answer on June 14, 2026 at 4:26 pm

    The only reason for pooling is performance, so if your nightly job runs within it’s window, there’s nothing wrong with what you are doing, especially since it keeps your implementation simple by not having to worry about dead connections.

    That said, I wouldn’t make this standard practice. I rarely write code to handle stale connections and even then it’s a simple factory. The question starts with why do you have stale connections at all? Typically this relates to either a firewall or a DBA job terminating idle connections, both of which should be changed or relaxed for an application account. Even in that case you can do the following:

    • Specify Min Pool Size=0 in your connection string. Doing so lets ODP.net clean up even the last connection your app has, allowing your app to completely disconnect when it’s idle for a long enough period.
    • Specify a higher Decr Pool Size in your connection string. This will allow for more idle connections to be closed every 3 minutes by ODP.net.
    • You could try setting Validate Connection = true – My guess would be there’s less overhead validating the connection than there is with opening one.

    More info can be found here:
    http://docs.oracle.com/cd/E15296_01/doc.111/e15167/featConnecting.htm#i1006228

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Writing html using Response.Write in asp.net it doesn't display the image. I check my
Writing a stored procedure in MS SQL Server 2008 R2, I want to avoid
Writing htaccess that allows me to remove index.php from the URL can confuse search
Writing a python program, and I came up with this error while using the
Writing an asynchronous Ping using Raw Sockets in F#, to enable parallel requests using
Writing a .NET DLL how do I find Application.ProductName ? EDIT: Obviously, importing Windows.Forms
Writing a client application that sends images to a server via a webservice. As
I'm faced with needing access for reporting to some data that lives in Oracle
Writing a SQL query that should return the average charges for a preceding 91
//Writing a letter #include <iostream> using namespace std; int main() { string first_name; //Name

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.