![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi ng, (Oracle 11.2.0.1.0, Linux) Following Situation: There are 3 schemas: DATA - holds all the data of my database WORKER - prepares the data for publishing, has select- privilege on all tables of DATA with admin option PUBLISHER - there should be stored the data prepared by WORKER in a MatView, has select- privilege on all views/tables of WORKER and system privilege CREATE MAT VIEW, CREATE ANY MAT VIEW (and for test a direct select privileg on DATA.TABLE1, DATA.TABLE2 ...) Pseudo: WORKER: CREATE VIEW MyView as SELECT * FROM DATA.TABLE1 JOIN DATA.TABLE2 ... PUBLISHER: CREATE MATERIALIZED VIEW as SELECT * FROM WORKER.MyView; -- Doesn't work, insufficient privileges No problem for publisher to Select WORKER.MyView, but no chance to create a mat view from it, neither by "SELECT * FROM WORKER.MyView" nor by "SELECT * FROM DATA.TABLE1 JOIN DATA.TABLE2 ..." How to find out, which privileges it is missing? BTW: Spatial Data should be collected, but I suppose, this is not the problem, because a select works and a create mat view w/o geometry column has the same effect. Thanks in advance Andreas -- wenn email, dann AndreasMosmann <bei> web <punkt> de |
#3
| |||
| |||
|
|
Hi ng, (Oracle 11.2.0.1.0, Linux) Following Situation: There are 3 schemas: DATA - holds all the data of my database WORKER - prepares the data for publishing, has select- privilege on all tables of DATA with admin option PUBLISHER - there should be stored the data prepared by WORKER in a MatView, has select- privilege on all views/tables of WORKER and system privilege CREATE MAT VIEW, CREATE ANY MAT VIEW (and for test a direct select privileg on DATA.TABLE1, DATA.TABLE2 ...) Pseudo: WORKER: CREATE VIEW MyView as SELECT * FROM DATA.TABLE1 JOIN DATA.TABLE2 ... PUBLISHER: CREATE MATERIALIZED VIEW as SELECT * FROM WORKER.MyView; -- Doesn't work, insufficient privileges No problem for publisher to Select WORKER.MyView, but no chance to create a mat view from it, neither by "SELECT * FROM WORKER.MyView" nor by "SELECT * FROM DATA.TABLE1 JOIN DATA.TABLE2 ..." How to find out, which privileges it is missing? BTW: Spatial Data should be collected, but I suppose, this is not the problem, because a select works and a create mat view w/o geometry column has the same effect. Thanks in advance Andreas -- wenn email, dann AndreasMosmann <bei> web <punkt> de |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
Andreas Mosmann schrieb am 13.08.2010 in 1281706582... (AT) user (DOT) newsoffice.de>: Your links solved my problem. I did not expect that a "create table" privilege is needed too (and I still do not understand, why). But after giving this it worked fine. Thank you. Andreas -- wenn email, dann AndreasMosmann <bei> web <punkt> de |
#6
| |||
| |||
|
|
I think it is because you have to create a SEGMENT for the MW, and it is created on the table owner schema. Thus the owner needs the 'CREATE TABLE' (there is no 'CREATE SEGMENT' right.) |
![]() |
| Thread Tools | |
| Display Modes | |
| |