Installation and Upgrade Guide
Searching & TQL
Earlier Versions of this Documentation
Check if This Topic Applies to You
This topic is for customer who are using Oracle unmanaged drivers. Generally, this topic will be relevant to customers who are using an Oracle database where the original version of ET installed was 4.7 or early.
New Installations of Enterprise Tester
Enterprise Tester 4.8 and above supports managed ODP.Net drivers. No separate installation is required for managed ODP.Net drivers. We recommended using the managed drivers by all new Enterprise Tester customers who wish to connect to an Oracle database. For details on configuration settings required to be set in the web.config for the Oracle managed drivers please consult the "Database Configuration" topic.
Enterprise Tester is a .Net Framework application and makes use of ODP.Net to connect to Oracle databases.
ODP.Net provides a ADO.Net Provider for Oracle, which communicates with Oracle using the native drivers.
The native drivers can be either 32bit or 64bit, and you must install the ODAC/ODP.Net release specific for your server and IIS application pool settings.
ODP.Net comes as part of ODAC (Oracle Data Access Components) - which can be downloaded from the Oracle website. In most organisations it's normally advised that you have your Oracle DBA install these drivers and configure the settings for Enterprise Tester to connect to Oracle, as they will be better equipped to troubleshoot connectivity issues.
Prior to installation you need to determine if you are going to use the 64bit or 32bit version of ODAC - here is how you can determine which you should use.
|Use 64bit (x64) ODAC||Use 32bit (x86) ODAC|
If after reading the above information you determine that you have a 64-bit operating system, but need to use the 32-bit drivers, then you will need to Enable 32-bit application support in IIS, to do so:
Go to Control Panel -> Administrative Tools -> Internet Information Services (IIS) Manager.
On the left hand side select Application Pools.
Click on the Application Pool being used by Enterprise Tester (this will normally be "DefaultAppPool" or "EnterpriseTester").
Select on the right-hand side "Actions" panel "Advanced Settings...".
In the general section of "Advanced Settings" change "Enable 32-Bit Applications" from "False" to "True".
For ODAC you can either download and install it, or, download a zip file of the binaries and then copy the specific files required by Enterprise Tester into the bin folder for the Enterprise Tester installation directory.
If installing ODAC, this will place the ODP.Net files (required by Enterprise Tester) into the "Global Assembly Cache" (GAC) - this can impact on other .Net applications using ODP.Net as well, so if you have a server with a lot of applications, care may need to be taken.
The other option (also called "XCOPY" deployment of ODAC) - means that we take just the files required by ODP.Net (including the native Oracle drivers), and copy them into the bin folder for Enterprise Tester (normally c:\Program Files\Catch Limited\Enterprise Tester\Web\bin). This option involves less risk, but a little more effort.
Please visit the Oracle website to download the latest ODAC release - for convenience I have included links to both below:
If you have downloaded an ODAC release with an installer, you can now install it (as per instructions accompanying the download) - each release changes the installer slightly, so I won't document this process here. More details are here on the Oracle site.
If you have downloaded the XCOPY version, then unzip the file to a directory, then copy the following files from the download to the destination directory ( in the default installations pathway, the location is C:\Program Files (x86)\Catch Limited\Enterprise Tester\Web\bin):
For Oracle to work with Enterprise Tester you must change the web.config file to let Enterprise Tester know that you are connecting to an Oracle database.
To do so, open the web.config file in a text editor and then change the following values from the defaults:
<add key="migration.providerName" value="Migrator.Providers.SqlServer.SqlServer2005Dialect" />
<add key="connection.driver_class" value="NHibernate.Driver.SqlClientDriver" />
<add key="connection.driver_class" value="NHibernate.Driver.OracleDataClientDriver"/>
<add key="dialect" value="NHibernate.Dialect.MsSql2005Dialect" />
<add key="dialect" value="NHibernate.Dialect.Oracle10gDialect" />
Next you will need to setup the connection string (also in the web.config file)
The connection string shipped "out of the box" with Enterprise Tester will look like this:
For ODP.Net there are a number of possibilities as to how the connection string can be formatted, here are options/examples (pulled from connectionstrings.com).
Using Integrated Security
Using ODP.NET without tnsnames.ora
Using the Easy Connect Naming Method (aka EZ Connect)
The easy connect naming method enables clients to connect to a database without any configuration.
Port 1521 is used if no port number is specified in the connection string.
Make sure that EZCONNECT is enabled in the sqlnet.ora file. NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
'//' in data source is optional and is there to enable URL style hostname values
Easy Connect Naming Method to connect to an Instance
This one does not specify a service or a port.
Easy Connect Naming Method to connect to a dedicated server instance
This one does not specify a service or a port.
Other server options: SHARED, POOLED (to use instead of DEDICATED). Dedicated is the default.
Appendix A - Application unable to load Oracle.DataAccess.dll
The above changes are normally enough to get connectivity to Oracle working, especially if you use the "EZ Connect" or "ODP.Net with TNSNames.ORA" methods.
But in some cases this may not be enough, and you will need to help Oracle client locate the unaanaged (native) .dll files for the application - this is normally required if when starting "Enterprise Tester you can an error indicating that "Oracle.DataAccess.dll" or one of it's dependencies could not be loaded".
To do so edit the web.config file and near the top, locate the end of the config sections element:
Once found, add a new section group just before the end and a new section afterwards called "oracle.dataacess.client":
Where the "DllPath" points to your native drivers i.e. oraociei11.dll, oci.dll etc.
Appendix B - Fixing tnsnames.ora resolution issues
One issue you can have after making these changes (depending on how your machine is configured) is that ODP.Net client cannot locate the tnsnames.ora file and it's entries - you can normally establish this is the problem if connecting via the method "ODP.Net without tnsnames.ora" works, but if using a connection string that requires a tnsnames.ora entry, then it can't connect.
This can be resolved by implementing one of the below fixes:
By configuring ORA_HOME environment variable
The preferred fix is to set the Environment variable ORA_HOME with the location of the Oracle HOME directory which contains the correct tnsnames.ora file - normally you would have an Oracle home directory such as:
And your tnsnames.ora file would be located here:
So you would then go to Start -> Control Panel -> System -> Advanced System Settings -> Environment Variables.
Once the Environment Variables dialog is displayed, you would then add a new "System Variables" entry by clicking "New", and then enter "ORA_HOME" as the Variable name, and the Oracle home path as the Variable value i.e. C:\app\admin\product\11.1.0\client_1 from the example above.
After making these changes you may need to restart IIS for them to be applied.
Using an ifile redirect
As an alternative to configuring ORA_HOME, you can use an ifile to direct Enterprise Tester to the location of the correct tnsnames.ora file:
You can do this by creating a tnsnames.ora file in the Bin folder of Enterprise Tester (in some cases you may actually need to create a couple of folders underneath the bin folder i.e. bin/Network/Admin) and then configuring that file with an ifile reference, pointing to the correct tnsnames.ora file:
More info on ifile is here (http://oracleprofessional.blogspot.com/2007/05/using-ifile-tocentralise-tnsnamesora.html)