V$ SESSION in a procedure / select any dictionary

Hi all

I am using Oracle 10 g R2

I have a PKG_X package that contains a SELECT from V$ SESSION.
the package is compiled under SCHEMA_X.
SCHEMA_X has a SCHEMA_ROLE role and in this role, I have the privilege to CHOOSE ANY DICTIONARY.
but the package is created with compilation errors "table or view does not exist" on V$ SESSION.

Now if I add the DICTIONARY ALL SELECT privilege system stand alone the problem is resolved.

Why this is happening? knowing that if I run select * from V$ SESSION to a keg of SQL window I Manon DICTIONARY-ALL-SELECT, in the role and not as stand-alone system privilege.

Help, please.

It is infamous granting by the issue of the role. You need the explicit subsidies. For more information, see
Re: compile errors

Tags: Database

Similar Questions

  • Open with options: I want to add a new application to the list right click on file-> open with and rearrange the list so my search app is first. I know that I can use open with-> other and select any application, but it takes too much time since I u

    I want to add a new application to the list right click on file-> open with

    and also reorder the list so my search app is first / top of the list.

    I know that I can use open with-> other and select any application, but it takes too long I should use my intended application in this way several times a day.

    Basically, I'm looking for a configurable way configure open with, something more to send to Windows.

    Thank you very much for all the advice offered.

    The operating system, not you, not control that open with the menu command.

  • When bookmarking a page, I get the full list of files in the drop-down list to select any folder in which the bookmark page. What you set for complete list of folders in the bookmarks falling?

    When bookmarking a page, I can not get the list of files to drop down to select any folder in which the bookmark page. The "folder:" bar was showing "Bookmarks Menu". The arrow on the bar descends 5 recent folders which pages were saved, but pop arrow to the right of the bar down opens just to show the three categories and the button "new folder". What you set for complete list of folders in the bookmarks falling?

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of your modules is causing your problem (switch to the DEFAULT theme: Tools > Modules > themes).

    See the extensions, themes and problems of hardware acceleration to resolve common troubleshooting Firefox problems and troubleshooting questions with plugins like Flash or Java to solve common Firefox problems

    See also http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox

  • whenever I select any folder or any icon in my computer win 7 I get a popup to remove this icon why this error comes how can I solve this problem pls help me

    whenever I select any folder or any icon in my computer win 7 I get a popup to remove this icon why this error comes how can I solve this problem pls help me

    Hello

    1. don't you make changes to the computer until the problem occurred?

    2. What is the exact error message do you get?

    I suggest you try the steps mentioned below and check if it helps.

    Method 1: Start your system in safe mode and check if the same problem occurs.

    http://Windows.Microsoft.com/en-us/Windows-Vista/start-your-computer-in-safe-mode

     

    Method 2 If the issue does not exist in Mode safe mode then try to put your computer in a clean boot state.

    By setting your boot system minimum state helps determine if third-party applications or startup items are causing the problem.

     

    How to troubleshoot a problem by performing a clean boot in Windows Vista or Windows 7:
    http://support.Microsoft.com/kb/929135

    Note: After the boot minimum troubleshooting step, follow step 7 in the link provided to return the computer to a Normal startup mode.

    Follow these steps to reset the computer to start as usual:

    (a) click on start toreduce this top that i, type msconfig.exe in the Start Search box and press ENTER.

    If you are prompted for an administrator password or for confirmation, type your password, or click continue.

    (b) under the general tab, click the Normal startup option, and then click OK.

    (c) when you are prompted to restart the computer, click restart.

    Method 3:

    Also scan your computer from the Microsoft Security Scanner, which would help us to get rid of viruses, spyware and other malicious software.

    The Microsoft Security Scanner is a downloadable security tool for free which allows analysis at the application and helps remove viruses, spyware and other malware. It works with your current antivirus software.

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    Note: The Microsoft Safety Scanner ends 10 days after being downloaded. To restart a scan with the latest definitions of anti-malware, download and run the Microsoft Safety Scanner again.

    Hope this information is useful.

  • Speech recognition correct or select any means of written words.

    my windows speech recognition 7 was working fine, but then I had a virus and had to reset my factory original... and now my windows speech recognition 7 will not CORRECT or SELECT any means words written... you know solutions for this kind of problem? I am quadriplegic who likes to write and I found the voice recognition 7 window works much better for me that dragon dictates... so any help would be LARGELY APPRECIATED

    original title: HELP for speech recognition in windows 7

    Hello

    Please follow the links below.

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-speech-recognition-problems (Also applies to windows 7)

    http://Windows.Microsoft.com/en-us/Windows7/dictate-text-using-speech-recognition

    See also the below mentioned link.

    http://Windows.Microsoft.com/en-us/Windows7/setting-speech-options

  • Select any table except a few tables

    Database 11g:

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

    I would like to give a right to select user on all the tables, except in a few tables.  I thought to give "Select any table", but this does not also some paintings, should not access.

    2nd way is to go... one by one, select wise schema and grant privileges using script.  But it's a lot of time because we have the very large number of tables.

    Is there another way by which we can accomplish this easily.

    You must grant select to each table. Please do not choose any table - which is almost never appropriate.

    If it's so hard, just write a query like:

    Select "grant select on" | table_name | "from some_user '.

    from user_tables

    where table_name not in ('FOO', 'BAR', "Etc.")

    and reel the results to a file.

    If it is necessary, consider granting privileges to a role and then assign this role to a user - will make it easier to manage if you ever have to do the same for other users.

  • I can't select any other font that Hoefler.  InDesign CC15

    Since the update yesterday to Indesign CC15, I can't select any other font that Hoefler.  It is only occurs with new text frames.  I can change the fonts in the existing documents and the existing text blocks to another font.  Anyone have any idea how to solve this problem?

    OSX 10.10.3 - Suitcase Fusion V5 (automatic activation of plugins not installed)

    Nevermind - clearing the fonts cache solved my problem.

  • Is there a tool or function (in Illustrator or InDesign) that selects any form and 'punches' a 'hole' of this form down through several objects for the paper or the work plan?

    Is there a tool or function (in Illustrator or InDesign) that selects any form and 'punches' a 'hole' of this form down through several objects for the paper or the work plan?

    Your objects punch must be in a large group; It will cut through all that is below.

    Create the shape you want to cut and set it to black Uni. Select your group and your form and (in the transparency palette), click make mask.

    Uncheck the Clip, and then return to the palette.

  • Call the procedure before any operation of DB

    Hi all

    I currently have an application configured to use a data source JDBC for all its transactions in database. I was wondering if it is possible to call a db procedure every time a new database connection is created for use.

    My scenario:

    All users are authenticated through an LDAP service and I store the user name and other relevant information on the success.

    The DB is a procedure established to a user name for the database user as long as the parameter passed in view (s). This is necessary for all our inherited audit information on all the relevant tables to be filled.

    So basically I have to call this procedure before any other transaction of db is called.

    I have successfully deployed the dynamic JDBC example in the past, but I was wondering if anyone knew another way with the given scenario.

    Any help is appreciated.

    Thank you!

    Maybe this can help http://blogs.oracle.com/jheadstart/entry/row_level_security_using_vpd_a

  • How to grant the right to select any database to a particular user

    Hi gurus,

    I need to give the right to select all tables in a database to a particular user, in my opinion, there is no way to do it. Please confirm if this is possible.
    If it is not possible, so please let me know if there is any way I can grant select on all tables in a particular pattern (for example - select funding on all the tables under apps)

    Thank you
    Sadiq.

    I need to give the right to select all tables in a database to a particular user, in my opinion, there is no way to do it. Please confirm if this is possible.

    You can issue the command "grant select any table of .

    Alternatively, you can refer to this thread.

    How to GRANT SELECT on all tables 1 GB?
    How to GRANT SELECT on all tables 1 GB?

    If it is not possible, so please let me know if there is any way I can grant select on all tables in a particular pattern (for example - select funding on all the tables under apps)

    It is possible as shown above. If you want to grant select on the specific schema, again see the same thread and add a condition where clause in select only the tables under scheme APPS (i.e. where owner = 'APPS').

    Thank you
    Hussein

  • Select all | Select any links to a messageCheckBox

    Hi all

    Is it possible to have a Select All | Select any links to messageCheckBox?

    I do not use the advanced table multipleSelection as I have some restrictions for the use of this.

    Thank you
    SK

    1. create two binding elements (Select All (and) nothing select)
    2. put firePartialAction for the two elements
    3. when "all sΘlectionner".
    -Anand

    Published by: T.A.Anand on February 3, 2011 16:42

  • Grant select any view privilege

    I want to grant a privilege to SELECT ANY VIEW user but not GRANT SELECT the ENTIRE TABLE. How can I make...

    Extract the query below and run it.

    Select ' grant select on ' | OWNER | '.' || view_name | « à » || ';' from dba_views;

  • Access control table and select any table privs

    Can we restrict access to a table of other users that have select any table privs? I think of the CAE, but not familiar with it. Not sure VPD can ensure the owner have access fulll and others not. Any idea?

    -Denis

    >
    Can we restrict access to a table of other users that have select any table privs? I think of the CAE, but not familiar with it. Not sure VPD can ensure the owner have access fulll and others not. Any idea?
    >

    Yes it is possible with the SRM. Users with SELECT ANY TABLE would see no lines with the following method, which assumes that the owner of the table is HR:

    connect system/pwofsystem
    create or replace function only_owner (schema varchar2, tab varchar2) return varchar2 is
    begin
    return 'user=''HR'' ';
    end;
    /
    
    BEGIN
      dbms_rls.add_policy(object_schema => 'hr',
      object_name => 'departments',
      policy_name => 'hr_policy',
      function_schema =>'system',
      policy_function => 'only_owner'
    );
    END;
    /
    

    Only the DB HR user is now able to see the rows in the table.
    And sys, which has the privilege of POLICE TAX-FREE ACCESS.

    Kind regards
    Uwe

    http://uhesse.WordPress.com

  • Impossible to revoke 'select any table' system priv

    I created a new user and could revoke it select all table permissions. It seems that any new user oracle, I create a select it the permissions on the tables. I want only alow this new user to choose among 5 tables and not others. It seems that there is a global setting on the database to allow selection of any table. I can't change that, if this is the case, but I would like to create this limited user.

    How can I change the permissions on my new user oracle does not allow to select any table?

    Any help would be appreciated

    No, it is not possible. As the name suggested, the PUBLIC is everyone in society. You cannot exclude a person from the public.

  • Referring to v$ session in a procedure

    Hello

    I am able to run this query in the SQL DB client window.
    SELECT SID
    --     INTO v_sid
         FROM v$session
        WHERE audsid = SYS_CONTEXT ('userenv', 'sessionid');
    but when I try to put it in a procedure, it gives me the following error
    PROCEDURE TEST_SID
    AS
       v_sid   INTEGER;
    BEGIN
       SELECT SID
         INTO v_sid
         FROM v$session
        WHERE audsid = SYS_CONTEXT ('userenv', 'sessionid');
    ....................
    ..................
    END;
    
    
    [7:11] PL/SQL: ORA-00942: table or view does not exist
    [5:4] PL/SQL: SQL Statement ignored
    Could someone let me know how to get this a break-in procedure.

    Thank you
    CJM

    Hello

    It is of the roles and privileges. You're probably the privilege to select from v$ session through a role. These are not used in the procedures, and you must privilege granted directly to your user name.

    To check:

    SQL> SET ROLE NONE;
    
    SELECT SID
    --     INTO v_sid
         FROM v$session
        WHERE audsid = SYS_CONTEXT ('userenv', 'sessionid');
    

    Concerning
    Peter

