JDBC Connection Pooling for Oracle Databases

While Database Connection Pooling is not a new concept, it is becoming increasingly more important with the proliferation of both public and private web-based applications.  This post will cover using a JDBC connection pool against an Oracle database.  The general idea of Database Connection Pooling is universal and these concepts can be used with any app server / database combination.  If you have never used a database connection pool before, Apache has an open source product called DBCP which is fairly well documented for use with the Tomcat app server. 

What is Database Connection Pooling

Database Connection Pooling involves creating a persistent group of Oracle sessions, all waiting to fulfill database requests.  When a pooled connection is used, it is not destroyed like a regular database session.  It is returned to the pool so that it can be used to fulfill another request.  The reason for the existence of Database Connection Pools is to eliminate the process (and time required) to create and destroy database connections.  Because Oracle is a multi-process server, establishing a database session is considered expensive as it involves creating an operating system process and allocation of server memory.  A busy web-based applicaiton with a few hundred users can easily generate thousands of logins per minute (we’ve seen this situation more than once).  Although logins look like they happen pretty fast, the time spent waiting adds up very quickly.  The bottom line is that logins just burn CPU.

Read more

Using SQLPlus with rlwrap on MS Windows

At this year’s HOTSOS Symposium Tanel Poder presented a training day that really highlighted some very practical ways to tailor your environment so that common tasks will be easier. One tip that I have really appreciated is how to use the Unix/Linux package rlwrap (readline wrapper). Using this with a few parameters and in conjunction with SQL*Plus makes a huge difference. It is now possible to have a command history and tab-enabled auto-completion of keywords available in SQL*Plus.

Read more

Enkitec Presents at April DOUG Meeting

At the April 15th DOUG meeting, Michael Paddock and Andy Colvin delivered a presentation called "Grid Control in the Wild", aka "How Customers are using Oracle Enterprise Manager and Grid Control in the Real World".  A copy of the presentation is available on our website at http://blog.enkitec.com/wp-content/uploads/2010/04/Grid-Control1.pdf

Oracle Licensing Topics

Here’s some links for common Oracle licensing topics like:

  • "Do I need to license my standby server?"
  • "How do I count Processors vs Cores vs Socket?"
  • "What are the Minimum Number of Named Users that I need to buy?"

 

http://www.oracle.com/corporate/pricing/sig.html

http://www.oracle.com/corporate/pricing/specialtopics.html

http://www.oracle.com/corporate/contracts/library/processor-core-factor-table.pdf

http://www.orafaq.com/wiki/Oracle_licensing

 

Feel free to contact me for an Oracle Licensing Guide or further questions on Oracle licensing and pricing.  rhardee@enkitec.com