dbTalk Databases Forums  

privileg problem

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss privileg problem in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Andreas Mosmann
 
Posts: n/a

Default privileg problem - 08-18-2011 , 04:02 PM






Hi,

I have a problem with privileges.

I can *select* rows from a user

select BlaBla, BlaBlub
from OtherUser.Table

I can *not* *create* *a* *view* from the same select
(ORA-01031: Unzureichende Berechtigungen)

create view MyBlaBla as
select BlaBla, BlaBlub
from OtherUser.Table

I can *create* *a* *table* from the same select
create table MyBlaBla as
select BlaBla, BlaBlub
from OtherUser.Table

I can create views, tables and so on on any selects to tables of other
users on remote databases, but not on the same db (no prob to select,
but to create view)

I have the privilegs
"SELECT ANY TABLE", "CREATE ANY VIEW"
Why I can not create the view? What privileg is needed for this? Do I
really have to use object privilegs?

Thanks in advance
Andreas

--
wenn email, dann AndreasMosmann <bei> web <punkt> de

Reply With Quote
  #2  
Old   
Carlos
 
Posts: n/a

Default Re: privileg problem - 08-19-2011 , 01:46 AM






On Aug 18, 11:02*pm, Andreas Mosmann <mosm... (AT) expires-31-08-2011 (DOT) news-
group.org> wrote:
Quote:
Hi,

I have a problem with privileges.

I can *select* rows from a user

select * BlaBla, BlaBlub
from *OtherUser.Table

I can *not* *create* *a* *view* from the same select
(ORA-01031: Unzureichende Berechtigungen)

create view MyBlaBla as
select * BlaBla, BlaBlub
from *OtherUser.Table

I can *create* *a* *table* from the same select
create table MyBlaBla as
select * BlaBla, BlaBlub
from *OtherUser.Table

I can create views, tables and so on on any selects to tables of other
users on remote databases, but not on the same db (no prob to select,
but to create view)

I have the privilegs
"SELECT ANY TABLE", "CREATE ANY VIEW"
Why I can not create the view? What privileg is needed for this? Do I
really have to use object privilegs?

Thanks in advance
Andreas

--
wenn email, dann AndreasMosmann <bei> web <punkt> de
GRANT SELECT ON *** TO *** WITH GRANT OPTION;

HTH.

btw:
Quote:
" I can *select* rows from a user"
This does not sound like Oracle terminology... ;-)

Cheers.

Carlos.

Reply With Quote
  #3  
Old   
Andreas Mosmann
 
Posts: n/a

Default Re: privileg problem - 08-19-2011 , 03:21 AM



Carlos schrieb am 19.08.2011 in
<71848b9e-ef97-4b22-bf03-8dc917764bd2 (AT) fv14g2000vbb (DOT) googlegroups.com>:

Quote:
On Aug 18, 11:02*pm, Andreas Mosmann <mosm... (AT) expires-31-08-2011 (DOT) news-
group.org> wrote:
Hi,

I have a problem with privileges.

I can *select* rows from a user

select * BlaBla, BlaBlub
from *OtherUser.Table

I can *not* *create* *a* *view* from the same select
(ORA-01031: Unzureichende Berechtigungen)

create view MyBlaBla as
select * BlaBla, BlaBlub
from *OtherUser.Table

I can *create* *a* *table* from the same select
create table MyBlaBla as
select * BlaBla, BlaBlub
from *OtherUser.Table

I can create views, tables and so on on any selects to tables of other
users on remote databases, but not on the same db (no prob to select,
but to create view)

I have the privilegs
"SELECT ANY TABLE", "CREATE ANY VIEW"
Why I can not create the view? What privileg is needed for this? Do I
really have to use object privilegs?

Thanks in advance
Andreas

--
wenn email, dann AndreasMosmann <bei> web <punkt> de

GRANT SELECT ON *** TO *** WITH GRANT OPTION;
this was the right hint. Without Grant Option I can not create a view,
even if I can execute the select- statement itself.
I granted "select any table with grant option" and it works fine.

Quote:
HTH.
yes, it did

Quote:
btw:
" I can *select* rows from a user"
This does not sound like Oracle terminology... ;-)
what is the oracle terminology in this case?

Quote:
Cheers.

Carlos.
Thank you
Andreas

--
wenn email, dann AndreasMosmann <bei> web <punkt> de

Reply With Quote
  #4  
Old   
Mark D Powell
 
Posts: n/a

Default Re: privileg problem - 08-19-2011 , 08:12 AM



