![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
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: Table or View not found. Does anybody know why? Yours, Markus |
#2
| |||
| |||
|
|
I do this Code as System: |
#3
| |||
| |||
|
|
On Jun 1, 6:03*am, "Markus Gronotte" <maqq... (AT) gmx (DOT) de> wrote: I do this Code as System: Besides what the others said, you probably don't want to use system for tables you create. *It's not the critical error of earlier versions, but still considered bad form. If you need a controlling schema, make one. *Leave system and its tablespace alone, except for supported DBA use. jg -- @home.com is bogus. Black lineshttp://www.washingtonpost.com/wp-dyn/content/article/2009/05/30/AR200... |
![]() |
| Thread Tools | |
| Display Modes | |
| |