Oracle 9i Client and System.Data.OracleClient Problems

I have an application server that has an ASP.NET webpage that queries an Oracle database on another machine through ODP.NET.
The app server's machine's OS is Microsoft Windows XP SP2 with IIS and .NET 2.0 Framework installed and configured correctly.
The following Oracle software is installed (from OUI inventory listing)
Oracle Services For Microsoft Transaction Server 9.2.0.7.0
Oracle ODBC Driver 9.2.0.7.0
Oracle Provider for OLE DB 9.2.0.7.0
Oracle Objects for OLE 9.2.0.7.0
Oracle Data Provider for .NET 9.2.0.7.0
Oracle 9i Client 9.2.0.1.0
Sun JDK 1.3.1.0.1a
When the ASP.NET page attempts to connect to the Oracle instance on the remote machine via the Data provider I get the following message...
System.Data.OracleClient requires Oracle client software version 8.1.7 or greater.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Exception: System.Data.OracleClient requires Oracle client software version 8.1.7 or greater.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
<<snipped>>
I know the connectivity between the client on the app server (SQL*Plus: Release 9.2.0.1.0)
and the remote database (Oracle Database 10g Enterprise Edition Release 10.2.0.3.0)
is working since sqlplus sessions connect and the NET Manager tests through Local Service Naming succceed.
I've tried the "ORACLE_HOME permission changes" solution for Autenticated users as articulated here ....
http://jasondotnet.spaces.live.com/blog/cns!BD40DBF53845E64F!122.entry
but the error persists.
In the list of oracle installed products above, I installed the first 5 (ODP.NET) before the last 2 (Oracle 9i client). Would this matter ? At first I thought perhaps the ODP.NET component didn't "know" about the client since it was installed before there was one on that app server.
Feeback much appreciated.

Well I figured it out. I guess...
1) Uninstalled all Oracle Software Products
2) Rebooted the machine.
3) Manually removed C:\oracle\ora92\.
4) Installed and configured the following
* Oracle 9i Client 9.2.0.1.0
5) Installed and configured the following
* Oracle Services for Microsoft Transaction Server 9.2.0.7.0
* Oracle ODBC Driver 9.2.0.7.0
* Oracle Provider for OLE DB 9.2.0.7.0
* Oracle Objects for OLE 9.2.0.7.0
* Oracle Data Provider for .NET 9.2.0.7.0
6) Gave the following accounts Full Control over the ORACLE_HOME directory
* ASP.NET Machine Account
* Internet Guest Account
* Launch IIAS Process Account
6) iisreset
Conclusion....
The order in which Oracle components are installed does matter.

