- 1、本文档共41页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
数据库原理15
Security and User Authorization in SQL Security Two aspects: Users only see the data they’re supposed to; Guard against malicious users. How SQL control it? Authorization ID Privileges Authorization ID An element of SQL environment A user or a group of users who may be granted some particular privileges on objects User ID: personal security account on behalf of individuals, applications, system services Not defined in SQL standard regarding its creation Role: a defined set of privileges CREATE ROLE Granted to users or other roles PUBLIC: a special built-in authorization ID Authorization in A Session A session provides the authorization ID a context to execute SQL statements during the connection A session is associated with a user ID or a role name. On session initialization, session uid is determined by: Explicit CONNECT TO … USER usr; Implementation-defined manner Authorization in A Session(cont.) In a session, embedded SQL, client module and SQL-invoked routines may specify authorization ID, so the current auth. ID is changing. SESSION_USER: SQL session user ID CURRENT_USER: the current user ID SET SESSION AUTHORIZATION… CURRENT_ROLE: the current rolename SET ROLE… Privileges Privileges are associated with authorization ID 9 types: SELECT, INSERT, DELETE, UPDATE: applied to a relation (base table or view) SELECT, INSERT, UPDATE may be associated with a list of attributes. REFERENCES: the right to refer to relations in IC May have attached list of attributes USAGE: the right to use some kinds of DB elements in ones’s own column definition TRIGGER: the right to define triggers on a relation EXECUTE: the right to execute PSM proc/func UNDER: the right to create subtypes of a UDT Obtaining Privileges Owner vs. granted user SQL elements (e.g. schemas, modules) have an owner. Owner has all privileges and may GRANT them to others Ownership Establishment Three points when creating a schema CREATE SCHEMA … AUTHORIZATION usr usr is the owner of the
您可能关注的文档
- 教育部参赛_送东阳马生序_梁浩.doc
- 数字电路课程设计指导书_2017级.doc
- 数字程控交换系统计费实验 - 现代交换技术实验报告.doc
- 数学专题8数列的概念与公式.doc
- 数学爱我们.doc
- 数学院西华师范大学授课时间表2017-2017-1(本科)更新版.doc
- 数学:17.1 探索反比例函数的性质 教案1(人教版八下).doc
- 数学:2.3.4《平面与平面垂直的性质》课件3(新人教版A必修2).ppt
- 数学:2.3《用计算器求标准差与方差》课件(苏科版九年级上册).ppt
- 数学:4.2《平行四边形的判定》课件3(北师大版八年级上).ppt
- 第三单元解决问题的策略 三年级下册数学高频考点重难点讲义(苏教版)(1).docx
- 4.4 解比例 数学六年级下册同步培优讲义(苏教版).docx
- 第四单元《根据方向与距离确定物体位置》(教案)五年级下册数学青岛版.docx
- (奥数典型题)第三讲 分解质因数 五年级下册数学思维拓展提升讲义(人教版).docx
- 2.2:2、5、3的倍数-人教版五年级数学下册第二单元:因数和倍数.docx
- 第六单元正比例和反比例 六年级下册数学高频考点重难点讲义(苏教版).docx
- 第二单元除数是一位数的除法 三年级下册数学高频考点重难点讲义(人教版).docx
- 第二单元-认识三角形和四边形 四年级数学下册提升(北师大版).docx
- 第一单元观察物体(三)五年级下册数学高频考点重难点讲义(人教版).docx
- 第九单元 数学广角—推理 二年级数学下册重难点知识点(人教版).docx
文档评论(0)