Permissions issues on views referencing other users [solved]

Hi,
I've hit a (for me) unexplainable problem;
Situation:
- Table T in schema A
- View V in schema B, referencing the table T from schema A (B has SELECT/REFERENCES privileges on table T)
- User C gets ORA-01031 when trying to SELECT from view V (C has SELECT/REFERENCES privileges on V and T)
In my eyes, user C has more privileges than needed to get the results from view V. Nevertheless, Oracle thinks he has insufficient privileges.
Anyone catches what I'm missing or bumped into the same issue?
Thanks for any comments,
K
(10.2.0.2 Linux 64bit Enterprise)

A wouldn't give access WITH GRANT OPTION to B if B wasn't trusted to
propagate to other users, but what if he isn't?
I'm not saying WITH GRANT OPTION is bad, it's actually very useful in
probably 99% of the cases. I just don't know why it's enforced to be used.I'm not understanding what you're not understanding.
When A grants SELECT on a table to B what they are granting is permission for B and B only to see that data. If B wants a third user C to view A's data there are two options:
(1) B asks A to explictly grant SELECT to C
(2) B asks A to grant them SELECT WITH GRANT OPTION
It doesn't matter whether B wants C to have direct access to A's table or to mediate it through a view of their own, B cannot grant privilege's on A's data to anybody else unless A approves it.
The advantage of granting SELECT WITH GRANT OPTION to B is that A doesn't have to bother issuing lots of grants to people B wants to share with. The downside is that B has to be trusted. If B turns out to be untrustworthy then REVOKE SELECT FROM B must withdraw access not only from B but from every other user who was granted by B.
Note that even if A has grant SELECT to C, if A revokes SELECT WITH GRANT OPTION from B than C will not be able to use B's view on A's table either though C can directly select the data from A's table....
SQL> conn a/a
Connected.
SQL> grant select on t to b with grant option
  2  /
Grant succeeded.
SQL> grant select on t to c
  2  /
Grant succeeded.
SQL> conn b/b
Connected.
SQL> grant select on v to c
  2  /
Grant succeeded.
SQL> conn c/c
Connected.
SQL> select * from b.v
  2  /
        C1 C
         3 C
SQL> conn a/a
Connected.
SQL> revoke select on t from b
  2  /
Revoke succeeded.
SQL> conn c/c
Connected.
SQL> select * from b.v
  2  /
select * from b.v
ERROR at line 1:
ORA-04063: view "B.V" has errors
SQL> conn a/a
Connected.
SQL> grant select on t to b
  2  /
Grant succeeded.
SQL> conn c/c
Connected.
SQL> select * from b.v
  2  /
select * from b.v
ERROR at line 1:
ORA-01031: insufficient privileges
SQL> select * from a.t
  2  /
        C1 C
         1 A
         2 B
         3 C
SQL> So the architecture is quite watertight. Perhaps the problem is that this is not how it's working in your production system. But I would be very surprised if your production system was broken in the way you describe. More likely is that there is some missing part of the jigsaw. But without a complete dump of your system's granted privileges it is hard for us to say what's wrong.
Cheers, APC
Blog : http://radiofreetooting.blogspot.com/

