create user temp identified by temp; grant select on testview to temp; grant connect to temp; conn temp/temp在pl/sql中,使用temp用户登录,右键点dbuser.testview,然后点查看,还是能看到这个视图的定义啊,这样降低了安全性啊。据说可以屏蔽掉视图的定义,请大虾帮忙,也感谢以上二位的参与哈。
什么需求啊? 也是可以的,不过比较费劲而已。 建立基于视图的视图,例如 create or replace view vMid as select a.*,b.* from a,b where xx create or replace view vDst as select * from vMid
只授权查询 create user temp identified by temp; grant select on 视图名 to temp;
grant select on testview to temp;
grant connect to temp;
conn temp/temp在pl/sql中,使用temp用户登录,右键点dbuser.testview,然后点查看,还是能看到这个视图的定义啊,这样降低了安全性啊。据说可以屏蔽掉视图的定义,请大虾帮忙,也感谢以上二位的参与哈。
也是可以的,不过比较费劲而已。
建立基于视图的视图,例如
create or replace view vMid as select a.*,b.* from a,b where xx
create or replace view vDst as select * from vMid
create user temp identified by temp;
grant select on 视图名 to temp;