SQL exec OK, but trying to put in PLSQL proc gives "insufficient privs" err

Oracle 9201
User: ABC
I have an SQL:
SELECT * FROM xyz.TableName;
It runs fine under ABC user.
Now I try to make a Stored Procedure:
PROCEDURE TEST(
  O_CURSOR OUT SYS_REFCURSOR
) IS 
BEGIN
  OPEN o_cursor FOR SELECT * FROM xyz.TableName;
END TEST;Error:
Line: 5 Column: 39 Error: PL/SQL: ORA-01031: insufficient privileges
The line/column indicate the ".TableName"
Why does ABC user not have privs to make a proc that accesses another user's tables? If I make the proc "SELECT * FROM DUAL" the proc compiles okay.
Please help! :)

> Oh how perfectly bloody irritating! :)
If a privilege via a role would be enough, too much invalidations of procedures would happen for each single grant or revoke to that role. Now THAT is what I would find irritating ...
> ABC does indeed get all its privs via role. It needs
access to all tables in other user spaces because it
is the reporting user. Must I write an sql like:
SELECT 'grant select on ' || table_name ||' to abc;'
FROM all_tables where owner <> 'ABC'
No, only the objects needed for the procedure should be granted, not everything in general.
> and paste the results into my query analyzer, and execute it?
I am not familiar with that I guess.
Regards,
Rob.