Maybe you are looking for

  • Firefox won't open any search with a search engine query. All are UNTRUSTED.

    I run the operating system MS Windows 7 Premium with Kaspersky as my security software. Then checked again. It seems to be security settings of Firefox and not Kaspersky causing the problem. Just in case it's Kaspersky, I added Google as an exception

  • Trying to update my ipad 9.7 pro

    I'm trying to upgrade to ios version 9.3.2. I had been on vacation and when I got home the detected has been downloaded. I went through the procedure to install following it came by the error message: I am connected to the internet. Œuvres, download

  • Toshiba Flash Cards no longer works on Qosmio G30

    Hello TOSHIBA Flash Cards has stopped working after I updated Vista Service Pack 1, there are several months and the problem still. I did a lot of steps trying to resolve this problem, install a newer version and higher VALUE ADDED PACKAGE, send prob

  • Search the source code for directories

    I'm developing a tool which is a directory of search optimizer. I was wondering where the source code of search directories? I want my face to look like window optimizer directory ongoing research, but then im adding features down. Thank you!

  • Helps to repair my app acad

    helps to repair my app acad Signature of the problem:Problem event name: APPCRASHApplication name: acad.exeApplication version: 23.0.54.0Application timestamp: 440acd95Fault Module name: StackHash_feb0Fault Module Version: 0.0.0.0Fault Module Timesta