Interactive package vs permission issues?

This piece of code works fine when entereed (or using the source @) in a sqlplus session:

Start
FOR f IN (select sys.dba_data_files file_name)
LOOP
dbms_output.put_line ('is' | f.file_name);
END loop;
end;
/

I tried making it a procedure in a package (comments with reference to the below error line/column):

create or replace package my_pkg
as
procedure my_proc;
end my_pkg;
/
display errors

create or replace package body my_pkg
as
procedure my_proc
is
Start
FOR f IN (select sys.dba_data_files file_name)
-^ 6/13 ^ 6/39
LOOP
dbms_output.put_line ('is' | f.file_name);
-^ 9/7 ^ 9/42
END loop;
end;
end my_pkg;
/
display errors

But what causes the following errors:

Package created.

No errors.

WARNING: The body of a Package created with compilation errors.

PACKAGE BODY MY_PKG errors:

LINE/COL ERROR
-------- -----------------------------------------------------------------
6/13 PL/SQL: statement ignored
6/39 PL/SQL: ORA-00942: table or view does not exist
9/7 PL/SQL: statement ignored
9/42 PLS-00364: variable loop index "F" use is not valid

Why?

I am aware that ORA-942 means usually not sufficient privileges. But in an interactive way, I choose the table successfully (it is owned by sys). I tried two schemas different non - sys, with the same result.

Help?

When you want to use a table inside a stored procedure, function, or package, you must grant access directly to the owner of the procedure/function/formula.
You can't grant by role. Grant through role is sufficient for interactive sql, but not for the stored procedure.

So:

1 login as the owner of the table
2. select on grant

à ;
3 log in as the owner of the procedure
4 compilation

Published by: hm on 01.11.2010 12:14

Tags: Database