Similar Messages

  • Any way to create a form that allows users to create profiles that can be viewed by other users?

    I'm working on a social media site, and I would like to give users the ability to create simple profiles that can be viewed by other users. Is there any way I can do this in Muse CC? Any good resource websites with code I can embed?

    Muse form widgets can only email the form submission data to a specified email address for non-BC hosting at this time. For BC with webCommerce plan and above, this should be possible with the help of webApps however, that is an advanced topic and would require some knowledge of CMS and HTML to implement <http://helpx.adobe.com/business-catalyst/partner/web-apps.html>.
    Also this will not be possible with Muse on its own as Muse outputs static pages only and what you are looking for requires backend technology to work (that BC offers).
    Thanks,
    Vinayak

  • To publish an output of a report to be viewed by other users

    We want to run Create Accounting program automatically at night under a special user lets say "SUPPORT".
    We want 5 users from Finance to be able to view the output of this program. They do not have access to the same responsibility from which that report was run by SUPPORT user.
    Is there any feature in R12 that you can use to publish output of a particular report to be viewed by other people? Does Role Based Access Control let you achieve this?
    Thanks.
    Edited by: user9027345 on 6-Jun-2011 6:32 AM

    Pl see these MOS Docs on how this can be achieved
    Concurrent Processing - Settings for Profile Option "Concurrent Report Access Level" (Doc ID 736547.1)
    R12 View Concurrent Requests FAQ (Doc ID 1261985.1)
    R12: Role Based Access Control (RBAC) Unable to View Output for Requests Submitted by other Users (Doc ID 862812.1)
    This topic has been discussed previously in other threads - http://forums.oracle.com/forums/search.jspa?threadID=&q=concurrent+AND+report+AND+access+AND+level&objID=c3&dateRange=thisyear&userID=&numResults=15
    HTH
    Srini

  • SQL Developer and Blocking View of Other Users' Objects

    I am using SQL Developer in a classroom environment. My student users can “see” Other Users objects. They cannot modify, but none the less can see the structure and data.
    I only want the users to be able to see their own objects. Is there a privilege that needs to be revoked? (In using SQL Plus command line, this was not a problem.)
    Thanks.
    -Karen

    Karen,
    From sysdba account (sys/system). Run following and verify for that particular user grant is revoked. May be exit from sql developer and log back in or refresh view.
    YOu can also potenially revoke all the privs from all non admin uses i.e.r even connect/resource roles and grant them back.
    revoke select any table from yourschemaname;
    revoke connect from schemaname;
    revoke create session from  schemaname;
    revoke resource from schemaname;
    Then just grant privs as need basis
    grant connect to schemanme;
    grant resource to schemaname;
    grant create session to schemaname;
    ..Regards
    Edited by: OrionNet on Jan 23, 2009 2:01 PM

  • How to view / edit other users subscriptions to reports via report admin user ?

    Is there a built-in GUI means or power tool to access a list of all the users' subscriptions to reports in SQL 2012 ?
    It seems that report admin can only view his own subscriptions, same as any other user via "my subscriptions", but no found option for report admin user to view or manage susbcriptions of other users.
    How would u recommend to view the list of all the subscriptions to reports in SSRS, and as necessary to
    also manage them ?
    p.s. Is there a GUI for this in SQL 2014 ?
    Thanks

    Hi moital,
    According to your description, you want to access a list which contains all users subscriptions and edit them. Right?
    In Reporting Services, we have a table named "Subscription" in the ReportServer database. It includes all the information of each subscription. Please go to SQL Server Management Studio and try the query below in ReportServer database:
    select c.UserName,b.SubscriptionID,a.ItemID ReportID,a.Path,a.Name ReportName
    from Subscriptions b inner join Catalog a on a.ItemID=b.Report_OID inner join Users c on b.OwnerID=c.UserID
    It will return us each subscription with corresponding ReportName, UserName and Path:
    Then we can go to the Report based on the path if we need to edit the subscription. We don't have build-in GUI for any version SQL, but this can be a good method to get the list of subscriptions.
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou
      

  • Issues sending draft to other users

    Hi Gurus
    I am a newbie and have become frustrated with this product.I
    am trying to send a draft to another Contribute user (CS3) for
    publishing as I have not been assigned publishing rights.
    I have connected via a ticket sent to me and when I select
    the
    Send for Review button the application automatically opens
    the email package - not the review selection dialogue. At this time
    I have a draft which has been locked for editing by me and I cannot
    get it published. Help please!
    I have CS4 and the other users are using CS3. Also we are a
    distributed team, so when I am connected they are not - I do not
    know if this is the source of my frustration.

    Hi Gurus
    I am a newbie and have become frustrated with this product.I
    am trying to send a draft to another Contribute user (CS3) for
    publishing as I have not been assigned publishing rights.
    I have connected via a ticket sent to me and when I select
    the
    Send for Review button the application automatically opens
    the email package - not the review selection dialogue. At this time
    I have a draft which has been locked for editing by me and I cannot
    get it published. Help please!
    I have CS4 and the other users are using CS3. Also we are a
    distributed team, so when I am connected they are not - I do not
    know if this is the source of my frustration.

  • Grant tables/views to other user

    i have 3 user (a,b,c)
    i want to grant select previlege of all the tables/views of user a,b to c
    please help me out which one is the shortest method to doing this

    sukhijank wrote:
    grant select any table to a,b,c;
    select 'grant select on '|| OWNER || '.' ||view_name || ' to ' || '<USERNAME>;' from dba_views;
    This is considered lazy and bad practice. A better practice would be to create a role, make individual grants on the tables and views owned by a and b to the role and then grant the role to c.
    This is assuming c will be just querying the objects and not referencing the objects in its own objects (ie views packages etc). If this is the case then direct grants from a and b to c are needed. Once again, you should only grant the minimum necessary and resist the temptation to do a quick fix and grant system privs to ordinary users.
    Andre

  • Unable to View the Other User's Developed Interfaces

    Hi All,
    One of my colleague has developed 3 interfaces with his ID in Repository.
    He is able to view and test all those scenarios.
    but if i login with my ID means , iam unable to see those Scenarios at all in IR
    Before this iam able to view if he developed any scenarios with his ID also..
    But now only this problem has come,What could be the problem.
    Regards

    Hi Prateek,
    He activated all the development & tested successfully those interfaces..
    All the users are having the Equal Roles only. there is no specific roles to any user.
    We all have Admin roles
    Before this iam able to see all the interfaces irrespective of any user's ID development.
    Thsi is the problem occured Now only
    Regards
    Edited by: Suman gupta on Nov 7, 2008 11:29 AM

  • When "Save Link As..." is used, file permissions are changed so that other users of the same computer have full access.

    I have a laptop running Windows Vista Ultimate, and I'm not sure what's been changed in my Firefox, but now, every time I use "Save Link As...", the user permissions for the file have been set to include "USERS" which is then indicated by an icon in the bottom left corner of the file thumbnail. The icon is of the two people you see under "User Accounts and Family Safety" in the Control Panel.
    I do remember a dialogue box coming up saying something about "This file originates from another computer and may be harmful..." or something along those lines when this problem first occurred.
    I thought that problem would only occur for files from one website, but now, whenever I try using "Save Link As...", the user permissions for that file are incorrect.
    If I open the link and download the file manually, it's perfectly fine.

    It seems that the difference between the sites that will open and the one that won't is the Default Authentication provider is set to NTLM on those that open, and Negotiate (Kerberos) on the one that won't. The Authentication Provider for the Default zone
    is Claims Based Authentication on all the sites, just site B (which won't open) is set to Negotiate (Kerberos), the others are set to NTLM.
    Short term: can I change the provider to NTLM without destroying the site?
    Long term: point me in the direction for setting up Kerberos correctly on my server/farm, as from what I can tell Kerberos is the recommended path forward. I'll setup a non-production test site and get it figured out.
    Thanks much.
    Steven

  • Grant connect allows viewing of other users

    Situation:
    In SQL*Plus: Create a user, grant connect to the user. Connect as the new user and try to query dba_users. ORA-00942 error occurs (which is good).
    In Raptor, connect as the new user. Expand the users tree and now you, the new user, can see every user in the database (among other data dictionary items). That's not good, right? This occurs in the latest release (0919).

    Do you suggest that through raptor you can get access to dba objects with only connect granted? Impossible :) Try this in raptor and sql+
    select * from all_users;
    select * from dba_users;

  • Error creating view with tables of other user

    I am creating of view containing two tables of another user. I
    am a dba-user.
    The statement looks like this:
    CREATE VIEW TEST
    (SELECT ...
    FROM DWH.TABLE_A A, DWH.TABLE_B B
    WHERE A.ID = B.ID)
    I get an error-message (ORA-00942: Table or view not found).
    When I create the view as user DWH, everything went OK. I don't
    think it has something to do with privileges since I am the dba-
    user.
    How can I create a view using other users tables?

    Hi
    To create view on table of another user you need to have select
    privilege grant directly to you - not to role granted to you. In
    your case you can select tables because you have granted dba
    role and it has select any table prvivilege, but you havent
    directly granted this rights without role.
    Regards

  • How to view the output submitted by other user

    Product : EBS R12.0.4
    Plateform : RHEL AS 4.6
    I want to view the output submitted by other users. I have tested it for responsiblity level in which sysadmin can view the other users request but it is labour work. Can anyone suggest to view it with less work.
    Regards,

    Hi,
    you need to understand the new RBAC concept and the involved objects. Just to mention that Grants are here specific EBS-RBAC objects you have to deal with. You need to be sysadmin and functional Administrator to define and assign those objects. I know that the metalink note is short and could be longer, but all steps are right.
    If you ask mainly what you are doing by utilizing this notes, you are defining additional where clauses, internally added to the basic object (here concurrent requests) and additionally you are granting rights to get buttons enabled (log / out).
    If you need something else, just let me know.
    Regards
    Volker

  • How to view other user inbox?

    Hi,
    As i am able to view my inbox using tocde SBWP. But i want to view for other user inbox, Can i view it
    without maintaining substitute for other user?
    Thanks in advacne.

    I Guess This is Not Possible.

  • Permissions issues when trying to import CD

    When I try to import a CD to iTunes, it gives me the following error message :
    "Error occurred while converting the file "SONG NAME". You do not have enough access privileges for this operation."
    - iTunes could not save to your Music Folder and folders in your Music Folder, then converting this file again
    THEN when I go to the info within the music folder to correct the permissions, it gives me another error message :
    :" The operation cannot be completed because you do not have sufficuent privileges for some of the items"
    the account I'm trying to do this from is the administrator account, so I'm not sure how to fix this so that I can import CDs again. Any help would be greatly appreciated!

    You are not the first person to report this problem. I have had similar if not the same problem. I wanted to share files between users on the same computer. So I set up a shared folder for putting all music. In the preferences of iTunes I pathed to the same shared folder.
    I made sure that the folder (and all sub-folders) had read/write permissions for me and the other user (wife). Now I can not import tracks of a CD into iTunes as I get the message that I don't have sufficient permissions! So I have gone into the disk utility to repair permissions. Still it doesn't work for me but oddly enough, my wife CAN import tracks into iTunes (pathed to the same location) when she is logged in.
    I've searched for such in support and discussions and thought I have found others who noted the same problem no solutions have yet been posted.

  • Preventing other users from seeing my files

    Hi,
    I'm not exactly a UNIX person but the below folder:
    drwx------ 8 myfolder staff 272 Dec 27 17:34 myid
    Should only be readable by myself (myid) right? I see no group permissions. So why are other users able to navigate into this folder and see its contents?
    Thanks,
    Brandon
    Message was edited by: bmm727

    Done - but it doesn't seem to be that different.
    togoshis-MacBook-Pro:~ myid$ ls -ladeO myfolder
    drwx------ 8 myid staff - 272 Dec 27 17:34 myfolder
    I did notice that other folders which MacOS sets up as not readable by other users (e.g. - folders in the user directory) have a permission more like this:
    drwx------+
    I'm not sure what the trailing '+' represents.
    Oh and Happy New Year all.