On Aug 19, 4:21*am, Andreas Mosmann <mosm... (AT) expires-31-08-2011 (DOT) news-
group.org> wrote:
Quote:
Carlos schrieb am 19.08.2011 in
71848b9e-ef97-4b22-bf03-8dc917764... (AT) fv14g2000vbb (DOT) googlegroups.com>:





On Aug 18, 11:02*pm, Andreas Mosmann <mosm... (AT) expires-31-08-2011 (DOT) news-
group.org> wrote:
Hi,

I have a problem with privileges.

I can *select* rows from a user

select * BlaBla, BlaBlub
from *OtherUser.Table

I can *not* *create* *a* *view* from the same select
(ORA-01031: Unzureichende Berechtigungen)

create view MyBlaBla as
select * BlaBla, BlaBlub
from *OtherUser.Table

I can *create* *a* *table* from the same select
create table MyBlaBla as
select * BlaBla, BlaBlub
from *OtherUser.Table

I can create views, tables and so on on any selects to tables of other
users on remote databases, but not on the same db (no prob to select,
but to create view)

I have the privilegs
"SELECT ANY TABLE", "CREATE ANY VIEW"
Why I can not create the view? What privileg is needed for this? Do I
really have to use object privilegs?

Thanks in advance
Andreas

--
wenn email, dann AndreasMosmann <bei> web <punkt> de
GRANT SELECT ON *** TO *** WITH GRANT OPTION;

this was the right hint. Without Grant Option I can not create a view,
even if I can execute the select- statement itself.
I granted "select any table with grant option" and it works fine.

HTH.

yes, it did

btw:
" I can *select* rows from a user"
This does not sound like Oracle terminology... ;-)

what is the oracle terminology in this case?

Cheers.
Carlos.

Thank you
Andreas

--
wenn email, dann AndreasMosmann <bei> web <punkt> de- Hide quoted text -

- Show quoted text -
What Carlos did not explain is that if the owner of a view references
any other username's object then he or she needs to be granted access
on the object with the grant option much like a package owner needs a
direct grant on third-party objects. This is a security feature.

You took care of the problem by granting the onwer select privilege on
ANY table with the grant option. As a general rule you should try to
avoid granting ANY privileges. The most basic rule of security is
that a user should not have any access that the user does not need to
perform their job function. Many of the rdbms security issues have
revolved around the ANY privileges. Some auditors will look for and
question ANY privileges.

Just something to think about.

HTH -- Mark D Powell --

Reply With Quote
  #5  
Old   
Carlos
 
Posts: n/a

Default Re: privileg problem - 08-19-2011 , 12:15 PM



On 19 ago, 15:12, Mark D Powell <Mark.Powe... (AT) hp (DOT) com> wrote:
Quote:
On Aug 19, 4:21*am, Andreas Mosmann <mosm... (AT) expires-31-08-2011 (DOT) news-









group.org> wrote:
Carlos schrieb am 19.08.2011 in
71848b9e-ef97-4b22-bf03-8dc917764... (AT) fv14g2000vbb (DOT) googlegroups.com>:

On Aug 18, 11:02*pm, Andreas Mosmann <mosm... (AT) expires-31-08-2011 (DOT) news-
group.org> wrote:
Hi,

I have a problem with privileges.

I can *select* rows from a user

select * BlaBla, BlaBlub
from *OtherUser.Table

I can *not* *create* *a* *view* from the same select
(ORA-01031: Unzureichende Berechtigungen)

create view MyBlaBla as
select * BlaBla, BlaBlub
from *OtherUser.Table

I can *create* *a* *table* from the same select
create table MyBlaBla as
select * BlaBla, BlaBlub
from *OtherUser.Table

I can create views, tables and so on on any selects to tables of other
users on remote databases, but not on the same db (no prob to select,
but to create view)

I have the privilegs
"SELECT ANY TABLE", "CREATE ANY VIEW"
Why I can not create the view? What privileg is needed for this? Do I
really have to use object privilegs?

Thanks in advance
Andreas

--
wenn email, dann AndreasMosmann <bei> web <punkt> de
GRANT SELECT ON *** TO *** WITH GRANT OPTION;

this was the right hint. Without Grant Option I can not create a view,
even if I can execute the select- statement itself.
I granted "select any table with grant option" and it works fine.

HTH.

yes, it did

btw:
" I can *select* rows from a user"
This does not sound like Oracle terminology... ;-)

what is the oracle terminology in this case?

Cheers.
Carlos.

Thank you
Andreas

--
wenn email, dann AndreasMosmann <bei> web <punkt> de- Hide quoted text -

