检测事业部动平衡需要查询mes系统中四张表的数据,需要为其创建dphuser账户,并赋予其只有查询权限!具体步骤如下:
1、以sys用户登录创建账户并赋予权限!
Sqlplus / as sysdba
create user dphuser identified by 123456;
grant connect,resource to dphuser;
2、赋予mes账户下四张表的查询权限!
grant select on mes.ssb_user to dphuser;
grant select on mes.ssb_work to dphuser;
grant select on mes.ssb_class to dphuser;
grant select on mes.cpp_curing_productionto dphuser;
grant select on mes.sbm_material todphuser;
3、以新用户登录测试是否可以可以查询!
sqlplus dphuser/123456@orcl
SQL> select count(*) from mes.ssb_user;
COUNT(*)
----------
480
SQL> select count(*) from mes.ssb_work;
COUNT(*)
----------
77
SQL> select count(*) from mes.ssb_class;
COUNT(*)
----------
3