DB Link - works via SQL but not via packages

I have a database link on user ODB on database A, to database B. The DB Link seems fine for SQLs that i do, but doesn't compile in my package code. Please tell me why it works for "regular sqls" but not inside a package.
Example: while connected as ODB user on database A, if I do this query:
SELECT "TRAXDOC_DETAIL"."FILE_NAME",
"TRAXDOC_DETAIL"."FILE_TYPE",
FROM "TRAXDOC_DETAIL"@TRAXDOC_LINK
WHERE "TRAXDOC_DETAIL"."TRAXDOC_ROW_ID" = 100031 AND
"TRAXDOC_DETAIL"."TRAXDOC_LINE"= 2
It works fine. But the same query inside a package that is owned by user ODB on database A will not compile, stating the table/view does not exist.
The database link is owned by use ODB on database A, connects directly to the owner of the tables in question on database B.
Any suggestions welcome... this is an urgent issue, because it also worked fine on my customer's test environment, but not on their Production that they just upgraded. I need to know what to look for as to what could be wrong.

Thanks so much for your response - Prefixing the call to the table within the package, with the schema owner does indeed solve the problem. Since this is a Production issue, i have implemented this fix in my customer's database.
However, I would still like this issue permanently resolved. The next time we send out updated package code, this will happen again (unless we then fix it again). I'd still like info from anyone on what exactly must be done to allow the call within the package to work without specifically pre-fixing the table's schema owner. It shouldn't be needed... The DB link is connecting via the same schema on database B that owns the table in question.
pre-fixing the schema owner is something we don't do in our sql statements, and this has worked fine for many of our cusomer's environments. We're only seeing this issue on one environment.

