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

  • Home
  • SEARCH
  • 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 312277
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T08:00:05+00:00 2026-05-12T08:00:05+00:00

What are the best practices or pit falls that we need to be aware

  • 0

What are the best practices or pit falls that we need to be aware of when using Microsoft Oracle provider in a web service centric .NET application?

  • 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-05-12T08:00:06+00:00Added an answer on May 12, 2026 at 8:00 am

    Some practices we employ based on our production experience:

    • Validate connections when retrieving them from the connection pool.
    • Write your service code to not assume that connections are valid – failure to do so can cause quite a bit of grief especially in production environments
    • Wherever possible, explicitly close and dispose connections after using them (using(conn){} blocks work well)
    • In a service, you should use connections for the shortest time possible – particularly if you are looking to create a scalable solution.
    • Consider using explicit timouts on requests appropriate to the typical duration of a request. The last thing you want is to have one type of request that hangs to potentially block your whole system.
    • Wherever possible use bind variables to avoid hard parses at the database (this can be a performance nightmare if you don’t start out with this practice). Using bind variables also protect you from basic SQL-injection attacks.
    • Make sure you have adequate diagnostic support built into your system – consider creating a wrapper around the Oracle ADO calls so that you can instrument, log, and locate all of them.
    • Consider using stored procedures or views when possible to push query semantics and knowledge of the data model into the database. This allows easier profileing and query tuning.
    • Alternatively, consider use a good ORM library (EF, Hibernate, etc) to encapsulate data access – particularly if you perform both read and write operations.
    • Extending on the above – don’t pepper your code with dozens of individually written SQL fragments. This quickly becomes a maintainability nightmare.
    • If you are committed to Oracle as a database, don’t be afraid to use Oracle-specific features. The ODP library provides access to most features – such as returning table cursors, batch operations, etc.
    • Oracle treats empty strings (“”) and NULLs as equivalent – .NET does not. Normalize your string treatment as appropriate for Oracle.
    • Consider using NVARCHAR2 instead of VARCHAR2 if you will store Unicode .NET string directly in your database. Otherwise, convert all unicode strings to conform to the core ASCII subset. Failure to do so can cause all sorts of confusing and evil data corruption problems.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What tools or best practices are available for tracking and managing dependencies of the
I'm looking for best practices regarding abstracting my RIA domain context away from my
What are considered the best practices when putting your site in maintenance during an
What are the best practices of changing widget layout in new (updated) version of
Here's three best practices I try to follow when naming tables: Never name a
Are there any best practices on how to build a Kentico CMS Portal implementation
this is a best practices type of question. I want to access the attributes
I'm looking for best practices and good ideas rather than a proper solution. scenario
Are there any guidelines / best practices on developing a class library (custom internal
This may sound impossible but read on. I need to learn jQuery a little

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.