无论是身处学校还是步入社会,大家都尝试过写作吧,借助写作也可以提高我们的语言组织能力。那么我们该如何写一篇较为完美的范文呢?接下来小编就给大家介绍一下优秀的范文该怎么写,我们一起来看一看吧。
虚拟专用数据库概述篇一
虚拟专用数据库是一项重要技术,使企业能够构建托管的、基于 web 的应用程序。实际上,许多 oracle 应用程序本身使用 vpd 实施数据分隔,包括 oracle 和 oracle portal 等程序。下面小编为大家整理了关于虚拟专用数据库概述的文章,希望能为你提供帮助:
虚拟专用数据库 (vpd) 提供了角色和视图无法提供的行级访问控制。对于互联网访问,虚拟专用数据库可以确保在线银行的客户只能看到他们自己的帐户。web 托管公司可以在同一 oracle 数据库中维护多个公司的数据,但只允许每个公司查看其自身数据。
在企业内部,虚拟数据库可在应用程序部署方面降低拥有成本。可以在数据库服务器一次实现安全性,而不用在访问数据的每个应用程序中分别实现安全性。因为是在数据库中实施安全性,所以不管用户访问数据的方式如何,安全性较以前更高。访问即席查询工具或新报表生成程序的用户不再能绕过安全环节。虚拟专用数据库是一项重要技术,使企业能够构建托管的、基于 web 的应用程序。实际上,许多 oracle 应用程序本身使用 vpd 实施数据分隔,包括 oracle 和 oracle portal 等程序。
将一个或多个安全策略与表或视图关联后,就可以实现虚拟专用数据库。对带安全策略的.表进行直接或间接访问时,数据库将调用一个实施该策略的函数。策略函数返回一个访问条件(where 子句),即谓词。应用程序将它附加到用户的 sql 语句,从而动态修改用户的数据访问权限。
你可以通过编写一个存储过程将 sql 谓词附加到每个 sql 语句(用于控制该语句的行级别访问权限)来实施 vpd。例如,如果 john doe(他属于 department 10)输入 select * from emp 语句,则可以使用 vpd 添加 where dept = 10 子句。这样,您便可以通过对查询进行修改
1. 搭建环境--创建模式拥有者和相应的用户,赋予权限
view plaincopy to clipboardprint?
connect sys/password@service as sysdba;
create user schemaowner identified by schemaowner
default tablespace users temporary tablespace temp;
grant connect, resource to schemaowner;
create user user1 identified by user1
default tablespace users temporary tablespace temp;
grant connect, resource to user1;
create user user2 identified by user2
default tablespace users temporary tablespace temp;
grant connect, resource to user2;
grant execute on dbms_rls to public;
conn schemaowner/schemaowner@service
create table users
(id number(10) not null,
ouser varchar2(30) not null,
first_name varchar2(50) not null,
last_name varchar2(50) not null);
create table user_data
(column1 varchar2(50) not null,
user_id number(10) not null);
insert into users values (1,'user1','user','one');
insert into users values (2,'user2','user','two');
commit;
grant select, insert on user_data to user1, user2
connect sys/password@service as sysdba;
create user schemaowner identified by schemaowner
default tablespace users temporary tablespace temp;
grant connect, resource to schemaowner;
create user user1 identified by user1
default tablespace users temporary tablespace temp;
grant connect, resource to user1;
create user user2 identified by user2
default tablespace users temporary tablespace temp;
grant connect, resource to user2;
grant execute on dbms_rls to public;
s("content_relate");【虚拟专用数据库概述】相关文章:
1.kvm虚拟化集群技术概述2.oracle数据库概述及特点3.二级visual foxpro数据库程序设计专用教材4.色彩的概述5.eda技术概述6.日语的起源与概述7.项目管理概述8.项目经理概述

一键复制