Is there a way to access object from other schema?

1. Is there a way to access object from other schema
Without using synonym/public synonym without prefixing schema owner?
2. If you do not see any object in all_objects by same name owned by connected user or public, can there still be objects hidden from this view? for instance synonyms created by SYSTEM
TIA for help

Well, you missed something somewhere. If there is no
ALTER SESSION SET CURRENT_SCHEMA=whoeverthen there must be either public synonym for the object as this shows:
SQL> CREATE USER a identified by a;
User created.
SQL> GRANT CREATE SESSION to a;
Grant succeeded.
SQL> CREATE USER b identified by b;
User created.
SQL> GRANT CREATE SESSION, CREATE PROCEDURE, CREATE PUBLIC SYNONYM to b;
Grant succeeded.
SQL> connect b/b
Connected.
SQL> CREATE PACKAGE test AS
  2     PROCEDURE testit;
  3  END;
  4  /
Package created.
SQL> CREATE PACKAGE BODY test AS
  2  PROCEDURE testit IS
  3  BEGIN
  4     NULL;
  5  END;
  6  END;
  7  /
Package body created.
SQL> connect a/a
Connected.
SQL> desc b.test
ERROR:
ORA-04043: object b.test does not exist
SQL> connect b/b
Connected.
SQL> GRANT EXECUTE ON test TO a;
Grant succeeded.
SQL> connect a/a
Connected.
SQL> desc b.test;
PROCEDURE TESTIT
SQL> desc test;
ERROR:
ORA-04043: object test does not exist
SQL> connect b/b
Connected.
SQL> CREATE PUBLIC SYNONYM test FOR TEST;
Synonym created.
SQL> connect a/a
Connected.
SQL> desc test
PROCEDURE TESTITAnother possibility without public synonyms is that crv had granted the other user privileges on some object, and the other user creates a private synonym for that. When crv granted privileges on a different object with the same name, the private synonym became valid again. Something like:
SQL> connect /
Connected.
SQL> drop public synonym test;
Synonym dropped.
SQL> GRANT CREATE SYNONYM TO a;
Grant succeeded.
SQL> connect a/a
Connected.
SQL> desc test;
ERROR:
ORA-04043: object test does not exist
SQL> desc b.test
PROCEDURE TESTIT
SQL> CREATE SYNONYM test FOR b.test;
Synonym created.
SQL> desc test;
PROCEDURE TESTIT
SQL> connect b/b
Connected.
SQL> REVOKE EXECUTE ON test FROM a;
Revoke succeeded.
SQL> connect a/a
Connected.
SQL> desc test;
ERROR:
ORA-04043: object "B"."TEST" does not exist
SQL> desc b.test
ERROR:
ORA-04043: object b.test does not exist
SQL> connect b/b
Connected.
SQL> DROP PACKAGE test;
Package dropped.
SQL> CREATE FUNCTION test (p_num IN NUMBER) RETURN NUMBER AS
  2  BEGIN
  3     RETURN p_num * 10;
  4  END;
  5  /
Function created.
SQL> GRANT EXECUTE ON test TO a;
Grant succeeded.
SQL> connect a/a
Connected.
SQL> desc test;
FUNCTION test RETURNS NUMBER
Argument Name                  Type                    In/Out Default?
P_NUM                          NUMBER                  INSo, I would go looking for the synonyms.
TTFN
John