Similar Questions

  • CC apps install not because of permission issues

    Windows 7 Home Premium on an HP Elitebook-tent to install apps for a trial subscription. Dreamweaver no problem but the fuse or Muse download and extract, but fail because of administrator permission issues (yes I am logged as an administrator). Help page has six different ways to try to solve the problem!

    ERROR: DF024: cannot move the file in "C:\Program Files (x 86) \Common {359F8007-6486-429C-A8C5-D67F6897C88C} \_49_b1a180df737ef 938a5580ffdcd494c15 ' to 'C:\Program Files\Adobe\Adobe bridge CC (64 Bit) \libmmd.dll' error 32 the process cannot access the file because it is being used by another process... Try setting the correct permissions for the specified file/folder or parent, so that the admin has the right to modify. (Seq 115)

    I give up to...

    Never approved and validated. No help from Adobe. Certainly not to use your product for web design classes. Open source is easier.

    Run as Administrator http://forums.adobe.com/thread/969395 to assign FULL permissions can help... said yet, but sometimes it is necessary for all Adobe programs (this is same as using an administrator account)

  • Using a Mac OSX updated 10.9.5, to update to the latest update of Lightroom, now get error - Lightroom met permission issues. Click on fix - cannot fix. You click on read more and I tried all the solutions. Always error. Uninstalled and reinstalled - alwa

    Using a Mac OSX updated 10.9.5, to update to the latest update of Lightroom, now get error - Lightroom met permission issues. Click on fix - cannot fix. You click on read more and I tried all the solutions. Always error. Uninstalled and reinstalled - always error.  Cannot set up a new admin on Gov't computer user. Help

    Please make sure that you gave permission for the folders listed in the article, follow these steps.

    1 - give read and write permissions for the Application Support folder and preferably on User Library and the secret library.

    2 - Add user and admin both permissions.

    When you open the Get Info option for specific folder.

    Make sure you click on '+' symbol, it will open the list of user accounts. Add currently logged in user account and Director of user account, if it is not added.

    Both must have read and write to prevent access these some questions in the future.

    Important:

    Once you added as currently logged on user account and administrator user accounts and provided access for reading and writing.

    Make sure you click on the gear icon and select apply to closed.

    Lock dialog box and close the Get Info .

    So that all the folders in the folder Adobe will get read and write access.

    Let us know if this helps

    ~ Assani

  • I keep getting permission issues at the launch of LR on Mac.

    I'm unable to luanch LR on my my MacBook Air (Creative could account) because he says there are permission issues. I looked at permission and everything seems OK for me.

    Hi Bkeffeler,

    Please visit the following link: update on CC (for PS, LR and bridge) online and met a permissions problem with LR on three dossiers?

    Kind regards

    Tanuj

  • New to CC, impossible to save preferences due to permission issues. What should do?

    CC can also create CC library. Maybe even reason...

    Hi Michael

    Can you tell us what operating system you are using?  I think the permission issues are mainly with OSX systems, but it is covered in this troubleshooting guide

    http://blogs.Adobe.com/Crawlspace/2012/07/Photoshop-basic-troubleshooting-steps-to-fix-MOS t - issues.html #Permissions

  • Edict of CC of LR RAW for PS not around trigger-permission issues

    I have permission issues. iMac, El captain. LR of CC and PS, to date. The iMac is part of a large desk, so he managed rights.

    I can't edit a raw of LR to PS I can open a raw directly in PS, camera raw is not the issue, they all have two match. I ran the mac in safe mode, and the edit function works.

    So somewhere the authorization are disabled.

    So, nobody knows What files and folders is written to when you run the RAW file import of ambient light for Photoshop layer . So I can have my people IT change the permissions

    Thanks in advance!

    Start Finder and highlight the application with your version or CC 2015 - see image.

    Press Cmd + i to bing to the top of the dialog box for information and to ensure the admin and user have read & write permissions.

  • between xp and 7 permission issues

    I have an external hard drive with huge amounts of music on it.  recently, my phone died and I bought a new.  the old laptop is running xp.  This one works in 7.  I was logged in as administrator on the xp system.  I log in as an administrator on the system 7 and now I have permission on the hd position issues.  I can fix it individually, but we are talking about tens of thousands of files.  What can I do to the lot or difficulty all of the disk?

    This utility can help speed up the taking of possession of a large number of files - http://www.howtogeek.com/howto/windows-vista/add-take-ownership-to-explorer-right-click-menu-in-vista/

    Jim

  • FTP error access denied permission issue permission to the server folder may not exist

    I've been using mx2004 then passed to cs3 and errors of publication I upgraded to cs4 thinking that might be the problem.

    I have 2 separate sites with 2 separate logins/passwords ftp.

    Only on 1 of the sites (including one with php and a site of big file that my provider has told me) I can't 'put' publish my site.

    My provider says that has nothing to do with their side.

    When I try and download the KB on the web range from 1 KB to 0kb and wipe the info.

    Each week, I use to update one of my sites.

    I added to the server a coral share Photo Album 2 weeks.

    That's when I could not been / publish my info up-to-date on my pages. But only on 1 site. The other with different site

    login/password allows me to change/to update the pages and put / post them.  It is the site of the coraldraw on.

    I took it off the coast of thinking maybe that was the issue...

    my ftp access is correct.

    my tests of connections to the sites is good.

    When turning on the remote server, it gives the following error:

    THE ERROR I GET:

    Start date: 17/07/2009 19:05

    Connected to "the name of my company."

    testzz.HTML - error - FTP is an error - can not put testzz.html. Access denied.

    The file exists may not, or there could be a permission problem.  Make sure that you have the appropriate permissions

    the server and the server is properly confirgured.

    Activity of the incomplete file. 1 file (s) or folder (s) have not been filled.

    Files with errors: 1

    testzz.html

    Completed the: 17/07/2009 19:05

    When I go to the remote site, the name of the file is showing but no content. zero KB

    I'm working on a pc. Windows xp

    I deleted the files, folders and all the ftp commands. I started on and also updated cs4.

    I removed the web album of corel draw.

    I upgraded to IE 8

    My provider has done a test page.html. I could see with 6kb. When I access the page and put some info on this subject and then put/post it goes to a blank page with 0 kb.

    Help, please... Thank you!

    Have you tried to use a distinct and 3rd party FTP client? If you can successfully connect and download to aid what he would suggest process FTP of Dreamweaver is messed up. And unfortunately, this is not surprising as it may seem, it is a part of Dreamweaver, I can meet quite regularly problems with. You can try to play with the site settings by using the Advanced Options tab, which will provide you with some additional settings for the FTP and see if that helps. Otherwise, you will have to just work around it with another FTP client.

  • Folder, permission issues, launch or directory? Help, please!

    Hi all

    I'll try to keep this long history of strategies to solve problem as brief as possible. MBP mid 2010 Yosemite running started glitching around Christmas (CPU, memory and requiring hard reboot followed by a freezing kernel panic) and I began research on what might be wrong. Makes backups (clone SuperDuper and TM BU). Make a disk bootable for El Capitan. Tried the usual suspects... check disk, disk repair, SMC reset, reset the NVRAM, etc.. Problem persisted. I tried clean of El Capitan and utility disk installation failed to go back and take down? disc after erasing. Bought a new SSD. SSD formatted and installed several times and several times there no shortly after or during the installation of El Capitan (gray screen with "no symbol" indicating no OS). Replacement internal SATA cable - that did the trick with the original hard disk installed with a clean install of El Capitan. Kept new SSD in attachment and clone of Yosemite BU SuperDuper copied on it (as she has MS Office - I have the product key). Can start from and access all of the SSD connected via USB, but some of the original problems (high CPU and memory) remained. In recovery mode, I have reset the directories for all users and administrator. I have improved the SSD to El Capitan and the problems continued. Console reads the questions with the lsd, mdworker, WindowServer and iconservicesagent (mostly). Tried to fix the permissions and cleaning of the caches using Onyx, which did fix some problems related to printers permissions. Need help, know where to go from here. Any help would be greatly appreciated!

    Thank you in advance,

    Pascal

    Kernel panics are most often due to problems of RAM.  But given that you've been through so many troubleshooting steps, it is difficult to know where things went wrong.

    For one thing, there is no clean install.  If you mean you erase and installed and persist in obtaining the kernel panics, he stresses more clearly material being the issue.  And since you have the Mac 2010, you will need the original installer disks to perform a test of expanded material.   If you have done this, the test reveals any problems, then you clearly have a RAM problem.   See my FAQ * about bad RAM:

    http://www.macmaps.com/BadRAM.html

    Otherwise, any error you get from the material testing, should be examined by an authorized technician.

    * Links to my pages give me an allowance.

  • Permission issues key on the remote desktop session host server

    Morning all,

    I tried to fix a few problems that we wanted on our new Office Server remotely.

    This is a new server that we have put in place a few days ago and is now on the site in a remote and ready to leave office.

    We moved a few users on the server yesterday to begin to test it, but met with some major problems that we have not seen before.

    Server 2008 R2 and is the host of the session, and server roles installed licenses, as well as services (search and file server roles) of the file.

    The problems we have are:

    • Trying to configure Outlook 2010 exchange account using the automatic configuration, we get the error code: 0 x 80070057
    • When you open MS Word, we get: "your AutoCorrect file, \MSO2057.acl, could not be saved. The file may be read-only, or you do not have permission to modify the file.
    • When Word is closed, we get: "cannot save or create this file. Make sure that the disk you want to save the file on is not full, write-protected or damaged. (C:\normal.dotm)
    • Some users have managed to get their Outlook account settings, but get the same error code in the point 1, when you try to open or to move an e-mail message
    • Windows search is also a problem, as in the start menu search returns no results, and clicking on "see more results" gives an error: Windows cannot access the specified device, path or file. May not permissions to access you the item.

    First impressions, wherever the registry for AppData folders by user settings, have not been defined properly, which means that files that are trying to write, try saving in the wrong place.

    I didn't know how to check this in the registry, but all the environment variables look be ok compared to our running Server 2008 R2 RD.

    If anyone can offer suggestions or advice, that would be greatly appreciated.

    See you soon

    EDS

    Hey Eds,

    Thanks for posting in the Microsoft Community.

    However, the question you posted would be better suited in the TechNet Forums; We recommend that you post your question in the TechNet Forums to get help:

    http://social.technet.Microsoft.com/forums/en-us/smallbusinessserver/threads

  • Windows permission issues

    Hi, I tried to reinstall windows on my laptop and I keep running into the same problem again and again. whenever I have reinstall the OS, I try to record on the C: drive, and it gives me a message saying I don't have permission to save in this folder. I try to change the permissions, and it keeps sent records errors. I tried to use TAKEOWN /F /A and F, she know she is successful, but it still won't let me save anything. I tried to reformat the hard disk, two times and I also conducted tests of material on my hard drive, and nothing wrong with it.  I'm running out of ideas, anyone?

    To, anyone who always faces this problem, even if I tried that before, it seemed to work after the third reformat.  I had to go into the properties of the folder and give the property to every file that I needed to access, make sure that you select the boxes that transmit the permissions of the parent.  After that, I had to go back into all folders and add myself as a user on the Security tab, and then check "all permissions".  It kinda turns out to be a quick process, but it seemed to work for me, because now I can save to any folder I want.

  • To always have permission issues

    After spending 2 hours searching the Internet for solutions to my permissions problems, I think I can have solved (for now).

    After restarting my pc, there is "random" desktop shortcuts icons have changed to a few white block with what looks like an old style windows in there. I tried to change the icon, but after a wait of 10 seconds for the properties to be displayed, he said "you need give the administrator permission to change these settings." Click on continue to complete this operation. »

    By clicking on continue, the icon does not change. It's not just the shortcut icons who have changed, his also the original program/game icon which is modified.

    Its really strange too because its not ALL icons, just the ones really random. 2 are games and 3 programs (desktop shortcuts) my other games and programs on my desktop are very good. I had altogether. I did all the "go to the Security tab, the tab owner, the permissions tab" that everyone has suggested, time and time again. If someone could provide me with a fix, which would be appreciated muchly.

    IF THIS ISN'T THE CASE, IM FORMATTING STUPIDITY! ;)

    (FYI if his need?)

    Windows 7 Home Premium 64-bit

    CG8565 ASUS PC desk series

    Processor Intel Core i-7-2600 K @ 3.40 GHz

    16gig RAM

    Hi Amy,

    Follow these methods to solve the problem with icons:

    Method 1:

    I suggest to return the item and try to run the Microsoft Fix it:

    Difficulty of broken desktop shortcuts and common system maintenance tasks

    http://support.Microsoft.com/mats/system_maintenance_for_windows/en-us

    Method 2:

    I suggest you to reset the icon cache database and then if that does not help then rebuilding cache icon.

    To reset the icon cache, follow these steps:

    a. right-click on an empty area of the desktop and click on personalize.
    b. click the display properties .
    c. under colors, select medium (16 bit) and click apply. (See screenshot below)
    NOTE: If you have medium (16 bit) selected, then select Highest (32 bit) instead. Sometimes, you will have to do a reboot first, then go to step d. Try both ways.
    d. click on Yes to confirm the new setting.
    e. now, select highest (32 bit) and click OK.
    NOTE: If you already have the highest (32 bit) selected, then select medium (16 bit).

    f. click Yes to confirm the new setting.

    To follow cache icon rebuild the below steps.
    a. open the Folder Options in Windows Explorer, and on the view tab, check Show hidden folders and files.
    b. open a Windows Explorer window.
    c. go to C:\Users\(User Name) \AppData\Local.
    d. right-click on IconCache.db , and click Remove.
    e. click Yes to confirm the deletion.
    NOTE: This removes the file to the Trash. It is safe to empty the Trash when you are done.
    f. close the window.
    g. empty the Recycle Bin.
    h. restart the computer.
    i. When you come back, you will notice the size of the file IconCache.db is reduced, and the Update is now the current date.

    NOTE: If for any reason any IconCache.db isn't there or the size has not changed a lot, and then restart the computer again. You may need to restart a few times in some cases.

    Let us know if you need more assistance.

  • Interactive form with the issue of personal calculation

    Hello, I'm new to javascript and met with a coding problem.  I have an interactive pdf file it is a purchase order in bulk.  The form calculates the subtotal.  My form has to calculate sales tax (0.05%), if a resident of Hawaii.  I created a radio button with a Yes or no answer.  The Yes option button exports as a de.005 value.  The answer didn't export the value 0. I know that I mean if the value of 'taxyn' est.005 and then multiply by "Subtotal".  If the value of 'taxyn' is 0 then put 0.   I use the script in the section below custom calculations.  The result is that ' yes' or 'no' radio button the response always calculates the tax.  What Miss me?

    the value at 0.05% tax rate

    var tax_rate = 0.005;

    Get the value of the option button

    taxable var = getField("taxyn").value;

    Get the value of the subtotal field

    Subtotal var = getField("subtotal").value;

    Set this field value

    If (taxable! == 'Off') {}

    Subtotal = Event.Value * tax_rate;

    } else {}

    Event.Value = "";

    }

    Thank you in advance!

    Melissa

    You have entered "totqty" as a field in its own calculations

    script... So, whenever the value is updated, it adds its own value to

    himself. That is why he continues to expand whenever you make a change to the

    option buttons.

  • With Preview.app permission issues

    Hello

    Given that I've updated for macOS 10.12 I can't change any photo on my desk with Preview.app.

    When I do a print screen or drag a picture of Mail.app on my desk and start to edit, I get a notice in Preview.app that the original document is not editable and a duplicate has been created.

    If I copy the same exact file in my documents folder I can modify it. But when I add running on the file on my desktop, I can change it as well. But why files rwx for me on my desktop but rw in the folder my documents is sufficient?

    What is the problem with my desktop folder or files contained in it?

    Files and folders are set to my username and the personal group.

    Closing and opening preview or restart the computer may fix. Otherwise, close preview, open a Terminal window and type/paste:

    RM - r ~/Library/Containers/com.apple.Preview

  • Permission issues

    Sometimes when I want to play individual songs, iTunes will appear a window saying I need to authorize my computer first. My laptop is already allowed to play all the songs, I bought on my account and saved in iTunes on my laptop. Yet even after put my password correctly several times, it pop again.

    You can check if you already allow your PC by following this link: allow your computer in iTunes - Apple Support

