ODBC Connection  Issue

Dear All,
In my system installed three Oracle client version 10g,9i,8i.
I have connected with odbc for oracle through visual basic 6.0.
Acutally my problem is where to be place the tnsnames.ora file?
Please suggest me.
Regards
Sudhakar P.

Sudhakar P wrote:
In my system installed three Oracle client version 10g,9i,8i.Why 3 different client versions? This is not exactly a good idea. Note that a DLL is uniquely identified by the Windows kernel by its physical name. This means that if you for example have 3 different OCI.DLL files, only a single one of these can be loaded at a time. Mix that DLL with other DLLs from another driver version, and you will have a very unstable client driver stack.
I suggest that you only install and use a single Oracle client driver version - and preferable a later version and not an old discontinued and unsupported version like 8i.
The "+best+" version to use for a s/w developer writing Oracle clients, is Oracle's Instant Client. This provides you with the minimal client footprint needed, is easy to use (no installation - simply unzip) and is royalty free (meaning that you can include it as part of your Oracle client s/w developed).
Acutally my problem is where to be place the tnsnames.ora file?As Daniel said - alternatively the location to the directory containing the tnsnames.ora file can be set via the TNS_ADMIN environment variable.
Also note that you do not need the tnsnames.ora file from client s/w perspective. Your can code the client to manually create and use a TNS connection string - as oppose to using a TNS alias that need to be resolved by the OCI driver stack via the tnsnames.ora file. Or you can code the client to support both.

