版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、管理密码安全用户角色和数据库权限(1)1 管理口令安全性和资源管理口令安全性和资源管理密码安全用户角色和数据库权限(1)2 目标完成本课后, , 您应当能够执行下列操作: : 使用配置文件管理口令 管理配置文件 使用配置文件控制资源使用 获取有关配置文件, , 口令管理和资源的信息管理密码安全用户角色和数据库权限(1)3 配置文件 命名的口令和资源限制集 通过 create user create user 或 alter user alter user 命令分配 用户 可以启用或禁用 可与 default default 配置文件 相关accountlockingsecuritydomain
2、directprivilegestemporarytablespacedefaulttablespacetablespace quotasauthenticationmechanismroleprivilegesresourcelimits管理密码安全用户角色和数据库权限(1)4 口令管理管理密码安全用户角色和数据库权限(1)5 启用口令管理 使用配置文件设置口令管理并向用户分配口令 使用下列命令锁定, , 解除锁定帐户和使帐户失效 create user create user 或 alter user alter user 命令 始终执行口令限制管理密码安全用户角色和数据库权限(1)6 口
3、令帐户锁定parameterfailed_login_attemptspassword_lock_time descriptionnumber of failed login attempts before lockout of the accountnumber of days for which the account remains locked upon password expiration管理密码安全用户角色和数据库权限(1)7 口令失效和过期parameterpassword_life_timepassword_grace_timedescriptionlifetime of t
4、he password in days after which the password expiresgrace period in days for changing the password after the first successful login after the password has expired管理密码安全用户角色和数据库权限(1)8 控制帐户锁定和口令alter user hanneidentified by rueaccount unlock;管理密码安全用户角色和数据库权限(1)9 口令历史记录parameterpassword_reuse_timepassw
5、ord_reuse_maxdescriptionnumber of days before a password can be reusedmaximum number of times apassword can be reused管理密码安全用户角色和数据库权限(1)10 口令验证parameterpassword_verify_functiondescriptionpl/sql function that makes a password complexity check before a password is assigned管理密码安全用户角色和数据库权限(1)11 用户提供的口令
6、函数 必须在 sys sys 方案中创建函数, , 且函数必须具有下列说明: :function_name( userid_parameter in varchar2(30), password_parameter in varchar2(30), old_password_parameter in varchar2(30)return boolean管理密码安全用户角色和数据库权限(1)12 口令验证函数 verify_functionverify_function 长度至少为 4 4 个字符 口令不应与用户名相同 口令至少应包含一个字母, , 一个数字和一个特殊字符 新口令应至少有 3 3
7、 个字母与原口令不同管理密码安全用户角色和数据库权限(1)13 创建配置文件: :create pro limit failed_login_attempts 3 password_lock_time unlimited password_life_time 30 password_reuse_time 30 password_verify_function verify_function password_grace_time 5;管理密码安全用户角色和数据库权限(1)14 改变配置文件alter pro failed_login_attempts 3password_life_time 6
8、0password_grace_time 10;管理密码安全用户角色和数据库权限(1)15 删除配置文件drop pro;drop pro cascade;管理密码安全用户角色和数据库权限(1)16 用配置文件管理资源1. 1. 用 create profile create profile 命令创建配置文件2. 2. 使用 create create 或 alter user alter user 命令向用户分配配置文件3. 3. 使用以下参数或命令启用资源限制: : resource_limit resource_limit 初始化参数 alter system alter system
9、命令管理密码安全用户角色和数据库权限(1)17 设置会话级资源限制resourcecpu_per_session sessions_per_userconnect_time idle_time logical_reads_per _sessionprivate_sga descriptiontotal cpu time measured in hundredths of secondsnumber of concurrent sessions allowed for each usernameelapsed connect time measured in minutesperiods of
10、inactive time measured in minutesnumber of data blocks (physical and logical reads)private space in the sga measured in bytes (for mts only)管理密码安全用户角色和数据库权限(1)18 设置调用级资源限制resourcecpu_per_calllogical_reads_per _calldescriptioncpu time per call in hundredths of secondsnumber of data blocks that can be
11、 read per call管理密码安全用户角色和数据库权限(1)19 创建配置文件: :资源限制create pro limit sessions_per_user 2 cpu_per_session 10000 idle_time 60 connect_time 480;管理密码安全用户角色和数据库权限(1)20 启用资源限制 将初始化参数 resource_limit resource_limit 设置为 truetrue 使用 alter system alter system 命令启用参数, , 从而执行资源限制alter system set resource_limit=true
12、; 管理密码安全用户角色和数据库权限(1)21 查看口令和资源限制信息 dba_usersdba_users profileprofile usernameusername account_statusaccount_status lock_datelock_date expiry_dateexpiry_date dba_profilesdba_profiles profileprofile resource_nameresource_name resource_type (password, kernel)resource_type (password, kernel) limitlimit
13、管理密码安全用户角色和数据库权限(1)22 小结在本课中, , 您应该已经学会如何: : 管理口令 管理配置文件 管理资源限制管理密码安全用户角色和数据库权限(1)23 管理用户管理用户管理密码安全用户角色和数据库权限(1)24 目标完成本课后, , 您应当能够执行下列操作: : 创建新的数据库用户 改变和删除现有的数据库用户 监视有关现有用户的信息管理密码安全用户角色和数据库权限(1)25 用户和安全accountlockingtablespacequotastemporarytablespacedefaulttablespaceroleprivilegesresourcelimitssec
14、uritydomaindirectprivilegesauthenticationmechanism管理密码安全用户角色和数据库权限(1)26 数据库方案tablestriggersconstraintsindexesviewssequencesstored program unitssynonymsuser-defined data typesdatabase links管理密码安全用户角色和数据库权限(1)27 创建用户的核对清单1. 1. 选择用户名和验证机制2. 2. 识别用户需用于存储对象的表空间3. 3. 决定每个表空间的限额4. 4. 分配缺省表空间和临时表空间5. 5. 创建用
15、户6. 6. 向用户授予权限和角色管理密码安全用户角色和数据库权限(1)28 创建新用户: : 数据库验证 设置初始口令: :create user peteridentified by my1stsondefault tablespace datatemporary tablespace tempquota 15m on datapassword expire;管理密码安全用户角色和数据库权限(1)29 创建新用户: : 操作系统验证 使用 os_authent_prefixos_authent_prefix 示例: os user = user15: os user = user15rem
16、ote loginpossibleos_authent_prefixos_empty string“ “ ops$(default)database useros_user15user15ops$user15(default)nonoyes管理密码安全用户角色和数据库权限(1)30 创建新用户: : 原则 首先选择标准口令; ; 尽量少用操作系统验证 使用 expire expire 关键字强制用户重置口令 始终分配临时表空间 仅向少数几个用户分配限额; ; 慎用 quota quota unlimitedunlimited 培训用户: : 连接 更改口令管理密码安全用户角色和数据库权限(1)
17、31 更改表空间中的用户限额alter user peterquota 0 on data;管理密码安全用户角色和数据库权限(1)32 删除用户 如果方案包含对象, , 则使用 cascade cascade 子句drop user peter;drop user peter cascade;管理密码安全用户角色和数据库权限(1)33 监视用户dba_usersusernameuser_idcreatedaccount_statuslock_dateexpiry_datedefault_tablespacetemporary_tablespacedba_ts_quotasusernametab
18、lespace_namebytesmax_bytesblocksmax_blocks管理密码安全用户角色和数据库权限(1)34 小结在本课中, , 您应该已经学会如何: : 创建指定适当口令机制的用户 控制用户的空间使用管理密码安全用户角色和数据库权限(1)35 管理权限 管理权限管理权限管理密码安全用户角色和数据库权限(1)36 目标目标完成本课后, , 您应当能够执行下列操作: : 识别系统和对象权限 授予和撤消权限 控制操作系统或口令文件验证 识别审计功能管理密码安全用户角色和数据库权限(1)37 管理权限两种类型的权限: : 系统: : 使用户可以在数据库中执行特定的操作 对象: :
19、使用户可以访问和操纵特定的对象管理密码安全用户角色和数据库权限(1)38 系统权限 有大约 126 126 种系统权限 权限中的 any any 关键字表示用户在每个方案中都具有权限 grant grant 命令向用户或用户组添加权限 revoke revoke 命令删除权限管理密码安全用户角色和数据库权限(1)39 系统权限: : 示例categoryexamples indexcreate any indexalter any indexdrop any index table create tablecreate any tablealter any tabledrop any tabl
20、eselect any tableupdate any tabledelete any tablesessioncreate sessionalter sessionrestricted sessiontablespacecreate tablespacealter tablespacedrop tablespaceunlimited tablespace管理密码安全用户角色和数据库权限(1)40 授予系统权限grant create session, create table to managers;grant create session to scott with admin optio
21、n;管理密码安全用户角色和数据库权限(1)41 sysdba sysdba 和 sysopersysoper权限categoryexamples sysoper startupshutdown alter database open | mount alter database backup controlfilealter tablespace begin/end backup recover databasealter database archivelogrestricted session sysdbasysoper privileges with admin optioncreate
22、 databaserecover database until 管理密码安全用户角色和数据库权限(1)42 口令文件验证1. 1. 检查是否已创建口令文件; ; 如果没有, , 则使用 orapwdorapwd创建2. 2. 检查初始化参数remote_login_password_file remote_login_password_file 已设置为exclusiveexclusive3. 3. 向用户授予 sysoper sysoper 和 sysdba sysdba 权限4. 4. 查询 v$pw v$pw 以验证口令文件成员管理密码安全用户角色和数据库权限(1)43 显示系统权限db
23、a_sys_privs grantee privilege admin optionsession_privs privilege管理密码安全用户角色和数据库权限(1)44 系统权限限制 o7_dictionary_accessibility = trueo7_dictionary_accessibility = true 还原为 oracle7 oracle7 的行为 使用 any any 关键字删除对系统权限的限制 缺省值为 truetrue管理密码安全用户角色和数据库权限(1)45 撤消系统权限revoke create table from karen;revoke create se
24、ssion from scott;管理密码安全用户角色和数据库权限(1)46 使用 with admin optionwith admin option grant revokekarenscottdbakarenscottdba管理密码安全用户角色和数据库权限(1)47 使用 with admin optionwith admin option 结果dbakarenscott管理密码安全用户角色和数据库权限(1)48 对象权限 对象 权限 表 视图 序列 过程 alter alter delete delete execute execute index index insert inser
25、t references references select select update update 管理密码安全用户角色和数据库权限(1)49 授予对象权限grant execute on dbms_pipe to public;grant update(first_name, salary) on employee to karen with grant option;管理密码安全用户角色和数据库权限(1)50 显示对象权限dba_tab_privsdba_col_privsgranteeownertable_namegrantorprivilegegrantablegranteeown
26、ertable_namecolumn_name grantorprivilegegrantable管理密码安全用户角色和数据库权限(1)51 撤消对象权限revoke execute on dbms_pipe from scott;管理密码安全用户角色和数据库权限(1)52 使用 with grant optionwith grant optionscottscottuser 1user 1user 2user 2管理密码安全用户角色和数据库权限(1)53 使用 with grant optionwith grant optionscottuser 1user 2管理密码安全用户角色和数据库权限(1)54 审计原则 确定审计目的 可疑的数据库操作 采集历史信息 确定要审计的内容 审计用户, , 语句或对象 按会话 成功或未成功 管理审计线索 监视审计线索的增长 保护审计线索以避免未经授权地访问
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 山地营地消防设施年度检测方案
- 一级公路施工组织设计编制规范
- 铁路桥梁施工组织设计编制规范
- 汽车维修作业安全培训课件
- 老旧小区信报箱智能更新项目可行性研究报告
- 基层医疗卫生资源配置分析报告
- 预应力空心板施工方案
- 食用菌深加工项目可行性研究报告
- 危大工程资料管理规范
- 空调系统试运行调试维保衔接方案
- 实验室安全培训案例课件
- 快消品特殊渠道开发课件
- 2025-2026学年北京市文汇中学教育集团九年级(上)期中语文试卷
- 上海市郊野乡村风貌规划设计和建设导则二
- 风机降噪方案
- 产品开发TR5评审要素表
- 多学科交叉融合驱动下机器人导论课程实践与思考
- 航天科工集团在线测评题
- GB/T 44211-2024消费品质量分级导则家具
- 求职OMG-大学生就业指导与技能开发智慧树知到期末考试答案章节答案2024年中国海洋大学
- 第10章-幼儿园组织文化建设课件
评论
0/150
提交评论