十四、用户及权限.pptVIP

  • 4
  • 0
  • 约1.03万字
  • 约 20页
  • 2018-06-30 发布于天津
  • 举报
十四、用户及权限.ppt

用户 目的 创建用户 创建角色 授权和收回权限 控制用户的访问 权限 数据库的安全性 系统安全性 数据安全性 系统权限:获得后可访问数据库 对象权限: 操作数据库对象的内容 Schema: 对象的集合(tables, views, sequences) 系统权限 多于100种系统权限可用 DBA 有最高系统权限. Create new users Remove users Remove tables Backup tables 建用户 DBA 可使用 CREATE USER 语句建用户. 使用系统权限 授予系统权限 DBA 可将指定的系统权限授予用户. 什么是角色 创建角色 改变用户口令 当建用户时会初始化一个口令. 用户可使用 ALTER USER 语句改变口令. 对象权限 Object Privilege Table View Sequence Procedure ALTER DELETE EXECUTE INDEX INSERT REFERENCES SELECT UPDATE 对象权限 对象不同,对象权限也不同. 对象的所有者拥有对象的所有权限. 对象的所有者可将指定的权限授予其他的用户. 授予对象权限 例子1. 使用WITH GRANT OPTION 和 PUBLIC 关键字 所有的用户都可查询此表. 确认权限的数据字典表 收回对象的权限 使用REVOKE语句从其他用户收回权限. 通过 WITH GRANT OPTION授予的权限也可收回. 收回对象的权限 例子. 小结 CREATE USER Allows the DBA to create a user GRANT Allows the user to give other users privileges to access the users objects CREATE ROLE Allows the DBA to create a collection of privileges ALTER USER Allows users to change their password REVOKE Removes privileges on an object from users 练习题概述 把表的权限授予其他用户 通过授权使其他用户可修改自己的表 建同义词 查询相关的数据字典表 Changing Your Password Every user has a password that is initialized by the DBA when the user is created. You can change your password by using the ALTER USER statement. Syntax ALTER USER user IDENTIFIED BY password; where: user is the name of the user password specifies the new password Although this statement can be used to change your password, there are many other options. You must have the ALTER USER privilege to change any other option. For more information, see oracle9i Server SQL Reference, Release 8.0, 揂LTER USER. Object Privileges An object privilege is a privilege or right to perform a particular action on a specific table, view, sequence, procedure, function, or package. Each object has a particular set of grantable privileges. The table above lists the privileges for various objects. Note that the only privileges that apply to a sequence are SELECT and ALTER. UPDATE, REFERENCES, and

文档评论(0)

1亿VIP精品文档

相关文档