Cannot connect to Oracle DB in VS2008 Server Explorer, but can in VS2005?

I can connect to our Oracle server using VS2005 Server Explorer, but when I try the same operation, the exact same way in VS2008, I get the following error:
ORA-12154: TNS:could not resolve the connect identifier specified
My system is:
Windows XP SP2 (32bit)
VS2005 and VS2008
ODAC 11g 11.1.0.6.21 installed with all options
The Oracle Server is version 10.
Any help would be appreciated.

Thank you cshay for your reply, however I have already copied the TNSNAMES.ORA from the old installation I had of 9.2 to the new ORACLE_HOME/NETWORK/ADMIN/ folder. I had already seen the documentation which said I should do that - or rather deduced that I didn't have to retype it like it said and just copy the file over.
In any case, the VS2005 would be using the same ORACLE_HOME as VS2008 - I have already seen the documentation which states that all references would automatically point to the new installation.
I have also seen a case where the solution was to put add an Oracle.KEY file to the ORACLE_HOME folder - That file was already there and the key in the registry was there as well.
So no answer yet.

Similar Messages

  • Cannot connect to Oracle database from SQL Server

    Hi
    We have set up a SQL Server linked server and tried to use this SQL Server linked server to connect to Oracle database. We are using SQL Server 2008 and Oracle client 11g 11.02.00.01. However, we got this error message:
    Msg 7347, Level 16, State 1, Line 1
    OLE DB provider 'OraOLEDB.Oracle' for linked server 'OurLinkedServer' returned data that does not match expected data length for column '[OraOLEDB.Oracle].Ourfieldname'. The (maximum) expected data length is 6, while the returned data length is 2.
    We are able to connect some of the tables ok but some of the tables are not connected and got the above error message.
    Any suggestions are greatly appreciated.
    Thanks a lot
    Tom

    Hi
    Here is more information. We just found out that the Oracle database team changed the character set to something else and then they changed it back to UTF8.
    Currently, it is using UTF8 character set on the Oracle side. Will this causing us this error message on our sql server linked server?
    The error message said "The (maximum) expected data length is 6, while the returned data length is 2."
    This refers to a field/column with char(1)
    Any suggestions are greatly appreciated
    Thank you
    Tom

  • Cannot connect to SMB share as a Registered User, but can connect as guest.

    I see all of our company servers in the Shared menu. They all automatically connect as Guest as expected with Leotard's fancy pants new networking stuff.
    When I try to connect to a server by clicking the Connect As... button, I am prompted for my Registered User info. I enter it correctly (worked fine in Tiger), and the dialog just disappears without any warnings, and I stay connected as Guest.
    I am also unable to authenticate to our Windows box that manages our printers, and I suspect it is the same issue.
    As a note, I have already followed to excruciating detail the guidelines for connecting to a Windows network as outlined in this wonderful post: Explanation of Leopard NetBIOS (Windows Sharing) Wackyness With Solutions!

    Hi
    Check your user name in active directory and at the prompt enter the full name
    your.name@activedirectorynetwork and password
    If your windows network is properly configured you will be able to access the share and printers with no problems.
    Leopard works fine in a properly set up windows AD network, is only a bit problematic with windows network without domain controllers

  • VB6 source code cannot connect to Oracle database after compile to file.exe

    Hi All,
    I have a problem about VB6 connect with Oracle database. It can connect as normal when run on VB program. After compiled to file.exe and execute, it cannot connect to Oracle database. What's going on ? Please advise? Thank you.
    Here is sample of my code connection.
    Option Explicit
    Private wsData As New ADODB.Connection
    wsData.ConnectionString = _
    "Provider=MSDAORA.1;User ID=lsp;Password=lsp2007;Data Source=prd01;Persist Security Info=False"
    wsData.Open
    End sub
    Rgads,
    Ats.

    Hi,
    I believe you're in the wrong forum, this forum is for Oracle Application Express.

  • Cannot connect to database master at SQL server at SERVERNAME

    I have installed SQL 2008 R2 in a fresh win 2008 R2. I’m running the sharepoint configuration Wizard using the database server name with the correct domain
    credentials but I get the following error message. “Cannot connect to database master at SQL server at
    SERVERNAME. The database might not exist, or the current user does not have permission to connect”
    I‘m able to login to the new SQL server using the “SQL server management studio” with no problems. I used the sa account and a domain account.
    The sharepoint server is also a new installation. And both servers have the firewall disabled.
    Thanks in advance for your help.
    Simon

    Hi,
    What is your SharePoint server’s version?
    Please make sure you use the farm admin account to launch SharePoint configuration wizard. If not, please log in with this account, then check the effect.
    In addition, check if you create a named instance, such as, servername\sharepoint, however, you only specify the servername in the configuration wizard. If this is
    the case, change to servername\sharepoint, then check the effect.
    Thanks,
    Rock Wang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
    contact [email protected]
    Regards, Rock Wang Microsoft Online Community Support

  • Just upgraded to Yosemite 10.10.2 on my iMac 24 inch and now my Suddenlink POP email account won't accept messages. The message says unable to receive Mail and the warning says: Mail cannot send your password securely to the server. You can remove th

    Yesterday I uploaded Yosemite 10.10.2 thinking it was fixed by now. In Mail, my POP account gets this error message: Mail cannot send your password securely to the server. You can remove this restriction in the Accounts preferences by setting “Allow insecure authentication”, which could put your password at risk.
    My provider says it's an Apple issue. The gmail accounts are logging in fine. Any help? Something simple?
    Thanks anyone.

    Thanks Csound1. That did work and Mail was able to connect to the internet. Green light status. Is it because of my provider that I may never have had secure connections? Is that an Apple thing or do PCs have the same issues? Appreciate your help. I'll research insecure connections as I am ignorant of the consequences.

  • Hello, my sister her macbook pro cannot connect to our wireless internet. My imac however can, so the problem has to do with her laptop. We were wondering how we could solve this problem? Thank you very much in advance!

    Hello, my sister her macbook pro cannot connect to our wireless internet. My imac however can, so the problem has to do with her laptop. We were wondering how we could solve this problem? Thank you very much in advance!

    We did that, but it just doesn't seem to be able to connect. So basically we tried to connect to our network and insert the password, but afterwards it does nothing. Weird thing is also that the network symbol (top right of the screen) says that it has been connected, but when I go look at the system preferences --> network, it states that it has not been connected

  • My iPod (first generation) cannot connect to the app store nor iTunes. What can I do so that it connects again?

    My iPod (first generation) cannot connect to the app store nor iTunes. What can I do so that it can connect and I can install apps or music once more? Also, when I go on the internet and try to search solutions, it freezes and I have to hold the power button for 20 seconds for it to go to lock screen. Any solutions?

    Safari does work, right?
    Can't connect to the iTunes Store
    Best Fixes for ‘Cannot Connect to iTunes Store’ Errors | iPad Insight
    It appears you have the original, 1G, iPod, You can update as far as 3.1.3 here:
    Purchasing iOS 3.1 Software Update for iPod touch (1st generation)       
    https://buy.itunes.apple.com/WebObjects/MZFinance.woa/wa/touchLegacyLandingPage
    Identifying iPod models

  • IPod is in Recovery Mode and when I Try to connect my itouch it says it cannot connect because it is locked with a password, but I cannot unlock it since it is in recovery mode! Help!! Pleaseee

    iPod is in Recovery Mode and when I Try to connect my itouch it says it cannot connect because it is locked with a password, but I cannot unlock it since it is in recovery mode! Help!! Pleaseee

    Try putting it in DFU mode and then restore.
    Basic troubleshooting steps  
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101

  • Trying to connect 2010 Mac mini to alba hd tv but can't get it to work, any theories?

    Trying to connect 2010 Mac mini to alba hd tv but can't get it to work, any theories?

    Welcome to the Apple Community.
    The iPad 1 is only able to do basic AirPlay, many providers of programming have blocked their apps from working with AirPlay.

  • Adobe v9 on W7 and office 2007. cannot create PDF from MS word using Adobe. But can from Excel, PPT

    Adobe v9 on W7 and office 2007. cannot create PDF from MS word using Adobe. But can from Excel, PPT and other MS office apps. Reinslalled Adobe, updated Office, and Adobe no help! Also I can create a pdf from the MS Word and it is using the Adobe 9. So one would think that's good. No it isn't when you need to combine different files to one big PDF document. Any suggetions? Thank you

    Yes, I’m saying that I can in WORD use “Save As ADOBE pdf” but cannot in ADOBE create a pdf file from a WORD (.doc or .docx) document. While I can from other MS Office apps like Excel and PowerPoint.
    I understand I can use “work around” and save doc in WORD as pdf then compile all files needed (xml, ppt, pdf) in the ADOBE v9. to one big pdf document. But that is not the point of this post.  
    Jarda @ PC+NET Solutions
    Mobile 613-532-7023
    Office  613-385-1268
    <http://www.pcplusnet.net/> www.pcplusnet.net

  • Cannot connect to Oracle 11gR2 database from SQL Server 2005

    Both SQL Server (Windows) and Oracle (Linux) are in 64bit environments.
    I have done the following on a Windows 2008 R2 with SQL Server 2005:
    Install InstantClient from Oracle Database 11g Release 2 Client (11.2.0.1.0) for Microsoft Windows (x64) to C:\Oracle
    Install oledb from 64-bit ODAC 11.2 Release 3 (11.2.0.2.1) for Windows x64 by executing install.bat oledb c:\oracle odac
    Note: Not sure whether 11.2.0.2.1 version of ODAC will cause any problem since I cannot find 11.2.0.1.0 version.
    I have checked the Allow inprocess of OraOLEDB.Oracle provider in SSMS.
    I have executed sp_addlinkedserver @server = 'ORACLE_TEST', @srvproduct = 'Oracle', @provider = 'OraOLEDB.Oracle', @datasrc = '##.##.##.##:1521/TEST'
    The ##.##.##.## is the ip address of the Linux server which has the Oracle 11gR2 database TEST.
    I have executed sp_addlinkedsrvlogin @rmtsrvname = 'ORACLE_TEST', @useself = 'FALSE', @rmtuser = 'xxxx', @rmtpassword = 'yyyy'
    The xxxx is the oracle username and yyyy is the password for the oracle user xxxx.
    I know the oracle database TEST is up since I have setup connection in Oracle SQL Developer having:
    ##.##.##.## as the hostname
    1521 as the Port
    xxxx as the username
    yyyy as the password
    TEST as the service name
    When I click Test Connection for the linked server ORACLE_TEST in SSMS, it just hang.
    When I issue a query like select count(*) from oracle_test..xxxx.table1, it just run forever. I'm not so sure how to query an oracle table. I have also tried select count(*) from oracle_test.xxxx.xxxx.table1.
    When I retype the password in the Linked Server Properties, it just run forever.
    Do I need to create a tnsnames.ora on the Windows machine?
    Do I need to change the tnsnames.ora on Linux machine?
    I'm very new to Oracle.

    This forum is dealing with connections from an Oracle database to SQL Server - so the Oracle database is the driving site and this is the way round from your linked server set up.
    As you're suing the instant client you might post your issue in the instant client forum:
    Instant Client

  • Cannot connect to ORACLE server in VPN

    Hello ,
    May this be a networking question but it deals with oracle database. In a workgroup environment a client PC is not able to connect to the PC in which oracle is installed.
    I tried to ping the PC , sometimes it replies back & some times it says request timed out.
    I searched on net & it said that oracle should give user authentication to that PC on windows environment. I referred the following link
    [http://download.oracle.com/docs/html/B13831_01/external.htm]
    but still i am not able to find all computers in that environment as its a workgroup & still can't connect.
    ORACLE DATABASE 10g R2_
    Windows Server 2008 64-Bit - on which oracle is installed_
    Windows XP SP2 - By which user is trying to Connect/Ping to oracle by unsuccessful._
    I also used Oracle Administration Assistance for windows but could not find the solution...
    Please guide what to do ???
    Thanks in advance !!!

    DBA4 wrote:
    Hello ,
    May this be a networking question but it deals with oracle database. In a workgroup environment a client PC is not able to connect to the PC in which oracle is installed.
    So what error code does it return?
    I tried to ping the PC , sometimes it replies back & some times it says request timed out.
    I searched on net & it said that oracle should give user authentication to that PC on windows environment. I referred the following link
    [http://download.oracle.com/docs/html/B13831_01/external.htm]
    but still i am not able to find all computers in that environment as its a workgroup & still can't connect.
    ORACLE DATABASE 10g R2_
    Windows Server 2008 64-Bit - on which oracle is installed_
    Windows XP SP2 - By which user is trying to Connect/Ping to oracle by unsuccessful._
    I also used Oracle Administration Assistance for windows but could not find the solution...
    Please guide what to do ???
    Thanks in advance !!!

  • JDeveloper cannot connect to Oracle Application Server 10.1.3.x

    Hi, I am trying to create a connection from JDeveloper (on my desktop) to my oracle application server (10.1.3.x, on another machine). The JDeveloper version is 10.1.3.1.0.
    In step 1, I chose the connection type: "Oracle Application Server 10g 10.1.3".
    In Step 3, I chose "connect to group". I tried different host names and "OC4J Component/group name" but always got the following error msg:
    Error getting Cluster Config Set URLs for uri: deployer:cluster:opmn://hostname:6003/OC4J:default_group.
    I also tried to run JDeveloper from the same machine as my AS installed. The host name I used is "localhost" and the group name is "default_group" and the connection is successful. So it seems to me that my AS configuration is correct.
    May I ask what should be the correct "host name" and "group name" if I want to connect from a "remote" JDeveloper? And in what configuration file can I find such info.?
    Thanks a lot.
    Message was edited by:
    user575786

    hi user575786
    Would you mind sharing some more details about the changes you had to make to get it working or about the nature of the "misconfiguration" you mention?
    Maybe you have some pointers to documentation that helped you solve this?
    (tip : You can use "Your Control Panel" to make your name visible in forum posts.)
    thanks
    Jan Vervecken

  • Excel-2007 cannot connect to Oracle ODBC data source, Control Panel can.

    <p>
    I cannot make an ODBC connection from Exce-2007 to Oracle work. I am an expert Excel and VBA user (since 1994) and I have frequently used Excel to access ODBC databases, including Oracle (I have done this with Excel-2003 both with worksheet queries and have written VBA ADO-connection routines). And even though in Excel-2007 a worksheet ODBC query is supposed to be easier to create than in previous version of Excel, my connection fails. Any suggestions and all help are welcome and much appreciated.
    DETAILS
    </p>
    <p>
    1) <strong>What is my system?</strong> I am using Excel-2007 on Windows Vista x64 and Oracle server v.11g on my computer (all this is on my computer, no network issues).
    2)<strong> Why use Excel with Oracle at all?</strong> I use Excel-2007 to access Oracle rather than Access-2007 (or any other application like TOAD, etc.) because I do engineering calculations with the data stored in Oracle. These calculations are easier done in Excel (I suppose that one alternative to this could be to use some sql or Access to get the data from the database, then store it as plain vanilla CSV file, then open this file in Excel, then do the math (the math involves complex optimisation algorithms), then save the results as CSV, then use some sql or Access to put the data back into the database. Howwever this does not strike me as a quick or neat solution. And after all Excel has been designed to access ODBC databases, so why not use it?)
    3) <strong>What do I do in Excel-2007 that won't work?</strong> I create an ODBC link to Oracle that does not work. In Excel-2007 this is straightforward:
    </p>
    <ul>
         <li>define an ODBC connection (Data tab --&gt; From other sources --&gt; From data connection wizard);</li>
         <li>define a query on the worksheet -- that's it, this is all!</li>
    </ul>
    <p>
    I start with creating an ODBC connection:
    a) I choose an ODBC data source type: <strong><em>ODBC DSN</em></strong>
    b) Excel-2007 displays the list of the available ODBC data sources. I see in it <strong><em>my Oracle database name</em></strong> and I select it.
    c) Excel-2007 displays the Data Link Properties:
    - the "Provider" has a list of the OLE DB drivers with preselected "<strong><em>Microsoft OLE DB Provider for ODBC Drivers</em></strong>". I keep this default selection.
    - the "Connection" tab has a connection string "<strong><em>DSN=&lt;my database name&gt;</em></strong>" which I keep, it also has fields for the <strong><em>user name</em></strong> and the <strong><em>password</em></strong>, which I fill with the correct credentials.
    - Finally there is a button "Test Connection", which when I click produces the following error message:
    <strong><font color="#ff0000">"Test connection failed because of an error in initializing provider.</font></strong><strong><br />
    </strong><strong><font color="#ff0000">Unespecified error"</font></strong><strong>
    </strong>
    4) <strong>Additional food for thought:</strong>
    a) In the above walk-through the only data, which I type, are the user name and password, everything else is selected from lists offered by Excel-2007, hence any possibility of typos being the cause of the problem can safely be discarded.
    b) I can test the ODBC driver in the Control Panel and it shows that it can connect to the Oracle database:
    - in <strong><em>Control Panel --&gt; Admin Tools --&gt; Data Sources (ODBC)</em></strong> on the "User DSN" tab I can see the list of the available ODBC data sources (same list as in Excel-2007, point 3b above) with the name of my database in it;
    - selecting the name of my database from the list of the sources and clicking "Configure" button opens a tab with <strong><em>Data Source Name</em></strong> (same as in Excel-2007), TNS Service Name and User ID. I enter <strong><em>&lt;user name&gt;/&lt;password&gt;</em></strong> and click "Test Connection" button. A message "<strong><em>Connection successful</em></strong>" appears (just for a test I enter <u>incorrect user credentials</u> and "<strong><em>Unable to connect</em></strong>" message appears)
    BOTTOM LINE
    </p>
    <p>
    The procedure for using an ODBC connection from Excel is very simple, in the past I have created and used such connections numerous times with Excel-2003 and earlier on Win-XP and earlier. But now on Excel-2007 and Vista-x64 I cannot make it work.
    Also, testing an ODBC connection driver is really easy and simple to be done in the Control Panel. There testing the same ODBC connection, which fails in Excel-2007, results in success.
    I am frustrated by the simplicity of the problem and yet the persistant error. I have lost now two full days in failed attempts to make the simple procedure work and in searching the internet for answers.
    All help is highly appreciated <img class="emoticon" src="images/emoticons/happy.gif" border="0" alt="" width="16" height="16" />,
    Plamen
    </p>

    Did you find the solution to your problem?
    If not, I think I may know.
    Excel 2007 is a 32-bit application.
    When installing 32-bit applications in a 64-bit environment, the "default" location is:
    C:\Program files (x86)\...
    Excel then launches from this location.
    However, when it connects to Oracle and passes the name of the calling program, Oracle attempts to "interpret" the value of (x86) as if
    the value within the parenthesis are being passed as a reference. Of course, iOracle doesn't find anything, so the result is (),
    and then it cannot return the connection info back to the calling application.
    I corrected it by installing Excel in C:\Program Files\, and once launched from that location, it works the same as on the 32-bit machines.
    However, at my location, they are FORCING Excel to be installed in the(x86) location.
    What I'm trying to discover now is:
    Is it possible to flag Oracle to NOT process the embedded variables?
    Or, is it possible to assign a variable in Oracle such that x86 = "(x86)", so that the end result is viable?
    Have you had any luck with your installation?
    thanks,
    Paul

Maybe you are looking for