sql - unable to grant privileges to scott -
i'm trying grant all scott on emp sys, oracle throwing ora-00942: table or view not exist error message. i'm not getting emp table details in sys dba.
how can grant permission scott can create views or user in scott. when tried create view or user in scott, system throwing insufficient privileges error message.
thanks help.
you're having (at least) 3 different problems:
- missing system privileges create views etc.
- (assuming want use example tables provided database installation) table called
employees, notemp - the
employeestable inhrschema, not insysschema - missing privileges on
hr.employees
to fix these:
-- connect sys grant create view scott; -- connect hr create select on employees scott; -- connect scott create view v_scott select * hr.employees; update
if you're unsure correct table name, can use query list of tables in database names start emp (to run this, you'll have use privileged user account, e.g. sys):
select owner, table_name dba_tables table_name 'emp%'
Comments
Post a Comment