Database link works for OS user "oracle" but not for other clients

My DBA connects as user1 to db1 and successfully queries over database link db2.
[oracle@linux19 ODA]$ sqlplus user1/****@db1
SQL*Plus: Release 11.2.0.3.0 Production on Fri Apr 12 07:39:49 2013
Copyright (c) 1982, 2011, Oracle.  All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> SELECT * FROM DUAL@db2;
D
XI log in from a Windows XP client and test the same database link with a ORA-12154 result.
C:\>sqlplus user1/****@db1
SQL*Plus: Release 11.2.0.1.0 Production on Fri Apr 12 11:18:18 2013
Copyright (c) 1982, 2010, Oracle.  All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> SELECT * FROM DUAL@db2;
SELECT * FROM [email protected]
ERROR at line 1:
ORA-12154: TNS:could not resolve the connect identifier specifiedI can create and successfully use database links by including the full TNS entry in the USING string.
What are some possible causes for the different results?
What additional information might I supply to help troubleshoot?
Thanks very much.
- Doug
Edited by: enquad on Apr 12, 2013 2:56 PM
changed "database link db1" to "database link db2" per comments by SB
Edited by: enquad on Apr 12, 2013 3:00 PM
Changed "user" to "OS user" in subject for clarity

enquad wrote:
Sorry gentlemen and SB, but my question is still not answered. It is a new question, which I have not found answered elsewhere.
To summarize:
SB97025 informs me that db1 is not a database link, but I never said that it was. It is the second database (anonymized as "db2") that is connected to through the database link "db2.mycompany.net".
SB97025 also wonders intriguingly if my DBA and I are we really connecting to the same database when we each connect to user1 on db1. Perhaps the Oracle server and my PC have TNSNAMES.ORA files that lead us to different databases for the same TNS alias? I do not believe this is the case, because my DBA created that user1 and that database link in the db1 database specifically for the purpose of doing this test and I see that same link when I connect to user1 on db1. Unless my DBA is spoofing me by creating user1 in two different databases - only one of which contains a working dblink named db2.mycompany.net - just for the purpose of throwing me off, I would have to conclude that he and I are actually connecting to the same database.There is no reason to "believe" (or not) that "this is the case". The entire point of SB's comment on that was to get you to verify. President Reagan famously said "trust but verify". He never worked as a DBA. I say "don't trust, just verify".
Obviously something is different. And at this point the most likely and easiest to confirm is that you and your DBA really are connecting to the same database, on the same host server, using the same link. And at this point all we really have is to trust your DBAs statement.
>
Ed Stevens reminds me that db1 is acting as a client to db2 and so the solutions to the ORA-12154 are the same as for any client connection as listed on his blog (which I had already read), none of which solve my problem. Rembember, the DBA can use the database link, so by whatever means the TNS lookup is happening when he uses it, the correct connection description is being found. The question is not "why does this stinkin' database link not work"? It does work for the DBA.
Pierre wants to make sure I know that it is the Oracle server's TNSNAMES file that is the important thing, not my client's TNSNAMES file, which is true but not relevant to my problem and I was never so naive. He also says that I could try creating a database link by including the full TNS entry in the USING string, which does work as I had already mentioned in my original post.
Amar asks if my DBA can: sqlplus username/password@db2.
The answer is yes. The dba can use SQL*Plus to connect to db2 from the server hosting db1 and can connect to db1 from the server hosting db2. There is almost nothing my DBA cannot do.
None of the posters addressed the key information in my post, which was the different result my DBA and I get when using the same database link in the same schema on the same database. That AND the fact that my DBA is logged on to Linux Oracle serve as user "oracle" and I am logged in to my PC. Why should it matter to a database link which computer is running SQL*Plus or who the OS user is?
Also the GLOBAL_NAMES parameter is set to FALSE.
- Doug

Similar Messages

  • IPhoto '11 works on one user account but not the other

    I upgraded to iPhoto '11 from iPhoto '08 a couple of weeks ago using the MacApp store. After doing so, I opened the application on my main user account, received a message that the library had to be updated, the application did so, and it has been working wonderfully since. The problem I'm having is with my wife's user account. I did not open the application and upgrade the library immediately on this account. Before I could do so, my wife hooked up her iPhone to sync, which automatically opened iPhoto. I get the gray screen with the large spinning wheel in the center, and her library never appears. I have tried two strategies to fix this, and so far, have had no luck. The first was to hold option while launching the application, and selecting her library. I get the exact same result doing this. My next strategy was to completely delete iPhoto from my system, then re-download and reinstall it, and try to open the library once again. Unfortunately, this did not work. I thought the next step should be to delete iPhoto '11, reinstall iPhoto '08, open my wife's library using iPhoto '08, then reinstall '11 and upgrade her library. Since iLife came preinstalled on my mac when I purchased it years ago, I'm not certain how to reinstall iPhoto '08. Does anyone know how to do this, or have another suggestion for solving this problem? Thank you in advance for your help!

    In your wife's account:
    Try trash the com.apple.iPhoto.plist file from the HD/Users/ Your Name / library / preferences folder. (Remember you'll need to reset your User options afterwards. These include minor settings like the window colour and so on. Note: If you've moved your library you'll need to point iPhoto at it again.)
    *What's the plist file?*
    For new users: Every application on your Mac has an accompanying plist file. It records certain User choices. For instance, in your favourite Word Processor it remembers your choice of Default Font, on your Web Browser is remembers things like your choice of Home Page. It even recalls what windows you had open last if your app allows you to pick up from where you left off last. The iPhoto plist file remembers things like the location of the Library, your choice of background colour, whether you are running a Referenced or Managed Library, what preferences you have for autosplitting events and so on. Trashing the plist file forces the app to generate a new one on the next launch, and this restores things to the Factory Defaults. Hence, if you've changed any of these things you'll need to reset them. If you haven't, then no bother. Trashing the plist file is Mac troubleshooting 101.
    Regards
    TD

  • Safari (7.0.1) is non-responsive (spinning pinwheel) upon start up.  It will work in temp user account but not in my main user acct.  I tried reinstall via comman-r prompt on start up but the problem persists.  Any suggestion for reinstall or repair?

    Safari is non-responsive after intitial start up.  Before it can load the homepage (google), it will hang and give a perpetual pinwheel until I force quit the program.  Safari works in temporary user account but not in my primary user account.  I have reinstalled osx via the command-r upon start up and the problem still persists.  Any suggestions on how to reinstall or repair safari?

    Thanks for thinking about my problem. I've already experimented with creating a new user, a co-administrator. The programs don't crash when that account is running, just as they don't crash when the guest-user's account runs. So it seems that the problem is limited to the default user's account, which is the one that was running when I installed the updates to the OS and the firmware. Another clue is that the programs that crash as soon as they are launched are *probably* the ones that were open at that time in that account. Yet deleting Saved Application States does not keep the programs from crashing when next launched.
    So the mystery continues, but these additional facts will help with the diagnosis, I hope.
    Thanks again for your suggestion.
    Gordon

  • Home sharing is working fine for musics and videos but not for apps. What is wrong?

    Home sharing is working fine for musics and videos but not for apps. What is wrong?

    i had the same issue as everyone here after upgrading to itunes 10.x.  vista could see xp home share.  ipod touch could see xp home share.
    neither could see vista home share.
    after several hours of authorizing de-authorizing, rebooting router etc, i knew it had to be a firewall thingy with vista as xp was working fine
    i went to this article http://support.apple.com/kb/ht2553 and followed the instructions.  itunes was already in my vista exception list.  on a hunch i deleted the itunes exception and followed the steps to add it again and boom it worked!! i could now see my vista machine from my ipod touch immediately.
    something must have screwed up the firewall exception on the upgrade to itunes 10.x
    it worked for me, i hope this helps others

  • FaceTime: I have a iPad, iPhone, iMac all on the same apple Id/account. Without changing id/email address can I use FaceTime between any 2 of my devices? It works from iPad to iPhone but not the other way??? I would like talk/see my kids if am away

    FaceTime: I have a iPad, iPhone, iMac all on the same apple Id/account. Without changing id/email address can I use FaceTime between any 2 of my devices? It works from iPad to iPhone but not the other way??? I would like talk/see my kids if am away.
    Hope you can help.
    I have added a new email address but kept my Id, but I get busy when trying from iPhone to iPad as they are clashing. Like find my iPhone app hence trying to keep them all on one account

    IOS: using facetime http://support.apple.com/kb/ht4319
    using an ipad will use the email address since you can't make a phone call.  see the link.
    Your basically calling/emailing yourself that's why your getting a busy signal.

  • Trying to connect my iMac to on 10.8.2 with PowerBook Intel on 10.5.8; sharing works from PowerBook to iMac but not the other way around. Why?

    Trying to connect my iMac to on 10.8.2 with PowerBook Intel on 10.5.8; sharing works from PowerBook to iMac but not the other way around. Why?

    Thanks for the interest. Preferences are similar on both machines: screen sharing, file sharing, printer sharing & scanner sharing all ticked and radio button for Screen Sharing is ON.
    My confusion is that I can get a network connection to the iMac by selecting "go to server" on the PowerMac running 10.5.8 but am unable to make the iMac connect to the PowerMac using similar selections. When ethernet cable is plugged in the PowerMac shows up on the finder bar on the iMac, but it does not allow either screen sharing or connection to occur - a dialog box tells me to check System Prefs and Network connection.
    I'm hoping to export a large file of photos from iPhoto on my iMac to my wife's PowerMac and hoped to achieve this with an ethernet network connection.

  • Just got a new MacMini.  Migrated files using Time Machine.  However, now, on Launchpad, I see several Firmware updates that were relevant for the old machine, but not for the new one.  How do I get rid of these updates?  They won't delete!

    Just got a new MacMini.  Migrated files using Time Machine.  However, now, on Launchpad, I see several Firmware updates that were relevant for the old machine, but not for the new one.  How do I get rid of these updates?  They won't delete!

    Only thing I can think of is trying this Lion trick...
    http://www.cultofmac.com/106030/how-to-nuke-lions-launchpad-and-start-over/10603 0/

  • How do I enable auto-complete for gmail password? I have five accounts and it works for 3 of them but not the other 2.

    I have five gmail accounts. Three of them have the auto-complete feature enabled for the password. The two most recent accounts do not auto-fill so I must type in my password every time. The auto-fill works fine on my laptop but not on my desk-top. My operating system is Windows XP.

    You don't have to do anything with the first iPod that you don't use anymore. If you are planning on keeping it, put in a drawer in your house and forget about it.
    You don't need a second account to use with the new iPod. I use one Appl e ID and iTunes library for two iPods, and two iPad. I have different content on all four devices. You can select exactly what you want to sync to each device and it can be different content on all devices.

  • HT2731 I have 2 apple iPods on the same account, And they have the Same songs on them. How can I get a new account for one of them but not the other? Can I wipe the memory of 1? How would I do that?

    I have 2 iPods one I don't use anymore. I would like to make a new account for one but not the other. Is that possible? If I wipe the memory in one will the other wipe out too? How can I do all of this?

    You don't have to do anything with the first iPod that you don't use anymore. If you are planning on keeping it, put in a drawer in your house and forget about it.
    You don't need a second account to use with the new iPod. I use one Appl e ID and iTunes library for two iPods, and two iPad. I have different content on all four devices. You can select exactly what you want to sync to each device and it can be different content on all devices.

  • UltraNav and TrackPoint not working for my user account - but ok for others...

    Got a strange one on my X201T.  For some reason I can't fathom, my laptop's Trackpoint, Touchpad and all their associated buttons do not work when I log into my laptop - they did before but in the last few days, they've stopped.  My external USB still works fine when connected.
    However, if, for example, I do 'ctrl-alt-del' and lock the laptop, they start working again until the moment I'm logged back in.  Also, If I log in on a Guest account, they all work fine!  This suggests it's not the hardware, I think.
    I've looked at the Control Panel / Mouse dialogue and the options under the UltraNav tab are all greyed out - but they are not on the Guest account.  Somehow, my user account on the laptop is not allowing me to use the Trackpoint, etc.
    My external USB mouse works fine in all accounts, btw.
    I'm running Windows 7 64-bit.  I've updated drivers through Lenovo update (though none seemed related to this problem).
    Any thoughts how I can fix this?

    kokoko, I had this problem last week. I solved it by removing "thinkpad ultranav driver" and "thinkpad ultranav utility," rebooting and reinstalling them. It hasn't happened again.

  • IChat works in one user account but not in another

    my computer phobic parents just bought a new 27" iMac and I've been using iChat's screen sharing with him to help my dad with the computer, we've already set up a separate user account on the machine for my mom we can't get iChat to work under her user account.
    The apple rep had trouble using her Gmail account so he set up an AIM account but still no luck
    I have her in iChat under my dad's user account and can do video chats and screen sharing with her, no problem.
    But regardless of whether or not we leave her jabber account logged in under my dad's user account, we can't get iChat to accept her account info when she is loged into her own user account.
    (P.S. parental controls for her account aren't activated neither is admin privileges)

    Hi,
    Make her account an Admin Account.
    A Managed Account and Parental Controls tend to be somewhat linked and a sliding scale of things.
    If there is no reason to Manage her account there is no reason why she cannot also be an Admin account.
    She should also Check iChat > Preferences > Accounts > Security and see who is in the Blocked or Allowed Lists and see if you are in the wrong one.
    8:00 PM Monday; April 5, 2010
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

  • Problem w/"combo boxes" cause the user to double click for the dropdown menu, but not for everyone.

    I have created a form with Adobe Acrobad Pro 9.
    There are a few "drop-down" boxes for people to choose options from.  I created them with the "Combo box" option.  They work perfectly fine on my laptop (Lenovo T500 windows 7, with all updates up to date.)  I sent the file to another exact same computer and that's when the problem came up.  When you click on the drop-down, the list will quickly appear and then disappear.  Then if you click it again it will stay open so you can choose your option.  However this only happens on "some" computers but not everyone's.  I emailed the exact same form out to other people in my office and they do not have any problems with the form.  There is no need to double click the drop down, it will just open up properly for them.
    Has anyone come across this? And if so, is there maybe a setting on these specific laptops that is preventing the "combo box" to not work properly?  I need to use this specific laptop as a "Kiosk" like a "check out" station for users to fill out the form to check out equipment.  I will be running in Reader so people can not make changes to the form.  (both the Acrobat Pro 9 version and the (most up to date) Reader version of the PDF form does the same "double-click" problem)  I need a date drop down and an equipment type drop down.
    Any suggestions would be greatly appreciated !
    Thanks !

    I've got this kind of problem with a form of mine (designed with LCD) :
    - combo boxes with font-color changing event handlers on :enter
    - on Acrobat 9 Pro : no problem
    - on Reader 8.3 :
          - first click seems to execute the event handler but stops the combo's opening
          - second click does open the combo
    Do you have event handlers on combo:enter ?
    Could the difference between comps where it works and comps where it doesn't be Acrobat's version ?

  • "Preview in Firefox" for pdf web pages but not for file links ?

    Hi,
    I like the preview pdf in Firefox feature but I seem to be having a bit of a problem with it.
    In options>applications I have the pdf entry set to preview in Firefox and when I click a link to pdf webpages they load in Firefox just fine.
    The problem seems to be with download links to pdf files. When I click a link to a pdf file the only options are to save the file, open with my pdf viewer (Foxit Reader) or other. Preview with Firefox is not an option any more.
    I've been trying everything to get that option back.
    I know I have seen it there before but I've no idea how it disappeared.
    Any suggestions?

    The build-in PDF Viewer only works for files that are send as application/pdf and not for other MIME types.<br />
    So it won't work for links that open a download dialog and you would need an extension to open such a file as application/pdf.
    *Open in Browser: https://addons.mozilla.org/firefox/addon/open-in-browser/

  • How come trunk link works on 100 meg port but not 1000?

    Why would a trunk link work on a 100 meg port but not 1000? I have a SG300-52MP and one of the gig ports are configured as a trunk. On the other end I have a SF302-08P. The gig port is also configured as a trunk but doesnt even light up. When I move the cable over to a 100 meg port configured as a trunk, it works perfectly fine.

    OK I tried plugging an IP phone into the gig port and nothing happened as well. I have tried shutting the port down and bringing it back up. This is the 2nd switch I am trying in that location and gave me the same problem. I tried the original switch in another location, different uplink from same switch, and it is giving the same problem. Any insight on that? Would you like to see some specific configs?

  • SFTP works on one user account, but not another

    I am using a Mac Mini running Mavericks.  I am trying to upload via sftp my homework.  I have been able to do so on a test user account.  But not my primary account.  I double checked my settings on both.  Both look identical.  I am using Fugu as my client for sftp.  I previous have been able to upload with Dreamweaver.  But now nothing.

    In your wife's account:
    Try trash the com.apple.iPhoto.plist file from the HD/Users/ Your Name / library / preferences folder. (Remember you'll need to reset your User options afterwards. These include minor settings like the window colour and so on. Note: If you've moved your library you'll need to point iPhoto at it again.)
    *What's the plist file?*
    For new users: Every application on your Mac has an accompanying plist file. It records certain User choices. For instance, in your favourite Word Processor it remembers your choice of Default Font, on your Web Browser is remembers things like your choice of Home Page. It even recalls what windows you had open last if your app allows you to pick up from where you left off last. The iPhoto plist file remembers things like the location of the Library, your choice of background colour, whether you are running a Referenced or Managed Library, what preferences you have for autosplitting events and so on. Trashing the plist file forces the app to generate a new one on the next launch, and this restores things to the Factory Defaults. Hence, if you've changed any of these things you'll need to reset them. If you haven't, then no bother. Trashing the plist file is Mac troubleshooting 101.
    Regards
    TD

Maybe you are looking for

  • Download error after mountain lion upload

    HI After I upgraded to 10.8 mountain lion I have since struggled to download firefox and adobe flash (get the error image file corrupted). Also I can't download in itunes (get error 50 or 8000). I have tried: reboot software update Recovery boot and

  • Discrepancy in PF Calculation

    Hi, The PF is getting calculated  for the employees on the basis of their number of days working which is an error. For ex if an employee  has worked for 10 days or 23 days a month , PF is calculated accordingly whereas it shld not be done. If an emp

  • Text information being displayed too long.

    Hi, I have a database table containing text information. I want to displayt this information on a webpage but when I try to do so the text doesnt break as soon as i want it to, so it looks something like this: the inforamtion from my database is bein

  • Iphoto and mavericks installation error?

    I had iphoto and then my mac was wiped and had mavericks installed after "software errors" were detected. Now I don't have iphoto and the ap store says it will cost 15.99 to download...? I thought iphoto was standard with mac?

  • System Monitoring old entries still visible

    Hi SolMan Experts, We are using System Monitoring for more or less a year now to monitor our PRD systems. Now we have deactivated the monitoring from one system (as it will disappear) - system X, but the monitoring entries are still visible in one of