Oracle 8i clients, inconsistent handling of tnsnames.ora (ORA-06401 gotcha)

This is more of a bug report / oddity declaration than a real problem, though it was a pain in the butt to nail down. I post it here for the benefit of anyone else who may run into it down the road.
Using the linux sqlplus client, I kept getting consistent failures connecting to one of a dozen db's, but tests with the (java) netasst client worked fine. After various debugging of other potential causes, it came down to strace'ing the sqlplus client, and noting that it was attempting to connect to the wrong host, despite what was specified on the command line.
What we identified as the most probable cause:
The routines that load and parse the tnsnames.ora file differ between the linux and java clients, with the java client being more tolerant/robust. The tnsnames.ora file I'd been supplied with had come from a fellow user's Win32 machine, and had been edited there, which probably included a couple ^M's or other non-visible characters within the file.
The solution (at least, what I did):
Load the tnsnames.ora file with netasst, and save it again with netasst. Netasst wrote the file in a manner that sqlplus could read accurately, and I got to go have a beer.
- billn

Hi Fredrik,
You r right. But I have its entry in tnsnames.ora file. The entry looks like this -
My_Service_Name.world =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = tcp.world)
(PROTOCOL = TCP)
(Server = Computer_Name_of_Server_having_Ora8i)
(Host = IP_Add_of_Server_having_Ora8i)
(Port = 1521)
(Pipe = ORAPIPE)
(CONNECT_DATA = (SID = ORCL)
The same entry exists in the tnsnames.ora file on the local PCs (same office where the Oracle 8i Server is present) at Site 1 and these PCs connect the server without any problem.
Thanks
Lokesh

Similar Messages

  • DBD::Oracle & Instant client - don't find tnsnames.ora

    Hello,
    I'm trying to use tns names in Perl scripts to connect with Instant client. I always get the ORA-12154 error when connecting with Perl :
    ORA-12154: TNS:could not resolve the connect identifier specified (DBD ERROR: OCIServerAttach).
    The perl command that raise the error is :
    +$dbh = DBI->connect("dbi:Oracle:MYDB","user","password") or die $DBI::errstr."\n";+
    I checked my Oracle installation and everything seems fine. Connection with sqlplus work without problem using the same connection string (sqlplus user/passowrd@MYDB).
    I stat'ed my tnsnames.ora file to check if it's accessed : it is with sqlplus, but not with my perl script.
    Instant Client has been installed with the zip files made available by Oracle (not RPM). ORACLE_HOME points to the installation directory and tnsnames.ora is located in $ORACLE_HOME//network/admin/. Server is a Red Hat Entreprise 5.
    In my knowledge DBD::Oracle use OCI so there should not have difference between sqlplus and DBD::Oracle. Am I wrong ? Anyone have had this problem before ?
    Thanks for your help
    Florent

    Hi,
    Environment variables was correctly defined, but your comment put me on the right track.
    I printed the %ENV content to check ORACLE_HOME which was OK.
    I check the directory and remind I put a sqlnet.ora file in the same directory than tnsnames.ora with the followin content :
    AUTOMATIC_IPC = OFF
    TRACE_LEVEL_CLIENT = OFF
    names.directory_path = (TNSNAMES)
    names.default_domain = world
    name.default_zone = world
    I removed this file and everything is ok now. I don't really know what this file is used for, but if I keep it online and change MYDB in the connection name to MYDB.world, it worked. I think I have to learn more about names...
    Thanks for your help anyway !
    Regards,
    Florent

  • Problem with Oracle 9i client to access multiple oracle databases

    I am having problem setting up oracle client 9i to access multiple oracle db. When I finish installing Oracle 8.x client, I simply replace the tnsnames.ora that the installation created with the ones that I have. I can access three different databases. I only need to add three diffrent entries in the tnsnames.ora file. I cannot be able to do this with Oracle 9i client. I follow the instruction from the CD installation to use local naming method. It appears that Oracle client try to create multiple entries on my tnsnames.ora file but I can only be able to access one db.
    Any help is appreciated.
    Thanks! HD

    the old tnsnames.ora is working with Oracle 8 client. The new tnsnames.ora (if I use the Oracle Net config) have two entries, one is dev and the other is prod.
    Thanks!

  • Location of tnsnames.ora for Tora and Oracle XE Client

    I Googled far and wide and did not see a CLEAR answer to my question, hopefully this will help others.
    I have installed the debian oracle-xe-client and tora packages (tora rebuilt for oracle) on Ubuntu 8.04.
    However, I did not know where I was supposed to place the tnsnames.ora file for my databases. I have tried running Tora with the environment variable of TNS_ADMIN set to the file where I placed my tnsnames.ora, however that did not work as Tora did not 'see' the file or its entries apparently. I know this works because I copied it from a Debian Etch box with the client and server installed.
    I had even added a 'network/admin' directory structure to the //usr/lib/oracle/xe/app/oracle/product/10.2.0/client (ORACLE_HOME) with the tnsnames.ora but also with no success.
    Now for the solution:
    Simply remember that TNS_ADMIN points to the directory where the tnsnames.ora is and it will work. :)
    I do have a suggestion that both Tora and sqlplus use a config file to set these directory(s) in addition to the overriding ability of the environment variable, TNS_ADMIN as is usually the case with UNIX apps (and thus expected).
    Thank you,
    Jason

    The ODBC Instant Client Readme that is included in the install also indicates that %ORACLE_HOME%/network/admin/tnsnames.ora is the correct default location. What about OCI?

  • I see the error: ORA-12170 when I make Net Manager on Oracle DTB Client

    Dear all,
    I installed Oracle Database 10 g on Server, then I installed Oracle Database Client 10 g on another PC. I tested the connection database from client PC by making Net Manager on Oracle Database Client. And I see the error ORA - 12170.
    Can you help me?
    I want to connect database on Server to practice add Portlet by SQL/PLUS.
    Thanks.

    Oracle says...
    ORA-12170: TNS:Connect timeout occurred
    Cause: The server shut down because connection establishment or communication with a client failed to complete within the allotted time interval. This may be a result of network or system delays; or this may indicate that a malicious client is trying to cause a Denial of Service attack on the server.
    Action: If the error occurred because of a slow network or system, reconfigure one or all of the parameters SQLNET.INBOUND_CONNECT_TIMEOUT, SQLNET.SEND_TIMEOUT, SQLNET.RECV_TIMEOUT in sqlnet.ora to larger values. If a malicious client is suspected, use the address in sqlnet.log to identify the source and restrict access. Note that logged addresses may not be reliable as they can be forged (e.g. in TCP/IP).
    Also check the following...
    1) Listener status on the server.
    2) Check listener.log file present in X:\oracle\product\10.2.0\db_1\NETWORK\log folder to grab any error.
    3) Check the result of tnsping from the client.
    4) try to login by sqlplus username/password@tnsname and see what happens.

  • Oracle.DataAccess.Client.OracleException ORA-29875 - ODCIINDEXINSERT error

    Hi,
    We are migrating data into our GIS repository using an application witch uses ODP fro .NET.
    Yesterday, when we were importing parcels from a certain geographic zone we have got this error:
    4430528 [4028] ERROR DBCommand - Error Executing Command [PARCELA.WRITE]
    Parameters:
    ResValue: [Int32]
    POP_ID: [Int64]35397
    PAR_ID: [Varchar2]
    BLO_ID: [Decimal]836170
    PAR_NUM: [Varchar2]1480296132900
    geometry: [Blob]System.Byte[]
    PAR_PON_ETI: [Blob]System.Byte[]
    Oracle.DataAccess.Client.OracleException ORA-29875: failed in the execution of t
    he ODCIINDEXINSERT routine
    ORA-29400: data cartridge error
    ORA-14450: attempt to access a transactional temp table already in use
    ORA-06512: at "MDSYS.SDO_IDX", line 161
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 332
    ORA-06512: at "SIG.PARCELA", line 354
    ORA-06512: at "SIG.PARCELA", line 479
    ORA-06512: at line 1 at pt.inga.db.Command.Execute(IDbConnection connection,
    IDbCommand command, Boolean& closeConnection) in C:\code-base\inga\isig\src-1.0.
    0.2\pt\inga\db\Command.cs:line 234
    at pt.inga.db.Command.Execute(IDbConnection connection, OracleCommand command
    , IDataRecord parentRecord, IDataRecord dataRecord, IOperationData operation, Bo
    olean& closeConnection) in C:\code-base\inga\isig\src-1.0.0.2\pt\inga\db\Command
    .cs:line 334
    The error seems to be related with temporary tables manipulation, does it?
    Has we didn’t know what to do we try to import those parcels after dropping a spatial index over the parcel’s table and we succeed with the import.
    Those any one has any ideas about this?
    And about spatial indexes internals?
    Thanks in advance,
    Vitor
    Versions:
    Client:          Oracle10g Data Provider for .NET 10.1.0.2.0
    Client’s OS:     Windows 2003 server
    Server:          Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    Server’s OS:     AIX 5.2.0.0

    Vitor,
    Yes, Oracle uses temporary tables as part of inserts/
    deletes/updates on a table with a spatial index.
    Temporary table usage internally should not
    have any issues and we are not sure why this problem
    surfaces. Opening a TAR on this with a simplified
    testcase (and all config details: # of concurrent
    sessions etc.) might help in a better understanding/
    resolution of this issue.
    In the meanwhile, as a workaround, you can do the
    following:
    - drop the spatial index
    - migrate (insert) the data into the table from the
    application
    - recreate the spatial index
    This will avoid the temporary table issue at hand.
    - Ravi.

  • Oracle.DataAccess.Client.OracleException ORA-06502: PL/SQL

    I have the following Simple PL/SQL function:
    FUNCTION INSERTFBEXP (
    p_expid INTEGER,
    p_run_identifier     VARCHAR2,
    p_run_complete     INTEGER,
    p_run_completion_status VARCHAR2,
    p_complete_errors INTEGER
    RETURN INTEGER
    IS
    newid INTEGER;
    concheck INTEGER;
    BEGIN
    concheck := 1;
    newid := 1;
    INSERT INTO test.exp
    (ID, concheck, expid, run_identifier,run_complete, run_completion_status, complete_errors
    VALUES (test.id_testexp.NEXTVAL, concheck, p_expid, p_run_identifier, p_run_complete, p_run_completion_status, p_complete_errors
    ) RETURNING ID INTO newid;
    RETURN newid;
    END;
    Which I am calling from the following .Net procedure:
    Public Function insertTestExp(ByVal expid As Int32, ByVal Run_Identifier As String, _
    ByVal Run_Complete As Boolean, ByVal CompletionStatus As String, ByVal Complete_Errors As Boolean) As Integer
    Dim id As Integer
    With m_OraCmd
    .CommandText = "USER.FBPROCESS.INSERTFBEXP"
    .CommandType = CommandType.StoredProcedure
    With .Parameters
    .Clear()
    .Add(New OracleParameter("p_expid", OracleDbType.Int32)).Value = expid
    .Add(New OracleParameter("p_run_identifier", OracleDbType.Varchar2, 50)).Value = Run_Identifier
    .Add(New OracleParameter("p_run_complete", OracleDbType.Int32)).Value = Convert.ToInt32(Run_Complete)
    .Add(New OracleParameter("p_run_completion_status", OracleDbType.Varchar2, 50)).Value = CompletionStatus
    .Add(New OracleParameter("p_complete_errors", OracleDbType.Int32)).Value = Convert.ToInt32(Complete_Errors)
    .Add(New OracleParameter("newid", OracleDbType.Int32)).Direction = ParameterDirection.ReturnValue
    End With
    Try
    .ExecuteNonQuery()
    Catch ex As Exception
    MsgBox(ex.ToString)
    End Try
    Return CType(.Parameters(5).Value, Int32)
    End With
    End Function
    When I attempt to run the .Net function I get the following error:
    Oracle.DataAccess.Client.OracleException ORA-06502: PL/SQL
    I have determined by trial and error that the problem is in passing the VARCHAR2 parameters. I do not have this problem with the Microsoft Oracle Provider. Can someone help me with what I'm missing? Thanks.

    Note that I have not tested your code... but, it looks like you are using bind by position (which is the default). In this mode the return value needs to be bound first since ODP.NET will generate code similar to this:
    :ret_val := proc(:1, :2,...);That's where I would start anyway.
    Hope that helps a bit,
    Mark

  • Oracle.DataAccess.Client stored procedure ORA-01403

    Hello,
    Microsoft announced that System.Data.OracleClient is deprecated and will be no more supported so I try to use the driver Oracle.DataAccess.Client after having installed ODP.
    It works fine except for stored procedures.
    After calling a stored procedure that increases a value in a column I meet this error :
    ORA-01403: no data found
    ORA-06512: at "XXXXX.MY_FUNCTION", line 15
    ORA-06512: at line 1
    Oracle Data Provider for .NET
    at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure, Boolean bCheck)
    at Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, String procedure, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, Boolean bCheck)
    at Oracle.DataAccess.Client.OracleCommand.ExecuteNonQuery()
    The same function worked very well during several years with OracleClient !
    Does any body has an idea ?
    Best regards
    Alan

    Hello,
    I had the solution by an other forum.
    It's necessary to define the property BindByName at true.
    The driver OracleClient did that by default not the driver DataAccess !
    Best regards

  • Oracle.DataAccess.Client.OracleException ORA-12154:

    Hi Experts,
    Please I need yours assistance.
    I developed an automation tool in visual studio 2010 using c# and oracle framework Oracle.DataAccess.Client. However, the tool is working properly on my machine but when deployed the tool to a different machine that has .net 4.0 framework installed, and when I tried to run the tool I kept getting the following error message below:
    "************** Exception Text **************
    Oracle.DataAccess.Client.OracleException ORA-12154: TNS:could not resolve the connect identifier specified at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure, Boolean bCheck)
    at Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, Object src)
    at Oracle.DataAccess.Client.OracleConnection.Open()
    at LogicalDateValidator.Form1.conn(String oradb)
    at LogicalDateValidator.Form1.button3_Click(Object sender, EventArgs e)
    at System.Windows.Forms.Control.OnClick(EventArgs e)
    at System.Windows.Forms.Button.OnClick(EventArgs e)
    at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
    at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ButtonBase.WndProc(Message& m)
    at System.Windows.Forms.Button.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)"

    http://www.oracle.com/technetwork/topics/dotnet/odt-faq-085407.html#ORA-12154:_TNS:could_not_resolve_the

  • ORA-01816 when running with Oracle Instant Client

    good morning
    we are running the same SQL script on 2 computers.
    - native system with DB
    - via Oracle Instant client
    when running via the instant client i get the following error.
    ( select to_char(to_date('1970-01-01') + "DATE" / 86400000, 'YYYY-MM-DD') "CD", logical_name
    ERROR at line 2:
    ORA-01861: literal does not match format string
    thanks for any hint

    It probably works on one and not the other because you have set the NLS_DATE_FORMAT for one system to match the format of the string you are passing in, so Oracle knows how to do the implicit conversion.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • TOAD 8.5 with Oracle Instant Client 10: ORA-03134

    Hi,
    I have tried TOAD 8.5.0.50 and also TOra 1.3.16 to connect to the database via Oracle Instant Client 10, but I am restricted with this error message:
    "ORA-03134: Connections to this server version are no longer supported."
    Does anyone have any idea what is wrong? Earlier version of TOAD works alright. We are using Oracle 8i. Are there any compatibility issues between Oracle database version with Oracle Instant Client version?
    Thanks.

    Just want to share with everyone. This is a reply that I got from another forum:
    this is a oracle bug!
    connections with the 10g client are supported to 8.1.7.0 and above.
    the bug in the client causes this error.
    you are only able to connect to 8.1.7.4 and above.
    i made a service request but oracle is not able to patch the
    instant client.
    you have to use 10.1.0.3 client or above
    Regards.

  • Oracle.DataAccess.Client.OracleException: ORA-1031: insufficient privileges

    Hi,
    I am using Visual Studio 2003. I am creating a ASP.NET Web Application NOT Windows Application.
    I logged into Oracle as a DBA, but I got this message.
    I wasn't sure if I missed anything when working on the Web.
    Thanks for your help.
    Luan

    Hi Chris,
    Thank you so much for your help.
    Yes, I use oracle explorer. Sorry, the code is kind of long. Here is the code:
    using System;
    using System.Collections;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Web;
    using System.Web.SessionState;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.HtmlControls;
    namespace WebBank
         /// <summary>
         /// Summary description for WebForm1.
         /// </summary>
         public class WebForm1 : System.Web.UI.Page
              protected Oracle.DataAccess.Client.OracleDataAdapter oracleDataAdapter1;
              protected Oracle.DataAccess.Client.OracleCommand oracleCommand1;
              protected Oracle.DataAccess.Client.OracleConnection oracleConnection1;
              protected System.Web.UI.WebControls.Button btnOK;
              protected System.Web.UI.WebControls.DataGrid DataGrid1;
              private void Page_Load(object sender, System.EventArgs e)
                   // Put user code to initialize the page here
                   //DataSet ds = new DataSet();
                   //oracleDataAdapter1.Fill(ds);
                   //DataGrid1.DataSource = ds.Tables[0];
              #region Web Form Designer generated code
              override protected void OnInit(EventArgs e)
                   // CODEGEN: This call is required by the ASP.NET Web Form Designer.
                   InitializeComponent();
                   base.OnInit(e);
                   DataSet ds = new DataSet();
                   oracleDataAdapter1.Fill(ds);
                   DataGrid1.DataSource = ds.Tables[0];
              /// <summary>
              /// Required method for Designer support - do not modify
              /// the contents of this method with the code editor.
              /// </summary>
              private void InitializeComponent()
                   this.oracleDataAdapter1 = new Oracle.DataAccess.Client.OracleDataAdapter();
                   this.oracleCommand1 = new Oracle.DataAccess.Client.OracleCommand();
                   this.oracleConnection1 = new Oracle.DataAccess.Client.OracleConnection();
                   // oracleDataAdapter1
                   this.oracleDataAdapter1.SelectCommand = this.oracleCommand1;
                   this.oracleDataAdapter1.RowUpdated += new Oracle.DataAccess.Client.OracleRowUpdatedEventHandler(this.oracleDataAdapter1_RowUpdated);
                   // oracleCommand1
                   this.oracleCommand1.CommandText = "SELECT * FROM SYSTEM.CUSTOMER";
                   this.oracleCommand1.Connection = this.oracleConnection1;
                   // oracleConnection1
                   this.oracleConnection1.ConnectionString = "User Id=system;Data Source=TESTDB;Password=passwd;Persist Security Info=true;";
                   this.oracleConnection1.InfoMessage += new Oracle.DataAccess.Client.OracleInfoMessageEventHandler(this.oracleConnection1_InfoMessage);
                   this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
                   this.Load += new System.EventHandler(this.Page_Load);
              #endregion
              private void oracleConnection1_InfoMessage(object sender, Oracle.DataAccess.Client.OracleInfoMessageEventArgs eventArgs)
              private void oracleDataAdapter1_RowUpdated(object sender, Oracle.DataAccess.Client.OracleRowUpdatedEventArgs e)
              private void btnOK_Click(object sender, System.EventArgs e)
                   DataSet ds = new DataSet();
                   oracleDataAdapter1.Fill(ds);
                   DataGrid1.DataSource = ds.Tables[0];

  • Windows 7 64 bit, Access 2010 32 bit, Oracle 10G client 32 bit, Oracle database 10.2.0.4 64 bit

    I am trying to connect to an Oracle 10.2.0.4 database from Windows 7 OS - 64 bit using
    Access 2010 32 bit and Oracle 32 bit client version 10.2.0.1 installed on PC.
    My user requires a 64 bit Windows 7 OS for other needs.
    Oracle ODBC driver is 32 bit from Oracle 32 bit client.
    In Windows 7 OS 64 bit, ODBC DSN setup software is located in:
    C:\Windows\system32\odbcad32.exe for 64 bit drivers - all DSN types setup and
    C:\Windows\syswow64\odbcad32.exe for 32 bit drivers - USER DSN setup
    When I run the ODBC Data Source Administrator, I see the Version number is 6.1.7601.17632
    I setup a User DSN using the 32 bit odbcad32.exe with a 32 bit ODBC driver.
    Our Oracle TNSnames.ora file has our standard entries which have worked for years
    (Windows 7 OS 32 bit and everything 32 bit has connected for years too)
    So when I configure an ODBC User DSN and leave all the default settings and press the TEST Connection button, it says it works.
    But when I open the existng Access 2010 database (which does connect to Oracle in a Windows 7 32 bit PC environment),
    1. I go to Access External Data ribbon tab / Link to the Data Source by creating a linked table / press OK
    2. I select the Machine Data source = to the USER DSN name / press OK
    3. The Oracle ODBC Driver Connect Window opens with Service Name = USER DSN and User Name and it wants a Password
    4. I enter the correct password and I get the following error message:
    ODBC call failed
    [Oracle][ODBC]{Ora]ORA-12154: TNS: could not resolve the connect identifier specified
    (#12154) [Microsoft][ODBC Driver manager] Driver's SQLSetConnectAttr failed IM006 0
             [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed (#0)
    I have tried a quite a number of fixes:
    I have gone into the PC registry and cleaned out most or all off the Oracle client keys and
    reinstalled the Oracle 32 bit 10g client. It didn't fix the error.
    I read about the Oracle instantclient-basic-win32-10.2.0.4.zip with ODBC modules but I have Windows 7 64 bit.
    Anyone experienced a problem like this and have a fix?

    Thank you for your reply.
    I did not get to try it because after I entered my question, I did a lot more internet Googling.
    I found this small comment:
    “There's a known issue where you get a 12154 error message running 32 bit software on a 64 bit OS using client 10201, and
    It should be resolved by patching the client to 10204, which you do by applying the 10204 database patch to it.”
    I searched around for the 10.2.0.4 patch for 10.2.0.1 Oracle 32 bit client.
    When I contacted my Oracle DBA to ask if he had that patch, he said that I should try the 11g 32 bit client on the Win 7 64 bit PC.
    We have a 10.2.0.4 Oracle database but he said the 11g client should work fine.
    I tried it and it solved the problem!
    With so many settings, configurations and permissions involved in ODBC, I am inclined to think that I missed a setting but
    it was a bug in the 32 bit client 10.2.0.1.
    Solved.

  • JVM Crash With Oracle OCI Client

    Hi
    My app is running on Windows 7 64 bit, Jboss 4.2, launched from Eclipse, and runs fine when I use the Oracle thin client (10g, 32bit). However when I try to use the OCI client, I get this:
    # A fatal error has been detected by the Java Runtime Environment:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d906f21, pid=4740, tid=5656
    # JRE version: 6.0_21-b07
    # Java VM: Java HotSpot(TM) Client VM (17.0-b17 interpreted mode windows-x86 )
    # Problematic frame:
    # V [jvm.dll+0x106f21]
    I'll post the contents of the log in another message because it's too long to fit here. Using the thin client is NOT an option unfortunately as the thin driver is missing some functionality that we need to use.
    I've installed the Oracle client in a folder that doesn't contain spaces, or parentheses (c:\oracle\.....) and the JDK is installed in a similar directory (c:\java\...)
    I've tried both 32bit and 64 bit versions of JDK1.6 and the Oracle 10g client. I have also tried mixed mode and interpreted mode JVM (Xint) with the same results.
    ojdbc14.jar is in my JBoss server's lib directory, and ocijdbc10.dll is in my path (c:\windows\system32).
    Anyone any ideas what's going wrong? Been trying to fix this for days now. Appreciate any help.
    Richard

    Sorted it (well, my colleague did anyway). We installed a fresh version (32 bit) JDK (6u21), the Oracle 10g (10.0.3) client (32 bit) and made sure that there were no other OCI DLLs anywhere. I had some in the JBoss bin directory which I had copied in earlier that morning and forgotten about. So, the only OCI DLLs I have now are in Oracle's installation directory. Once we removed those erroneous DLLs from the JBoss directory, the server made the connection successfully. I don't full understand why, because I was getting the error earlier without the erroneous DLLs being present too, so I think there was some additional interaction going on somewhere. One other thing that may have been important is the tnsnames.ora file I had. We found a post that said the tnsnames file generated by the installer, when it only has one entry in it, can include dodgy whitespace at the end which can cause problems. So, just to be on the safe side we added a second entry (to another DB) - maybe that was something to do with it.
    So, the Oracle 10g client and OCI driver DOES work on Windows 7 64 bit (at least for me anyway)

  • Oracle 11g client / oracle 10g express edition in one computer

    Hi All,
    I already have Oracle 11g Client installed in my computer. I wanted to Install Oracle 10g Express Edition in the same computer. So that I shall work with that even when I am not in the network. My Question is : Will installing both of 11g Client and 10g XE will cause conflict in my computer or is it ok to install both. Any suggestion/information is appreciated.
    Regards,
    RRR

    Hi,
    i have installed oracle oraclient11g_home1, want to know the changes in tnsnames.ora.
    below tnsnames.ora file got created after installation. I dont know
    CONNECT_DATA=
              (SID=<oracle_sid>)
              [ (GLOBAL_NAME=<global_database_name>) ]
    <alias>= [ (DESCRIPTION_LIST =  # Optional depending on whether u have
                        # one or more descriptions
                        # If there is just one description, unnecessary ]
         (DESCRIPTION=
         [ (SDU=2048) ]     # Optional, defaults to 2048
                        # Can take values between 512 and 32K
         [ (ADDRESS_LIST=    # Optional depending on whether u have
                        # one or more addresses
                        # If there is just one address, unnecessary ]
         (ADDRESS=
              [ (COMMUNITY=<community_name>) ]
              (PROTOCOL=tcp)
              (HOST=<hostname>)
              (PORT=<portnumber (1521 is a standard port used)>)
         [ (ADDRESS=
              (PROTOCOL=ipc)
              (KEY=<ipckey (PNPKEY is a standard key used)>)     
         [ (ADDRESS=
              [ (COMMUNITY=<community_name>) ]
              (PROTOCOL=decnet)
              (NODE=<nodename>)
              (OBJECT=<objectname>)
    ... # More addresses
         [ ) ] # Optional depending on whether ADDRESS_LIST is used or not
         [ (CONNECT_DATA=
              (SID=<oracle_sid>)
              [ (GLOBAL_NAME=<global_database_name>) ]
         [ (SOURCE_ROUTE=yes) ]
         (DESCRIPTION=
         [ (SDU=2048) ]     # Optional, defaults to 2048
                        # Can take values between 512 and 32K
         [ (ADDRESS_LIST= ]     # Optional depending on whether u have more
                        # than one address or not
                        # If there is just one address, unnecessary
         (ADDRESS
              [ (COMMUNITY=<community_name>) ]
              (PROTOCOL=tcp)
              (HOST=<>)
              (PORT=<1521>)
         [ (ADDRESS=
              (PROTOCOL=ipc)
              (KEY=<ipckey (PNPKEY is a standard key used)>)
         ...           # More addresses
         [ ) ]           # Optional depending on whether ADDRESS_LIST
                        # is being used
         [ (CONNECT_DATA=
              (SID=<oracle_sid>)
              [ (GLOBAL_NAME=<global_database_name>) ]
         [ (SOURCE_ROUTE=yes) ]
         [ (CONNECT_DATA=
         (SID=<oracle_sid>)
         [ (GLOBAL_NAME=<global_database_name>) ]
         ... # More descriptions
         [ ) ]     # Optional depending on whether DESCRIPTION_LIST is used or not

Maybe you are looking for

  • Hi, Can anyone tell me if you can have two separate itunes accounts on one laptop?

    Hi, Can anyone tell me if you can have two separate itunes accounts on one laptop? If so can you please let me know how I set this up. I already have my itunes account loaded on and have another on a separate hardrive that I want to be able to use on

  • Qosmio F50-10G - Windows Vista 64-bit and drivers

    I've been using Qosmio F50-10g for bout 20 days now. It has 32 bit operating system on and i think there is no 64 bit driver support yet. If i am not wrong x305 series have 64 bit driver support and the configuration of two laptops are similar. I was

  • Domain did not find after 2 weeks

    Hello everyone We have both Macs and PCs with 1 Mac Server 10.4.8. The PCs have to join the domain. We created PDC with domain: MEDIER. It was working good. But new PCs could not find MEDIER after 2 weeks. So I have to stop service and restart servic

  • Officejet 7510 duplex printing

    i bought this officejet 7510 wide format this week but i cannot print in duplex. can someone tell me whether it is possible or not?

  • "how to read serial port using labview 6.0"

    sir i am doing a project and is in a need to extract data from serial port. can anyone help me