2012下半年理工Oracle11g期末模拟试卷及答案

2026/1/14 16:30:56

件,但每个数据文件只能属于一个表空间。 Create tablespace 表空间名 datafile 数据文件名;

5.热备份是针对归档模式的数据库,在数据库仍处于工作状态时进行备份。而冷备份是指在数据库关闭后,进行备份,适用于所有模式的的数据库。热备份的优点在于当备份时,数据库仍处于可以被使用状态,且可以将数据库恢复到任意一个时间点。冷备份的优点在于它的备份和恢复操作相当简单,并且由于冷备份的数据库可以工作在非归档模式下,不必将archive log 写入 硬盘,所以数据库性能会比归档模式稍微好。

四、程序题

一、1、SQL>SELECT * FROM emp WHERE tel NOT NULL; 2、SQL>SELECT * FROM emp WHERE BETWEEN 500 AND 800; 3、SQL>SELECT empno,ename,age,sal FROM emp ORDER BY age ASC; SQL>SELEC

4、SQL>SELECT AVG(sal) FROM emp WHERE deptno='D_01'; 5、SQL>SELECT ename FROM emp WHERE deptno='D_01' AND age>40 AND。

二、Select c# ,AVG(grade) From SCG

GROUP BY C#

Having AVG(grade)> 80

order by 2,C# desc;

三、1.create tablespace “student” DATAFILE

?D:\\oracle\\oradate\\mybase\\student.ora?size 50M

Extent management dictionary default storage(initial 1M next 1M minextents

maxextents 50 pctincrease 5)

2.alter user “system”default tablespace”student” 3.a.create table student(

sno number(6) primary key, sname varchar2(25) not null, ssex char(2) check (Ssex in('男','女')), sdt date,

cno number(10),

foreign key(clno)preferences class(clno)); b.create table score(

sno number(6),

cono number(10), grade number(3,2), primary key(sno,cono),

foreign key(sno)preferences student(sno)); 4.alter table student

alter column sno number(8);

5.create user teacher identified by teacher default tablespace user quota 50M on users;

grant select on score to teacher; 6.create index student_index on student(sname) tablespace index

petfree 40% storage initial 1;


2012下半年理工Oracle11g期末模拟试卷及答案.doc 将本文的Word文档下载到电脑
搜索更多关于: 2012下半年理工Oracle11g期末模拟试卷及答案 的文档
相关推荐
相关阅读
× 游客快捷下载通道(下载后可以自由复制和排版)

下载本文档需要支付 10

支付方式:

开通VIP包月会员 特价:29元/月

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:xuecool-com QQ:370150219