Similar Messages

  • Database link create but not fatch data from link database give me this err

    Sir I create database link with this command system create link
    but when I user query then system give me this error you see in blow
    SQL> create database link xyz connect to mfatest identified by mfa786 using 'aamir';
    Database link created.
    SQL> select * from accbal@xyz;
    select * from accbal@xyz
    ERROR at line 1:
    ORA-28546: connection initialization failed, probable Net8 admin error
    ORA-02068: following severe error from XYZ
    ORA-03113: end-of-file on communication channel
    this is same database but diffrent user
    scott user
    mfatest user
    please give me idea how i fatch data from link database/link other user
    thank
    aamir

    On the machine where you get that error does this work ?
    SQL> connect mfatest/mfa786@aamir
    SQL> select count(*) from accbal;
    If it doesn't, please post tnsnames.ora and sqlnet.ora from local machine, and the result, on remote machine, of
    C:\> lsnrctl services

  • I bought a second hand i phone 3g im trying to put facebook app on but it tells me i need ios 4.3.

    i bought i phone 3g   but trying to put the facebook app on but it tells me that i need  ios 4.3. does anybody no what to do or a link for face book mine is 4.2.1 thanks

    There is nothing you can do other than use the web app at www.facebook.com.
    4.2.1 is the end of the line for the 3G. It was discontinued over 2.5 years ago.

  • I am trying to put music into my 3rd gen ipod touch and older ipod shuffle but they do not show up on Itunes when i connect them,what could be the problem?

    i am trying to put music into my 3rd gen ipod touch and older ipod shuffle but neither are popping up on itunes, what could be the problem?

    See
    iOS: Device not recognized in iTunes for Windows
    - I would start with
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    or              
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    However, after your remove the Apple software components also remove the iCloud Control Panel via Windows Programs and Features app in the Window Control Panel. Then reinstall all the Apple software components
    - New cable and different USB port
    - Run this and see if the results help with determine the cause
    iTunes for Windows: Device Sync Tests
    Also see:
    iPod not recognised by windows iTunes
    Troubleshooting issues with iTunes for Windows updates
    - Try on another computer to help determine if computer or iPod problem

  • I have been trying to put music I bought on I tunes on my Samsung Note 2 phone but it won't play.I try to convert them to mp3 format so I can play them on my phone but it won't let me convert them because it says they are protected. Can anybody help me?

    I have been trying to put music I bought on Itunes on my Samsung Note 2 but my media player won't play m4p files so I tried to convert the files to mp3 but I couldn't, because a message says they are protected files. I then tried downloading different media player apps to see if they would play them but had no success.Can anybody help with a solution to this problem?

    First quit iTunes and look in your iTunes folder.
    On Windows, the iTunes folder is in your My Music folder.
    On Mac, the iTunes folder is in your Music folder.
    Follow this path:    iTunes > iTunes Media > Music >
    Here there should be all your music folders. Open the folders containing the music that is not playing. Right click "get info" (mac) or right click "properties" (windows).
    This window will tell you the file type. iTunes will play music in AAC, MP3, and Lossless, etc.
    If the files are .wma you will need to convert them into ACC or MP3 format for it to play on an iPod. In iTunes, highlight the tracks that you want to convert, then on the menu bar, Advanced > Create AAC/MP3 version and the tracks will convert. Delete the old files.
    If the file extenstion is anything like .exe .txt .rar  then you don't have an audio file.

  • I was trying to put my password but it is not working. My Ipod touch is showing "Ipod is disabled, connect to Itunes". But I tried to connect but the Itunes tells me that I need the password first to connect.I do not know the password. what should I do?

    I put the password in my Ipod and now I am trying to put it again but it is not working....I tried to connect with the Itunes and it is not working because to the Itunes work with my Ipod, I need the password first, which I do not know. In my Ipod is showing "Ipod is disable, connect to Itunes". I was trying to connect but I can't...what should I do ?

    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Wrong passcode results in red disabled screen                          
    If recovery mode does not work try DFU mode.                         
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings         
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: How to back up
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • My iphone 4 wont turn on. it justr randomnly turned off and i have tried to hold the home and sleep buttons for a minute and also tried to put it into recovery mode but nothing is working?

    my iphone 4 wont turn on. it justr randomnly turned off and i have tried to hold the home and sleep buttons for a minute and also tried to put it into recovery mode but nothing is working?

    See Here  >  http://support.apple.com/kb/HT1808
    You may need to try this More than Once...
    Be sure to Follow ALL the Steps...
    But... if the Device has been Modified... this will Not necessarily work.

  • I have 2 iphoto libraries. How can I delete one? I have tried to put one in trash but it deletes both. Help

    I was transfering photos from an external hard disk. While doing this somehow or another I created another library. I have an additional icon on my desktop. I tried to put it in the trash but then it deletes iphoto from the computer. I just would like to get rid of the icon without deleting iphoto.

    Welcome to the Apple Support Communities
    If you've copied your iPhoto library to an external disk, it's normal that it appears. Anyway, open iPhoto holding Option key and look at the library you want to delete. At the bottom of the window, you must see the directory where it's, so just go here and delete your library

  • Hi,I'm trying to put all of the songs on my ipod classic to a hard drive for back up but it's only adding songs that I have purchased from the store but none of the albums that I put on from my cd collection.Is there a way to do this please?

    Hi,I'm trying to put all the songs from my ipod classic onto an external hard drive,but it is only putting purchases from itunes onto hard drive and not any of my old cd's that I put onto the ipod manually.Am I doing something wrong?Thanks.

    Since it has always been very basic to backup your computer and all it's data, Apple provides no way for you to transfer music from your iPhone back to your computer.  As you know, you can re-download all iTunes purchases, but music that you ripped yourself you'll have to just re-rip again.
    You can try and find 3rd party applications that might help you.  I'm sure you'll pay, however.
    Let this be a very important lesson learned.
    Best.

  • Can anyone tell me how to fix my iPod. I was updating it and I turned it off in the middle of the update. I tried to put it through a recovery on the iTunes but it keeps giving me 3194.When I turn it on it will go to a light blue screen.

    Can anyone tell me how to fix my iPod.I was updating it and I turned it off in the middle of the update. I tried to put it through a recovery on the iTunes but it keeps giving me 3194.When I turn it on it will go to a light blue screen.

    See the action for that error included here:
    iTunes: Specific update-and-restore error messages and advanced troubleshooting

  • Well my iPod is the 2nd generation and i had to update it, but when i did i tried to put one of my pictures as the wallpaper but it didn't work. How can i fix it?

    Well my iPod is the 2nd generation and i had to update it, but when i did i tried to put one of my pictures as the wallpaper but it didn't work. How can i fix it?

    http://support.apple.com/kb/ht3406

  • I have a ipod nano 1st and 2nd generation and am trying to put music on it but every time windows says one of the usb devices attached to this computer has malufunctioned and windows does not recognize it code 43 can someone help me please

    i have a ipod nano 1st and 2nd generation and am trying to put music on it but every time windows says one of the usb devices attached to this computer has malufunctioned and windows does not recognize it code 43 can someone help me please

    Try putting it into "Disk Mode" http://docs.info.apple.com/article.html?artnum=93651
    Then with it in this mode connect it to the PC and try to run the latest iPod updater to do a restore and update software if you have the option. the latest iPod updater is 2006-03-23 and can be downloaded here http://www.apple.com/ipod/download/

  • I am trying to put an album on to my ipod but when i drag it over nothing happens ? i have tried  everything please help

    I am trying to put an album onto my ipod but when i drag it over to where it says ipod nothing happens, the album is "triple j hottest 100 2012"

    Hello there, ShipTheWhouffle.
    The following Knowledge Base article has some pointers on making sure you get the podcast onto your iPod shuffle:
    iPod shuffle: Playing audiobooks and podcasts
    http://support.apple.com/kb/HT1831
    Specifically:
    Adding Audiobooks and Podcasts to iPod shuffle
    The Autofill feature of iTunes will not add audiobooks and podcasts to any iPod model. They can be manually added by dragging them to the iPod shuffle in iTunes.
    For iPod shuffle (3rd generation), you must enable Manually manage music in the Summary tab to drag songs to iPod shuffle. Additionally, you can automatically sync audiobooks using the Music tab and sync podcasts using the Podcasts tab in iTunes.
    iPod shuffle (3rd generation)
    Playing Audiobooks and Podcasts on iPod shuffle
    When using iPod shuffle (1st and 2nd generation), if iPod shuffle is set to shuffle songs it will play all the audio files on iPod shuffle except audiobooks and podcasts1. To play an audiobook or podcast, set the switch on iPod shuffle to play in order .
    When using iPod shuffle (3rd generation), podcasts and audiobooks will not be played when content is playedfrom All Songs. If content is played from a playlist synced from iTunes, audiobooks and podcasts will only be played if the iPod's switch is set to play in order . In addition to playlists synced from iTunes, iPod shuffle (3rd generation) will create a special playlist for each audiobook synced and one for podcasts. When accessing these special playlists, audiobook and podcast content will play whether the iPod is set to play in order or shuffle songs . Podcast are sorted by alphabetical order and then by episode date.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro D.

  • I am trying to put my icalendar on icloud, but the pull down menu will only offer MobileMe as a designation.  When I try to enter my Apple ID, etc, it goes to a dead end loop.  I've updated Apple software but MobileMe is still there as a choice, not iClou

    I am trying to put my ical on icloud on my mac and iphone4s but the alternative locations menu only shows Mobileme as a selection choice, not iCloud.  I have updated all software on computer.  How do I get iCloud sync when iCal will not give it as a choice?

    You need to be running OS X 10.7.2 or later. Your signature states you are running 10.6.8
    You can buy OS X Mountain Lion 10.8.1 from the Mac AppStore.

  • My iphone 4s is saying NO SERVICE.I tried to put it on airplane mode,tried to reset the network setting and also tried to restore my phone but none of the above things worked.Do you guys have any idea what should i do now?

    My iphone 4s is saying NO SERVICE.I tried to put it on airplane mode,tried to reset the network setting and also tried to restore my phone but none of the above things worked.Do you guys have any idea what should i do now?

    Hi sunnylordz,
    Thanks for using Apple Support Communities. Based on what you stated, it sounds like you have no service on the iPhone. It looks like you have already done some troubleshooting. There is one step you did not mention trying that i think is worth trying. 
    If you see No Service in the status bar of your iPhone or iPad - Apple Support
    Remove the SIM card. If the SIM card is damaged, worn, or bent, or if it's too big or small for the SIM tray, contact your carrier for a new one. Then reinsert the SIM card.
    Cheers,
    Mario

Maybe you are looking for

  • The system failed to merge, error code : General Access denied

    The system failed to merge, error code : General Access denied. Could anyone help me on this

  • "Font not found on the system" for work logo font

    I just started a new job and every single AI file I work with in illustrator is using VTypewriterRoyal - the company logo. It automatically defaults to Myriad with the msg: "Font not found on the system; missing font has been substituted." I've spent

  • Backup set different than volume - do I need to care?

    New to external hard drive back ups. Using an external Iomega firewire hard drive and Retrospect. The Iomega came with its backup software and Retrospect. Question 1: Does this mean the mac does not use the iomega software? Tried my very first backku

  • IE problem- in same versionsite  looks different

    Hi, I am very baffled by this IE behavior. I look at the page (all gallery pages do this BTW), on my PC-Explorer version 7.0.5730.13 and everything is where it should be. My client (!) looks at the same page on her computer IE version 7.0.5730.11, an

  • Where is 'today' button?

    In the Tiger ical there was a button on the mini-month interface. Clicking on it brought you back to the today month. It is gone in Leopard? Or am I not looking at the right place?