对象权限
对象
表 视图 序列 过程 函数 包(package)
修改(alter) √ √
删除(delete) √ √
执行(execute) √ √
索引(index) √
权限
插入(insert) √ √
关联(references) √ √
查询(select) √ √ √
更新(update) √ √
read
references √
授予对象权限
语法
grant object_privilege【,…..】| all 【privileges】 on
< schema.> object_name
to {user_name 【,…..】 | role_name【,….】| public}
【with grant option】;
object_privilege:对象权限,可多个权限
all 【privileges】:privileges可以省略,表示授予对象上的所有权限。
schema:用户模式
object_name:对象名称
user_name :被授予权限的用户
role_name: 被授予权限的角色
public:表示Oracle系统的所有用户
with grant option:表示被授予权限的用户可以把该权限再次授予其他人
引发对象权限的问题
授予对象权限案例
验证