Maybe you are looking for

  • Designjet T2500: Second star rail-Designjet T2500

    Hi guys. The second rail starwheel seems somewhat wheels, 2 or 4 off them, on the right side. Should it come like that? There is really no 2 or 4 littles wheels with springs bit? I tried to find a picture of him, but I couldn't find it. It is origina

  • Where can I get additional transition? Are there Add-ons for Final Cut Pro?

    I was wondering if there are modules for Final Cut Pro increase the effects of transition? Thank you RB

  • If I use my like my DAQ GPIB controller to control my instruments?

    Hi, I am a beginner in BT and need your help for dead on my undrestanding clarification: Suppose I want to control 7 instruments (such as temperature sensor, osciloscope,...), instruments using my GPIB controller, in other words, my pieces as my DAQ

  • Error at startup _ class "not found

    Hello. I have an application written in RIM API 4.7 and load on a device with API 4.6. I want to run the following code: VirtualKeyboard virtual = this.getVirtualKeyboard(); virtual.setVisibility(VirtualKeyboard.HIDE_FORCE); However, when I run the a

  • "Tag Annotations - has no" links in footers

    Hi all the expensive accessibility experts.I have notes on the master page that contains links to cross reference, I want it to be clickable, but showing not labeled annotations-failed error, is it possible?(I did the artifacts of notes, but I want t