Access rights: block vs pl/sql package

I created a small block of PL/SQL (declare... begin... end ;) who selects and updates a number of tables in a different pattern. Everything works fine.

I made a package of this PL/SQL block - and now I have errors of access to some of these paintings. I get a table not found error, or I don't have enough privileges to update a table.

I'm on Oracle 11 g, the user is in both cases (the pl/sql block running, creating the table) the same. Any ideas?

Thank you

Stephan

Thanks for the tip!

Tried to create the package with the rights of the plaintiff, but which leads to the same problem. Only when I have chagned to dynamic sql, I was able to work around the problem...

Tags: Database

Similar Questions

  • Problem building java pl/sql package

    Hello

    In JDeveloper (11.1.1.6) I'm having a problem of java generation from a pl/sql package. When I'm in the database browser I click with the right button on the package and select "generate java. Which produces java files, some sqlj files and a < package_name > .javatmp file. When a colleague doing the same thing all the files are generated with the .java extension. Can someone tell me what I can do to build all the java files?

    Thank you

    Graeme

    It turns out that I was running against a 64 bit JDK. (1.6.0_41.)

    When that face a 32 bit JDK (also 1.6.0_41), I've changed my problem disappeared.

    It might be interesting to note that my machine is 64-bit.

  • level of data access rights

    Hello

    In your opinion, what is the best way to implement data access level rights?

    Before I used VPD to database 11g. Now, we decided to keep the aggregations in the cube OLAP (AWM 11 g) and I'm looking for the best solution limiting the user access rights to members of special dimension to different levels. For example, we must leave Office Manager to see only its data from team members (and do it dynamically, without having to grant the role of severl hundreds of managers separately), or let product manager see only 3 categories of products.

    I am browsing OLAP forum for awhile, most of old son means AW_ATTACH / PERMIT_READ / AUTOGO. Are there other options?

    There are two mechanisms available to control that can see the data by user: cube or dimension according to the strategies of security and private virtual database (DPV). Each have their own forces. Many organizations use a combination of the two.

    Cube security policies allow you to grant access (SELECT, INSERT, UPDATE, DELETE) to a database user or role. You describe what dimension members a user has access. For example, Europe and all descendants. If the security policy is applied to a dimension, that policy is applied on all cubes that use the dimension. If cube security if applied in the context of a policy, the policy is limited to this cube.

    Cube security policies:

    * Are 'hermetic', because they apply to all access methods (SQL querying the views of dimension and cube, SQL, OLAP_TABLE and CUBE_TABLE, OLAP DML, PL/SQL, queries etc.).
    * Are convenient. Apply a policy to a single dimension, and it applies to all cubes. It is very easy to express security policies by selecting the members or the use of hierarchical expressions in Analytic Workspace Manager.
    * Are limited to users and roles, so the applicability may be limited to certain use cases.

    Virtual private database policies are applied to views of dimension, hierarchy and cube. These views using OLAP is not different from any other table or view.

    MEV:

    * Applies only to the objects on which you apply a policy (for example, dimension, hierarchy, and cube views). If you need to make the hermetic policy, you should stop other access methods. For example, revoke execute on DBMS_AW, etc.
    * May take a bit more work to set up, but they offer some additional flexibility because you set the policy with PL/SQL. That's all what you can invent.
    * Can be applied beyond the users and roles.

    The key is that both are quite useful. Learn more about the two and use the feature that best matches your request.

  • Use strings, or block calls PL/SQL.

    I currently have a half dozen cron tasks as the kickoff of the different lots of treatment. Originally, they were usually a sequence of C programs that did different operations (extract info student to student record and insert into the system of the IdM directory of process changes, etc.). Over the years, most of the logic of the program has been rewritten as a PL/SQL packages and cron jobs basically drop into SQL * MORE and do things like:

    prompt 'Do Spbpers delta'
    Run simon.employee_maint. Spbpers_Delta;
    commit;
    asked to "Make People.Update_From_Employees"
    run simon. People_Maint.Update_From_Employees;
    commit;
    asked to "Make SGBSTDN_Full"
    execute Simon.Bstudent_Maint.Sgbstdn_Full;
    commit;
    Invites 'Do SPRIDEN_Full (student)'
    execute Simon.Bstudent_Maint.Spriden_Full;

    These procedures generally connect to other databases Oracle and get or push data autour and hit a number of different databases. The largest of these scripts a 45 execute instructions in it. (This script started in 1992...)

    Anyway, we get some problems with and it's time to clean things up. It's my first foray in the Planner and I'm hoping to get some philosophical advice on how best I should restructure things. Something obvious, is to break the big script in a couple of children. In some cases, issues, enforcement and in others it isn't - although I prefer not having several jobs hitting the system admin at the same time.

    I have played around with the Scheduler, mainly via the web interface of EM and resulted in a few questions - some quite specific, others more stylistic.

    (1) procedures as job-, he seemed to want to stand alone procedures and NOT the procedures that were part of a package. True?

    (2) how much grain should I do the steps of a string? For example, I call upon everyone to 5 proceedings in the same package (student_maint), to specific aspects of the treatment (each representing a different source table). Can I create 5 programs and make them the 5 steps of the chain, or just have 5 calls in a PL/SQL block in a program?

    (3) I do not what order these 5 run, but I don't want more than one race at once--reflections on the approaches to this?

    (4) I'll occasionally want to turn off these job packages (like when the remote system is going to be down for an upgrade) - the best way to things of structure to make this easy to do (and how can I do this?)

    The Scheduler system seems to be a very rich and flexible environment with many more options and features that I need, but I think I should make scheduling more than one program with 45 in procedure calls...

    Hello

    I can try to answer some of these questions

    (1) procedures as job-, he seemed to want to stand alone procedures and NOT the procedures that were part of a package. True?

    Set to false. The interface of the EM has this restriction, but if you are using dbms_scheduler directly there is no such restrisction. Even in the EM interface you can work around this by using a PL/SQL block that calls the procedure of package (although the argument handling is a bit less flexible that way).

    (2) how much grain should I do the steps of a string? For example, I call upon everyone to 5 proceedings in the same package (student_maint), to specific aspects of the treatment (each representing a different source table). Can I create 5 programs and make them the 5 steps of the chain, or just have 5 calls in a PL/SQL block in a program?

    The answer to that depends on what you are doing. If the 5 steps to run in series one after the other, using a pl/sql block may be easier. If you want a few pieces to run in parallel, creating a simple string is better. A little more effort spent setting up the chain will result in much faster execution times if you can run the pieces in parallel.

    (3) I do not what order these 5 run, but I don't want more than one race at once--reflections on the approaches to this?

    It came on the forum many times and there are basically two different approaches. One is to use dbms_lock to ensure that only executes at a time. It's the easiest way and the way that I recommend.

    The other way is to set up a job class with a group of consumers of resources and to implement a plan of resource consumption that specifies that only one session of this group of consumers of resources can run at a time. It is easily expandable case you want 2 or more running both of a certain category of jobs (including dbms_lock does not support).

    Code on how to set this up and more discussion can be found here
    Run jobs one after the other

    (4) I'll occasionally want to turn off these job packages (like when the remote system is going to be down for an upgrade) - the best way to things of structure to make this easy to do (and how can I do this?)

    Jobs and programs can be disabled. But if a job or the chain tries to run a disabled program will result in failure (even if she will be retried if you say that the job can be restarted).

    [5]) the system scheduler seems to be a very rich and flexible environment with many more options and features that I need, but I think I should make scheduling more than one program with 45 in procedure calls...

    The Planner is intended to accommodate a wide range of simple unique background of complex sequences of dependent tasks task usage. As with any software development you must use it in the easiest way possible, which is what it takes to do.

    I hope this helps. Feel free to post other questions.
    -Nice

  • Tecra M2: Energy saving - have no access rights

    Hello

    I am running a Tecra M2 with Windows XP SP2 and I recently installed Toshiba Power Saver as I want to make the most of my battery on a flight that I take. However, when I try to run the Toshiba Power Saver in the Control Panel, I get a window with the following error message:

    Cannot be opened because you do not have access rights to use 'TOSHIBA Power Saver'.

    I am logged on as administrator, but I still get the same problem. I even re-installed Windows XP, but after having installed all the drivers, I get the same error. I tried to install the version of Win2K of soft, but it gives the same problem.

    Any help is appreciated as I want to make the most of my laptop computer power wise.

    TIA

    Klaus

    Hello

    I put t know what is happening in your case, but if you are logged in as administrator starting point please power saver utility and go to the CONFIGURATION OPTIONS. Check the CONFIGURATION PROFILES and activate both options here.

  • Satellite M40-282: I don't have access rights to run Power Saver

    I installed GST when I reinstalled my new OS manually
    and I installed GST but he did not show up to reinstall after.
    In the control panel when I try to click the GST that it says 'cannot be opened because you do not have access rights to run Toshiba Power Saver '.

    But I am logged on as administrator for sure

    Hello

    It s very strange and unusual.
    Have you chosen the right drivers and you have everything installed correctly?

    I studied a little on the net and it seems that the M40-282 Sat has a serial number PSM42E and so take the drivers of the PSM42E series.
    (On the driver page I saw three different M40 accordingly large number)

    I discussed with other users, and especially incorrect installation was the problem. On the driver page, I found a statement of installation, and in my opinion, you should follow the guidelines in this document.
    Everything should then work. I hope ;)

    Check it out. Good bye

  • Access rights potential vulnerability EDB - 31617 Bad

    Hello

    I received a warning after a network scan of Eset Internet Security tool.

    With this message 'potential vulnerability EDB - 31617 Bad access rights', do you know something about this vulnerability?

    This issue is already known for a different model: DGN2200 N300 Wireless Router

    https://www.exploit-DB.com/exploits/31617/

    Can you confirm this info or a warning of bad?

    Thank you

    Hello gyves1

    Thank you for your concern. NETGEAR values your input and take the safety of our customers and their data very seriously. We regularly monitor our products for security issues and we provide detailed information on www.netgear.com/about/security. In addition, if you have reasons of security, you can reach us at [email protected].

    DarrenM

  • Windows 2000 Server access rights

    How to create a folder on the server access rights?

    This issue is beyond the scope of this site (for consumers) and to be sure, you get the best (and fastest) reply, we have to ask either on Technet (for IT Pro) or MSDN (for developers)
    *
  • Why can't access to blocked senders list or add?

    I can't access to blocked senders list or add.

    For all have a problem with Hotmail, please ask the experts in the Hotmail forum. Many of us do not use this application and cannot help.

    Windows Live Solution Center Hotmail Forum
    http://windowslivehelp.com/forums.aspx?ProductID=1

  • Control of user access rights

    I want to do my second drive invisible to the user accounts on my PC. I downloaded a Microsoft program a while, but no longer have it. I don't remember what it's called and if I find it hard to find. It allow you to control access rights. Does anyone know of this program?

    Assuming that your second drive is formatted with NTFS, you control access to the drives, folders and files using the 'Security' tab in the properties of the file/folder/drive.  The following article goes into detail:

    "How to set, view, change, or remove special permissions for files and folders in Windows XP"
      <>http://support.Microsoft.com/kb/308419 >

    Note that this article deals with XP Pro.  If you have XP Home Edition, you will not have access to the Security tab because Simple file sharing can not be disabled in XP Home.  However, if you start mode (repeatedly tap the F8 key during startup key) safe and open a session as long as user with administrator privileges, you will be able to use the security"" tab.  After properly configuring your security, you can restart your computer normally and will always stick settings.

    Alternatively, you can use the 'CACLS' command from a command prompt window, but which becomes ugly.

    HTH,
    JW

  • Access rights ext mem and default apps reset to the start of the phone

    Whenever I have start the phone I have to change the SMS default to GO SMS Pro, put engine in place the access rights to it external to explore memory card solids which I use as the default file manager and change some parameters in headphones Jabra and FV5 camera. It was not yet with the previous version of Android 6. Now I have v. 6.0.1.

    Problems with the SMS app by default and the default method of reading aloud SMS messages have been resolved by moving all relevant applications in main memory.

    They have been moved to the SD card in accordance with the recommendation of the system, to save memory. It was a bad idea.

  • Insufficient access rights to create files in the specified folder

    Insufficient to create files in specified folder access rights you can't install files in this folder. It will not be installed in a folder that I created is. try to install ti collection of games from Agentix magic

    Try right click on the setup.exe > run as admin.

    See you soon. Mick Murphy - Microsoft partner

  • Cannot query a view in PL/SQL package but it can query in SQL * more

    Hello

    Logged on as a user, I can query the table DBA_SEGMENTS, but I can't question via a slider or select from a PL/SQL package.

    I get the following error message:

    LINE/COL ERROR

    -------- -----------------------------------------------------------------

    28/4 PL/SQL: statement ignored

    33/5 PL/SQL: ORA-00942: table or view does not exist

    28 select

    29                             count(*)

    30 in

    31                             n

    32 of

    33 dba_segments;


    Can someone explain to me what is the missing privilege that I need?

    Thank you in advance.

    Kind regards.

    It seems that you have granted to dba_segments by role.

    To use this object in pl/sql or sp, you need directly.

    Ask your dba to grant:

    SQL > grant select on dba_segments to your_user;

    Mustafa DOGANAY

    http://Doganay.WordPress.com

  • LR 6.5 Mac error 16 how solve the problem? Access right to the correct folders...

    Hi all

    When I updated to 6.5 LR. on a captain El MAC, I got an LR error stopped and asked me to change file access rights. I did it but the problem remains.

    I have change the law according to the recommended page.

    My Mac is in the language of the French OS.

    Who can help me, I'm stuck without the possibility to use LR on my MAC for 24 hours already

    Thank you

    Patrice

    Hello Tanuesree,

    problem solved. I've been away the ~/Library/adobe access.

    Now it's working.

    Thank you very much

    Patrice

  • How can I expose a PL/SQL package to a webservice

    Hello

    Using Jdeveloper 12 c, how can I expose a PL/SQL package as a webservice?

    Thanks in advance

    Look for the option 'Web of TopLink-DB services provider' under the section of Web Service in the new gallery.

    Timo

Maybe you are looking for

  • HP250: NIC

    I'm sorry if I missed the part where to ask, but here's the q. I bought a new notebook (laptop) and installed my win7 on it, but can't get any update and wireless, as it does say no network card, there is an X on the Chart menu. Can anyone help?

  • Save pictures of the sequence with a given timing

    Hi all I create a VI that acquires images from a digital camera and records at any given time, say an image every 200ms. The program also has convert the raw in colorful image image image, by means of her Bayer decoding, so that some time of treatmen

  • All programs try to open with IExplorer

    Can someone help please, I am open to all ideas. Everytime I try to run a program, for example, itunes, DBMS, even freshly downloaded antimalware software, the program will attempt to use iexplorer to run. This will cause iexplorer attempt to downloa

  • Replacing hard drive HP Pavilion dv6500 (upgrade)

    My HD just crushed and tries to find a new (better) compatible HD back in my computer.  Any suggestions or what card I need to pick up if it's compatible?

  • The button behavior is different between Windows 8 and Windows 7

    Hello I'm developing an application that runs on Windows 7 and Windows 8. This application is intended to be used with a touch screen. Users must make choice of a ListView. With Windows 7, everything works fine. Items are selected when the user click