How to grant user access to dbms_xplan?

hr@ORA1> select * from table(dbms_xplan.display_cursor(null,null,'last iostats'))

PLAN_TABLE_OUTPUT
----------------------------------------------------------------
User has no SELECT privilege on V$SQL_PLAN_STATISTICS_ALL

SYS I follow these steps:

sys@ORA1> grant SELECT_CATALOG_ROLE to hr;

Grant succeeded.

hr@ORA1> select * from table(dbms_xplan.display_cursor(null,null,'last iostats'))

PLAN_TABLE_OUTPUT
----------------------------------------------------------------
User has no SELECT privilege on V$SQL_PLAN_STATISTICS_ALL

So SYS grant this privilege:

sys@ORA1> grant v_$sql_plan_statistics_all ;

Grant succeeded.

hr@ORA1> select * from table(dbms_xplan.display_cursor(null,null,'last iostats'))


PLAN_TABLE_OUTPUT
----------------------------------------------------------------
User has no SELECT privilege on V$SQL_PLAN_STATISTICS_ALL

Is there something that I am missing?

The USER needs to start a new session to acquire the new privilege.

Tags: Database

Similar Questions

  • How to grant full access to a schema to a user in Oracle

    For example, in MySql, I connect using my account 'Andy' to create a database ('create database BookShopping') with tables/views/functions created.

    Then I have just run for example ' create user Steve (Mike, Lisa, etc.) blah - blah. " "Give all the right on Steve's BookShopping (Mike, Lisa, etc.) blah - blah" to allow all developers on my team to work on this project. Any changes made by a developer is shared by the entire team. (There are a few other non-developers such as Rick QA, he is not allowed to modify the database, so I just do "grant select on BookShopping to Rick")

    How in Oracle? If I use my account ("Andy") to create tables/views/functions, these objects will be under my scheme, that is, with a prefix "Andy." My understanding is correct here?

    So, I have to create another user, called "BookShopping". After logining as 'BookShopping', how to grant full access for this scheme for all developers Steve, Mike, etc., which I am part 'Andy' so that everyone can add to new tables/procedures/triggers etc.?

    There is no subsidy, which gives all object privileges to someone else in a schema. What gives a grant is an important work, it must be done under control. Initially, it must give al grants one by one, but after that (for objects that will be created later), look at this topic:

    Re: Trigger after create schema - grants - SYS_JOURNAL

  • How to give users access to the database schema?

    I have the following databases:

    Running test of Oracle9i Enterprise Edition Release 9.2.0.6.0
    Production is currently running Oracle9i Enterprise Edition Release 9.2.0.7.0

    I created a user at the same time and on the production side, it works fine, but on the side of test, I get ORA-1017: name of user and password invalid. connection refused when I try to connect via my web application or when I try through sql more is not log to the side test but does for the Pb of the production.

    How can I compare two users?
    During the creation of my table, procedure, etc. scripts, I have granted access this even sure if the user has rights to the tables and other objects.

    There is another main user account that is able to do everything that I need so I know it's possible, but need me something to allow my new user to connect.

    Thanks for any help you can give me.

    Published by: jerry8989 on March 16, 2012 08:10

    jerry8989 wrote:
    I have the following databases:

    Running test of Oracle9i Enterprise Edition Release 9.2.0.6.0
    Production is currently running Oracle9i Enterprise Edition Release 9.2.0.7.0

    I created a user at the same time and on the production side, it works fine, but on the side of test, I get ORA-1017: name of user and password invalid. connection refused when I try to connect via my web application or when I try through sql more is not log to the side test but does for the Pb of the production.

    How can I compare two users?
    During the creation of my table, procedure, etc. scripts, I have granted access this even sure if the user has rights to the tables and other objects.

    There is another main user account that is able to do everything that I need so I know it's possible, but need me something to allow my new user to connect.

    Thanks for any help you can give me.

    Published by: jerry8989 on March 16, 2012 08:10

    "ORA-1017: name of user and password invalid; connection refused '.

    Oracle is too easy to lie about it. It has noting to do with what privileges you have given to the user. There is never far enough to worry about privileges. Either you provide a user name does not exist, or you provide the wrong password for this user name. Period.

  • How my new users access to the data in the database?

    Hello

    I created a database with new users who will need to access the database, but as soon as I connect to one of the new users can't access tables or any of the data that I had inserted previously.

    Any help would be greatly apprciated!

    Thank you

    Rory

    (Running Oracle 11 g)

    As connect you to the database by default, you can only access your objects or object that you access directly by prefixing its owner. In your case, not only you must give the user but also needs prefix synonym/owner access rights to access these objects. for example

    user that has (you) have following things:

    EMP (grant select on emp to UserB ;)

    Dept (grant select on dept to UserB ;)

    User B

    Select * from UserA.emp;

    Select * from UserA.dept;

  • How to grant security access to the views of the apps

    Hi hussein.


    What is the sql for grants of Security command, to be able to select the contents of a view in Oracle Applications 11i and R12?
    I have a vision of APPS. RA_CUSTOMER_LINES_TRX_V but I there is no selected line.


    Thank you very much


    Mrs. Mina

    Please see these documents.

    Note: 209185.1 - how to set the context of Applications (FND_GLOBAL. APPS_INITIALIZE)
    Note: 420787,1 - Oracle Applications multiple agencies of the custom Code access control
    Note: 462383.1 - queries SQL and the Architecture Multi-Org version 12
    Note: 165042,1 - FAQ - several organizations architecture (Multi-Org)

    Thank you
    Hussein

  • How to restrict user access to must enter a value in the mandatory fields

    Greetings!

    I had a personal information form. I want to restrict the user to enter values in all areas of mandatory for example fields (username, date of birth, etc.)
    How to limit the search user must enter a value in the mandatory fields

    Create dynamic actions for each of the fields, or you can create javascript.
    for example create dynamic action 1 with event as tune-up losing select the item and the condition as NULL and action as alert and type the message you want to display in the text section.

    Thank you
    Mehabub

  • How to restrict user access to edit page content or page

    Hi all

    I want to restrict the user to access certain pages in my application or even if the user cannot access the page, you must disable to insert, change, or delete any item in the form on the page.

    Thanks and greetings

    Pankaj Kumar says:

    I want to restrict the user to access certain pages in my application or even if the user cannot access the page, you must disable to insert, change, or delete any item in the form on the page.

    You need to read the security of the APEXdocumentation, specifically using authorisation schemes to restrict access to pages and the rendering of the control of the components.

  • How to restrict user access mutiple clicks with asynchrounous behavior of FLEX

    I developed a flex application and it has a datagrid control, and double click on the DataGrid, I show a pop-up window (the code in the pop-up window to call httpService.send () to get the data and display). Before the popup is open, the user is double clicking again on the data grid, which inturn is trying to open the pop-up window (with a new call to the web service). These calls are piling up. How can I limit using httpService.send () when the user double clicked for the second time on the datagrid control. Since then, call web service async by nature, I'm not able to find a way to do this. Can someone please help.

    set

    This.Enabled = false;

    After the service.

    and in the event of failure/result.

    This.enabled = true;

    Yet, all things BUSYCURSOR, because referring the good user.

  • HP workspace: how end-user access to HP workspace of an HP Elite x 3?

    Hey everybody,

    How the end-user access HP workspace of an HP Elite x 3?

    Thank you

    Bill

    To access the HP workspace, dock the unlocked, HP Elite x 3 to be an Elite Lap Docking Station HP or HP Elite Desk. When the device is automatically active the mode Continuum of Windows and connected display, simply tap on the tile of the workspace of HP that is located on the HP Elite x 3 startup screen.

    If you can't find the tile, click or tap Start > all Apps > HP workspace. You will be then prompted to connect to the workspace of HP with the credentials of your companies.

    Note that Internet access is required to use HP workspace. If the application of the workspace of HP is not listed in the list of applications, the user can download HP workspace of the App Store Windows.

  • Bishop Calc - 11.1.2.2 - giving groups/users access to run a set of rules

    Hello

    For the life of me I can't understand how to grant users/groups the ability to run a set of rules from the tools-> menu of business rules.   Or is it still an option?

    Thank you

    I don't think that there is security for the set of rules, you have to ensure safety on the rules. Check this addition of access

    Concerning

    Celvin

  • How can I block the users access to microsoft office?

    How can I block the users access to microsoft office?

    You must set "" permission to run on each of the Microsoft Office programs (word.exe, excel.exe, powerpnt.exe, etc.) such that the group 'Administrators' and the SYSTEM is allowed to run.  To do this, you do a right click on the .exe file, select 'Properties', then click on the 'Security' tab and change security as you wish.

    If you do not have a 'Security' tab, then it is because you have XP Home Edition, or if you have XP Pro with active Simple file sharing.  For XP Home, you must boot mode safe (repeatedly tap F8 at startup key) and login as an administrator to access this tab.  For XP Pro, follow the instructions in the following article:

    "How to disable the file sharing simple and how to set permissions on a shared folder in Windows XP"
      <>http://support.Microsoft.com/kb/307874 >

    HTH,
    JW

  • How can I prevent standard users access records personnel administrator for example. photos and documents

    How can I prevent standard users access records personnel administrator for example. photos and documents

    Hello bh51,

    Did you run your antivirus as well as any spyware removal?  As davidhk requested, then you are able to turn sharing off the coast, but it just doesn't work?   I suggest creating a new folder and move the data, and then see if other users are still able to view these.

    Please let us know status.

  • If the user accesses the server accidentally deleted the folder how recovery

    If the user accesses the server accidentally deleted the folder how recovery

    Hi AmjadPasha,

    If you are referring to a local file, you can check the trash.

    If you are referring to a network share, then there is very little that can be done.

    You can try using recovery software/services of third parties to retrieve the file.

    You can use your favorite search engine to search for third-party software.

    Note: The use of third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    Hope this information is useful.

  • How to block internet access to users on the local computer. The machine is sub domain control.

    How to block internet access to users on the local computer and the machine is in sub domain control.

    Hello

    Thanks for posting your query in Microsoft Community.

    Your question is beyond the scope of what is generally answered in this forum of consumer and would be better suited for the IT Pro TechNet public.

    Please post your question in the TechNet Forums.

  • more than one user connects to pc (windows7). How can I block access to my media

    more than one user connects to pc (windows7). How can I block access to my media

    Original title: media sharing options?

    Hi Gabe,

    I appreciate the efforts that you put to publish the query on this forum.

    It would be better if you can provide additional information related to this query:

    Who are the media that you are trying to secure on the computer? Is it related to any multimedia files or folders?

    If you try to get the files or folders, you can use the Windows 7 encryption method to do:

    http://Windows.Microsoft.com/en-in/Windows7/encrypt-or-decrypt-a-folder-or-file

    Please get back to us with more information to help you better.

Maybe you are looking for