Similar Messages

  • Excel ODBC Connection Issues

    I'm having some issues importing external data from an Oracle 9i database.
    Here is what is happening:
    I am initially able to import data from the table I want to into Excel.
    I do this through "Data -> Import External Data -> New Database Query" where I have my .ORA data source. I'm able to log in using my user and password and import the table. My problems come after I import this first set of data.
    If I try to "Edit Query…" I get an error box that says "[Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed".
    If I try to "Refresh Data" I get two error boxes. The first is just: "[Microsoft][ODBC driver for Oracle][Oracle]" and the next says: "[Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed". It then prompts me for the User name and password of the DB I'm connecting and after I enter the information, I get the same two error messages.
    Also, if I attempt to establish another connection following the "Data -> Import External Data…" steps I run into a different problem. Upon entering the information for the User Name and password prompt I get two error messages. One says "!" and the next box says "Couldn't read this file". Once I click "OK" in those boxes, the Microsoft Query window automatically opens with nothing in it.
    I can't seem to figure out why I can initially pull down data and then cannot succeed afterwards. I'm unable to connect to the DB I have through Excel until I completely closed all Microsoft Excel instances.
    I also use this data source in Microsoft Access without any problems.
    My Excel version is 2003.
    I'm using Oracle Drivers I'm using are from an "Instant Client" package.
    Any thoughts why I'm having these connections issues?
    Thanks in advance.

    This issue is closed.
    The solution was:
    "Data -> Import External Data -> Import Data"
    Select "New Source" and select the "Oracle" data source and filled in the appropriate information. This was similar to the database query but it actually works.

  • Sybase ODBC Connection Issue in Windows Server 2008 R2

    Hi ,
    We have three sybase odbc connection in Windows Server 2008 R2 server . One connection is not working now, it was working fine before 30 days.
    I can ping the server address successfully from BO Server through "dsedit".
    i have created the same connection in a diffrent server (Win server 2003),and it is working fine.
    Sybase ASE Driver version 3.50.00.10
    Please help me to overcome this issue.
    Thanks,
    Saurabh upadhyay

    Hi Saurabh,
    The error message you are reporting is telling us that you are using the very old ctlibrary ODBC Driver.
    That is pretty much the only way you can get that error.
    Run from a command prompt,  isql -v  that will return a version string.  We can then verify the version.
    However, the old ODBC driver will function with the newer client.
    The old driver would read the sql.ini for the network address, and was also a translation layer between
    the client application and the ASE.
    Both were eliminated when Sybase released the "Native" ODBC Driver.
    The ct_connect error states that the connection attempt is using ctlibrary.
    In your ODBC configuration, Check to see in the ODBC Administrator and check to make
    sure that the driver you are using for your DSN is the Adaptive Server Enterprise and not the
    Sybase ASE ODBC Driver.
    Also  check the Drivers tab in the ODBC Admin.  See what the actual file is listed for the driver.
    sysybnt.dll
    syodase.dll  are unsupported drivers.
    It would be to your advantage to open an incident with SAP for more complete support
    Thank you,
    Kevin

  • ODBC Connectivity Issue

    We connect fine to another Oracle database via DSN.
    However, when attempting to connect to a different database using a Driver={} and a dbq="" reference to specify the service name (which matches in tnsnames.ora),
    the ODBC Dialog Box appears and challenges the credentials. A retry results in an ORA 12154 error : "TNS Could not resolve the connect identifier specified".
    The credentials work fine when accessing the database via SQL Developer. However, that connection is a BASIC one.
    When I select TNS as the connection type and use the TNS, that connection fails when being tested.
    The behavior hints at ODBC driver issues. What is missing here ? Does the connecting workstation need a tsnames.ora file entry ?

    I think I figured this out. it was the tsnames.ora file.
    It didn't have the new database as an entry.
    What was really strange about this: we added a System DSN but never referenced it in the connection string.
    As long as the DBQ=Service Name reference was used, the connection worked fine.
    I asked my manager about tsnames.ora and how it was being maintained. He said "thru LDAP".
    Hmmm.....apparently, that sync mechanism is not working well at all.

  • ColdFusion 9 ODBC Connection Issue

    I have a 64 bit ODBC (OpenEdge/Progress) driver installed and it works fine in other applications but when I try to register the DSN in ColdFusion it gives me the error listed below.  I've tried to research this error and everything I found and tried has not worked.  Any ideas on what the issue is or how to resolve it?
    java.sql.SQLException: [Macromedia][SequeLink JDBC Driver][ODBC Socket]internal error: The specified DSN contains an architecture mismatch between the Driver and Application
    The root cause was that: java.sql.SQLException: [Macromedia][SequeLink JDBC Driver][ODBC Socket]internal error: The specified DSN contains an architecture mismatch between the Driver and Application

    Never seen the error before, but an "architecture mismatch" would imply you're trying to use a 64-bit driver with 32-bit ColdFusion.
    What's the setup of the server?
    O.

  • Jdbc odbc connectivity issue

    I have made one system dsn ...in some folder..then in my jsp page my
    Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
    Connection myConn = DriverManager.getConnection."jdbc:odbc:Employee");im getting error like no data source...and its finding in root directory like c:/document seting etc etc ..not where my db lies
    if i put my db in root directory .then code wrks fine..but is it taking that root directory

    well well the code would not consider nothing here the microsoft native bridge driver has to find appropriate database.
    Are you sure u have created an entry in Odbc Data Source Administrator --> System DSN -> and you have a name called "Employee" out their pointing to appropriate database which you are trying to connect.

  • Error trying to Schedule a report in my CMC - Connectivity issue ODBC

    Hi,
    I'm in a world of pain at the moment with my CMC. I can't schedule a report to even distribute them to a BO inbox.
    Setup : BOXI 3.1 on RH linux Ent 5.0 with data server being on a remote machine.
    The error I receive is
    A database error occured. The database error text is: unixODBCDriver ManagerData source name not found, and no default driver specified. (WIS 10901)
    Where do I define my default driver? in odbc.ini in the bobje folder?
    Are the unixODBC and associated MySQL connectors needed for BOXI 3.1? I've only found a BO doco related to R2. This doco only relates to the BOE115_AUDIT data.
    Thanks for any suggestions, Ed

    Hi Ed,
    This most likely relates to the odbc connection being used in your universe. (I am assuming this is a Web I report). In order for it to work the ODBC connection has to be on the server that is running the WebIntelligenceProcessingServer. If it is not then it will not work
    Regards
    Alan

  • Issues while readin SQL server via ODBC connection

    Hi Experts,
    I havea SQL server db as a source. I have configured the Datastore using ODBC connection. Developed a job which simply reads a table and populates into a flat file. when we run the job, it doesnt show any progress, it just stops after a log message "initializing data store, processing job" . I looked at the job logs file on the Job server, its incomplete as well.
    One thing is that, im able to see the data when i go under data store and view data option for that particular table.  My other jobs works just fine with oracle data base sources. We restarted the BODS server as well, but it doesnt  help. Any idea on what might be going on ?.
    Thanks for your time.
    Regards,
    Narayanan

    Hi Narayanan ,
    There are two steps:
    1) Set up the ODBC connection correctly on your Linux server
    http://wiki.sdn.sap.com/wiki/display/EIM/ToconfigureDataDirectODBConLinuxand+Unix
    (test with isql command line if connection on that server to the SQL Server is working)
    2) Select ODBC connection in the datastore and then put the name of the connection you defined. (do not choose Database - SQL Server)
    Norbert

  • 11g 64-bit unable to create ODBC connection

    Hello,
    I am currently facing issue related to ODBC connection. Details of configuration is as follows
    OS: Vista 64 Home Premium
    Oracle DB 11g 64bit: ver 11.1.0.6.0,plus the addition of the fix for bug 7389110 (as per release notes)
    ODBC driver location: C:\app\oracle\product\11.1.0\db1\BIN\sqora32.dll
    It appears and works well from 32 bit ODBC connection manager. However, it's not visible/available from 64 bit ODBC connection manager. Oracle installation repository appears under 64 bit area ("Program Files") and not under "Program Files (x86)". Assuming it might be a problem with installation I have also tried copying registry entries under HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ODBC with no luck.
    Any help to create ODBC connection is much appreciated
    Thanks,
    Hemant
    Please do not respond to this question here. I am moving it to ODBC forum area
    Edited by: user6868322 on Aug 5, 2009 2:04 PM

    Opening new tread under ODBC forum and closing this

  • ODBC connection not able to see all schemas

    Hi everyone,
    We have noticed an unusual problem that just recently started. In our database, I have created a read-only user - only has the ability to connect to the database, and SELECT ANY TABLE. Then we have some applications (Crystal Reports and Lotus Notes Agents) that use this user to query data. The applications use an ODBC connection, and when we initially set this up, everything worked beautifully.
    However, suddenly we have noticed that the ODBC connection is not able to see all of the schemas in the database. We have tested and confirmed this - using either 9.02 ODBC or 10.01, this happens with both of them. I created a couple new ODBC connections, one for each version, then I try to create a new Crystal Report, using this ODBC connection - when I connect using the read-only user, it connects just fine, but when it shows me all of the schemas available, I am only seeing about half of them (and of course not seeing the one that I really need to see).
    However, when I use Microsoft Access, and try to import some External Data, and I use the same ODBC connections, then I AM seeing all of the schemas.
    Has anyone ever seen anything like this? Any ideas on what I can do to troubleshoot?
    Thanks,
    Brad

    I'm trying to get this issue figured out. Can you
    tell me what you mean when you ask me to log in
    directly as the same user using ODBC and query
    ALL_TABLES - how would I do that?Using whatever Oracle database account you use in Crystal, log in to the database using SQL*Plus (or your favorite GUI like SQL Developer) and run a query like
    SELECT owner, table_name
      FROM all_tablesDoes that query show all the tables you expect, or are you missing some?
    Also, you mention a parameter in the ODBC API that
    controls which schemas are returned - is there any
    way to see that value?An ODBC trace might show the value, I don't recall if the actual value is written out in the trace. Different front-end tools often have a place that allows you to filter out certain schemas, which is generally done by passing in a parameter to this ODBC API call. I don't know enough about your tools, though, to know where this might be.
    Are there any other ODBC drivers I could try?There are plenty of third party ODBC drivers out there, but I would tend to be suprised if the ODBC driver was at fault here. You could also try patching the ODBC driver and/or Oracle client to the most recent patchsets.
    Justin

  • OBIEE 11g ODBC connectivity error

    Hi all,
    I am getting the following error when I tried to access a simple query through Answers.
    "*Odbc driver returned an error (SQLExecDirectW).*
    *Error Details*
    *Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P*
    *State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 16001] ODBC error state: IM002 code: 0 message: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified. (HY000)*
    *SQL Issued: SELECT s_0, s_1, s_2 FROM ( SELECT 0 s_0, "BISample"."Product"."BRAND" s_1, "BISample"."Target"."REVENUE" s_2 FROM "BISample" ) djm*"
    What I did was
    1. Create a DSN 'orcl', 32 bit Oracle ODBC driver. Tested and worked against the Oracle database.
    2. Import metadata using Local, ODBC 3.5 and DSN = orcl
    3. Build a simple BMM and subject area
    4. In the phyiscal layer, right click on a table, and select view data/update row count. Error with message "The connection has failed"
    5. Hoping for the best, create a simple query in answer and got the above odbc driver error in results tab.
    Interestingly, if I edit the connection pool and use OCI (my SID is also orcl), then everything works fine.
    I'm new to OBIEE and hope someone can tell me if I have missed a step or make any mistakes!
    Thanks!
    Regards
    Han Kiat

    Hi All,
    I am able to connect SQL Server database with OBIEE 11g RPD offline and imported metadata and verified update row count/view data but when i was trying to publish the same RPD the data is not returning also "update row count/view data" is giving and error "The connection has failed."
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 16001] ODBC error state: IM002 code: 0 message: [DataDirect][ODBC lib] Data source name not found and no default driver specified. (HY000)
    Environment:
    OBIEE 11g/WLS 10.3.3/Oracle database 11g installed on RHL 5
    Client tools are installed on local Vista 32 bit system.
    Oracle database is working fin, where as SQL Server is giving issues.
    You want me to create a ODBC connection in RHL 5 server to connect to SQL Server ? i am little bit confused here how to create !
    same time i have created ODBC for oracle apps database and imported and able to view data in RPD when i am in Online mode.
    When i open RPD in online mode and trying to import the data i dont have access to local machine ODBC's which is expected and if i change to "Remote Server" nothing is showing here.
    Appreciate your comments on the above.
    Thanks

  • Oracle RDB driver – Version 3.01.00.01 Connectivity Issue

    I have a SQL Server 2000 extended stored procedure connecting to an Oracle RDB data server via an ODBC connection (using Oracle RDB driver – Version 3.01.00.01). The SQL Server 2000 runs on a Windows 2000 Server.
    This extended stored procedure opens up multiple database connections and maintains them for processing. Usually, everything runs fine.
    However, every so often, we have connectivity issues. What happens is as follows:
    When we bring a station down and then try to reconnnect, our connection is denied, and we get the error: "recv() unexpected close Ret 0 Err#0 UNKNOWN Unknown WINSOCK Error 0". (This error is logged by the .dll running in the SQL Server processing space.) From the first time we receive a connectivity error like this until the Oracle RDB box is rebooted, we cannot establish another new ODBC connection to that Oracle RDB box --- whether we are trying to establish it programmatically or just via a "test connection" in the ODBC dialogue on the SQL Server box.
    We can, however, establish an ODBC connection to another, identically configured, Oracle RDB box from the SQL Server box (without restarting the SQL Server box).
    Has anyone had experience with instable connections from Windows system using the Oracle RDB driver to connect to the Oracle RDB? If not, can anyone point me in a direction that would help me research this? I am more familiar with SQL Server than Oracle, and the Oracle DBA on the other end isn't very accessible.
    I'd really appreciate any help anyone can give me.
    Thanks!

    I got same error.. Are you already solve that problem? how? please help me. Thanks

  • Visio Database Wizard fails - ODBC connection to MS SQL

    When I try to create an ODBC connection in Visio's 2010's Database wizard I get the error: "Cannot set the database context information. Additional error information:ODBC Error: s1009. Database cxweba does not exist."
    Note that the database name is cxwebapp_bkk. I get the same error if I connect to any database on that server, and it always truncates the name in the error message (if that is a hint to the error). 
    Using Visio 2013, after connecting to the database: when I select the database object I get the error message:  "The selected table has only one field or contains no definition information. The Database Wizard requires a minimum of one key field
    and one additional data field."
    I have this problem using both SQL Server driver (6.02.9200.116384 and SQL Server Native Client 11.0 (2011.1102.2100.60).
    I do not have this problem connecting to a MYSQL database with either version of Visio, nor do I have this problem when I link link to the same SQL database in a drawing and link shapes in that drawing using the "Link Data to Shapes" under the
    Data tab.

    Hello,
    What's the version of the SQL Server instance you connect to? It seems that the Database Wizard in Visio 2010 not work well with the Microsoft SQL Server ODBC driver. Did you try to use the Generic OLEDB Provider for SQL Server?
    Since the issue is more related to office Visio, please post the question in the following forum. More experts there will assist you:
    Visio General Questions and Answers for IT Professionals
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • ODBC Connection problem with SQL Native Client driver with CR 11

    I am having an issue connecting my crystal reports to an ODBC connection that uses the SQL Native Client driver (Version 2005.90.2047.00).  My reports work fine when using the SQL Server driver (Version 2000.85.3006.00).   The ODBC connection is setup to use Integrated Windows Authentication and is defaulted to go to the correct database.  When I test the ODBC connection in the 'ODBC Data Source Adminstrator' it connects fine.
    The reports are trying to connect to stored procedures on a SQL Server 2005 database.  I can log onto the ODBC connection in CR X1.  When I try to set the Datasource connection for one of my reports to the ODBC connection I created, I get the following error:
    'Some tables could not be replaced, as no match was found in the new data source.  Please specify the table required for any unmodified tables.'
    When I drill down to the SP and try to update the datasource location of the SP directly I get the following errors:
    'Data Object cannot be opened/accessed'
    and
    'Unknown Database Connector Error'
    As I said, I don't have any problems when using the SQL Server 2000 driver.  One other thing to mention, when I initially connect to the ODBC connection in CR X1 with the SQL Native Client driver, it asks for a username and password.  I leave these blank since I'm using Windows Authentication.
    Any advice would be appreciated.
    System:
    Windows XP
    Service Pack 3
    Crystal Reports XI:
    Product Version 11.0.0.1282

    Hi Jeff,
    I just tried to create a new report using the native driver and there is no option to use Trusted Authentication. This would be why it's failing.
    I don't believe we fully supported Native driver in Cr XI. Try downloading CR Xi R2 and install SP6 from this info:
    Go to this link: http://www.sdn.sap.com/irj/boc and download the trial version of CR XI R2 and use your XI keycode, then apply the patches which you can get to by clicking on the BusinessObjects tab above, then Downloads.
    Direct link to the Trial version: http://www.sap.com/solutions/sapbusinessobjects/sme/freetrials/index.epx
    I tested it in R2 and the Trusted Authentication option is there so your reports should work.
    Thank you
    Don

  • ODBC--connection to 'SQL Serverservername' failed for one user but not another

    In Win7, we're linking tables in an MS Access 2010 db to tables in a SQL Server 2008 R2 db. The driver user by the File dsn is SQL Server version 6.01.7601.17514 & we're using SQL Server Authentication.
    For some reason, one user gets the msg "ODBC--connection to 'SQL Serverservername' failed" before they're even asked for a password, but for other users, the prompt comes up and when they uncheck the Windows Auth box, they enter their password
    and connect successfully to the SQL Server db.  Both users have db_datareader access to the SQL Server db.
    I had the user that gets the error msg log onto my PC and they get the same error (yet it works for me.)
    This user was, however, able to successfully relink the tables, but then when we closed the access db and opened it again, the user got the "ODBC--connection..." error agin.
    I'm stumped as to why this is happening for one user.

    Hello Knellen,
    Please help to collect more log information regarding this issue, such as windows event log, SQL Sever log information. They are helpful for us to troubleshoot it.
    Regards,
    Elvis Long
    TechNet Community Support

Maybe you are looking for

  • Can't login to obiee 11g analytics

    Hi Guys, Client has installed obiee 11g in a server sitting at different place. We have deployed our own repository and catalog. Now we can't login to obiee analytics. It does not accept any username or password created in weblogic console. But if we

  • After installing PSE 10 on OS X Lion, no longer able to select pictures from iPhoto library

    I've downloaded and installed Photoshop Elements 10 on my MacBook Pro, which is running OS X 10.7.4. After installation and importing the photos from iPhoto, I noticed that I am no longer able to select images from my iPhoto library from other applic

  • Adobe Acrobat 11.0.06 Crashing after scan

    Hello I am facing problems esp when using 'Create -> PDF from Scanner ' I am using Cannon MX472 multifunction printer and after it completes the scans I see the scanned pages for few brief second and then it crashes and I have to do the scan all over

  • Web Service Testing Problem

    Hi All,         I create a new customize web service for service confirmation through Web UI in CRM7.0 .I activate the service in Productive mode .After that 2 new button is coming (WSDL and Test Page) in same page.when i click on WSDL button ,i got

  • 8i on Linux and Recovery Manager

    Where are the recovery manager rdbms/admin scripts/package code for the 8i distribution? 'catrman.sql' did not install with my 8i EE for Linux.