A user privilege is the right to run specific SQL statements.Privileges can be divided into system privilege and object privilege. A role is named group of related privileges that you grant to users or other roles.A role helps manage privileges for a database application or user group.Translate them and you will get your answer.
权限就是用户对数据库进行操作的“通行证”。新创建好的用户,是没有任何权限的,甚至连登陆数据库的权限都没有,所以必须由管理员给他授权。比如 grant create session to user_name; --登录数据库 grant select on scott.emp to user_name; --允许查询scott用户下的emp表
单个权限->角色貌似稍微复杂点的系统都会用到。
A role is named group of related privileges that you grant to users or other roles.A role helps manage privileges for a database application or user group.Translate them and you will get your answer.
不是吧!!!一个权限只能够授予一个role或user.那按照你这样讲的话那么create sessoin的这个权限只能被一种类型的role获取吗?
那你的意思是我不能够单独把create session权限赋予其他用户了吗?
grant create session to user_name; --登录数据库
grant select on scott.emp to user_name; --允许查询scott用户下的emp表
可以这么说,比较形象。不知道是否可以给楼主抛砖引玉,,,,在不明白,,,,BAIDU一下,学学概念,仔细体会一下,,,,找找感觉。[/color]
这个不错。角色可以看作是权限的机会,permission group.所以权限分为系统权限,对象权限,和角色权限
有哪些角色和权限?随便举个例子吧