网站大量收购独家精品文档,联系QQ:2885784924

12_les_11_App_Context数据库安全审计.ppt

  1. 1、本文档共34页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
12_les_11_App_Context数据库安全审计

Using Application Contexts Objectives After completing this lesson, you should be able to do the following: Describe how an application context is used Describe the sources of application context values Implement a local context Implement an application context that is accessed globally Application Context: Description An application context is a memory container with attributes: The container is called a namespace. A namespace has attributes. Each namespace is independent of others. The namespace is populated by a package. Namespace Using the Application Context An application context: Is read by applications Can be used to: Authorize users Limit access to data, called by a FGAC policy Set attributes used in the application Setting the Application Context The context attributes are set by a package, which: Creates attributes in the context Assigns values to the attributes of the context Is usually called when a user connects Each application can use one or more contexts. A context may be used by multiple applications. USERENV is a built-in context with session properties and is available to all applications. Application Context Data Sources The built-in USERENV context contains session primitives as attributes. Example: Client IP address A local context uses database objects. The developer sets these attributes. Example: The EMPLOYEE_ID column in the EMPLOYEES table An externalized context can get values from an external source, such as Oracle Call Interface (OCI). A global context uses values from the directory-entry attributes. Implementing a Local Context Create an application context. Create a PL/SQL package that sets the context. Call the package to set the context attribute. Read the context attribute in the application. Step 1: Create an Application Context Create a unique context: Names the context HRAPP Associates it with an HR_CONTEXT package You can set the context attributes only in the: Package named in CREATE CONTEXT Function associated with a polic

文档评论(0)

liudao + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档