老大们,还是不行啊!可能是我描述不够准确吧!其实我就想达到一个目的:让msmd库自身用户可以执行的脚本,test用户拿过来不做任何改动就可以直接执行;SELECT * FROM MSMD.TEST;前面这种方式我想应该是可以查到结果的,但是我的脚本里,如果有几百行的话,我岂不是要一个一个的来改,那肯定是不现实的啊!这样我就可以随时终止这个用户(test)的使用或改动他的登陆密码而不至于影响到其他的在用系统.其实test的权限都无所谓的,因为是我来控制他什么时间可以用,什么时间不可以用!这个能不能实现啊?如果不行的话,我就不在这个上面浪费时间了!
呵呵,这个我知道.
create user TEST
identified by "password"
default tablespace TEST
temporary tablespace TEMP
profile DEFAULT;
-- Grant/Revoke role privileges
grant connect to TEST;
grant select any table to test; ----这个用户只能访问用户表,系统表你访问不到的.
需要打开一个开关.
create user TEST
identified by "password"
default tablespace TEST
temporary tablespace TEMP
profile DEFAULT;
-- Grant/Revoke role privileges
grant connect to TEST;
grant select any table to test;