湘潭大学oracle试卷A
2023年Oracle认证考试真题
2023年Oracle认证考试真题1. 数据库设计与规范化(25分)在关系数据库的设计和规范化过程中,你是负责设计一个学生信息管理系统的数据库。
请按照以下要求完成相关任务:a. 根据需求分析得到的实体和关系,绘制ER图,并对ER图进行适当的优化和调整;b. 基于ER图,将实体和关系转化为关系模式,确定属性及其关联关系;c. 对关系模式进行规范化,确保数据库满足第三范式。
2. SQL查询与优化(35分)本题需要你运用SQL语言进行数据查询和性能优化。
请根据以下要求完成相关任务:a. 根据给定的表结构和数据,编写SQL查询语句,实现以下功能:- 查询学生表中的所有记录;- 查询平均成绩大于80分的学生姓名和其对应的课程名;- 查询课程表中课程名以“数据库”开头的记录。
b. 对于上述查询语句,分别给出优化方案,提高查询性能。
3. 数据库备份与恢复(20分)在数据库管理过程中,备份与恢复是非常重要的环节。
请根据以下要求完成相关任务:a. 使用Oracle提供的工具或语句进行数据库备份,要求备份包含完整的数据库结构和数据;b. 恢复数据库时,请说明你会使用的方法和步骤,确保数据能够完整恢复。
4. 数据安全与权限管理(20分)数据库安全和权限管理是企业中保护数据的重要措施。
请根据以下要求完成相关任务:a. 列举至少三种数据库安全控制措施,并简要说明其实现原理;b. 设计一个用户角色并赋予相应的权限,确保用户只能访问其所需的数据。
5. 总结与建议(重点评分项)请根据你在考试中的实际经历,结合自身专业知识和经验,对Oracle数据库认证考试进行总结与建议。
包括但不限于以下方面:a. 考试难度及相关学习准备建议;b. 考试题型及题量特点,对备考提出建议;c. 经验分享,例如学习方法、重点复习内容等。
以上是2023年Oracle认证考试真题的内容要求。
在实际考试中,请根据题目要求和时间安排合理分配答题时间。
祝你考试顺利!。
oracle考试题.doc
Oracle基础测试试卷姓名:学校/专业: 成绩:一.选择题(20题,共60分)1、Oracle数据库中为新创建的表分配的初始空间通常为多大?( B )A、一个块B、一个区C、一个段D、一个表空间2、关于存储过程参数,正确的说法是( B )。
A、存储过程的输出参数可以是标量类型,也可以是表类型B、存储过程输入参数可以不输入信息而调用过程C、可以指定字符参数的字符长度(函数的()或者过程的(number/varchar2))D、以上说法都不对3、有一产品表(编号,名称,价格,数量,所属分类),下列语法不正确的是( D )。
A、select * from 产品表where价格>1000B、select sum(价格) from 产品表group by 所属分类having max(价格)>1000C、select所属分类,sum(价格) from 产品表where 价格>1000 group by 所属分类D、select所属分类,sum(价格) from 产品表where max(价格)>1000 group by 所属分类4、下列哪些是Oracle的伪列。
(ACD )(多选)A、ROWIDB、ROW_NUMBER()C、LEVELD、ROWNUME、COLUMN5、在SQL*Plus环境中,删除触发器trg_emp的命令是( A )。
A、DROP TRIGGER trg_empB、DELETE TRIGGER trg_empC、REMOVE TRIGGER trg_empD、ALTER TRIGGER trg_emp REMOVE6、单行( B )函数能够得到字符串的一部分?A、INSERTB、SUBSTRC、LPADD、LEAST7、利用游标来修改数据时,所用的。
FOR UPDATE充分利用了事务的哪个特性?( D )A、原子性B、一致性C、永久性D、隔离性8、下列说法不正确的是()。
Oracle测试题及答案.doc
insert into borrow_save
values(:o,:new.bno,:new.rdate);
end if;
end;
/
12.建立一个视图,显示“力01”班学生的借书信息(只要求显示姓名和书名)。
create view ca_view as
解决两个写事务冲突的办法就是采用“加锁”机制。例如A、B两个事务同吋对一个表的某航数据进行修改,A事务首先修改时对该数据加锁,禁止其他事务对该数据的修改。只有当A事务完成修改工作、并将锁打开后,其他事物才被允许修改。这时候等待的B事务才可以对该数据进行修改。锁可以防止两个写事务同时对一个数裾进行修改,所以也就不会出现写丢失的错误。
11.在borrow表上建立一个触发器,完成如下功能:如果读者借阅的书名是“数据库技术及应用”,就将该读者的借阅记录保存在borrow_save表中(注:borrow_save表结构同borrow表)。
create table borrow_save as
(select * from borrow)
借书卡card (eno卡号,name姓名,class班级)
图书books (bno书号,bname书名,author作者,price单价,quantity库存册数)借书记录borrow (eno借书卡号,bno书号,rdate还书曰期)
注:限定每人每种书只能借一本;库存册数随借书、还书而改变。
1.写出建立borrow表的SQL语句,要求定义主码完整性约束和引用完整性约束create table card
mark INTEGER;
BEGIN
BEGIN//嵌套块1
select氺into tin_rec from tin ;
湘潭大学oracle试卷A
6、在SQL SELECT语句查询中,要去掉查询结果中的重复记录,应该使用___distinct______关键字。
7、使用SQL语言的SELECT语句进行分组查询时,如果希望去掉不满足条件的分组,应当使用____having_____子句。
A、第几代数据库B、数据库的存储容量C、数据库的安装所需的空间D、网格计算
得
分
三、判断题(每题1分,共10分)
1、数据块只能基于表或视图。()
2、从一个表中删除元组时,delete和drop table命令可以起到同样的效果。()
3、Delete可以有选择地删除记录,使用rollback语句可以取消这个命令的执行。()
6、在登录Oracle Enterprise Manager Database Control时,下列那一项不属于连接身份____?__
A、Administrator B、Normal C、SYSDBA D、SYSOPER
7、回滚操作是____D___事处处理所做的工作
A、重复B、备份C、删除D、撤销
aadministratorbnormalcsysdbadsysoper7回滚操作是d事处处理所做的工作a重复b备份c删除d撤销8可以从下列那个表中查询本用户所拥有的表aausertablesbuserviewscalltablesdallviews9oracle数据库显示提交的命令是badobcommitcrollbackdtruncate10oracle10g中g代表意思是da第几代数据库b数据库的存储容量c数据库的安装所需的空间d网格计算三判断题每题1分共10分1数据块只能基于表或视图
Oracle试题(含答案)
Oracle试题(含答案)_C++_CSD/ESD14051. 把⼯资⼤于1000的first_name,salary 显⽰出来,按⼯资排序,⼯资相同按first_name降序的SQL语句是?A.select first_name,salary from s_emp order by salary,first_nameB.select first_name,salary from s_emp order by salary,first_name ascC.select first_name,salary from s_emp order by salary desc,first_nameD. select first_name,salary from s_emp order by salary,first_name desc正确答案:D2. 已知数据库中有员⼯表s_emp和部门表s_dept,具体字段如下:员⼯表字段介绍:ID 员⼯编号LAST_NAME 员⼯姓FIRST_NAME 员⼯名USERID ⽤户编号START_DATE ⼊职⽇期COMMENTS 员⼯备注信息MANAGER_ID 员⼯的领导IDTITLE 员⼯的职位DEPT_ID 部门的编号SALARY 员⼯的⽉薪COMMISSION_PCT 提成部门表的字段介绍:ID 部门编号NAME 部门名REGION_ID 地区编号注:以下所有数据库相关题⽬,均使⽤这两个表把s_emp表中的每个⼈的全名和⼯资列出来的SQL语句是?A.select first_name|last_name ,salary from s_empB.select first_name||last_name ,salary from s_empC.select first_name|last_name ,salary from empD. select first_name||last_name ,salary from emp正确答案:B3. 如果想在代码中禁⽌使⽤goto,可以采⽤的是?A. #pragma GCC dependency gotoB. #pragma GCC poison gotoC. #pragma pack(2)D. #pragma GCC goto正确答案:B4.阅读如下代码:void* p = sbrk(0);int r = brk(p+4);brk(p+8);brk(p+4);请问⽬前占⽤的内存空间字节是?A. 16B. 8C. 4D. 0正确答案:C5. 查找和Smith⼀个title的所有员⼯的名字的SQL语句是?A. SELECT last_name from s_emp where title=(select title from s_emp wherelast_name=’Smith’)B. SELECT last_name from s_emp where title=(select title from s_emp wherelast_name=”Smith”)C. SELECT last_name from s_emp where title=(select last_name,title from s_emp where last_name=’Smith’)D. SELECT last_name from s_emp where title=(select title from s_emp last_name=’Smith’)正确答案:A6. 下列函数中不能处理错误的是?A. exitB. printfC. perrorD. strerror正确答案:A7. 关于信号,以下说法错误的是?A. 信号分为可靠信号和不可靠信号B. 信号的默认处理 ,80%的情况是退出进程C. 所有信号都可以忽略D. 当前⽤户只能给⾃⼰的进程发信号,不能给别的⽤户的进程发信号正确答案:C8. 下列关于进程描述符说法错误的是?A. getpid 获取进程ID。
oracle期末考试卷
oracle期末考试卷Oracle期末考试卷一、选择题(每题2分,共20分)1. Oracle数据库的默认端口号是什么?A. 1521B. 3306C. 1433D. 54322. 在Oracle数据库中,以下哪个命令用于查看当前数据库的所有用户?A. SELECT USER FROM DUAL;B. SELECT DISTINCT USERNAME FROM DBA_USERS;C. SELECT * FROM ALL_USERS;D. SELECT * FROM USER_USERS;3. 以下哪个不是Oracle数据库的体系结构组件?A. 数据库B. 实例C. 表空间D. 索引4. Oracle数据库的哪个组件负责管理数据的存储和检索?A. SQLB. PL/SQLC. RDBMSD. DBMS5. 在Oracle数据库中,以下哪个命令用于创建一个新的表?A. CREATE TABLE;B. CREATE DATABASE;C. CREATE INDEX;D. CREATE VIEW;6. Oracle数据库中,哪个命令用于删除一个表?A. DROP TABLE;B. REMOVE TABLE;C. DELETE TABLE;D. ERASE TABLE;7. Oracle数据库中,哪个命令用于查看表的结构?A. DESCRIBE table_name;B. EXPLAIN table_name;C. SHOW table_name;D. SELECT table_name;8. 在Oracle数据库中,以下哪个命令用于添加新的列到一个已存在的表?A. ADD COLUMN column_name column_type;B. INSERT COLUMN column_name column_type;C. CREATE COLUMN column_name column_type;D. APPEND COLUMN column_name column_type;9. Oracle数据库中,哪个命令用于更新表中的记录?A. UPDATE table_name SET column_name = new_value WHERE condition;B. MODIFY table_name SET column_name = new_value WHERE condition;C. CHANGE table_name SET column_name = new_value WHERE condition;D. ALTER table_name SET column_name = new_value WHERE condition;10. 在Oracle数据库中,以下哪个命令用于删除表中的记录?A. ERASE FROM table_name WHERE condition;B. REMOVE FROM table_name WHERE condition;C. DELETE FROM table_name WHERE condition;D. DROP FROM table_name WHERE condition;二、简答题(每题5分,共30分)1. 简述Oracle数据库的体系结构。
oracle考试试题及答案.doc
oracle考试试题及答案Questions one by one, fill in the blanks (4 points per question exergy a total of 20 points)1,database management technology has gone through three stages: manual management, file system and database system2,database three level data structure is external mode, mode, internal model3,the Oracle database SGA database buffer by exergy exergy exergy redo log buffer shared pool.4,in the Oracle database integrity constraints exergy types are Primay key constraints・ Foreign key Unique constraint exergyCheck not need exergy exergy constraint constraint constraintDeclare cursor open the cursor cursor exergy exergy exergy extraction in PL/SQL, including 5 close myCursor cursor operationTwo, the true or false questions in every day 2 points 20 points total exergy rateThe basic objects stored in the database is 1, the data rate in T2, the database system is the core of DBMS in the T rate The characteristics of relationship between the 3 and the operation is set in the operating rate of T4,five basic operations in relational algebra, and is the difference,selection, projection, connection in the F rate5,Oracle process is the server process in the F rate6,the oraclet system SGA process server and all users in the process of sharing rate T7,the Oracle database system in the data block size in the T operation of the rate system8,Oracle database system exergy start database and the first step is to start a database instance in the T rateThe cursor 9, PL/SQL data can be changed in the F rate10, the database concept model is mainly used in database conceptual structure design in the F rateThree, use the title in the match each 7 points 35 points total exergy rateLogical independence and physical independence in 1, what is the database system data in the programDBMSProvides a two layer mapping mechanism in external mode threemode structureSchema, image, and modeInternal schema image・ The twoThe layer mapping mechanism guarantees the logicalindependence and physical independence of data in the database system・External modeThe schema image defines the correspondence between the external schema of the different users in the database and the logical schema of the database・When the database schema changes such as a relational database system to increase exergy change with the new relati on ship, the relationship between attribute data types can exergyExternal mode adjustmentThe relationship between image mode exergy guarantee a constant user oriented mode of each. The application is based on the data of the model prepared by the exergyWhich application is not required to ensure the independence of the logicof exergy exergy data and application of logical data independence・PatternThe internal schema image defines the global logical structure of the data in the database and the physical storage organization of those data in the systemCorrespondence・When changing the physical storage of data structures in the database when the internal model changes such as the definition and selection of a storage structure can adjust theThe constant so that the external schema of database system and individual applications do not have to change the database schema in the schema mapping relationship / hold mode・This will ensure that the physical data independence and the independence of the physical data between applications or databases ・2, the relational algebra equi jo ins difference is not a natural connection without contact yesterdayAnswer when the operator connected conditions included in the use of 〃二〃this connection is called equivalent connection. Connection operation General in the two table between for can also be in a table does nothave its own connection between connection operation such as from the ・Answer・The equivalent connections and self connections belong to the internal connection query3, what is the database database design is generally divided into what stage from1)Exergy databaseDatabaseIn according to the data structure to organize, store and manage data warehouse・2)Requirement design conceptual designlogic design physical designImplementation, operation and maintenanceFourBrief descriptionOracleComposition of exergy logical databaseA table space, segment, data blockFiveWell, try any one example of using method from cursorA exergyCreate tableCreate table test(Name char (30),Age char (40),Subject char (20),ID numeric (10))insert dataInsert, into, test, values (' hehe,,' haha,,‘ hh', 4)Define variablesDeclare @name char (30)Declare @age char (40)Declare ©subject char (20)Declare @id numericCreate a CursorDeclare himml cursorFor, select, [name], age, subject, ID, from, test open Open hiininlUse cursors to scroll throughFetch, himml, into, @name, @age, @subject, @id 一一Be careful@@FETCH_STATUS yesSQL SERVERInside variables andORACLEThe@@sqlstatusDiffer・While (@@FETCH_STATUS 二0)BeginPrintPrint @namePrint @agePrint ©subjectPrint @idFetch, hiininl, into, @name, @age,@subject, @idEndClose the cursor rate close the cursor result set in its entirety instead of exergyClose hiimnlClose the cursor cursor rate release the memory in and let the cursor name can be used again exergyDeallocate hiimnl five with employee tablesEMP (empno, ename, age, Sal, Tel, deptno), in which empno -------- name ------ n ame age - number of exergy exergy exergy exergy oftel ---- electric sal ------- age wagewordDeptno ----- Department number・Please program at SQL*PLUS in the morning following the following requirements・In every day 3 points total of 15 points in the 1 exergy rate, home telephone staff information query. In the SQL>SELECT FROM EMP WHERE Tel NOT * NULL; in the 2, query wages in 500 to 800 yuan betweenthe employee information in SQL>SELECT * FROM EMP WHERE BETWEEN 500 AND 800: in 3, according to the age in creasing order display employee nu mber, name, age, salary in the SQL>SELECT empno, ename, age, Sal FROM EMP ORDER BY age ASC; SQL>SELEC, 4As the average wage in the Department of SQL>SELECT AVG DOI (SAL) FROM EMP WHERE deptno二'D_01' ; in the 5, find the department number D OI over 40 years of age and wage of 400 yuan in the list of employees in the SQL>SELECT ename FROM EMP WHERE deptno二'D_01' AND age>40 A7D.An examination question twoTwo, fill in the blanks (each 2 points 30 points total exergy) please fill in the correct answers in the blanks every day. No fill and no "11.1.data model is usually composed of three elements of the data structure, data operation and data __________ constraint _・2.database systems, all types of user requests for database operations (data definition, query, update, and various controls) are made up ofA complex software to complete the exergy this software called DBMS3.in the SQL SELECT statement in the query to remove duplicate records of exergy exergy in the query results should be used —DISTINCT_・Key word・ 4. the use of SQL language SELECT statement for the query packet in the packet if he hoped to get rid of not meet the conditions should beUse the HAVING clause.5.relational database data manipulation language (DML) includes two types of operation in their search and update _■6.in relational database design in the database design is divided into requirement analysis, concept design, logic design, physical design, applicationProgram coding, debugging operation, database operation and maintenance in six stages・What stage of database design is the design relational schema?Exergy ____ task logic design ____7.operations can be divided into _ relational algebra _relational calculus and _______ two categories・The relationship between the 8. INF _ non _ main function to eliminate the dependence on the key attribute in the paradigm after grade to 2NF. 2NFThe relationship between — eliminate non main attributes on the keys of the transfer function can be _ dependent upon his paradigm level increased to 3NF.The three level structure of the 9. database through the concept of the pattern / image within the pattern to ensure ________________ independenee in the physical model of concept mapping / byAs in the ― logic _ independence guarantee.10.the meaning of SQL is _ structured query language _________ ・11.DBMS usually provide the authorization function to control permissions in the data of different users to access the database in its purpose is to numberAccording to the _____ security database・Three, short answer questions (6 points each item in a total of 24 points)Safety protection function 1. database provides four aspects which try to explain their meaning of exergyExergy security database is a rate caused by use of database protection prevent 订legal data leakage, change or damage・ SQL Server 2000The security mechanism consists of four layersThe first layer included operating system loginSecond layer server security management exergy exergySQL ServerLoginSpecial accountSAThird layer database security management database exergyexergy accessDatabase userFourth layer database objects in safety management of exergyexergy exergy database object tables and views in accessDatabase user gets roles2. the referential integrity rules in the purpose of it in the test example donburi・3. to Oracle DBMS for the SQL relational database language support is given in the case of grade three logic schematic 1) SQLLanguage support relational database three level logic structure consists of the outer layer and a memory, the concept of as shown in fig・・2)The concept of recording layer corresponds to the conceptual model is the basic table・The basic table is a table that itself actually exists ・A basic table is a it not by other forms of export table・ The basic table is usedCREATE TABLEStatement built・3)In the outer as seen by the user can be the basic table can also be view can also be the basic table view. A view is a virtual tableIt is composed of one or several basic forms of export table it does not exist in the physical memory directly on the table・ View is usedCREATE SQL VIEWlanguageSentence established.4)In the inner each basic table with a file storage is said by a group of the same type of stored records to indicate the value・DBAYou can manipulate physical storage files.4., briefly describe the DBMS database security control function, including what are the commonly used means?A database management system for data control function data securitycontrol function in order to ensure the safety and reliability of the data within the database to preventThe use of illegal cause data leakage and damage the data that avoid being peeped, tampering or ruining exergy data integrity control refers to the function of insuranceThe data card in the database correctly and effectively and to prevent the compatibility error data is not the semantic input or output.Four, database design (15 points)Suppose there is a relationship between the 1. to record each person,s identity card number, name and work unit・ Also contains every one of his / her childrenThe identity card number, name and place of birth and the he / she has every car brands and models・The real world from known facts thatSome people may have several cars but these cars may be the same type but may also is not the same type of exergySome people do not have the car if someone has the car included his every car has a car includedSome people may have several children but there are some people without children. The relationship model of the preliminary design of the are as followsR (identity cards, the name of the work unit of the C identity cards, the name of the C C was born in the car the model)The 〃C C〃identity cards, the name C was born "are the child,s identity card number, name and place of birth・Please send this pat tern into the pattern of the relationship between BCNF to determine the relationship between the main key. 7 points in a exergy exergy, the citizen identity cards in the name of the work unitThe type of car car exergy the identity card number inThe child identity cards, the exergy of C C C was born in the name of the identity card number in a certain school library2.assumptions to establish a database to save the readers, books and readers of record. In order to build theWe need to design a good database design from the conceptual model is shown and then the figure - the conceptual model intoa relational model・ pleaseDesign fTom La - map・The reader has readers attribute number, name, age, address and unit.Attributes of each book are ISBN, title, author and publisher・Each book for each reader borrowed date and should also have out of date ・ 8 points in exergyA reader reader the name address the exergy number in the unitThe author of the book ISBN Title Exergy in the press・The number of readers to borrow the books ISBN exergy date the date should be in five, calculation (the title 3 items within a total of 16 points)Clients with a commercial relational database the three basic table the table structure is as followsTable Article (commodity goods, the price of the stock in the commodity name)Table Customer (customer clients, the clients name the sex the age the phone)Orderitem order form (the number of the dients, the purchase price of goods number the date)Note that the answer to will give the answers written provisions of the local exergy answer requirements must be clearly not allowed to change the included writing programAnd optionally add sub queries・1.please create a GM_VIEW view of the retrieval clients using SQL language dients, clients and ordering goodsName, amount and date・(the number is equal to the purchase price * amount) 6 points in exergyCREAT VIEW GM_VIEW (clients, the clients name the commodity name the amount of the number of date) * AS SELECT _ clients, clients in a brand name in the purchase price in the amount of as in the date of FROM Artcle, Customer,OrderItemWHERE Customer・clients, =OrderItem・clients, and Article・commodity No.二OrderItem・ Article No. 2. please use the SQL language of female clients buy goods number, commodity name and the total number of out ・ 6 exergy rateSELECT _OrderItem・,commodity number AS, commodity number, Order Item ・ commodity name, AS commodity name, SUM (Order Item ・ quantity)The total quantity of AS is FROM, Orderitem, Artcle, Customer, WHERE _Artcle・,commodity number 二Orderitem・,commodity number AND, OrderItem・,commodity number 二Customer・, commodity number ANDCustomer・=,GROUP BY OrderItem・female gender in commodity trade name No.3.please use the SQL language ALTER TABEL command of a field in a field called the origin will increase the number of goods to table ArticleAccording to the type of the CHAR in the length of 30 in the rate of 4 points exergy command is as followsChar ALTER TABEL —Article ADD (30) — originItem 31, fill in the blanks (each 2 points in a total of 20 points)The SELECT statement for grouping query 1, using the SQL language in the packet will not meet if you want to remove the conditions should beUsing —HAVING..・ _ clause・In 2, in the design of relational database in database design is divided into requirement analysis, concept design, logic design, physical design, should beProgram coding, debugging run, database operation and maintenance in six stages・ What stage of database design is the design relational schema?The task of exergy _ logic designRelational operations in relational algebra and 3, including the selection, projection, __________ connection and division.4,the relationship model of entity integrity in referential integrity in user-defined integrity of three types of integrity・5,two yuan for entity set between A and B between the set in mapping base set must be one of the following four1. , one to one, contact2., one to many con tacts, more than3. to one, contact more than4., many pairs of contacts6,PL/SQL cursor the two types of explicit and implicit cursor cursor ・Two, single choice (3 points per item in a total of 15 points)1, in a relational database management system will create the view in the database three layer structure belongs to (A)A.external modeB. storage modeC. intra schemaD. conceptual schemaThe general characteristics of the 2, in the world of things in reality in the information world is called (A)A. entityB. entity keyThe C・ property D・ key 3 Relationship Model S J P SJP in the S in is students J curriculum P is ranking・ Each student takes in each courseThe performance has a certain rank each course ranking only one student in the column and No. The relationship model belongs to exergy (C)A, 2NF, B, 3NF, C, BCNF, D, 4NF4,the company has a department of a num bet of departments and employees each staff only belongs to a department can have a number of staffThe type of contact from staff to department is (C)A.many to many,B. , one to one,C., one to many, one toD., one to many5,the logical independence of data refers to (A)The concept of A. mode change external mode and not the applicationB.concept mode change mode notIn the C. mode concept mode not changeD. mode change external mode and not the applicationThe correct statement, query on wildcards in the 6. part (D)A・"匚 B・"represents a number of characters _〃can represent zero or more charactersC.〃—〃can not 〃%〃to use D・represents a characterThree, Jane answer1,the referential integrity rules purpose it donburi test example・2,Briefly describe the architecture features of Oracle database system1)contains at least one SYSTEM table space, and the DDL language2)various spatial data dictionary informationThe data stored in the table space, table space exergy is reflected in the form of multiple data files・3,what is the logic of program data independence and physical independence from 4, the DBMS of the database security control functionsincluding what means?5. Sketch the main steps of database conceptual design. (1)Data abstract conceptual model in the design of local exergy (2)The concept of local mode integrated into the global conceptual schema in(3) review 6, what is the function from the rollback segment7,cold and heat Be if eng explain back up different points and advantages from each of the 3 SCG in S#, model C#, grade, S# in the No.C for students course No. grade Exergy for a studentExamination results for a certain course・The average score were going to query the average score over 80 points in the course of the query resultsAccording to the average scores in ascending order average the same number in descending order according to the curriculum・ Write the SQL query・A Select C# AVG analysis (grade), From SCGGroup by C#Having AVG (grade) >80Order by 2, C# desc。
Oracle期末考试卷
b)whenmountingthedatabase
c)duringinstancestartup
d)ineverystage
4)WhichcomponentisnotpartoftheROWID?()
a)TABLESPACE
b)Datafilenumber
a)共享锁
b)死锁
c)排他锁
d)不会产生锁
20)()可以从过程返回值。(选择一项)
a)使用IN参数
b)使用OUT参数
c)使用指针
d)不能
21)同义词有以下()用途。(选择三项)
a)简化SQL语句
b)隐藏对象的名称和所有者
c)提供对对象的公共访问
d)显示对象的名称和所有者
22)在Oracle中,当执行一条DML语句时即引起触发器执行一次,不论该语句影响几行数据,这种触发器叫做()。(选择一项)
a)语句级触发器
b)行级触发器
c)INSTEADOF触发器
d)数据库触发器
23)在创建序列的过程中,下列()选项指定序列在达到最大值或最小值后,将继续从头开始生成值。(选择一项)
a)Cycle
b)Nocycle
c)Cache
d)Nocache
24)数据包airline中有函数book_ticket,其定义如下:
c)ObjectID
d)BlockID
5)WhatisaSchema?()
a)PhysicalOrganizationofObjectsinDatabases
b)ALogicalOrganizationofObjectsinDatabases
c)ASchemaofIndexing
Oracle数据库应用开发考试试题(doc 12页)
Oracle数据库应用开发考试试题(doc 12页)Oracle1. ()是Oracle维护数据库中其他文件的列表、数据库名称和系统改变号(SCN)的文件。
(第二章)A. 控制文件。
B. 参数文件。
C. 数据文件。
D. 可执行文件。
答案. A2. Oracle数据库被划分为()的逻辑存储单元,该逻辑存储单元本身由操作系统磁盘文件和原始分区组成。
(第二章)A. 表空间。
B. 联机重做日志文件。
C. 归档重做日志文件。
D. 回滚段。
答案. A3. ()是包含Oracle数据库中所有数据的数据库对象。
(第二章)A. 视图。
B. 索引。
C. 存储过程。
D. 表。
答案. D4. ()是为了加速对特定表数据的访问而创建的数据段。
(第二章)A. 视图。
B. 索引。
C. 存储过程。
D. 触发器。
答案. B5. 下面是有关date数据类型和timestamp 数据类型的描述,请问哪一种描述是正确的?(第二章)A. 两者都只能存储日期数据,不能存储时间数据。
B. 两者都只能存储时间数据,不能存储日期数据。
C. date数据类型比timestamp数据类型的存储时间精度高。
D. date数据类型比timestamp数据类型的存储时间精度低。
答案. D6. 可以自动执行操作的存储对象是()。
(第二章)A. 程序包。
B. 函数。
C. 过程。
D. 触发器。
答案. D7. 当Oracle创建数据库时,所有为数据库的数据字典所建立的基本表和视图都存储在()模式中。
(第二章)A. SYS。
B. SYSTEM。
C. USER。
D. TEMP。
答案. A8. ()是Oracle数据库对象的别名,可以强化对象的安全性。
(第二章)A. 触发器。
B. 视图。
C. 表。
D. 同义词。
答案. D9. ()是具有只读类型的表和视图集,存储了数据库的物理和逻辑结构信息。
(第二章)A. 表空间。
B. 盘区。
C. 数据字典。
D. 方案。
答案. C10. ()是一组Oracle进程和SGA。
Oracle试卷A答案
Oracle试卷A答案海洋⼤学试卷诚信考试承诺书本⼈重承诺:我已阅读且透彻理解了“海洋⼤学学⽣考场规则”和“海洋⼤学学⽣违反校纪校规处理规定”,承诺在考试中⾃觉遵守,如有违反,按有关条款接受处理。
承诺⼈签名:⽇期:考⽣:学号:专业班名:选择题1.修改⽤户时,不能更改⽤户的什么属性( D )A 密码B 表空间C 临时表空间D 名称2.撤销权限使⽤( A )语句A revokeB dropC deleteD alter3.查找⾓⾊中的⽤户,使⽤哪个数据字典( A )A user_role_privsB role_sys_privsC role_tab_privsD dba_users4.假设有存储过程add_student,其创建语句的头部容如下:create procedureadd_student(stu_id IN NUMBER,stu_name IN VARCHAR2)……,请问下列调⽤该存储过程的语句中,不正确的是( B )A EXEC add_student(1001,”CANDY”);B exec add_student(‘CANDY’,1001);C exec add_student(stu_id=>1001,stu_name=>’CANDY’);D exec add_student(stu_name=>’CANDY’,stu_id=>1001);5.如果在包规mypackage中没有声明某个过程myprocedure,⽽在创建包体时包含了该过程,那么对该过程叙述正确的是( D )A 包体将⽆法创建成功,因为在包体中含有包规中没有声明的元素B 该过程影响包体的创建,因为它属于包的私有元素C 可以通过mypackage.myprocedure调⽤该过程D ⽆法在包体外使⽤该过程6.修改过程应该使⽤下列哪种语句()A alter procedure 语句B drop procedure 语句C create procedure 语句D create or replace procedure 语句7.研究视图创建语句:create view dept as selectdepartment_id,employee_id,last_name from employees where department_id=30 with check option;是什么导致如下语句失败?(C)A 除⾮另外指定,否则视图会被创建为with read onlyB 视图太复杂⽽不允许DML操作C with check option 会拒绝任何修改department_id的语句D 该语句会成功8.如下PL_SQL程序块:SQL> declarei BINARY_INTERGE:=1beginwhile i>=1loopi:=i+1;DBMS_OUTPUT.PUTLINE(i);End loop;END执⾏上述PL_SQL语句,结果( D )A 输出从1开始,每次递增1的数B 输出从2开始,每次递增1的数C 输出2D 该循环将陷⼊死循环9.使⽤游标的什么属性可以获取SELECT语句当前检索到的⾏数( D )A %FOUNDB %NOTFOUNDC %ISOPEND %ROWCOUNT10.如果更改SCOTT⽤户的权限,应该在哪种模式下?(B)A SCOTTB SYSTEMC DBSNMPD ROOT11.Oracle数据库的⽂件后缀( A )A DBFB MDFC LDFD LOG12.解析后的SQL语句会缓存在SGA的哪个区域中( C )A JAVA池B ⼤型池C 共享池D 数据缓存区13.系统全局区不包括下⾯哪些区域( C )A Java池 B数据缓冲区 C 软件代码区域 D ⽇志缓冲区14.如果希望控制列的显⽰格式,那么可以使⽤下⾯的哪个命令(D )A SHOWB DEFINEC SPOOLD COLUMN15.数据的逻辑独⽴性是指 ( A)A.概念模式改变,外模式和应⽤程序不变B.概念模式改变,模式不变C.模式改变,概念模式不变D.模式改变,外模式和应⽤程序不变16.数据库结构的描述和定义是DBMS运⾏的基本依据,它们存储于( B )A.封锁表 B.数据字典C.索引 D.⽇志17.下列权限中,哪⼀个不是数据库的访问权限?( D )A.Read权限 B.Resource权限考试⽤书C.Update权限 D.Lock权限18.关系模型有三类完整性约束:实体完整性、参照完整性和⽤户定义的完整性。
oracle试题及答案
oracle试题及答案Oracle是一款广泛应用于企业和组织的关系型数据库管理系统。
它拥有强大的功能和灵活的架构,广受企业和数据库开发人员的青睐。
本文为大家整理了一些Oracle试题及答案,旨在帮助大家提升对Oracle数据库的理解和应用能力。
1. 试题:请简单解释什么是Oracle数据库。
答案:Oracle数据库是一种关系型数据库管理系统,由Oracle公司开发,用于存储和管理大量结构化数据。
它提供了数据存储、查询、事务处理、数据分析等功能,是目前业界最流行的企业级数据库之一。
2. 试题:Oracle数据库的特点有哪些?答案:Oracle数据库具有以下特点:a) 可靠性:通过事务处理和闪回技术确保数据的完整性和恢复性;b) 高性能:采用先进的查询优化和索引技术,提供快速的数据读写能力;c) 可扩展性:支持分布式和并行处理,适应不断增长的数据需求;d) 安全性:提供严格的访问控制和数据加密机制,确保数据的安全性;e) 灵活性:支持多种数据类型和数据模型,满足不同应用需求。
3. 试题:请解释Oracle数据库的体系结构。
答案:Oracle数据库的体系结构主要由实例和数据库两个关键组件构成。
a) 实例(Instance):实例是Oracle进程和内存结构的集合,负责连接管理、内存管理、故障恢复等。
每个运行的Oracle数据库都有一个相应的实例。
b) 数据库(Database):数据库是物理存储数据的容器,包含表空间、表、索引等逻辑和物理结构。
一个Oracle实例可以管理多个数据库。
4. 试题:如何创建一个Oracle数据库?答案:创建Oracle数据库的步骤如下:a) 安装Oracle数据库软件;b) 创建一个数据库实例;c) 设计数据库逻辑结构,包括表空间、表、索引等;d) 分配适当的存储空间;e) 配置数据库参数;f) 启动数据库实例,创建数据库。
5. 试题:如何在Oracle数据库中执行查询操作?答案:在Oracle数据库中执行查询操作通常使用SQL语句,如SELECT语句。
ORACLE期末考试试题及答案
ORACLE期末考试试题及答案一、选择题(每题2分,共40分)1. ORACLE数据库系统属于以下哪一种数据库类型?A. 关系型数据库B. 层次型数据库C. 网状型数据库D. 对象-关系型数据库答案:A2. 在ORACLE中,以下哪个命令用来创建一个表?A. CREATE TABLEB. CREATE VIEWC. CREATE INDEXD. CREATE SEQUENCE答案:A3. 数据库的三级模式结构包括以下哪几个层次?A. 外模式、概念模式、内模式B. 概念模式、内模式、物理模式C. 外模式、内模式、物理模式D. 外模式、概念模式、物理模式答案:A4. 在ORACLE中,以下哪个命令用来删除一个表?A. DROP TABLEB. DELETE TABLEC. DROP VIEWD. DELETE VIEW答案:A5. 数据库事务的四个特性包括以下哪些?A. 原子性、一致性、隔离性、持久性B. 原子性、一致性、独立性、持久性C. 原子性、一致性、并发性、持久性D. 原子性、一致性、并发性、独立性答案:A6. 在ORACLE中,以下哪个命令用来修改表的结构?A. ALTER TABLEB. MODIFY TABLEC. UPDATE TABLED. ALTER VIEW答案:A7. 数据库的备份分为以下哪几种类型?A. 冷备份、热备份、逻辑备份B. 冷备份、热备份、物理备份C. 冷备份、热备份、完全备份D. 冷备份、热备份、增量备份答案:D8. 在ORACLE中,以下哪个命令用来创建一个索引?A. CREATE INDEXB. CREATE TABLEC. CREATE VIEWD. CREATE SEQUENCE答案:A9. 数据库的并发控制主要包括以下哪些方法?A. 乐观并发控制、悲观并发控制、时间戳并发控制B. 乐观并发控制、悲观并发控制、锁并发控制C. 乐观并发控制、悲观并发控制、令牌并发控制D. 乐观并发控制、悲观并发控制、版本并发控制答案:B10. 在ORACLE中,以下哪个命令用来创建一个序列?A. CREATE SEQUENCEB. CREATE TABLEC. CREATE VIEWD. CREATE INDEX答案:A二、填空题(每题2分,共20分)1. 在ORACLE中,使用______命令可以创建一个表。
oracle考试试题及答案[1]上课讲义
o r a c l e考试试题及答案[1]试题一一、填空题(每小题4分,共20分)1、数据库管理技术经历了人工管理、文件系统、数据库系统三个阶段2、数据库三级数据结构是外模式、模式、内模式3、Oracle数据库中,SGA由数据库缓冲区,重做日志缓冲区,共享池组成4、在Oracle数据库中,完正性约束类型有Primay key约束。
Foreign key约束,Unique约束,check约束,not need约束5、PL/SQL中游标操作包括声明游标,打开游标,提取游标,关闭游标二、正误判断题(每小题2分,共20分)1、数据库中存储的基本对象是数据(T)2、数据库系统的核心是DBMS(T)3、关系操作的特点是集合操作(T)4、关系代数中五种基本运算是并、差、选择、投影、连接(F)5、Oracle进程就是服务器进程(F)6、oraclet系统中SGA所有用户进程和服务器进程所共享(T)7、oracle数据库系统中数据块的大小与操作系统有关(T)8、oracle数据库系统中,启动数据库和第一步是启动一个数据库实例(T)9、PL/SQL中游标的数据是可以改变的(F)10、数据库概念模型主要用于数据库概念结构设计(F)三、简答题(每小题7分,共35分)1、何谓数据与程序的逻辑独立性和物理独立性?2、试述关系代数中等值连接与自然连接的区别与联系?3、何谓数据库,数据库设计一般分为哪些阶段?4、简述Oracle逻辑数据库的组成?5、试任举一例说明游标的使用方法?五、设有雇员表emp(empno,ename,age,sal,tel,deptno),其中:empno-----编号,name------姓名,age -------年齡,sal-----工资,tel-----电话deptno-----部门号。
请按下列要求分别晨SQL*PLUS下编程。
(每小题3分,共15分)•1、查询家有电话的职工信息。
SQL>SELECT * FROM emp WHERE tel NOT NULL;•2、查询工资在500至800元之间的雇员信息SQL>SELECT * FROM emp WHERE BETWEEN 500 AND 800;•3、按年龄递增顺序显示雇员编号、姓名、年龄、工资SQL>SELECT empno,ename,age,sal FROM emp ORDER BY age ASC;•4、求部门号为D_01的平均工资SQL>SELECT AVG(sal) FROM emp WHERE deptno='D_01';•5、查找部门号为D_01的40岁以上而工资在400元以下的雇员名单。
湘潭大学07级《oracle数据库》A卷及其部分参考答案
注:如果题目无特殊说明,本试卷所用的表如下所示:一、填空(20空=20分)1.oracle有(内置函数)和(用户自定义函数)两种函数2.用户要得到自己能访问的所有表的信息,要查看(all_tables)视图3.启动和关闭oracle数据库的命令分别是(startup)和(shutdown)4.查看一个表或视图的结构的命令是(describe)5.把查询结果按salary的降序排序应该在查询语句中使用(order by salary desc)6.逻辑运算符中优先级最高的是(NOT)最低的是(OR)7.通配符%表示(任意0个或者多个字符)8.oracle数据库中的字符串连接符是(||)9.select instr(‘HelloWorld’,’w’) from dual的查询结果是(0)10.select trunc(1542.35,-2) from dual的查询结果是(1500)11.在查询语句中去掉重复记录,应该在查询语句加上(distinct)选项12.当对一个表定义一个主键时,系统自动会为该表建立(unique)索引13.rollup操作符中一共有n个表达式,一共要执行(n+1)次grouping操作14.改变会话时区,使用(alter session set time_zone)命令15.当一个select语句块在一条查询语句多次使用时,我们可以使用(with)子句来提高性能16.正则表达式{m,n}、|分别表示(匹配一个字符至少n次最多m次),(或)二、选择题(10题=20分)1.设系统日期为今天,select to_char(to_date(’85-11-12’,’RR-MM-DD’),’YYYY-MM-DD’) from dual的查询结果为(C)A.2085-11-12B. 85-11-12C.1985-11-12D.2185-11-122. 与where salary between 2500 and 3500等价的语句是(D)A.salary>2500 or salary <3500B.salary>2500 and salary <3500C.salary>=2500 or salary <=3500D.salary>=2500 and salary <=35003. 下面哪一个like命令会返回名字像HOTKA的行(D)A.where last_name like ‘_HOT%’B. where last_name like ‘H_OT%’C. where last_name like ‘%TKA_’D. where last_name like ‘%OTK%’4. oracle数据库默认的最高管理员是(C)A.administratorB.sysmanC.sysD.sa5. 将字符串’05-3月-2009’转换成日期,下列写法正确的是(C)A.to_date(’05-3月-2009’,’dd-mm-yyyy’)B. to_date(’05-3月-2009’,’ yyyy -mm- dd’)C. to_date(’05-3月-2009’,’ yyyy -mon- dd’)D. to_date(’05-3月-2009’,’dd-mon-yyyy’)6. 下列哪条语句与select employee_id,last_name from employees where salary<(select min(salary) from employees)等价(B)A. select employee_id,last_name from employees where salary in (select min(salary) from employees)B. select employee_id,last_name from employees where salary<all (select salary from employees)C. select employee_id,last_name from employees where salary<any (select salary fromemployees)D. select employee_id,last_name from employees where salary<(select salary from employees)7. 下列语句正确的是(D)A.select department_id,avg(salary) from employees where department_id=50B. select department_id,avg(salary) from employees having department_id=50C. select department_id,avg(salary) from employees order by department_idD. select department_id,avg(salary) from employees gorup by department_id8. 下列语句不正确的是(B)A.select sysdate-hire_date from employeesB. select sysdate+hire_date from employeesC. select sysdate-100 from employeesD. select sysdate+100 from employees9. 下列语句哪两条是等价的(D)1)select employee_id,last_name,department_name from employees natural join departmrnts2)select employee_id,last_name,department_name from employees full join departmrnts3)select employee_id,last_name,department_name from employees join departmrntsusing (department_id)4)select employee_id,last_name,department_name from employees a join departmrnts bon(a.department_id=b.department_id)A.1和3B.1和4C.2和4D.3和410.设一个名为test_seq的sequence,其当前值为100,每次增长10。
oracle期末考试题目(A)+答案
浙江交通职业技术学院2008—2009学年第2学期《Oracle数据库管理基础》期末考试试卷(A)每题2分,共100分,有多选题,答案写在最后的表中1.数据库由哪几种文件组成。
(多选题)( CDE )A。
参数文件 B.口令文件 C。
数据文件 D.控制文件 E。
重做日志2.例程恢复是由哪个后台进程来完成的。
( C )A。
DBWR B。
LGWR C。
SMON D。
PMON3.哪个后台进程用于同步数据库文件。
( C )A。
DBWR B。
LGWR C。
CKPT D。
PMON4.在执行COMMIT语句后,会在哪个文件上执行I/O操作。
( C )A。
控制文件 B.数据文件 C。
重做日志 D.口令文件5.要进行联机备份,数据库应该处于哪种模式下。
( A )A。
ARCHIVELOG B.NOARCHIVELOG6.当数据库处于ARCHIVELOG模式时,不能在OFFLINE状态下备份哪个表空间.( A )A.SYSTEM B。
USERS C.INDEX D.以上都不对7.误删除了SYSTEM表空间的数据文件,应该在哪种状态下恢复表空间。
( B )A.NOMOUNT B。
MOUNT C。
OPEN D。
以上都不对8.误删除了USER表空间的数据文件,应该在哪种状态下恢复表空间。
(多选题)( BC )A。
NOMOUNT B.MOUNT C。
OPEN D.以上都不对9.某用户误删除了EMP表,为了确保不会丢失该表数据,应该采用哪种恢复方法。
( C )A。
用IMP导入该表数据 B.使用完全恢复 C.使用不完全恢复 D。
使用OS拷贝命令10.当使用EXP工具导出SCOTT用户的所有对象时,应该选择以下哪个选项.( C )A。
TABLES B。
SCHEMAS C。
OWNER D.FULL=Y11.“用于区分一个数据的内部标识,即是Oracle数据库的内部标识,是以二进制方式存储于数据库控制文件中的参数;是给Oracle数据库内部用于标识数据库的唯一标识.”以上描述的是以下哪个概念。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
A、Administrator B、Normal C、SYSDBA D、SYSOPER
7、回滚操作是____D___事处处理所做的工作
A、重复B、备份C、删除D、撤销
2、oracle数据库系统由oracle instance、oracle database组成。
3、oracle数据库具有3种主要类型的文件,它们分别是:data files、control files、redo log files。
4、oracle内存结构主要分为system global area、program global area。
8、可以从下列那个表中查询本用户所拥有的表___A____
A、USER_TABLES B、USER_VIEWS C、ALL_tables D、ALL_views
9、oracle数据库显示提交的命令是___B__
A、DO B、COMMIT C、ROLLBACK D、TRUNCATE
10、ORACLE10G中G代表意思是__D____
5、oracle逻辑存储结构包括tablespace、segment、extent、oracle data block
6、在SQL SELECT语句查询中,要去掉查询结果中的重复记录,应该使用___distinct______关键字。
7、使用SQL语言的SELECT语句进行分组查询时,如果希望去掉不满足条件的分组,应当使用____having_____子句。
FROM OrderItem, Artcle, Customer,
WHERE ___________
GROUP BY OrderItem.商品号,商品名;
3、用SQL语言将(“00002”,“电视机”,“10000.00”,“100”)记录插入Article
___________________________________________________________________________
CREAT VIEW GM_VIEW(顾客号,顾客名,商品名,金额,日期) AS
SELECT ___________
FROM Artcle, Customer, OrderItem
WHERE ___________;
2.请用SQL语言找出女顾客购买的商品号、商品名和数量合计。
SELECT ___________
___________________________________________________________________________
6、用SQL语言从Article表中查询单价最高的商品的信息。
___________________________________________________________________________
D where ename like ‘%TOK%'
4、常见的后台进程LGWR的作用____D____
A、数据库写入程序B、归档C、进程监控D、日志写入程序
5、初始化参数DB_BLOCK_SIZE的作用是___C___
A、非标准数据块数据缓冲区大小B、归档日志文件的默认文件存储格式
C、标准数据块大小D、后台进程跟踪文件生成的位置
湘潭大学2009年上学期20级
《oracle数据库》课程考试试卷
(A)适用年级专业
考试方式开卷考试时间120分钟
学院专业班级
学号姓名
题
号
一
二
三
四
五
六
七
八
总分
阅卷
教师
得
分
………………………………………………………………………………………………………………
得
分
一、填空题(每空2分,共30分)
1、oracle数据库默认最高管理员账号是SYS。
4、用SQL语言将Article表中商品号为“00001”的商品的库存量更新为“200”
___________________________________________________________________________
5、用SQL语言从OrderItem中删除日期小于2009-5-15的记录、
B 8997 grace 1234 secretary 40
C 5932 allen 4567 clerk null
3.下面哪一个like命令会返回名字象HOTKA的行?(B)
A where ename like ‘_HOT%'
B where ename like ‘H_T%'
C where ename like ‘%TKA_'
____________________________________________________________________________________
8、默认登录到oracle enterprise manager database control的端口号是1158??。
得
分
二、选择题(每题2分,共20分)
1.部分匹配查询中有关通配符“_”的正确的叙述是(D)
A.“_”代表多个字符B.“_”可以代表零个或多个字符
C.“_”不能与“%”一同使用D.“_”代表一个字符
商品表:Article (商品号,商品名,单价,库存量)
客户表:Customer (顾客号,顾客名,性别,年龄,电话)
订单表:OrderItem (顾客号,商品号,数量,购买价,日期)
注意:回答时要将答案写到规定的地方;给出的答案要求字迹必须清楚;不允许改变程序结构和随意添加子查询。
1.请用SQL语言创建一个视图GM_VIEW,检索顾客的顾客号、顾客名和订购商品的商品名、金额和日期。(金额等于数量*购买价)
7.请用SQL语言ALTER TABEL命令给商品表Article增加一个字段,字段名为:产地,数据类型为:CHAR,长度为:30,命令如下:
ALTER TABLE _____
8、用SQL语言建立如下表:表名为:职工表,字段名:职工号字符型长度为30,姓名字符型长度为2,出生日期日期型,工资数值型长度5
4、我们使用alter table命令的add选项向一个已存在的表中添加一个新的属性列时,新列的每一行最初的值均为null。只有当一个表还没有行的时候,我们才可以对添加的列用not null约束。()
5、Oracle进程就是服务器进程()
6、oracle数据库系统中数据块的大小与操作系统有关()
7、PL/SQL中游标的数据是可以改变的()
8、一个数据文件中可以存在多个表,同样一个表也可以存在多个数据文件上。()
9、使用having子句是为了限制group by子句返回的行的个数。()
10、oracle进程又分为两类:用户进程和后台进程。()
得
分
四、计算题(本大题共8小题,共40分)
设有一个顾客商品关系数据库,有三个基本表,表结构如下:
A、第几代数据库B、数据库的存储容量C、数据库的安装所需的空间D、网格计算
得
分
三、判断题(每题1分,共10分)
1、数据块只能基于表或视图。()
2、从一个表中删除元组时,delete和drop table命令可以起到同样的效果。()
3、Delete可以有选择地删除记录,使用rollback语句可以取消这个命令的执行。()
2.假设下表中属性emp_dept是employee表中的一个外码,其中department表是主表,ID为主码,employee表为从表。请指出下面给出的各行中哪一行不能插入employee表
(A)
DEPARTMLeabharlann NT:IDNAME
LOCATION
10
Accounting
New york
40
Sales
miami
EMPLOYEE:
EMP_ID
EMP_NAME
EMP_MGR
TITLE
EMP_DEPT
1234
Green
President
40
4567
Gilmore
1234
Senior VP
40
1045
Rose
4567
Director
10
9876
Smith
1045
Accountant
10
A 9213 jones 1045 clerk 30