nntp2http.com
Posting
Suche
Optionen
Hilfe & Kontakt

Oracle: Zugriffsrechte vergeben

Von: Markus Gronotte (maqqusz@gmx.de) [Profil]
Datum: 01.06.2009 15:12
Message-ID: <4a23d3c6$0$31343$9b4e6d93@newsspool4.arcor-online.net>
Newsgroup: de.comp.datenbanken.misc
I do this Code as System:


Create Table T_Controlling (
ControllingID number,
Mitarbeiter number,
Verkaeufe number,
Constraint PK_Control Primary Key (ControllingID),
Constraint FK_Control Foreign Key (Mitarbeiter) References Mitarbeiter(MitarbeiterID)
);




Create Role R_Einkauf
Create Role R_Verkauf




Grant Connect to R_Einkauf
Grant Connect to R_Verkauf

Grant Select On T_Controlling to R_Einkauf
Grant Select On T_Controlling to R_Verkauf

Grant Insert On T_Controlling to R_Einkauf
Grant Insert On T_Controlling to R_Verkauf

Grant Update On T_Controlling to R_Einkauf
Grant Update On T_Controlling to R_Verkauf

Grant Select On T_Mitarbeiter to R_Einkauf
Grant Select On T_Mitarbeiter to R_Verkauf



Grant Select On T_Waren to R_Einkauf
Grant Select On T_Lieferanten to R_Einkauf

Grant Select On T_Rechnung to R_Verkauf
Grant Select On T_Kunden to R_Verkauf



Create User Meyer   Identified By "abc"
Create User Moeller Identified By "abc"
Create User Mueller Identified By "abc"
Create User Schmidt Identified By "abc"



Grant R_Einkauf to Meyer
Grant R_Einkauf to Moeller
Grant R_Verkauf to Mueller
Grant R_Verkauf to Schmidt


Then I log in with "Schmidt" and if i try to do
select * from T_Controlling Oracle says
"ORA-00942: Tabelle oder View nicht gefunden.

Ups. seh erst jetzt, ist ja ne Deutsche Gruppe...

Weiß jemand warum das nicht funktioniert?


Gruß,

Markus


[ Auf dieses Posting antworten ]

Antworten