Similar Messages

  • How much faster is Oracle.DataAccess.Client over System.Data.OracleClient ?

    Ok, I can use two differenct data providers in VisualCSharp/.NET:
    1.) MS built-in data provider:
    using System.Data.OracleClient ;
    2.) Oracle ODP.NET data provider:
    using Oracle.DataAccess.Client ;
    How much faster is Oracle over the built-in access provider ?
    Does Oracles ODP use MS basic ADO.NET as underlying layer
    or does it bypass it ?
    What are the other advantages when I use Oracle ODP?
    Is there a side-by-side comparison chart between the two access methods ?

    I would say that it is both for speed and for functionality. The ODP data provider has Oracle specific functionality that is not available via the MS data provider.
    From the ODP.NET page:
    ODP.NET includes many features not available from other .NET drivers, including a native XML data type, the ability to bind array parameters, RAC tuning, and statement caching.

  • Migrating System.Data.OracleClient to Oracle.DataAccess.Client - XSD error

    Hi, I'm a newbie using Oracle ODP.NET provider for .NET.
    We have a web application that uses XSD to connect to Oracle using the provider System.Data.OracleClient.
    We want to migrate from System.Data.OracleClient to Oracle.DataAccess.Client.
    Installing and referencing the Oracle.DataAccess.dll all works fine.
    Then I changed all the references from System.Data.OracleClient to Oracle.DataAccess.Client and removed the System.Data.OracleClient.dll assembly from the web.config file.
    All compiles well, until I run the application, looks like the problem is the parameter use in the XSD file... the error I get is:
    Server Error in '/src' Application.
    Value does not fall within the expected range.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.ArgumentException: Value does not fall within the expected range.
    Source Error:
    Line 8864: global::Oracle.DataAccess.Client.OracleParameter param = new global::Oracle.DataAccess.Client.OracleParameter();
    Line 8865: param.ParameterName = "Original_TIPOCOMISIONID";
    Line 8866: param.DbType = global::System.Data.DbType.VarNumeric;
    Line 8867: param.IsNullable = true;
    Line 8868: param.SourceColumn = "TIPOCOMISIONID";
    Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\src\4a9afcc3\460b5b6b\App_Code.eljteq62.7.cs Line: 8866
    Stack Trace:
    [ArgumentException: Value does not fall within the expected range.]
    Oracle.DataAccess.Client.OracleParameter.set_DbType(DbType value) +134
    dsProductosTableAdapters.SIPC_TIPOCOMISIONTableAdapter.InitAdapter() in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\src\4a9afcc3\460b5b6b\App_Code.eljteq62.7.cs:8866
    dsProductosTableAdapters.SIPC_TIPOCOMISIONTableAdapter.get_Adapter() in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\src\4a9afcc3\460b5b6b\App_Code.eljteq62.7.cs:8797
    dsProductosTableAdapters.SIPC_TIPOCOMISIONTableAdapter.GetData() in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\src\4a9afcc3\460b5b6b\App_Code.eljteq62.7.cs:8993
    [TargetInvocationException: Exception has been thrown by the target of an invocation.]
    System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +0
    System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +71
    System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +350
    System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +29
    System.Web.UI.WebControls.ObjectDataSourceView.InvokeMethod(ObjectDataSourceMethod method, Boolean disposeInstance, Object& instance) +488
    System.Web.UI.WebControls.ObjectDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +1247
    System.Web.UI.WebControls.ListControl.OnDataBinding(EventArgs e) +95
    System.Web.UI.WebControls.ListControl.PerformSelect() +34
    System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
    System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
    System.Web.UI.WebControls.BaseDataBoundControl.OnPreRender(EventArgs e) +22
    System.Web.UI.WebControls.ListControl.OnPreRender(EventArgs e) +18
    System.Web.UI.Control.PreRenderRecursiveInternal() +80
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
    Version Information: Microsoft .NET Framework Version:2.0.50727.3615; ASP.NET Version:2.0.50727.3614
    I'd like some help on how to make the XSD compile with the new provider, Oracle.DataAccess.Client.
    Many thanks in advance for any help!
    Pieter

    MS OracleClient binds parameters by name. ODP.NET binds by position. If you want to change ODP.NET's default parameter binding behavior, set:
    OracleCommand.BindByName = true;
    Do this for every OracleCommand that binds parameters.

  • How to connect oracle and c# using namespace System.Data.OracleClient

    Hi!
    I am using Microsoft Visual Studio 2005 and Orange for oracle version 4.
    I've been given a task, show the table of the database using datagrid.
    but first I have to connect to the database using namespace System.Data.OracleClient.
    What should I do? I am totally new in c# and oracle.
    Thanks in advance. :)

    Hi!
    I am using Microsoft Visual Studio 2005 and Orange for oracle version 4.
    I've been given a task, show the table of the database using datagrid.
    but first I have to connect to the database using namespace System.Data.OracleClient.
    What should I do? I am totally new in c# and oracle.
    Thanks in advance. :)

  • Oracle 10g Client and ODAC Side-By-Side

    Hi there, I was unable to find an answer to my query by using search, but apologies if this is a double-post.
    I'm having some issues with a ASP.NET application running on a Windows XP Pro machine. The machine has Oracle 10g client installed (oraClient10g_home1), and also ODAC (ODACHome2).
    The part of my web application that accesses our Oracle DB (10g), always gets a ORA-12154 error when it tries to connect, but SQL*Plus and tnsping for this TNS both work on the machine.
    When I use tnsping from the command line it looks like its using parameter files from the ODAC home, rather than the 10g client home.
    On my development machine (where ODAC is not installed), the application works fine.
    Does anyone have any idea if there are any issues having both of these clients installed?
    Or otherwise where my problem could be?
    Thanks very much in advance,
    James Simm

    Thanks for the link, however it hasn't solved my issues:
    The version of ODP.Net installed is 10.2.0.2.20, and the Oracle Client is 10.2, so according to that link it should be able to automatically switch between Oracle Homes.
    The application I'm troubleshooting doesn't actually use ODP.Net, it uses System.Data.OracleClient, but ODP.Net is required for another application.
    I'm extremely stuck, as I cannot understand why I'm getting ORA-12154 when every other Oracle application on the machine can access it.
    Please let me know if there are any other things I can try, or if you need any information from me?
    Thanks in advance,
    James Simm

  • Oracle Instant Client and OUT Parameter of custom type in Stored Procedures

    Hi @ all!
    I try to set up a simple client application, that calls a stored procedure via Instant Client from C#.
    The stored procedure and assiciated types looks like this:
    TYPE MYVALUE AS OBJECT
          Id      INTEGER,
          value     FLOAT
    TYPE MYVALUELIST AS TABLE OF MYVALUE;
    PROCEDURE ReadValues( ID IN INTEGER,
                                        RESULTSET OUT MYVALUELIST)
                                           IS
    ...I created an Oracle Command executing this SP and added OracleParameters for ID and (where I got stuck) the RESULTSET.
    Is it possible to pass a parameter with a custom type from C# in some way?
    I already tried it as a function with SELECT * FROM TABLE(ReadValues(1));
    With my parameter RESULTSET as the RETURN type. But since I use DML within the procedure, this does not work inside of a query...
    Any suggestions?
    Thanks in advance!

    Hi Greg!
    Sorry, I misunderstood the forum topic then. =(
    Anyway, in the example you provided in the link, this is nearly exactly my situation. But there the Oracle.DataAccess.Client is used, where the OracleDBType can be called to initialize an object of type person. I use the instant client libraries called by using System.Data.OracleClient. There is only the OracleType enum, that does not contain an object or something similar.
    So I do it right now after trying a bit with a ref cursor parameter and an OracleDataAdapter - the ref cursor is passed back from Oracle as a DataReader, so die DataAdapter is able to use it for a .Fill():
    OracleCommand cmd = new OracleCommand();
    cmd.Parameters.Add("RESULTSET", OracleType.Cursor).Direction = ParameterDirection.Output;
    OracleDataAdapter odr = new OracleDataAdapter(cmd);
    DataTable result = new DataTable();
    odr.Fill(result);Within my stored procedure I just added the following OUT parameter:
    PROCEDURE ReadValues( ID IN INTEGER,
                                        RESULTSET OUT sys_refcursor)
                                           IS
    currentlist MYVALUELIST;
    ... [Adding elements to that list] ...
    OPEN resultset for select * from TABLE(currentlist);It works now, but I don't like that solution that much since I'm always afraid that there are lots of opened cursors idyling around. Do I have to close this one explicitly after filling my table by the DataAdapter?
    Regards

  • Unable to use transactions with System.Data.OracleClient data provider

    I am using VS2008, System.Data.OracleClient, Oracle 10g, and ODAC 10.2.0.20. I haven't been able to get transactions to work. When I use 'connection.BeginTransaction()', the rollback doesn't work. When I use TransactionScope, the output parameter is always DBNull. Any ideas/comments?
    Here's the sample code:
    // #define ENABLE_TRANSACTION // failure is 'rollback not working'
    #define ENABLE_TRANSACTION_SCOPE // failure is 'no output parameter value'
    using System;
    using System.Collections.Generic;
    using System.Data;
    using System.Text;
    using System.Data.OracleClient;
    #if ENABLE_TRANSACTION_SCOPE
    using System.Transactions;
    #endif
    namespace TestOracleTransaction
    class Program
    static void Main(string[] args)
    #if ENABLE_TRANSACTION_SCOPE
    using (TransactionScope scope = new TransactionScope())
    #endif
    string connectionString = "Data Source=ORADEV;User ID=user;Password=pwd";
    using (OracleConnection connection = new OracleConnection(connectionString))
    try
    connection.Open();
    #if ENABLE_TRANSACTION
    using (OracleTransaction transaction = connection.BeginTransaction())
    #endif
    try
    #if ENABLE_TRANSACTION_SCOPE
    if (Transaction.Current == null)
    throw new ArgumentException("no ambient transaction found for OracleClient");
    #endif
    OracleCommand command = connection.CreateCommand();
    #if ENABLE_TRANSACTION
    command.Transaction = transaction;
    #endif
    command.CommandType = CommandType.StoredProcedure;
    command.CommandText = "TIS.P_TIS_GATEWAY_INFO_ADD";
    OracleParameter param = command.CreateParameter();
    param.ParameterName = "p_gateway_id";
    param.Direction = ParameterDirection.Input;
    param.DbType = DbType.Int64;
    param.Value = 18;
    command.Parameters.Add(param);
    param = command.CreateParameter();
    param.ParameterName = "p_info_id";
    param.Direction = ParameterDirection.Input;
    param.DbType = DbType.Int64;
    param.Value = 79;
    command.Parameters.Add(param);
    param = command.CreateParameter();
    param.ParameterName = "p_user";
    param.Direction = ParameterDirection.Input;
    param.DbType = DbType.String;
    param.Value = "spms";
    command.Parameters.Add(param);
    param = command.CreateParameter();
    param.ParameterName = "p_gateway_info_id";
    param.Direction = ParameterDirection.Output;
    param.DbType = DbType.Int64;
    param.Size = sizeof(Int64);
    command.Parameters.Add(param);
    int count = command.ExecuteNonQuery();
    object value = command.Parameters["p_gateway_info_id"].Value;
    long id = (value == DBNull.Value) ? -1 : Convert.ToInt64(value);
    if (id < 0)
    // FAILURE - no output parameter value when TransactionScope enabled
    throw new ArgumentException("no return value");
    #if ENABLE_TRANSACTION
    // FAILURE - rollback doesn't work when Transaction enabled
    transaction.Rollback();
    #endif
    #if ENABLE_TRANSACTION_SCOPE
    scope.Complete();
    #endif
    catch (Exception ex)
    System.Console.WriteLine("ERROR: " + ex.Message);
    #if ENABLE_TRANSACTION
    transaction.Rollback();
    #endif
    finally
    if (connection.State == ConnectionState.Open)
    connection.Close();
    }

    Hi,
    First, this is not the place for questions with System.Data.OracleClient, this is the Oracle Data Provider for .NET forum. Having said that I went ahead and tested your code with some slight modifications because you did not provide the stored procedure information. I am assuming your stored procedure is doing some sort of DML since you are using transactions and attempting to commit and rollback.
    I tested the following with both Transaction scope and a local transaction object and it worked fine with System.Data.OracleClient. I provided the create table and stored procedure I used.
    Observations
    ========
    When using transaction scope, a distributed transactions was executed and the data was inserted and returned in the output variable.
    From console
    p1 value is Hello World
    From SQL Plus
    SQL> select * from foo;
    C1
    Hello World
    When using a local transaction, the DML was not inserted when calling rollback and when I changed it to commit, the row was inserted successfully.
    Maybe you can test the simple foo example below to see if it works for you. Maybe there is something going on in your SP that is causing your specific observations.
    The code I posted at this point is using local transaction and calling transaction.commit(), rollback is commented out. But I tested all scenarios and they worked as expected.
    HTH
    Jenny
    #define ENABLE_TRANSACTION // failure is 'rollback not working'
    //#define ENABLE_TRANSACTION_SCOPE // failure is 'no output parameter value'
    using System;
    using System.Collections.Generic;
    using System.Data;
    using System.Text;
    using System.Data.OracleClient;
    #if ENABLE_TRANSACTION_SCOPE
    using System.Transactions;
    #endif
    create table foo (c1 varchar2(50));
    create or replace procedure getstr (p1 out varchar2) as
    begin
    insert into foo(c1) values ('Hello World') returning c1 into p1;
    end;
    namespace TestOracleTransaction
    class Program
    static void Main(string[] args)
    #if ENABLE_TRANSACTION_SCOPE
    using (TransactionScope scope = new TransactionScope())
    #endif
    string connectionString = "Data Source=orcl;User ID=scott;Password=tiger";
    using (OracleConnection connection = new OracleConnection(connectionString))
    try
    connection.Open();
    #if ENABLE_TRANSACTION
    using (OracleTransaction transaction = connection.BeginTransaction())
    #endif
    try
    #if ENABLE_TRANSACTION_SCOPE
    if (Transaction.Current == null)
    throw new ArgumentException("no ambient transaction found for OracleClient");
    #endif
    OracleCommand command = connection.CreateCommand();
    #if ENABLE_TRANSACTION
    command.Transaction = transaction;
    #endif
    command.CommandType = CommandType.StoredProcedure;
    command.CommandText = "SCOTT.GETSTR";
    OracleParameter param = command.CreateParameter();
    param.ParameterName = "p1";
    param.Direction = ParameterDirection.Output;
    param.DbType = DbType.AnsiString;
    param.Size = 20;
    command.Parameters.Add(param);
    int count = command.ExecuteNonQuery();
    object value = command.Parameters["p1"].Value;
    Console.WriteLine("p1 value is {0}",value.ToString());
    #if ENABLE_TRANSACTION
    // FAILURE - rollback doesn't work when Transaction enabled
    transaction.Commit();
    //transaction.Rollback();
    #endif
    #if ENABLE_TRANSACTION_SCOPE
    scope.Complete();
    #endif
    catch (Exception ex)
    System.Console.WriteLine("ERROR: " + ex.Message);
    #if ENABLE_TRANSACTION
    transaction.Rollback();
    #endif
    finally
    if (connection.State == ConnectionState.Open)
    connection.Close();
    }

  • Error to connect oracle 10g client and designer BO 4.0

    hello,
    I try to connect oracle 10g client and designer BO 4.0.
    I created an ODBC connection to function in the administration tools of data sources but I can not connect once in designer.
    I tried using the driver directly oracle designer 10 but I have the same error that is this:
    DBD: ORA-12154: TNS: connection identifier specified could not be resolved
    someone there had the same concerns?
    cordially

    Hi,
    so it looks like that your TNSNAMES.ORA file isn`t properly configured. Thats why you can connect with the IDT to your Oracle Database.
    Your DBA`s should sent you the correct TNSNAMES.ORA file or the entry for your DB prior. After the tnsping works, you will be able to use the IDT properly.
    Regards
    -Seb.

  • Oracle(tm) Client and Networking Components were not found..

    I installed Oracle 9i Client tools on my machine (Win2000 Server), and successfully installed the Oracle ODBC Driver, however, upon using "Oracle in OraHome92" option in my Administrative Tools System DSN I receive the following error upon attempt to connect to the database with my ASP scripts:
    "The Oracle(tm) client and networking components were not found. These components are supplied by Oracle Corporation and part of Oracle Version 7.3.."
    I also receive the following error on my page:
    Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
    [Microsoft][ODBC Driver Manager] Driver's SQLAllocHandle on SQL_HANDLE_ENV failed
    I have tried every trick I know and at this point am out of options. If anyone has a suggestion I'd really appreciate it.
    Thanx
    Phil

    Hi,
    I have been trying to setup Microsoft ODBC drivers on my Win7 64 bit laptop to work with my code.
    Every time it gives me an error msg "Oracle(tm) client and networking components were not found"
    ple help me in this. i have tried downloading and installing odbc driver from oracle site but none work.
    Can someone guide me as which other software need to be install.
    here is the connection string I am using, please help:
    strDBConnString = "Driver={Microsoft ODBC for Oracle};" & _
    "CONNECTSTRING=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST="&THostName&")(PORT="&TPort&"))" & _
    "(CONNECT_DATA=(SID="&TSID&")));Uid="&TUserID&";Pwd="&TPassword&";"
    Thanks

  • Need help regarding Simple Data Client and Simple Data Server VIs

    Hi everyone.
    I have a simple objective. I just want to test the 2 example VIs, "Simple Data Client" and "Simple Data Server" between 2 computers. I just want to check whether is this working between the 2 computers.
    What I have done for now is that I changed the "address", from "localhost" in the "Simple Data Client.vi" to the IP address of the computer running the "Simple Data Server". I runned the "Simple Data Server" VI in one of the computers first followed by the "Simple Data Client" in the other computer. Nothing is received and the client just timed out.
    Can anyone please help me troubleshoot and tell me what are the possible problems for this? Are there any wires connections between 2 computers that I am missing or any other configurations I have to make before I can successfully do this?
    Thanks.
    Regards,
    Jonathan

    Hi Lee.P.
    I understand that. I was just feeling frustrated about the project not working. Sincere apologies from me.
    I was wrong about the error number. It is not Error 60. It is Error 59 - The network is down, unreachable, or has been reset.. Yes, I have tried changing the port numbers at the 2 computers when trying to send/receive.
    Could anything else be the problem?
    Regards,
    Jonathan  

  • How to save user name and system date in a table

    I have a form that allow users to enter some information...
    I want to save user name in one of the columns and system date in another column by default when the user submit the form to save data...
    Please advice...
    Thanks

    Hi talbo,
    The most reliable method is to use a before-insert trigger on your table. This way the columns will be set properly no matter how rows are inserted (via your app or any other means). Given your user name column is called "CREATE_USER" and your date column is called "CREATE_DATE" for example - include these lines in a before-insert trigger:
    :NEW.CREATE_USER := NVL(V('APP_USER'), USER);
    SELECT SYSDATE INTO :NEW.CREATE_DATE FROM DUAL;The NVL(V('APP_USER'), USER) will set CREATE_USER to the current ApEx application user if the row is created from within the application, or to the current database user if the row is created outside the application.
    Hope this helps,
    John
    If you find this information useful, please remember to mark the post "helpful" or "correct" so that others may benefit as well.

  • Oracle instant Client and unixODBC for Linux not work

    Hi experts,
    I have two Redhat EL 5. On the first Rehat(xxx.xxx.xxx.121 --> called Redhat1) I have installed Oracle 10g database server. On the second Redhat(xxx.xxx.xxx.123 --> called Redhat2) I want to connect to Oracle database server on xxx.xxx.xxx.121 via ODBC. But it does not work. Pls help me!
    I have done steps as following:
    Login to Redhat2 as root and type commands:
    1)Install Instant Client + sqlplus
    # rpm -ivh oracle-instantclient-basic-10.2.0.4-1.i386.rpm
    # rpm -ivh oracle-instantclient-sqlplus-10.2.0.4-1.i386.rpm
    2)Setting environment variable
    # LD_LIBRARY_PATH=/usr/lib/oracle/10.2.0.4/client/lib:${LD_LIBRARY_PATH}; export LD_LIBRARY_PATH
    # SQLPATH=/usr/lib/oracle/10.2.0.4/client/lib:${SQLPATH}; export SQLPATH
    3)Testing connection to Redhat1(Oracle DB server) using sqlplus
    # sqlplus abc/[email protected]:1521/lab2
    Connected.
    5)Begin to install unixODBC
    # rpm -ivh oracle-instantclient-odbc-10.2.0.4-1.i386.rpm
    # rpm -ivh unixODBC-2.2.11-7.1.i386.rpm
    # rpm -ivh unixODBC-devel-2.2.11-7.1.i386.rpm
    # rpm -ivh unixODBC-kde-2.2.11-7.1.i386.rpm
    6)After installation above packages I check for existing of odbc.ini and odbcinst.ini in /etc --> ok
    # ls /etc | grep odbc
    odbc.ini
    odbcinst.ini
    7) Tar unixODBC-2.2.14-linux-x86-32.tar.gz and copy file to /usr/local/bin, /usr/local/include, /usr/local/lib
    # tar -xzf unixODBC-2.2.14-linux-x86-32.tar.gz
    # ls /usr/local/bin/
    dltest isql iusql odbc_config odbcinst
    # ls /usr/local/include
    autotest.h odbcinstext.h odbcinst.h sqlext.h sql.h sqltypes.h sqlucode.h unixodbc_conf.h uodbc_extras.h uodbc_stats.h
    # ls /usr/local/lib
    libboundparam.la libgtrtst.la libodbccr.la libodbcinst.la libodbc.la
    libboundparam.so libgtrtst.so libodbccr.so libodbcinst.so libodbc.so
    libboundparam.so.1 libgtrtst.so.1 libodbccr.so.1 libodbcinst.so.1 libodbc.so.1
    libboundparam.so.1.0.0 libgtrtst.so.1.0.0 libodbccr.so.1.0.0 libodbcinst.so.1.0.0 libodbc.so.1.0.0
    # NLS_LANG=AMERICAN_AMERICA.UTF8; export NLS_LANG
    # TNS_ADMIN=/root; export TNS_ADMIN
    # ODBCINI=/etc/odbc.ini; export ODBCINI
    7)Retest sqlplus to Redhad1(Oracle database server) with local tnsname
    # sqlplus vonphoto/vonphoto@lab2
    SQL*Plus: Release 10.2.0.4.0 - Production on Sat Mar 27 03:20:55 2010
    Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    8) Edit odbc.ini and odbcinst.ini
    ---odbcinst.ini
    # Included in the unixODBC package
    [Oracle 10g ODBC driver]
    Description = Oracle ODBC driver for Oracle 10g
    Driver = /usr/lib/oracle/10.2.0.4/client/lib/libsqora.so.10.1
    Setup =
    FileUsage =
    CPTimeout =
    CPReuse =
    ---odbc.ini
    [ora_dns]
    Driver = Oracle 10g ODBC driver
    DSN = ora_dns
    ServerName = xxx.xxx.xxx.121
    UserID = vonphoto
    Application Attributes = T
    Attributes = W
    BatchAutocommitMode = IfAllSuccessful
    BindAsFLOAT = F
    CloseCursor = F
    DisableDPM = F
    DisableMTS = T
    EXECSchemaOpt =
    EXECSyntax = T
    Failover = T
    FailoverDelay = 10
    FailoverRetryCount = 10
    FetchBufferSize = 64000
    ForceWCHAR = F
    Lobs = T
    Longs = T
    MetadataIdDefault = F
    QueryTimeout = T
    ResultSets = T
    SQLGetData extensions = F
    Translation DLL =
    Translation Option = 0
    DisableRULEHint = T
    TraceFile = /backup/sql.log
    Trace = Yes
    9)Testing the driver and the data source
    # odbcinst -q -d
    [Oracle 10g ODBC driver]
    # odbcinst -q -s
    [ora_dns]
    10) Test connection via ODBC from Redhat2(xxx.xxx.xxx.123) to Redhat1(xxx.xxx.xxx.121)
    # isql -v ora_dns
    isql: error while loading shared libraries: libreadline.so.3: cannot open shared object file: No such file or directory
    I have spent 4 days to search on the internet. But it still error.
    Pls help me.

    I don't understand your step 7 (the first step 7, actually).
    What is that unixODBC-2.2.14-linux-x86-32.tar.gz, where did it come from, and why are you doing all that?
    unixODBC should be installed after step 5.
    I guess that that is the cause of your problem.
    isql is not linked against readline at all on my RHEL 5 system.
    Do you notice any improvement after removing the files from that tar.bz file?
    Yours,
    Laurenz Albe

  • Oracle 9i client and TOAD

    Hi,
    I am trying to use Toad tool to connect to Oracle database and view/edit sql tables queries etc
    For that purpose I also installed Oracle 9i client application on windows xp
    I have tnsnames.ora and sql ora file in my Oracle path .... network/admin
    When I open Toad - New Connection, - It shows Database dropdown list as it has read it from the tnsnames.ora
    I input User/Schema and Password
    I select connect as option as "Normal"
    When I hit Ok I get following error in Toad popup dialog box :---
    "Initialization error Could not locate OCI dll
    When I click "Details" button of dialog box it gives details as :---
    Building Oracle HOMES List
    HOME Name OraHome92 added to list.
    HOME Name OraHome92 added to list
    Found multiple homes, searching each HOME x for valid PATH
    searching in SOFTWARE\ORACLE\HOME1
    Oracle_Home found in
    SOFTWARE\ORACLE\HOME1 is in system path !
    searching in SOFTWARE\ORACLE\HOME0
    Unloading previous Oracle DLL
    Oracle Guru please tell me how to get rid of this problem so that I can connect using TOAD to database
    thanks,
    pp

    Googleit!
    http://www.toadsoft.com/faq2.html
    I get the error message, "Could not locate OCI DLL". Now what?
    Toad is indicating that it cannot find a SQL*Net or Net8 installation, which is required in order for Toad to connect to a database.
    Make sure <OracleHome>\bin folder is in PATH, and that some version of oraxy.dll, e.g., ora71.dll, ora72.dll, etc. exists in that folder or elsewhere in the PATH. For Oracle8, the OCI dll is named OraClient8.dll. For Oracle9, the OCI dll is named OraClient9.dll.
    Regards
    Aron

  • Oracle instant Client and memory

    Hello everybody,
    I have just installed the Oracle Instant Client on my Linux server (Redhat distibution), I recompiled PHP (4.4.2 version) with the oci8 extensions and I reboot Apache (1.3.34 version)...
    In short, the installation of OIC goes perfectly (No error messages...), and I can request a remote Oracle server from a PHP file. (All this, for one PHP script that I use only once a day, to load data in a MySQL table).
    However, since I installed the OIC, my Apache processes exceeds the 200 MB and my server has a commit memory more than 2GB (sometimes it goes until 5GB).
    Is it a problem that can come from the OIC ? Maybe, a parameter could fix that problem ?
    Thx in advance.
    Maat

    If you can't upgrade from PHP4, you should upgrade at least the OCI8
    extension. All PHP 4 releases have a very, very old version of OCI8.
    Steps to upgrade are given in the free Underground PHP and Oracle Manual
    The Instant Client Basic package uses a chunk of (shareable) memory
    for all its NLS data. The Instant Client Lite package uses a smaller
    footprint.
    Make sure you know what you are measuring and whether what you are
    seeing actually has an effect on performance.
    -- cj

  • Oracle.ManagedDataAccess.Client Operating System Authentication

    Hi.
    I am trying to get OSA to work with Oracle.ManagedDataAccess.Client, is this not supported?
    I get the following Error: ORA-01017: invalid username/password; logon denied
    Here are some of the variations of connection string, I have been testing with.
    Data Source=BLA.BLA.COM;
    Data Source=BLA.BLA.COM;User Id=/;
    Data Source=BLA.BLA.COM;Integraded Security=SSPI;
    Data Source=BLA.BLA.COM;Trusted Connection=True;
    Data Source=BLA.BLA.COM;User Id=/;Integraded Security=SSPI;
    Data Source=BLA.BLA.COM;User Id=/;Trusted Connection=True;
    Integrated Security and Trusted Connection gives me, unknown or illegal connection string attribute errors.
    My first assumption would be that my Operating System Account doesn't have access to the Oracle Database I am trying to log on to.
    But I am fully capable of connecting to the database with OSA with sqlplus, sqldeveloper and toad.
    Can somebody explain to me why this isn't working? And what I may do to fix it?
    It may be worth mentioning that I am trying to use the 12c x86 ODP.NET Managed Provider, against 11g/11.2 Oracle Databases.

    That's correct. Kerberos is not currently supported by managed ODP.NET. We are working to support this feature, but don't have an ETA on when it will be available.
    What company or organization is requesting this feature?
    I believe there's an open feature request for Kerberos support in the Oracle .NET Feature Request Tool. Fee free to add your vote to this request.

Maybe you are looking for