473,386 Members | 1,668 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

accessing a view from another user

assume:

user a has the table tab_a
user b has select-right on the table tab_a an creates the view view_b

create view view_b as
select * from a.tab_a;

this works fine and b can see the content of the table tab_a.

now b grants user c the select-right on his view view_b.
but when c tries to look at the view

select * from b.view_b

he gets an ora-01031: insufficient privileges! why? this even happens
with select-rights on the table tab_a from user a! now he could create
an own view on the table of user a or look directly on this table, but
he still can't open the view of user b!

what must be done that user c can look at the view view_b from user b?

thanx

matthias
Jul 19 '05 #1
2 7523

"matthias" <wi********@gmx.de> wrote in message
news:aa**************************@posting.google.c om...
| assume:
|
| user a has the table tab_a
| user b has select-right on the table tab_a an creates the view view_b
|
| create view view_b as
| select * from a.tab_a;
|
| this works fine and b can see the content of the table tab_a.
|
| now b grants user c the select-right on his view view_b.
| but when c tries to look at the view
|
| select * from b.view_b
|
| he gets an ora-01031: insufficient privileges! why? this even happens
| with select-rights on the table tab_a from user a! now he could create
| an own view on the table of user a or look directly on this table, but
| he still can't open the view of user b!
|
| what must be done that user c can look at the view view_b from user b?
|
| thanx
|
| matthias

b has rights, but notthe privilege to pass them on (which is what granting
on the view attempts to do)

this requires the GRANTE xxxx ... WITH GRANT OPTION syntax

++ mcs
Jul 19 '05 #2
> | assume:
|
| user a has the table tab_a
| user b has select-right on the table tab_a an creates the view view_b
|
| create view view_b as
| select * from a.tab_a;
|
| this works fine and b can see the content of the table tab_a.
|
| now b grants user c the select-right on his view view_b.
| but when c tries to look at the view
|
| select * from b.view_b
|
| he gets an ora-01031: insufficient privileges! why? this even happens
| with select-rights on the table tab_a from user a! now he could create
| an own view on the table of user a or look directly on this table, but
| he still can't open the view of user b!
|
| what must be done that user c can look at the view view_b from user b?
|
| thanx
|
| matthias

b has rights, but notthe privilege to pass them on (which is what granting
on the view attempts to do)

this requires the GRANTE xxxx ... WITH GRANT OPTION syntax

++ mcs


that's it! thank you!
Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: aj | last post by:
DB2 WSE LUW 8.1 Fixpak 5 Red Hat AS 2.1 I'm trying to set up a federated view from one DB2 database to another in the same instance on the same server. I do a: create server <SERVER> type...
3
by: prodirect | last post by:
Hi all, I hope someone can help me. I've recently created a database and wanted to put it up on an ftp sight so that multiple people could access the same tables at the same time from different...
2
by: Don | last post by:
Hello! I am trying to write some code to access performance counters on a remote machine. Ideally, I would like to add a machine to a tree control (like the "Servers" view in the .NET IDE) and...
3
by: Russell Read [MSFT] | last post by:
Hi all, I am using VB script in ASP to access a MS Access database. This works fine until I want to access the same db placed on a file share. The code I am using is... 'create connection...
2
by: DanB | last post by:
I am using VB DotNet Std Edition and am writing a web application that needs to read and write to an password protected database. The mdb files reside in a folder (fpdb) under the localhost...
5
by: samadams_2006 | last post by:
I'm having a problem in accessing a Microsoft Access Database in a VB.NET Web Application. It's so straight forward, I thought I'd walk you through all the details here: 1) I have a .NET Web...
2
by: le0 | last post by:
guys, this is my first time to deploy website to the server, but every time i access the page this error always appears. ...
1
by: vbace2 | last post by:
I have searched this forum, and the web, and I have not been able to find a solution to my issue. I may not have used the right search information to find the answer, but I found a lot of issues...
2
by: matthias | last post by:
assume: user a has the table tab_a user b has select-right on the table tab_a an creates the view view_b create view view_b as select * from a.tab_a; this works fine and b can see the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.