私はオラクルが初めてで、作成したマテリアライズドビューに権利を付与しようとしています。
私がやったこと(すべてsqlplusコマンドラインから):
sqlplus "/ as 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
これを修正する方法がわかりません。私はいくつか間違ったことをしたと確信しています。どんな助けでも大歓迎です。