Similar Messages

  • Can do via SQL but not via PL/SQL

    is it possible that a simple; 'create global temporary table..' SQL can run, yet same code being called from an 'execute immediate' within a PL/SQL block throw an; ORA-01031: insufficient privileges exception...(same user)
    is it a role/privilege issue or do I need to de a better job debugging?

    short version, each user will pass unique values to the proc that via dynamic sql will build these tables based on that iterative select criteria, to be used only during their current working session.
    so it's not the 'same' table in structure each time
    would not having 'TEMP grantable' be the issue?
    trying to find a way to communicate this to the DBA

  • Link works on mac but not on pc

    Hi -
    I am trying to insert a jpg into a dreamweaver file.
    I then upload the html file along with the jpg to my server in a folder called "layout"
    So the url is:  http://www.mysite.com/layout/test.html
    The link works on mac, but not on pc's.
    Any idea why?
    Some links work on pc's like this, and others don't.
    Thanks- It's driving me crazy!!

    The link is not correct....you have it listed as" mysite.com", which I assume is where you are to insert the name of your url.
    Gary

  • Web sites containing mms links work in IE but not Firefox 4.0

    Web sites containing mms links work in IE but not Firefox 4.0. when I play the video in IE, I go into IE, and locate the mms link under properties, when I right click. If I copy the mms link form IE directly into firefox, it will work. There ought to be a better way to do this. Also, I am using a hardware firewall, not a software firewall, and no proxy.

    You need to use the file:// protocol, but you may still encounter problems if you fix that.
    See http://kb.mozillazine.org/Links_to_local_pages_do_not_work

  • A website will open via wifi but not via 3G. Is this a setting on the iPad?

    A website will open via wifi but not via 3G. Is this a setting on the iPad?

    Probably not.  How's your 3G connection?  I ask because I've had issues when the 3G connection isn't strong.  Same with WiFi too, actually.

  • Why do headings turn Chinese when I access my email via Firefox but not via Internet Explorer?

    Why do headings turn Chinese when I access my email via Firefox but not via Internet Explorer?

    hello, this is a displaying flaw caused the mcafee site advisor extension - please try to disable or remove that in case you have it present until there is an update by mcafee that can fix the problem.
    http://service.mcafee.com/faqdocument.aspx?id=TS100162
    https://community.mcafee.com/thread/76071

  • My mac mini will connect via airport but not via ethernet.

    I have had a mac mini for several months which I connect via ethernet because it is in a part of my house where the wireless signal is poor. I changed ISP and now I can connect to the router wirelessly but not via ethernet. This doesn't seem to be a problem with the network as the connection works when I connect it to my mac book. Firewall is turned off. There were no major changes to the router settings other than changing the ISP login codes.
    Any ideas? Is this a configuration issue or a hardware problem?

    Hi Mick,
    If your router only supports 10/100 ethernet then it is possible that the auto-detect feature is not working properly to adjust to that speed. The mini has a Gigabit ethernet port. The OS by default sets the port to automatically negotiate the rate but it does not always work and the result is the problem you are having.
    To fix it you wlll have to manually set the rate to 100.
    To do this, open your system preferences, Select Network. Highlight the ethernet port on the sidebar, click the advanced button. Click on the Ethernet Tab, set the configure pop-up menu item to 100baseTX and click the ok button. If all works out you should see that the Ethernet port icon should turn green.
    Hope this helps.

  • Other PC can access internet via cable but not via wireless.

    Hi, I am new here. But I have a question hopefully someone can help to answer. I juts got myself signed up for one of those portable USB modem that you can use anywhere and you use a phone sim card to access the internet. I connect the usb device to my desktop computer and use a linksys wireless router to connect to other pc in the house. My problem is that the internet can be access by other pc's if I connect the other pc's via a network cable but no internet all if I connect via wireless. Any reason why it work via cable and not via WIFI? Is it the setting inside the router that is not set correctly. I pretty much left the setting on factory default except for the wireless network name. Any help to explain why this is happening is much appreciated. Thanks. Alex

    Follow these steps to upgrade the firmware on the device: - Open
    an Internet Explorer browser page.In the address bar type - 192.168.1.1
    Leave username blank & in password use admin
    Click on the 'Administration' tab- Then click on
    the 'Firmware Upgrade' sub tab- Here click on 'Browse' to select the
    extracted/uncompressed .img or .bin file and click on "Upgrade"-Wait for few seconds ....
    It shows that "Upgrade successful"  After
    the firmware upgrade, click on "Reboot" and you will be returned back
    to the same page OR it will say "Page cannot be displayed".
    Reset the router for few seconds ....
    Reconfigure it ....

  • Can connect via ODBC but not via SQL Developer?

    Hi, all.
    My setup:
    Windows XP Pro
    JDK 1.6
    SQL Developer 2.1.1.64.45
    I'm attempting to connect to an Oracle DB using OS authentication and trying hand-entry of the host and SID; and also trying my TNS file. When I attempt to connect via SQL Developer, I get the following error:
    "Status : Failure -Test failed: ORA-01017: invalid username/password; logon denied."
    When I attempt this same connection, however, using ODBC and Access, I can get right in and see the tables.
    What can I try in order to get SQL Developer working correctly?
    Thanks,
    IVR Avenger

    I'm not really familiar with connections Using OS authentication, but if OCI+TNS based connections work you could try to activate OCI connections by selecting
    Preferences -> Database -> Advanced -> Use OCI/Thick Driverand then use the TNS connection type when creating your connection.
    It should work well even with the thin driver but i cannot help you in this case because i've never had to use this kind of authentication.

  • Able to connect via airport but not via ethernet since fresh install

    New format and reinstall of OS X. Software update to 10.4.5. Now I need to use ethernet and I get an error. I did NOT have ethernet attached when doing the install.
    This used to work before the reinstall. I have tried different cables and different ports attached to the D-Link router (I use DSL).
    Other computers on the net (iMac G5 via ethernet and Windows via Wireless) have no problems.
    I have tried the network assistant, renewing DHCP lease (which does not work), manual config, ifconfig up and down and even tried to reapply the 10.4.5 update but to no avail. I have even rebooted (Ugh) several times.
    system log:
    Mar 12 19:17:04 Mach1 lookupd[70]: lookupd (version 369.2) starting - Sun Mar 12 19:17:04 2006
    Mar 12 19:17:06 Mach1 mDNSResponder: Adding browse domain local.
    Mar 12 19:17:07 Mach1 kernel[0]: ATY,ChockStone_A: vram [a0000000:10000000]
    Mar 12 19:17:07 Mach1 /System/Library/CoreServices/loginwindow.app/Contents/MacOS/loginwindow: Login Window Application Started
    Mar 12 19:17:07 Mach1 kernel[0]: ATY,ChockStone_B: vram [a0000000:10000000]
    Mar 12 19:17:08 Mach1 loginwindow[118]: Login Window Started Security Agent
    Mar 12 19:17:10 Mach1 kernel[0]: AirPort: Link Active: "UfiBase" - 001346a5c8fa - chan 6
    Mar 12 19:17:10 Mach1 configd[34]: SecKeychainFindGenericPassword err= -25308 ( =0xffff9d24, secErrStr=User interaction is not allowed. ) (current= UfiBase)
    Mar 12 19:17:13 Mach1 configd[34]: executing /System/Library/SystemConfiguration/Kicker.bundle/Contents/Resources/enable-net work
    Mar 12 19:17:13 Mach1 configd[34]: posting notification com.apple.system.config.network_change
    Mar 12 19:17:13 Mach1 lookupd[151]: lookupd (version 369.2) starting - Sun Mar 12 19:17:13 2006
    Mar 12 19:17:15 Mach1 configd[34]: target=enable-network: disabled
    Mar 12 19:17:25 Mach1 kernel[0]: AirPort: Link DOWN (Client disAssoc 0)
    Mar 12 19:17:25 Mach1 configd[34]: posting notification com.apple.system.config.network_change
    Mar 12 19:17:27 Mach1 mDNSResponder: Repeated transitions for interface lo0 (127.0.0.1); delaying packets by 5 seconds
    Mar 12 19:17:35 Mach1 lookupd[206]: lookupd (version 369.2) starting - Sun Mar 12 19:17:35 2006
    Mar 12 19:18:03 Mach1 kernel[0]: UniNEnet::monitorLinkStatus - Link is up at 100 Mbps - Full Duplex
    Mar 12 19:18:03 Mach1 configd[34]: DHCP en1: RELEASE transmit failed
    Mar 12 19:18:09 Mach1 configd[34]: posting notification com.apple.system.config.network_change
    Mar 12 19:18:09 Mach1 lookupd[281]: lookupd (version 369.2) starting - Sun Mar 12 19:18:09 2006
    Mar 12 19:18:37 Mach1 kernel[0]: AirPort: Link Active: "UfiBase" - 001346a5c8fa - chan 6
    Mar 12 19:18:37 Mach1 configd[34]: SecKeychainFindGenericPassword err= -25308 ( =0xffff9d24, secErrStr=User interaction is not allowed. ) (current= UfiBase)
    Mar 12 19:18:40 Mach1 configd[34]: posting notification com.apple.system.config.network_change
    Mar 12 19:18:40 Mach1 lookupd[285]: lookupd (version 369.2) starting - Sun Mar 12 19:18:40 2006
    What now? - I really don't feel like reinstalling with en0 connected just to fix this
    Thanks for any advice

    I would attempt to find a Windows machine to set it up as Samsung's Mac software is abysmal.
    However I have found this step by step on an Amazon review, I don't know if it will work:
    1. Setup the physical printer machine according to manual. Then connect it your Macbook via USB. Make sure the printer is powered on and verify the Macbook is powered on with wireless network Access.
    2. Insert the supplied software CD and double click on the CD from your desktop.
    3. Double click and execute to Mac_installer folder >Installer OS X icon.
    4. Complete the license agreement and installation steps.
    5. This will be a standard install without the wireless option. This is your only option. You will not be given a chance to do the wireless installation like in the Windows version install.
    6. Enter in the admin password to install the software.
    7. Once the software confirmation screen pops up to confirm your installation was successful, proceed to DISconnect your USB connection to you Samsung Printer.
    8. In case you missed it, Disconnect the USB connection between your Samsung printer and Macbook.
    9. Navigate to Applications > Utilities >Print Setup Utility  (For Mac OS X 10.5 - 10.7) Navigate to Applications > System preferences > Print & Fax.
    10. Click Add on the printer list (For Mac OS X 10.5 - 10.7, click the PLUS sign) and new display will pop up.
    11. On the "Default" Tab of the pop up display, select or highlight the Samsung printer. In the printer name column, it should be listed as "Samsung ML-2160 Series (NNNN)", then in the Kind column, It should be listed as "Bonjour"
    Note: DO NOT select the Samsung Printer with the "USB" in the Kind column. This Samsung printer - USB option should only be selected if you intend to print from USB.
    12.  Click ADD, then select continue to create the print queue.
    13.  Now open up any word document with text and print a test page.

  • Internal links work in FF but not IE

    After two days of trying everything and searching all forums I have got nowhere so here goes. Site has worked fine but when I created a new page (via save as and from a DWT file) any links on the home page to the new page do not work in IE9 but they are fine in FF. If i change the link to a page created befor the problem then it works fine so the issue is not the location of the link.
    the site is profitmanagement.co.uk but the version up is from before the problem - no point putting up a site that doesnt work!. I've reinstalled IE and have Norton antivirus so I doubt if the issue is malware.
    Thanks

    marinkod wrote:
    when I created a new page (via save as and from a DWT file) any links on the home page to the new page do not work in IE9 but they are fine in FF.
    I'm very surprised they work in any browser. If you use Save As with a DWT file, your links will always be wrong. To create a file from a DWT file, you should use File > New > Page from Template. As long as your DWT files are in the original Templates folder in the site root, the links should be correctly formed.

  • I'm able to connect via wifi but not via ethernet

    I have a iMac, Mac OS X v10.7.5, and recently had a problem connecting to internet.  I can connect via wifi, but when I try connecting via ethernet it's not working.  When I go to the preferences > network, it shows "green" / connected for ethernet but when I open up Safari or Firefox, it doesn't show a connection to the internet.

    Hi, this has worked for a few...
    Make a New Location, Using network locations in Mac OS X ...
    http://support.apple.com/kb/HT2712
    old... http://docs.info.apple.com/article.html?artnum=106653
    Hi, this has worked for a few...
    Though all of these steps may or may not be needed, I'm including them all.
    Make a New Location, Using network locations in Mac OS X ...
    http://support.apple.com/kb/HT2712
    10.5, 10.6, 10.7 & 10.8…
    System Preferences>Network, top of window>Locations>Edit Locations, little plus icon, give it a name.
    10.5.x/10.6.x/10.7.x/10.8.x instructions...
    System Preferences>Network, click on the little gear at the bottom next to the + & - icons, (unlock lock first if locked), choose Set Service Order.
    The interface that connects to the Internet should be dragged to the top of the list.
    If using Wifi/Airport...
    Instead of joining your Network from the list, click the WiFi icon at the top, and click join other network. Fill in everything as needed.
    For 10.5/10.6/10.7/10.8, System Preferences>Network, unlock the lock if need be, highlight the Interface you use to connect to Internet, click on the advanced button, click on the DNS tab, click on the little plus icon, then add these numbers...
    208.67.222.222
    208.67.220.220
    (There may be better or faster DNS numbers in your area, but these should be a good test).
    Click OK.
    10.5/10.6 instructions, System Preferences>choose interface>Advanced>Proxies Tab, make sure none are set, like for HTTP & HTTPS.

  • Web graphic links work on Mac, but not PC

    I have two websites. The old one is DogToysAndTreats.com. The new one is FunStuffForDogs.com. I need to change the home page graphic on both of them to point to my shopping cart pages. I have done this and published the changes on both sites. It works on my Mac but not on my PC.
    On www.funstufffordogs.com, the graphic at the top with the bulldogs is supposed to link to http://store.funstufffordogs.com/storefront.aspx. Same thing on www.dogtoysandtreats.com. It works on my Mac in both Safari and Chrome. On my PC, it doesn't work on IE, Safari or Firefox. (BTW, I haven't worked on any of the other links until I can figure out how to do it properly.)
    I don't get why the platform has anything to do with it.
    Lisa

    Looking at your source, the problem may be that the images refer to an external server link from the one actually hosting the website page.  Whenever you try to mix servers on a single page, you depend on the network connectivity being reliable to all the servers simultaneously.  This can be as much a problem on a Mac as a PC.  Sometimes routers have bad router tables, or internet providers do, and this can cause issues for multiserver websites.  Using on your router & network settings an OpenDNS DNS server can help:
    http://www.opendns.org/

  • ORA-01891 - Query works in SQL+ but not in JDev

    JDev 9.0.4 / DB 8i...
    I run a query in SQL+ and it returns results, I run it in JDev Worksheet and I get "ORA-01891: Datetime/Interval internal error".
    The query is a select from a view based on a synonym that links to a table in another DB (database link). I have boiled it down to it's "simplest" form for testing and it looks like:
    select * from some_table;
    I can also run this query in 9.0.5.2 worksheet.

    Funny you should mention that. The reason I found this error is because one of my VOs wasn't working, so I tried running the query in the worksheet. Didn't work there either but I was getting this different error (posted above). Anways, turns out the viewobject had the wrong attribute listed so I fixed that but the worksheet doesn't work.
    I don't think it's the attribute because the worksheet isn't directly connected to the VO so it shouldn't be aware of it. Additionally, only the VOs that are based on the view/synonym/link are affected.
    Thanks for the suggestion though!

  • Links work in Dreamweaver but not online

    Hello, I am trying to figure out why my flash files work correctly locally but don't after I upload them. I am using Mac Flash CS4 and AS2. (They were CS3 files originally)
    When I use Safari to view the uploaded files and check the Activity window it shows the files load but they don't show up. I have a main swf and others are loaded into it using:
    on (release) {
    loadMovieNum("flash/links.swf", 1);
    Are there any known bugs/work arounds to be aware of?  Thanks. -Derryl

    Almost always when something works locally but not on line... it's a path problem. And I see that you are accessing your .swf from a sub file.... nothing at all wrong with that, but you do need to understand how pathing in Flash works:
    Pathing issues
    Almost always when it works on the local machine and not the server, it's a pathing problem.
    You can put your Flash related files in whatever folders you want, they do NOT have to be in the root, they do NOT all have to be in the same folder. But if you have a problem and if sticking them all in the root folder works, then you know that the issue was a pathing problem.
    Just remember that paths used in the .swf become relative to the Web page on which the .swf is placed, NOT it’s physical location.  So for example, if your .swf is in the flash/data folder and you use that .swf on a Web page in the root folder, you are in effect, removing that .swf from flash/data and putting it in root. So if the .swf is loading any related files (xml, images, video, etc), the path used inside the .swf to load the .xml file has to be relative to it's new location in root and then back down into flash/data. This is true even though when testing the .swf by itself, it can be inside flash/data and work just fine, since relative to it's location, the path is just fine, they are in the same folder. But if that same path is used when the .swf is placed on a page two folder levels up, the relative path has changed, the old "same folder" path will not work.
    In fact if you are placing the .swf on a web page in a different folder than the .swf is stored in, and that .swf calls external assets, then direct clicking and opening of the .swf in it’s folder should NOT work! That’s because the paths to the external assets should be relative to the Web page and not the physical location of the .swf.
    So just be sure that you use addresses relative to the final Web page locations (not physical file locations) and you can put the Flash related files in what ever folders you want.
    Best wishes,
    Eye for Video
    www.cidigitalmedia.com
    Best wishes,
    Adninjastrator

Maybe you are looking for