- Show quoted text -

What Carlos did not explain is that if the owner of a view references
any other username's object then he or she needs to be granted access
on the object with the grant option much like a package owner needs a
direct grant on third-party objects. *This is a security feature.

You took care of the problem by granting the onwer select privilege on
ANY table with the grant option. *As a general rule you should try to
avoid granting ANY privileges. *The most basic rule of security is
that a user should not have any access that the user does not need to
perform their job function. *Many of the rdbms security issues have
revolved around the ANY privileges. *Some auditors will look for and
question ANY privileges.

Just something to think about.

HTH -- Mark D Powell --
Carlos did not explain because it was NOT an explanation but a hint
that the op should investigate further. (The op could find an
explanation here: http://carlosal.wordpress.com/2007/0...01720-y-views/
-in spanish though- ).

Quote:
"As a general rule you should try to avoid granting ANY privileges."
I couldn't agree more.

Quote:
"what is the oracle terminology in this case?"
I would use 'schema' in Oracle, and 'database' in Teradata ;-)

Cheers.

Carlos.

Reply With Quote
  #6  
Old   
Andreas Mosmann
 
Posts: n/a

Default Re: privileg problem - 08-21-2011 , 06:45 AM



Mark D Powell schrieb am 19.08.2011 in
<97e143a4-5c07-4046-bd11-9f630cdec483 (AT) l8g2000prd (DOT) googlegroups.com>:

Quote:
On Aug 19, 4:21*am, Andreas Mosmann <mosm... (AT) expires-31-08-2011 (DOT) news-
group.org> wrote:
Carlos schrieb am 19.08.2011 in
71848b9e-ef97-4b22-bf03-8dc917764... (AT) fv14g2000vbb (DOT) googlegroups.com>:





On Aug 18, 11:02*pm, Andreas Mosmann <mosm... (AT) expires-31-08-2011 (DOT) news-
group.org> wrote:
Hi,

I have a problem with privileges.

I can *select* rows from a user

select * BlaBla, BlaBlub
from *OtherUser.Table

I can *not* *create* *a* *view* from the same select
(ORA-01031: Unzureichende Berechtigungen)

create view MyBlaBla as
select * BlaBla, BlaBlub
from *OtherUser.Table

I can *create* *a* *table* from the same select
create table MyBlaBla as
select * BlaBla, BlaBlub
from *OtherUser.Table

I can create views, tables and so on on any selects to tables of other
users on remote databases, but not on the same db (no prob to select,
but to create view)

I have the privilegs
"SELECT ANY TABLE", "CREATE ANY VIEW"
Why I can not create the view? What privileg is needed for this? Do I
really have to use object privilegs?

Thanks in advance
Andreas

--
wenn email, dann AndreasMosmann <bei> web <punkt> de
GRANT SELECT ON *** TO *** WITH GRANT OPTION;

this was the right hint. Without Grant Option I can not create a view,
even if I can execute the select- statement itself.
I granted "select any table with grant option" and it works fine.

HTH.

yes, it did

btw:
" I can *select* rows from a user"
This does not sound like Oracle terminology... ;-)

what is the oracle terminology in this case?

Cheers.
Carlos.

Thank you
Andreas

--
wenn email, dann AndreasMosmann <bei> web <punkt> de- Hide quoted text -

- Show quoted text -

What Carlos did not explain is that if the owner of a view references
any other username's object then he or she needs to be granted access
on the object with the grant option much like a package owner needs a
direct grant on third-party objects. This is a security feature.

You took care of the problem by granting the onwer select privilege on
ANY table with the grant option. As a general rule you should try to
avoid granting ANY privileges. The most basic rule of security is
that a user should not have any access that the user does not need to
perform their job function. Many of the rdbms security issues have
revolved around the ANY privileges. Some auditors will look for and
question ANY privileges.

Just something to think about.

HTH -- Mark D Powell --
Thank you very much. But security is not my problem in this case.
There are about 10 Datasources (some Excel- Sheets, some Oracle- DB,
DBF- Files, Access- DBs ...) that I have to combine.
In all that databases I have the right to collect the data.
I decided to use a local Oracle- DB to work with the data and collect by
DB- links or copied DBF-, Excel- and other data as tables into the local
DB. Inside this are more users/schemas only for that purpose. And for
not having too much work I granted "select any with grant option".
This is only my very private db. (that means, if I am ready the result
is given to the customer of course)
Andreas

--
wenn email, dann AndreasMosmann <bei> web <punkt> de

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.