Similar Messages

  • Is there any way to access files from the Classic environment to my iMac running on Leopard (10.5.8)?

    Is there any way to access files from the Classic environment to my iMac running on Leopard (10.5.8)?

    Sorry, no.

  • Is there a way to access 11i from outside other than Self service?

    Is there a way to access 11i from outside other than Self service?
    I could connect any application from inside the firewall (basically router) and can not access screens from outside. Eventhough port forwarding 80 allows us upto initial screen, it does not go further.
    Any workaround/suggestions
    Jiltin

    Hi Jiltin,
    If you can migrate your forms server into Forms Listener Servlet.This will allow you to use forms outside firewall provided atleast one port(assuming yours 80) is open.
    Ref to the M.Link Note 201340.1 for how to setup forms listener servlet.
    Magesh

  • Is there a way to access notes from iPhone 4 in Snow Leopard without using Mail?

    I want to be able to access the notes from the iPhone 4 notes app on a Macbook Pro, running Snow Leopard, without using Mail.  Is there a way to do this?  Any good 3rd party software that does it without storing the information in the Cloud?

    You could probably use something like PhoneView
    http://www.ecamm.com/mac/phoneview/
    but, frankly, I thnk that's more of hassle than just setting up an iCloud or other IMAP account on the iPad.
    Even if Notes syncing is the only feature you use, it's going to be a far more seemless experience.
    Matt

  • Is there a way to access ibookstore from the mac without starting iTunes?

    I was wondering if there is a way to search ibookstore from safari or something other than itunes. I really find itunes search chaotic since it returns results for movies, apps, music, podcast and tvshows when I am simply trying to find a book.
    Any advice would be greatly appriciated! (as a side question is there any way to stop itunes for returning results for every possible type of media? When I am trying to find a movie I am in no way interested in an app by the same name)
    Thanks!

    I liked your fix, but after an input of:
    defaults write com.apple.Safari.com.apple.Safari.ContentPageGroupIdentifier.WebKit2BackspaceKe yNavigationEnabled -bool YES
    ...the cursor in Terminal went back to a prompt (not familar with Terminal I don't know if that's good or bad), yet, still nothing on the backspace. The backspace has become such a habit and now a clunky break in my workflow, I'd sure like to figure out what the fix might be.
    I'm on Safari 6.0 (7536.25), using a MBPro, OS X 10.7.4
    Thanks!

  • Is there a way to import ebooks from other sellers into iBooks?

    I bought a printed book from Writer's Digest and it came with a free ebook copy. Is there a way to import it into iBooks?

    If the book is in .epub or .pdf format and does not have any DRM, you should be able to add it to iBooks by just dragging the file into the app or using a menu item (Add Books or something similar).

  • Is there a way to access files from an incomplete backup

    I returned the phone without realizing my backup was incomplete. Is there anyway to access the files from the incomplete backup? It shows 3.7 gigabytes were backed up.

    Thanks.
    I'm not sure if they recover optical media either. Will have to look more carefully at their site.
    But the fact that there are many PC optical media recovery programs that feature optical media recovery leads me to doubt that Data Rescue can do it.
    But like I say, I will look more carefully at their page and perhaps send them an e-mail to be sure.
    Appreciate the answer. It was helpful.

  • Is there any way to access backups from another machine?

    In an immense screwage, Apple has misplaced my macbook pro on the way to depot service.
    Given the fact that I do expect them to eventually get it back to me, is there anyway to access the time machine backup for the missing machine?

    See # 17 in Time Machine -- Frequently Asked Questions by Time Machine wizard Pondini.
    http://pondini.org/TM/FAQ.html

  • Is there a way to lockmy bookmarks from other users of my cpu

    I have personal information and bank records in my bookmarks. My daughter and son inlaw are moving back home so expect they will use my cpu. Iwant these things to remain private ie lock them out of my bookmarks your help would be appreciated thank you.

    I want seperate Bookmarks for separate users too. I do not fully understand how I protect my Windows account for each user. I come from AOL where each user logged in independently and had their own 'favourites'. At the moment my Bookmarks are all lumped together - thanks

  • Accessing objects from an existing JVM on Windows

    I have a Java class that is running in an existing JVM which is running on local windows workstation. Is there a way I can access any methods or objects from the running Java class and other objects running inside the JVM from C or C++ code using Invocation API?. I know there is a way for us to ATTACH to a JVM that was created from C/C++ but I am looking for a way to access objects from a JVM that was started either as a service or started by other means.

    How did you start the C++ code?
    It is possible to load the c++ dll within your Java code then you may access the c++ code by using native methods out of Java. By calling the c++ method you have the pointer to your Java object and my use it (=> don't forget to use global references).
    If you have started both seperatly C++ in an extra process and Java in an extra process then it can be complicated. Guess that there aren't any easy solution.
    This mean: either you have your Java code loading a dll or you have C++ creating a JVM...

  • Is there any way to access a PDF in iCloud on an iOS device?

    After a PDF has been saved in iCloud, is there any way to access it from an iOS device (iPad)?

    No, you can only view it from a Mac that is signed into your account.

  • Is there a way to "deauthorise" computers from your apple ID without having access to those computers?

    Is there a way to "deauthorise" computers from your apple ID without having access to those computers?

    Hi there ellou86!
    I have an article here for you that can help you with this question:
    iTunes Store: About authorization and deauthorization
    http://support.apple.com/kb/HT1420
    Specifically, it seems that this is the portion of the article that is most relevant to your question:
    To deauthorize all computers associated with your Apple ID
    If you need to authorize your new computer and are unable due to already having five authorized computers, you can deauthorize all computers by doing the following:
    Click iTunes Store on the left side of iTunes.
    If you're not signed in to the store, click the Account button, then enter your account name and password.
    Click the Account button again (your Apple ID appears on the button), enter your password, and then click View Account.
    In the Account Information window, click Deauthorize All.
    Note: You may only use this feature once per year. The Deauthorize All button will not appear if you have fewer than two authorized computers. If you need assistance on using this feature, please contact iTunes Store support via email (http://www.apple.com/support/itunes/store/).
    Thanks for using the Apple Support Communities!
    Cheers,
    Braden

  • I had my iphone stolen which had quite a lot of music on that I had downloaded from itunes but not synced with itunes on my computer.Is there any way to access the music now or is it lost?

    Hi,
    I had my iphone stolen a few weeks ago which had quite a lot of music on that I had downloaded from itunes via my phone but had not synced with itunes on my computer.
    Is there any way to access the music now or is it lost? Thanks x

    By any chance, did you have the Find My iPhone app installed prior to it being stolen?
    Reporting a lost or stolen Apple product
    Hopefully you had your iTunes purchases backed up to an external source such as an external drive or CD's?

  • Is there a way to access my wish list in iTunes from my iPad

    Is there a way to access my wish list in iTunes from my iPad

    I'm asking the same sort of question in another thread. I had access to my wish list on my ipad2 but now I can't seem to find it. Dammed frustrating.

  • The videos I purchased on iTunes are taking up all the storage on my IPad. Is there a way to remove them from my iPad to free up some storage, but store them in the cloud to access in the future?

    The videos I purchased on iTunes are taking up all the storage on my IPad. Is there a way to remove them from my iPad to free up some storage, but store them in the cloud to access in the future?

    Thx - the videos are on my Ipad - that is the problem - they are taking up all the storage and there is no room for anything else. Is there any place I can store them so that I can access them from time to time, but not have they use up all the space on the IPad? Sounds like the cloud is out...

Maybe you are looking for

  • Managing movie files on a MBP

    Until the last month or so, I've used a powermac G5 as my computer. Now that I've added a shiny new MBP with a 750 gb drive, I'm having all the normal growing pains that come with such. Amazed with the speed boost, having to learn to deal with big ti

  • Tv videos won't synch

    I got my new 80 gb video ipod and have had it hooked up to my Dell laptop with Windows XP for two days. It loads the music and podcasts but not the videos. I have tried everything I can think of, including unplugging it and plugging it back in, chang

  • E-mailed photos received blurred

    MY photos on camera roll are lovely, but recently when I have emailed them to friends, they say that they are received blurred.   Also, previously when sending the photos, they filled the whole width of the email, but now they are reduced in size and

  • HT201272 can't download anything from itunes store say's part of the file is corrupt

    I have been trying to update apps for my iphone 5. I have the most current version of itunes. I also have tried to purchase new music and cant do that. I did in the beginning have ability to download but only for short time. I have been to MS making

  • Offline doc : Business package for business unit analyst

    Hi experts, I'm looking for an offline doc for the business package "business unit analyst 2". I've found the online doc <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/5e/083f403f0a9354e10000000a155106/frameset.htm">here</a>, but I want som