Db links within view failing

DB Version 10.2.0.3 on Linux pointing to another 10.2.0.3 DB on a remote Linux box...
myUnixPrompt> echo $ORACLE_SID
mydb
myUnixPrompt>sqlplus /nolog
SQL> connect someschema/somepassword;
SQL> create database link the_link connect to remote_id identified by thepassword using hello.world.com;
SQL> create or replace view someschema.test_view as select * from dual@the_link;
SQL> grant select on someschema.test_view to public;
SQL> connect theuser/theuserspassword;
SQL> select * from someschema.test_view;
ERROR at line 1:
ORA-12154: TNS:could not resolve the connect identifier specified
SQL> connect theuser@mydb/theuserspassword
SQL> select * from someschema.test_view;
D
X
Okay...So why does Oracle work when I connect to the same user, same sqlplus executable, same linux environmental variable using the @, but fails when the user connects using the oracle_sid?
Thoughts?

Excellent point, not really germane to the question posed, however you are correct definer rights prevail.
Consider this, if the view and the private db link are owned by the same user, then the view does have permissions on the link. In the same way a db package in the same schema and the private db link would be able to hide the db link from the calling user.
More to the point of my original example was the fact the same user, "theuser", can select from the view depending on the manner in which the connection was made to the database.
Failing case, "theuser" connected to the database via sqlplus on the db server as: theuser/theuserspassword
Success case, "theuser" connected to the database via the same sqlplus executable as the failing case, but as: theuser@mydb/password
The @ made a difference in the name resolution of the connect to database defined in the private database link.
Yes, Oracle support should be contacted, but getting the answer is like dental work, slow and painful. I had hoped someone else had encountered this scenario.
Additional information for this,
the sqlnet.ora file used is the same whether a direct connect or via @, however the sqlnet.ora has the name resolution in the following order: LDAP, ONAMES, TNSNAMES. In the case of connection via @, LDAP succeeds, however a direct connection always results in TNSNAMES resolution.
So, if the observation is correct, why is LDAP not being used when a direct connect, but only for @?
Thx...
-Scott

