赋权限:
先登陆拥有赋权限的用户(管理员或对象拥有者,管理员赋管理权限,拥有者赋对象权限)
//前提:需当前登陆的是EMP表的拥有者
//将EMP表的选择权限赋给用户abc
grant select on emp to abc
grand all on emp to abc --赋EMP表的所有权限
//对象继承赋予,即父传子,子可传孙
//下面的语句可使abc拥有EMP表的权限并可以转传他人
//如果是对象权限
grant all on emp to abc with grant option
//如果是系统限权
grant connect to abc with admin option
//权限回收(一样是要登陆拥有者进行操作)
revoke all on emp from abc
//权限回收ORACLE是采用级联回收的方式,即如果权限传递下去后子级被回收了,那么孙级和以下的都将被回收。