下载此文档

数据库实验四报告.doc


文档分类:IT计算机 | 页数:约9页 举报非法文档有奖
1/9
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/9 下载此文档
文档列表 文档介绍
《数据库原理与应用》实验报告
实验名称:
班级:
学号:
姓名:
一、实验目的
(1)了解Oracle数据库中的用户管理,模式,权限管理和角色管理。
(2)掌握为用户分配权限的方法。
(3)了解为不同用户分配不同权限的目的及原因。
二、实验过程
,分别创建数据库内部用户user_one和user_two,创建时自己为用户分配帐户口令。
语句:
create user user_one
identified by 123456
default tablespace users
temporary tablespace temp
quota unlimited on users;
create user user_two
identified by 123456
default tablespace users
temporary tablespace temp
quota unlimited on users;
执行结果:

语句:
grant create session to user_one;
grant create session to user_two;
执行结果:
,在任何模式下删除表的权限,授予用户user_two可以在任何模式下创建表的权限,查询任何模式下表中数据的权限和在任何模式下创建视图的权限。
语句:
grant create table,drop any table to user_one;
grant create any table,create any view,select any table to user_two;
执行结果:
,写出相应的SQL语句验证为其授予的权限。(如果建立的表中有主键约束,需要预先授予user_one和user_two用户create any index的权限。)
语句:
create table t1 (a varchar2(10));
drop table ;
create table (b varchar2(10));
create view
as
select ,,ame,grade
from student,sc,course
where = and o=o and major='生物工程';
select ,,ame,grade
from student,sc,course
where = and o=o and major='生物工程';
执行结果:
,创建用户user_three,将角色权限DBA授予用户user_three,并将S、P、J、SPJ四张表导入到user_three模式下。
语句:
create user user_three

数据库实验四报告 来自淘豆网m.daumloan.com转载请标明出处.

非法内容举报中心
文档信息