Similar Messages

  • Links within HTMLViewer Information page fail

    Using SAP GUI 720 for Windows, I am attempting to load a link from an information page within a transaction (PHAP_CATALOG_PA is one example):
    saphtmlp://htmlviewer.sap.com/trU7lB2xoV6eaG0OYp75oW/.html
    This is an embedded link from an original "information" page showing within the HTML viewer....
    When I click on any embedded link, I get a "This program cannot display the webpage" error. This occurs on any page with any embedded link, as far as I can tell.
    Can anyone offer any suggestions as to why links fail to load within the HTML viewer?
    Thanks!

    Here's the pertinent information from the trace...It appears to be the same within any embedded link within an information page:
    Mass Data Transfer: CSAPDataProvider::SetDataFromURLInternal(0xCFAD0D8)(Format='', SubFormat='', bInAllSessions=0)
    Mass Data Transfer:    URL= saphtmlp://htmlviewer.sap.com/ttVZf1fruF6mE00OYp75oW/.html
    Mass Data Transfer: DataProvider Pool : Object not found
    Mass Data Transfer:      Name : saphtmlp://htmlviewer.sap.com/ttVZf1fruF6mE00OYp75oW/.html
    Mass Data Transfer:      Current context : 47320432 imode : 2
    Mass Data Transfer: CSAPDataProviderFormat::InternalSetDataFromURL(bInAllSessions=0): hr=0x800A03F3
    Mass Data Transfer:    URL : saphtmlp://htmlviewer.sap.com/ttVZf1fruF6mE00OYp75oW/.html
    Mass Data Transfer: CSAPDataProvider::SetDataFromURLInternal(0xCFAD0D8)(Format='', SubFormat='', bInAllSessions=1)
    Mass Data Transfer:    URL= saphtmlp://htmlviewer.sap.com/ttVZf1fruF6mE00OYp75oW/.html
    Mass Data Transfer: DataProvider Pool : Object not found
    Mass Data Transfer:      Name : saphtmlp://htmlviewer.sap.com/ttVZf1fruF6mE00OYp75oW/.html
    Mass Data Transfer:      Current context : 13391216 imode : 2
    Mass Data Transfer: DataProvider Pool : Object not found
    Mass Data Transfer:      Name : saphtmlp://htmlviewer.sap.com/ttVZf1fruF6mE00OYp75oW/.html
    Mass Data Transfer:      Current context : 222213408 imode : 2
    Mass Data Transfer: CSAPDPObjectPool::GetTableIndex: ignoring Context and IMode check for 'SAPHTMLP://htmlviewer.sap.com/ttVZYQIwfF6mE00OYp75oW/HTML000001.htm'
    Mass Data Transfer: CSAPDPObjectPool::GetTableIndex: ignoring Context and IMode check for 'sapvalueset:FDF88AD5E1A5E52D87D7D2E95168D49F'
    Mass Data Transfer: CSAPDPObjectPool::GetTableIndex: ignoring Context and IMode check for 'sapvalueset:0617434CFC960967DA8395429E2E60A0'
    Mass Data Transfer: CSAPDPObjectPool::GetTableIndex: ignoring Context and IMode check for 'sapvalueset:36E427F8EA2CE6C5B5B8CACFF614441E'
    Mass Data Transfer: CSAPDPObjectPool::GetTableIndex: ignoring Context and IMode check for 'sapvalueset:7C3195A4CD4A69A334BE4C0C295E9159'
    Mass Data Transfer: CSAPDPObjectPool::GetTableIndex: ignoring Context and IMode check for 'sapvalueset:E99B833F75FC4DC353CFD10FCB00B28F'
    Mass Data Transfer: CSAPDPObjectPool::GetTableIndex: ignoring Context and IMode check for 'sapvalueset:3C92AD16E166E7D37DA11C9BED34D832'
    Mass Data Transfer: CSAPDPObjectPool::GetTableIndex: ignoring Context and IMode check for 'sapvalueset:46F45C6809B051DDA99EED01AF3637DB'
    Mass Data Transfer: CSAPDPObjectPool::GetTableIndex: ignoring Context and IMode check for 'sapvalueset:92B494855830E9CB079A59E63C0100EC'
    Mass Data Transfer: CSAPDPObjectPool::GetTableIndex: ignoring Context and IMode check for 'sapvalueset:DB8E54B84D704348F66F958026250639'
    Mass Data Transfer: CSAPDPObjectPool::GetTableIndex: ignoring Context and IMode check for 'SAPHTMLP://htmlviewer.sap.com/ttVZf1fruF6mE00OYp75oW/HTML000002.htm'
    Mass Data Transfer: DataProvider Pool : Object not found
    Mass Data Transfer:      Name : saphtmlp://htmlviewer.sap.com/ttVZf1fruF6mE00OYp75oW/.html
    Mass Data Transfer:      Current context : 47320432 imode : 2
    Mass Data Transfer: CSAPDataProviderFormat::InternalSetDataFromURL(bInAllSessions=1): hr=0x800A03F3
    Mass Data Transfer:    URL : saphtmlp://htmlviewer.sap.com/ttVZf1fruF6mE00OYp75oW/.html

  • Links - How to reorder links within a folder. Also, how to make folders open in a tree view?

    I'm working on a portal in Sharepoint 2007. It appears that I can only have one set of "Links" on a page, so I am grouping my related links into folders. I'm having two issues with this...
    #1. I need to change the order of the links within a folder. When I try to Change Order under the Actions menu, I only get the main list of links, not those within the folder. How can I reorder links within a folder?
    #2. When I click a Links folder, all links go away, except for the links within that folder. Is there any way to make the Links list work in a Tree view?
    Sorry for the newbie questions, but I've not worked much in Sharepoint and I had this project dropped on me.  :(

    Hi,
    For Question #1,
    refer this link.
    Hope it helps!
    Thanks,
    Avni Bhatt
    If this helped you resolve your issue, please mark it Answered

  • From a PDF in a browser window - open links within in that PDF in a new window

    BACKGROUND SCENARIO:
    Users view a PDF document within their browser window (default behavior at my organization).  Key point is, the PDF isn't being viewed in an Acrobat Reader window, it's being viewed within the browser window.
    Within that PDF, are many links to intranet pages. And incidentally, this PDF happens to be a document that is updated frequently (More on this caveat in a moment)
    EDIT: The end users are end users, smart people, but not necessarily super-sophisticated computer users.
    MY QUESTION:
    When a user clicks a link within the PDF, I want the new page to open in a new window, NOT in the same window that the PDF was being viewed in.
    I've done a fair amount of homework:  The prevailing answer is to use Acrobat Pro's "LINK" feature to turn the hyperlink into a javascript command that opens the link in a new window, and to do this (a) MANUALLY, (b) ONE LINK AT A TIME, and (c) Repeat steps (a) and (b) EACH TIME the document gets updated.   (Back track now to my earlier caveat.. this is a frequently changing document with lots of links... Doing manually and repeating the whole process each time the document is updated is a lot of work.)
    I believe there are some add-on products that make this easier too.
    So my question is...  Other than add-ons, Is there another way?  a better way?  a more efficient way?  Or is there another way, on the way?
    SOMEWHAT RELATED QUESTION:  (EDIT)
    Another answer that would more or less satisfy me:  is there a way either from the calling HTML page, or from within the PDF document itself, to force the PDF to open within its own Acrobat Reader window, rather than within the browser window?  That would mostly dodge the issue, by opening linked pages in the browser anyway.
    A little extra background information: The document also uses password protection (a management requirement), which is why opening the links in the same window is such a pain.  Back-keying back to the document after viewing the link requires re-typing the document password, a noted pain.  I'd accept a fix to that particular problem too, but I don't think there is one.  Either way, the new-window question is one I'd like to solve.  (FYI, I asked the password retype question separately over in the security forum, here:  http://forums.adobe.com/message/5055162#5055162).

    You can't update the destination for a link using JavaScript, because there's no way to read the link's current action. While there is a setAction() function to create a new action on an existing link, there's no "getAction" function.
    In terms of how a PDF file opens, nothing in the document or in the HTTP headers can influence whether the file is opened in the browser or on the desktop - that's a user preference. What you can do with scripting on the server is send HTTP content-disposition headers that define the PDF file as something the user should download and save, rather than something the browser should try to open.

  • How do you open a link within a PDF in a new window?

    I created a PDF that will be viewed in a browser. Is there a way to set the links within the PDF to open in a new window?

    Did you get an answer to this?   I am having the exact same issue.  My source html document has a link which specifies a target of _blank, but when I generate a pdf from that html doc, view the PDF in my browswer, and click the link, it overlays the PDF instead of opening a new window with the linked URL.  I've seen this posted as an issue a number of times, but have yet to see a solution.

  • Creating links within a photo gallery

    I created a few albums and I want to know how to create links for specific photos. For example, I would like to link from one of the photos in gallery view to a larger version of that photo. I created another page with the larger photo but I cant create a "click here" link within the description. The inspector allows me to chose create hypertext link after highlighting text but it doesnt work. Also, if I create a link outside of the description the link appears on every page in that gallery. I also noticed that the link I created on the main gallery page appears on every page. Further, I would like the link to open in a new window.
    Thanks for the help.
    A

    After I published the site the link I created in the photo description works in the album view but not when you're viewing the photo itself.
    Any suggestions?

  • Anchor links within a PDF?

    Is it possible to create anchor links within the body of a PDF? How?
    For example, having a list of topics at the top and then creating anchors that drop down to each topical section.
    Thank you!

    Yes. You can either used Named Destinations, or page views.
    Named Destinations need to be set up before the link is created, but can be
    used by more than one link. Page views are created ad-hoc when you select
    the action "Go to page view".

  • How do I get a link within a PDF to open a new tab in a web browser?

    How do I get a link within a PDF to open a new tab in a web browser? Previous forums (for earlier versions of InDesign and Acrobat) mention something about JavaScript, but I'm using InDesign CC and Adobe Acrobat Pro CC
    Thanks.

    When you're looking at the PDF that's on your site, is it opened in the browser or directly i Acrobat/Reader? If in the borwser, do you know if it's being viewed in the browser's default PDF viewer or Acrobat/Reader? It probably won't work in non-Adobe PDF viewers.
    Are you saying that when you click the link that two new browser tabs are opened with the same URL, instead of just one as you'd expect, or something else?

  • HTML component wont open link within component

    I have a HTML component in my AIR app. When the page opens a youtube video feed that has copyright restrictions, a link to view the content on the youtube site itself, like the one shown here: http://www.youtube.com/v/WwoM5fLITfk?f=videos&app=youtube_gdata. When you try clicking this link nothing happens?
    Can anyone tell me how i can open this link within my html component?
    Many thanks
    Adam
    Flexchief

    Hi,
    I have this problem as well.
    I posted a question here few days before you and still haven't got an answer for it.
    My assumption is this issue started at the last SDK update. I don't see it if I work with flex 3.5.
    Hope someone will give full answer to it soon... I am stock with my project because of it.
    Avier

  • I am unable to reach the my content page of mysites from the name link within my site collection

    For some reason I am no longer able to get to the personal mysites page from within our site collection. My name appears at the top right and it has an option for setting which leads to some minimal page but I can no longer use this to get to the actual
    mysites page. Is there a setting I am missing that allows this to happen?

    Hi,
    According to your post, my understanding is that you failed to reach the content page of mysites from the name link within site collection.
    As this issue is always related to the inadequacy configuration about the MySite, you need to make sure that you had configured correctly with your MySite. You can refer to:
    http://technet.microsoft.com/en-us/library/ee624362(v=office.14)
    What’s more, you can also check with the following steps.
    Make sure the Web site for MySites in IIS is started.
    Make sure the App pool is running
    Use ULSVIEWER to check your Sharepoint ULS logs for the issue.
    There are two similar articles for your reference.
    http://blogs.msdn.com/b/jorman/archive/2009/01/19/sharepoint-my-site-link-stops-redirecting-users-to-their-personal-site.aspx
    http://sharepoint.stackexchange.com/questions/59434/sharepoint-my-profile-404-not-found
    Thank you for your understanding.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Can't select links within web pages

    Just got an iPhone. Able to load web pages but once open, cannot now select any links within any web pages. Appeared to be working on Apple page initially but then stopped.

    Make sure the page is completely loaded before clicking on anything..
    Next use the zoom in feature to get a better angle at it
    If these two steps fail try refreshing the page and then trying.

  • GW8.0.1 Client: Links within Emails not working

    We have serveral users at my company that when they click on an external link within an email it will open IE8 and never bring up the page. All it does is open a new tab within IE8 and stays idle claiming it's "connecting". I have tried uninstalling and reinstalling the client on a few workstation but no luck? I cant seem to find a tid available for a fix so have turned to the forum for answers. Does anyone have a solution to this problem or having the same issue I am.
    Please help,
    Duggan

    Hi,
    made some tests:
    1.
    GW 8.0.1HP1 (GW Setting for html browser: default)
    IE6
    - Open links work fine but all in several windows with each want the proxy auth data
    2.
    GW 8.0.1HP1 (GW Setting for html browser: Internet Explorer)
    IE6
    - Open links work fine but all in several windows with each want the proxy auth data
    3.
    GW 8.0.1HP1 (GW Setting for html browser: Internet Explorer)
    IE8 (After OS Update)
    - Open links work fine but all in several windows and the proxy auth data were needed only once
    4.
    GW 8.0.1HP1 (GW Setting for html browser: Standard Browser)
    IE8 (After OS Update)
    - Open links work only if IE8 already were opened. After first site was sucessfully opend, all other links will be opened in tabs (like it should be).
    5.
    GW 8.0.1HP1 (GW Setting for html browser: Mozilla/Firefox)
    FF 3.6.2
    - If i view a html mail as text i have a strange behaviour: it opens 2 windows one with the link i clicked on and one with the browser default page (google in my case). For all following links i click, it opened a new window with the default page....
    - If i view it as a html mail, it opens correctly but all in several windows. Only one time proxy auth is required
    6.
    GW 8.0.1HP1 (GW Setting for html browser: Standard Browser)
    FF 3.6.2
    - Doesn't matter if i view mails as text or html, always open the first window and all following links in new tabs. Like it should be...
    I hope this will help.
    But although i have the "problem" with newsletter or such stuff with external elements (e.g. images) from different servers/domains. For each different domain, our customer have to fill in his proxy auth data. Someone have the same experience and a solution for this? (Except a proxy without Authentication :P)
    Cu

  • Can't see the ESS Additional Personal Data link within Personal Information

    Hi All,
    For some reasons, I can not see the Additional Personal Data link within the ESS Personal Information iView. I have checked the Homepage framework and the existence of the iView in the PCD and everything appears to be fine.
    Do I need to assign any additional infotype to my id or give myself specific authorisations to see this link?
    I would really appreciate if you could provide an answer to my query.
    Thanks,
    Vibhu

    Hi,
    I think mostly you have maintained the data in PA30 Transaction and had data in Info type 0105.
    After this try to check with your EA-HR patch and SAP HR patch in the services. If  both are not maintained at the same patch levels such type of problems will occur.
    Regards,
    kishore.

  • Two instances of Firefox open when I click on a link within my email client. How can I stop this from happening?

    I am running on an iMac OS X 10.6.3 using Firefox 3.6.3 as my default browser and I use Postbox 1.1.5 as my email client. Anytime I click on a link within an email message two instances of Firefox open, one with my home page and one with the site the link was meant for. This happens only when Firefox is not already open. If Firefox is running and a link is clicked on it opens normally within the open instance of Firefox. I have contacted Postbox and am currently awaiting a response to see if they have any suggestions. While this is not a serious issue it is a bit annoying. I have Firefox set to open new links in tabs not new instances of windows, so it shouldn't be that. Any help in getting this to stop would be greatly appreciated.
    == This happened ==
    Every time Firefox opened
    == Not sure, it's been going on for quite awhile.

    That is a bug on Mac.
    See https://bugzilla.mozilla.org/show_bug.cgi?id=531552 - Firefox 3.6b opens two windows when opening external links
    ''(please do not comment in bug reports to avoid bug spam for the devs)''

  • When I click on a link within a Web page, Firefox just spins until I reload the new page.

    When I enter a new URL or select a bookmark, Firefox loads the page promptly. When I click on a link within that page to go to another page, the Firefox tab green spinner often just spins and spins. It either takes a very long time to load (2 or more minutes), or never finishes loading. It's usually a greater problem when I "Open a link in a new tab". I can usually make the new page appear by reloading, either clicking the red X and the circular arrow, or Ctrl-F5, etc.

    Try the Firefox SafeMode to see how it works there. <br />
    ''A troubleshooting mode, which disables most Add-ons.'' <br />
    ''(If you're not using it, switch to the Default Theme.)''
    * You can open the Firefox 4/5/6/7 SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
    * Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''Don't select anything right now, just use "Continue in SafeMode."''
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
    If it is good in the Firefox SafeMode, your problem is probably caused by an extension, and you need to figure out which one. <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes

Maybe you are looking for

  • Cursor for loop in  oracle forms 6i

    Hi all,        I have written code in the find button to display deptno=10 employees ,in TOAD it worked fine, but why it is not worked in the form find button? Please suggest? I added below i am getting all records? , I want only related employees re

  • What is a good compatible graphics card

    have a compaq presario sr1303wm from 2004,2005. Running xp home with onboard 64 meg video. 2.0 processor and over 1 gig. of ram. System # is PP150AA. what is a good video or graphics card for this unit? 

  • Forgot login for Mavericks and had to use start up disc. Now can't access keychain

    OK, somehow stupidly forgot my login and had no other way to access my iMac except satr up disc. Well, after successfully changing my login, I keep getting pop ups to use several keychains, yet the new password does not work. Half of my apps wont wor

  • TA38263 How to burn an audio CD in iTunes in macbook bro?

    hey How to burn an audio CD in iTunes in macbook bro? thanks

  • HTTP submit button

    Hi all, I am new to designer and am working to change our static PDF files to interactive ones. The goal would be for a user to fill out the form then submit it to our website, which would place it in a database. I am running IIS 5.0 and have used AS