Oracle Magazine - July/August 2006 - ODP.NET Performance Article Demo Setup


Follow these steps to setup the ODP.NET sample code:

1. Connect as the HR user through Oracle Developer Tools for Visual Studio .NET or SQL*Plus.  Run the Database.sql that is part of the sample.  This script creates the demonstration table and gathers statistics.

2. Open the JulAug2006.cs file in the Visual Studio solution and modify the connection string below.  You will need to provide the user id, password, and data source information to connect to the database server.

public static string base_string = "User Id=hr; Password=hr; Data Source=oramag; Enlist=false;";


Notes
=====
1. Connection Pooling Sample: When running this sample with Oracle Database Express Edition (XE), you may receive the following error from the connection pooling sample code:

ORA-12520: TNS:listener could not find available handler for requested type of server

Because XE is meant for low load environments, its default maximum process and session limit is set to a low limit. The sample code will generate more sessions than the default maximum for XE, which leads to the ORA-12520 error.

To resolve this issue, run the sample code with a non XE database or log on as the administrator to your XE database and increase the maximum session and process limit.


2. FetchSize Sample: When running this sample from an XE client against an XE database server, there will be no change in data retrieval timings as the FetchSize value is changed. This issue (Bug 5121494) only occurs when the server and client are both XE, but does not occur when the XE client runs against a non-XE edition of the database, such as Enterprise Edition.  Nor does it happen when the regular Oracle client runs against an XE database server. For all other versions of the database and client, the user should see the expected performance improvement.