我对 oracle 非常陌生,并试图授予我创建的一些物化视图的权利。
我所做的(全部来自 sqlplus 命令行):
sqlplus "/ 作为 sysdba
>create tablespace tablespace_test datafile 'g:\tables\tablespace_test.dbf' size 20M autoextend on;
>create materialized view test_mv_1 tablespace tablespace_test parallel build immediate refresh complete on demand as select cm.* from yyy.jjj$project@externaldb p, yyy.jjj$mgmt@externaldb cm where (p.project_nbr = cm.project_nbr);
>create user dummy profile default identified by password default tablespace tablespace_test account unlock;
>grant connect to dummy;
>grant select on test_mv_1 to dummy;
>select * from test_mv_1; <---***this works, data is there
>connect dummy
>select * from test_mv_1;
ERROR at line 1:
ORA-00942: table or view does not exist
不知道如何解决这个问题,我确定我做错了一些事情。任何帮助是极大的赞赏。