Maybe you are looking for

  • Report S_ALR_87011964

    Hi, While generating the report S_ALR_87011964, it get generated only with SAP_ALL. It is not generated for this other profiles which has this Tcode in Menu. Env - SAP R/3 4.7.  We are upto date in patch level. Could not locate any auth failures too.

  • How to load the data from flat file ( ex excel ) to Planning area directly

    Hi all , How can i load thedata fro m flat file directly to Planning area . PLease help me in this. Regards, Chandu .

  • AdfPage.PAGE.findComponent method usage

    I have a function.js file which has the showMap() function. I am trying to display something using the AdfPage.PAGE.findComponent method which keeps returning undefined for any component I try to find from the js file. What am I doing wrong? Is it be

  • BPC 7.5: Delta Load when loading from BI InfoProvider

    Hi, in BPC 7.5 running a package based on Process Chain "CPMB/LOAD_INFOPROVIDER" loads data directly from an SAP BI Infoprovider into an BPC-Cube. According to the options you can choose "Merge Data Values" or "Replace & Clear DataValues" According t

  • XML Auto page layout

    hi i want some help about xml mapping in indesign. i have xml file, but want extract some data (structure is name, statement, statement 1, address, address1, address2, city etc.) like name, statement, address1, city. So How to map this to come only t