Managing Users

上传人:飞*** 文档编号:2664929 上传时间:2017-07-26 格式:PPT 页数:54 大小:314.50KB
返回 下载 相关 举报
Managing Users_第1页
第1页 / 共54页
Managing Users_第2页
第2页 / 共54页
Managing Users_第3页
第3页 / 共54页
Managing Users_第4页
第4页 / 共54页
Managing Users_第5页
第5页 / 共54页
点击查看更多>>
资源描述

《Managing Users》由会员分享,可在线阅读,更多相关《Managing Users(54页珍藏版)》请在金锄头文库上搜索。

1、Managing Users,Objectives,After completing this lesson, you should be able to do the following:Create new database usersAlter and drop existing database usersMonitor information about existing users,Accountlocking,Tablespacequotas,Temporarytablespace,Defaulttablespace,Roleprivileges,Resourcelimits,S

2、ecuritydomain,Directprivileges,Authenticationmechanism,Users and Security,Database Schema,A schema is a named collection of objectsA user is created, and a corresponding schema is createdUser can be associated only with one schemaUsername and schema are often used interchangeably,Checklist for Creat

3、ing Users,Identify tablespaces in which the user needs to store objects.Decide on quotas for each tablespace.Assign a default tablespace and temporary tablespace.Create a user.Grant privileges and roles to the user.,Creating a New User: Database Authentication,Set the initial password:,CREATE USER a

4、aronIDENTIFIED BY soccerDEFAULT TABLESPACE dataTEMPORARY TABLESPACE tempQUOTA 15m ON dataPASSWORD EXPIRE;,Creating a New User: Operating System Authentication,CREATE USER aaronIDENTIFIED EXTERNALLYDEFAULT TABLESPACE USERSTEMPORARY TABLESPACE tempQUOTA 15m ON dataPASSWORD EXPIRE;,OS_AUTHENT_PREFIX in

5、itialization parameter specifies the format of the usernamesDefaults to OPS$,Changing User Quota on Tablespace,ALTER USER aaronQUOTA 0 ON USERS;,Dropping a User,Use the CASCADE clause to drop all objects in the schema if the schema contains objects.Users currently connected to the Oracle server cann

6、ot be dropped,DROP USER aaron;,DROP USER aaron CASCADE;,Obtaining User Information,Information about users can be obtained by querying the data dictionary.DBA_USERSDBA_TS_QUOTAS,Summary,In this lesson, you should have learned how to:Create users specifying the appropriate password mechanism Control

7、usage of space by users,Practice 15 Overview,This practice covers the following topics:Creating usersDisplaying data dictionary information about users Removing user quotas,Managing Privileges,Objectives,After completing this lesson, you should be able to do the following:Identify system and object

8、privilegesGrant and revoke privilegesIdentify auditing capabilities,Managing Privileges,Two types of Oracle user privileges: System: Enables users to perform particular actions in the databaseObject: Enables users to access and manipulate a specific object,System Privileges,There are over 100 distin

9、ct system privilegesThe ANY keyword in the privileges signifies that users have the privilege in any schemaThe GRANT command adds a privilege to a user or a group of usersThe REVOKE command deletes the privileges,System Privileges: Examples,CategoryExamples INDEXCREATE ANY INDEXALTER ANY INDEXDROP A

10、NY INDEX TABLE CREATE TABLECREATE ANY TABLEALTER ANY TABLEDROP ANY TABLESELECT ANY TABLEUPDATE ANY TABLEDELETE ANY TABLESESSIONCREATE SESSIONALTER SESSIONRESTRICTED SESSIONTABLESPACECREATE TABLESPACEALTER TABLESPACEDROP TABLESPACEUNLIMITED TABLESPACE,Granting System Privileges,GRANT CREATE SESSION T

11、O emi;,GRANT CREATE SESSION TO emi WITH ADMIN OPTION;,SYSDBA and SYSOPERPrivileges,System Privilege Restrictions,O7_DICTIONARY_ACCESSIBILITY parameterControls restrictions on SYSTEM privilegesIf set to TRUE, access to objects in SYS schema is allowedDefault is FALSE Ensures that system privileges th

12、at allow access to any schema do not allow access to SYS schema,Revoking System Privileges,REVOKE CREATE TABLE FROM emi;,Revoking System Privileges WITH ADMIN OPTION,DBA,GRANT,REVOKE,Jeff,Emi,Jeff,Emi,DBA,Object Privileges,Object priv.TableViewSequenceProcedureALTER DELETE EXECUTE INDEX INSERT REFER

13、ENCES SELECT UPDATE ,Granting Object Privileges,GRANT EXECUTE ON dbms_output TO jeff;,GRANT UPDATE ON emi.customers TO jeff WITH GRANT OPTION;,GRANT object_privilege (column_list) , object_privilege (column_list) .|ALL PRIVILEGESONschema.objectTOuser|role|PUBLIC, user|role|PUBLIC .WITH GRANT OPTION,

14、Revoking Object Privileges,REVOKE SELECT ON emi.orders FROM jeff;,REVOKE object_privilege, object_privilege .| ALL PRIVILEGES ONschema.objectFROM user|role|PUBLIC, user|role|PUBLIC .CASCADE CONSTRAINTS,GRANT,REVOKE,Revoking Object Privileges WITH GRANT OPTION,Bob,Jeff,Emi,Emi,Jeff,Bob,Obtaining Priv

15、ileges Information,Data Dictionary ViewsDBA_SYS_PRIVSSESSION_PRIVSDBA_TAB_PRIVSDBA_COL_PRIVS,Auditing,Auditing is the monitoring of selected user database actionsUsed toInvestigate suspicious database activityGather information about specific database activities,Auditing Guidelines,Define what you want to auditAudit users, statements, or objectsStatement executionsSuccessful statement executions, unsuccessful statement executions or bothManage your audit trailMonitor the growth of the audit trailProtect the audit trail from unauthorized access,

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 行业资料 > 其它行业文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号