Oracle数据库考试重点

合集下载

orcl复习重点部分

orcl复习重点部分

第一章1.简要说明例程与数据库之间的联系和区别?ORACLE数据库是安装在磁盘上的ORACLE数据库文件和相关的数据库管理系统的集合。

磁盘上比较重要的文件包括数据文件,控制文件,重做日志文件,初始化参数文件,口令文件,归档重做日志文件。

例程是由在内从中的一组后台进程和内存结构组成。

2.说明数据库、表空间和数据文件之间的关系?ORACLE数据库的逻辑结构和物理结构的对应关系,一个ORACLE数据库可以拥有多个表空间,每个表空间有多个段组成,每个段由若干个区间组成,每个区间包含多个ORACLE 数据块,每个ORACLE数据块包含多个OS屋里磁盘快。

表空间有多个物理文件支持,具体存储表空间中的个对象。

3.比较表和视图二者间的异同?视图中没有数据,仅仅是一条SQL语句,查询语句检索出来的数据以表的形式表示;视图的定义存储在数据字典中,视图的查询基于表;视图没有直接的相关物理数据,不能像表那样被索引。

第二章1.写出以scott用户登录到数据库orcl,然后查看该用户可以访问的表,视图的相关命令?CONN scott/tiger@orclSELECT * FROM tab;2.设置查询结果的显示格式:每页24行,每行100个字符,SAL列的显示格式为¥99.990.0. SET PAGESIZE 24SET LINESIZE 100COLUMN sal FORMAT $99,990.00第三章1.写出查看某个用户说有用的角色的SQL语句。

CONN stu01/stu01pwd@orclCOLUMN USERNAME FORMAT A10SELECT username,granted_role FROM user_role_privs;2.写出查询当前用户将哪些表的访问权限授予给其他用户的SQL语句。

CONN scott/tiger@orclCOLUMN GRANTEE FORMAT A10SELECT grantee,table_name,grantor,privilege,grantableFROM user_tab_privs_made;3.以系统管理员的身份登录,在SQL*plus中查询各用户获得的系统特权和角色。

oracle数据库期末复习

oracle数据库期末复习

一、填空题1. 每个Oracle数据库都由3种类型的文件组成:数据文件、日志文件和控制文件。

2. 执行立即关闭的命令是_hareg –n oracle_。

3. 改变数据库状态的语句是alter database。

4. 用于创建表空间的语句是create tablespace ,5. 修改表空间的语句是alter tablespace。

6. 向用户授权的命令为grant connect,resource to cdpfzx。

7. 创建用户的语句是create user CDPFZX identified by CDPFZX。

8. 修改角色的语句是alter role 。

9. 在CREATE TABLE语句中,定义主键的关键字是_PRIMARY KEY。

10. 在ALTER TABLE语句中,修改列名的关键字是_______ALTER __________。

11. 在SELECT语句中,设置查询条件的关键字是_____where____________。

12. 在SELECT语句中,实现模糊查询的功能的关键字是_____like_____________。

13. [declarations]关键字标志着PL/SQL程序中声明段的开始,在声明段中可以声明变量、常量和游标等对象。

14. PL/SQL的异常处理代码在异常处理块中实现。

二、选择题1. Oracle 10g的g 表示〔 A 〕。

A.版本 B.网络 C.数据库 D.网格计算2. 登录iSQL*Plus页面时使用的默认端口号为〔 D 〕。

A.1433 B.5560 C.1158 D.15213. 下面不属于Oracle数据库状态的是〔 C D 〕。

A.OPEN B.MOUNT C.CLOSE D.READY4. 删除数据库的语句是〔 C 〕。

A.DELETE DA TABASE B.REMOVE DA TABASE C.DROP DATABASE D.UNMOUNT DA TABASE5. 用于显示所有表空间描述信息的视图为〔 B 〕。

Oracle数据库复习大纲

Oracle数据库复习大纲

Oracle 数据库复习大纲一、Oracle 数据库概述(第1章、第2章)① Oracle10g 中的g 的含义二、创建数据库 ① Oracle 支持数据库的类型有哪三种② Oracle 支持的数据存储方式有哪三种③ 利用Oracle 中哪个应用程序(数据库配置助手)可以创建数据库④ 创建数据库时缺省的5个表空间⑤ 文本初始化参数文件与服务器初始化参数文件的格式差别 ⑥ Oracle 数据库的启动和关闭的3个步骤 三、Oroacle 企业管理器① OEM 通过采用何种方式(通过采用何种方式(Web Web 应用)实现对Oracle 运行环境的完全管理 ② Oracle 提供了三种不同类型的OEM OEM(数据库控制(数据库控制OEM OEM、网格控制、网格控制OEM 和应用服务器控制OEM OEM))③在默认情况下,只有SYS ,SYSTEM 和SYSMAN 三个数据库用户才能登录和使用OEM 控制台。

其中SYSMAN 用户是OEM 控制台的超级用户,是在安装OEM 的过程中创建的,用于执行系统配置、全局配置等任务。

④设置”首选身份证明”的目的是用户通过OEM 控制台访问该目标时,不需要进行显式登录。

四、物理存储结构① Oracle 数据库系统结构由哪两部分组成。

② 物理存储结构是② 物理存储结构是Oracle Oracle 数据库外部数据在操作系统中如何组织和管理数据,与具体的操作系统有关;逻辑存储结构是Oracle 数据库内部数据的组织和管理方式,与操作系统无关。

③数据文件、控制文件和重做日志文件是物理存储结构中最重要的三种文件。

数据文件用于存储数据库中的所有数据;控制文件用于记录和描述数据库的物理存储结构信息;重做日志文件用于记录外部程序(用户)对数据库的改变操作。

④数据文件与表空间的关系:一个表空间可以包含多个数据文件;一个数据文件只能从属于一个表空间。

⑤Oracle 数据库能够把已经写满了的重做日志文件保存到指定的一个或多个位置,被保存的重做日志文件的集合称为归档重做日志文件,这个过程称为归档。

ORACLE数据库及SQL语言考试题一(含答案)

ORACLE数据库及SQL语言考试题一(含答案)

ORACLE 数据库及SQL 语言考试题及答案考试试题说明:试题包括三类,名词解释、ORACLE 数据库知识问答、SQL 语句编写,主要用于考察新同事ORACLE 数据库知识和SQL 语言掌握情况。

名词解释可以在回答中阐明名词的定义和你所了解的任何相关信息,没有字数限制,但避免长篇大论,简要描述即可。

ORACLE 数据库知识问答,重点在于切中要害,回答按点给分,每题2分。

SQL 语句编写检查大家的实际SQL 语句编写能力及掌握情况,注意格式规范,要清晰易读。

一、名词解释一、名词解释1. 数据库数据库是按照数据结构来组织、存储和管理数据的仓库。

2. 实例实例是一组Oracle 后台进程/线程以及一个共享内存区,这些内存由同一个计算机上运行的线程/进程所共享。

3. 表空间表空间是数据库的逻辑划分,用于存放数据库对象,主要是数据表,所以称作表空间。

ORACLE 自身存在一些表空间,如system 、user 和undo 表空间。

数据库用户也可以自己定义自己的表空间,并为每个表空间分配对应的数据文件。

4. 索引索引是对数据库表中一列或多列的值进行排序的一种结构,使用索引可快速访问数据库表中的特定信息。

索引不论逻辑上和物理上都与相关的表的数据无关,索引需要独立的存储空间,所以索引在创建之初就需要设置对应的表空间。

二、ORACLE 数据库知识问答1. 数据表Pirmary Key 和Unique Key 的作用和区别作用:Pirmary Key 和Unique Key 都是为数据表提供唯一性约束。

区别:Primary key 的1个或多个列必须为NOT NULL ,如果列为NULL ,在增加PRIMARY KEY 时,列自动更改为NOT NULL 。

而UNIQUE KEY 对列没有此要求。

一个表只能有一个PRIMARY KEY ,但可以有多个UNIQUE KEY 。

2. dos 模式下数据库用户备份、恢复命令数据库备份:exp 用户名/密码@连接标识符数据库恢复:imp 用户名/密码@连接标识符3. 列举五个常用的集合函数max,min,sum,avg,count4. round 与trunc 在处理数字方面的区别,并举例说明round 返回四舍五入后的值,而trunc 返回截取后的值,不进行四舍五入。

oracle数据库期末考试复习题

oracle数据库期末考试复习题

一名词解释:(5*2 共10分)1. 角色:一组相关权限的集合称之为角色。

2. PL/SQL 语言:是Oracle 数据库专⽤的⽤种⽤级程序设计语⽤,是对标准SQL 语⽤进⽤了过程化的扩展。

3. 游标:用来存储多条查询数据的一种数据结构(结果集或缓冲区),它有一个指针,用来从上往下移动,是指向该缓冲区的句柄或指针,从而达到遍历每条记录的作用。

P2324. 表空间(tablespace):Oracle数据库在逻辑上可以划分为一系列的逻辑区域,每个逻辑区域成为一个表空间,表空间是Oracle数据库中的最大逻辑存储结构,有一系列的段组成。

P495. 段(segment):段是由一个或多个连续或不连续的区组成的逻辑存储单元。

表空间的组成单位,代表特定数据类型的数据存储结构。

6. 区间(extent):区是由一系列连续的数据块组成的逻辑存储单元,是存储空间分配与回收的最小单元。

7. 数据块(block):Oracle数据块是数据库中最小的逻辑存储单元,也是数据库的执行输入/输出操作的最小单位,由一个或多个操作系统块构成。

8. 索引:是一种可选的与表相关的数据库对象,用于提高数据的查询效率。

P989. Oracle 实例:处于用户与物理数据库之间的一个中间层软件称之为实例,由一系列内存结构和后台进程组成。

通常一个实例对应一个数据库。

P65(第五章)10. 序列:是用于产生唯一序号的数据库对象,可以为多个数据库用户依次生成不重复的连续整数,通常使用它自动生成表中的主键,并且不占用实际存储空间。

P115(第七章)11. 同义词:同义词是数据库中表、索引、视图或其他模式对象的⽤个别名。

二单选(10*2 共20分)这些只是范围,没有明确的题,所以基本了解就可以答选择1.在Oracle 数据库的存储结构包括物理存储结构和逻辑存储结构。

2.SGA 中包括数据高速缓冲区、日志缓冲区、共享池、大型池、Java 池、流池等。

Oracle数据库重点

Oracle数据库重点

考试题型:一、单选(2*15)二、填空(1*10)三、设计(4*10)四、问答(5*2)四、问答题:1.简述Oracle物理存储结构的主要存储部分以及各部分的主要功能。

●数据文件——用于存储数据库中的所有数据;●控制文件——用于记录和描述数据库的物理存储结构信息;●重做日志文件——用于记录外部程序(用户)对数据库的修改操作;●初始化参数文件——用于设置数据库启动时的参数初始值;●跟踪文件——用于记录用户进程、数据库后台进程的运行情况;●归档文件——用于保存已经写满的重做日志文件●口令文件——用于保存具有SYSDBA,SYSOPER权限的用户名和SYS用户口令。

2.简述Oracle操作模式有哪两种,它们有什么关系?在Oracle数据库中,数据库的操作模式分为专用服务器(DELICATED SERVER)模式和多线程服务器(MULTITHREADED SERVER)模式两种。

其中,在专用服务器模式中,用户进程与服务器进程之间是一对一的关系,即一个服务器进程只为一个用户进程服务;而在多线程服务器模式中,用户进程与服务器进程之间是多对一的关系,即一个服务器进程可以为多个用户进程提供服务。

3.说明数据库模式与用户之间的区别?数据库模式与用户之间的区别在于:用户是数据库的使用者和管理者,用户具有帐户状态、访问权限和操作权限等属性。

模式是一系列逻辑数据结构或对象的集合,是数据库中对象的组织和管理单位。

4.说明数据库的启动过程。

数据库启动分为三个步骤:创建并启动数据库实例、装载数据库和打开数据库。

数据库启动时首先根据初始化参数文件创建并启动实例,然后根据控制文件装载数据库的数据文件和重做日志文件,最后打开数据文件和重做日志文件,从而启动数据库。

三、设计题:1.P111(1)为USERS表空间添加一个数据文件,文件名为userdata03.dbf,大小为50MB。

alter tablespace usersadd datafile ‘d:\Oracle\userdata03.dbf’size 50M;(2)为EXAMPLE表空间添加一个数据文件,文件名为example02.dbf,大小为20MB。

大学oracle数据库总结(考试必备)

大学oracle数据库总结(考试必备)

大学oracle数据库总结(考试必备)1.下列选项中,关于序列的描述哪一项不正确?(任何时候都可以使用序列的伪列CURRVAL返回当前序列。

)2.oracle中,用来判断列值为空的操作符是(IS NULL)3.下列选项中,那一部分不是oracle实例的组成部分?(控制文件)4.使用传统导出工具EXP导出SCOTT用户的所有对象时,应该选择下列哪一项?(SCHEMAS)5.在oracle中,一个用户拥有所有数据库对象统称:(模式)6.在oracle中,使用HAVING子句亦可以进行条件查询,以下选项说法正确的是(HAVING子句用于对已分组结果的条件查询)7.视图头部中的RETURN语句的作用是什么?(声明返回值的数据类型)8.有字符串数据“TEST”,分别存放到char(10)和varchar(10)类型的字段中,其实际存储长度为:(10 4)9.下列哪一个动作不会激发一个触发器?(查询数据)10对于下面的函数,哪个语句将成功调用?(Sum:=Calc_Sum(23,12))11.DELETE FROM S WHERE 年龄>60的语句功能:S表中年龄大于60岁的记录被加上删除标记12.GROUP BY子句的作用是什么?(查询结果的分组条件)13.查看下面的语句构建了哪一种索引?(复合索引)14.下列哪个语句会终止事务(COMMIT)1.(表空间)是oracle中可以使用的最大的逻辑存储结构,(数据块)是oracle逻辑存储结构中最小的I/O单元。

2.PL/SQL程序块主要包括3个主要部分:声明部分、可执行部分、(异常处理部分)。

3.查看操作数据表中所影响的行数,可通过游标的(%ROWCOUNT)属性实现。

4.(角色)是具有名称的一组相关权限的组合。

5.oracle数据库系统的物理存储结构主要由3类文件组成,分别为数据文件、(控制文件)、(重做日志文件)。

6.在SQL PLUS命令行下,查看EMP表的结构应使用(describe)命令。

最新Oracle 数据库考试重点

最新Oracle 数据库考试重点

1、Which two statements about online redo log members in a group is true?B、All members in a group are the same sizeC、The members should be on different disk drivers2、Which command does a DBA user to list the current status of archiving?A、ARCHIVE LOGLIST3、How many control files are required to create a database?A、one4、Complete the following sentence: The recommended configuration fro control files is?C Two control files on two disks5、When you create a control file, the database has to be:C Open6、Which data dictionary view shows that the database is in ARCHIVELOG mode? C、V$DATABASE7、What is the biggest advantage of having the control files on different disks? B Guards against failure8、Which file is used to record all changes made to the database and is used only when performing an instance recovery? A,Archive log file9、How many ARCn processes can be associated with an instance? C ten10、Whichtwo parameters cannot be used together to specify the archive destination?A.LOG_ARCHIVE_DEST and LOG_ARCHIVE_DUPLEX_DEST第七章1、A collection of segments is a (an): C、TABLESPACE2 When will the rollback information applied in the event of a database crash? C immediately after re-opening the database before the recovery3、The data dictionary tables and views are stored inB、SYSTEM tablespace4 PCTFREE and PCTUSED together should not exceed:A 1005 Which of the following three portions of a data block are collectively called as Overhead?C table directory, row directory and data block header6 When the database is open , which of the following tablespace must be online? A,SYSTEM7 Sorts can be managed efficiently by assigning _____ tablespace to sort operations B TEMPORARY8 The sort segment of temporary tablespace is created:A at the time of the first sort operation9 Which of the following segments is self administered?B ROLLBACK10 What is the default temporary tablespace, if no temporary tablespace is defined? D SYSTEM11 Rollback segments are used for: D ,all of the above12 Rollback segment stores:A old values of the data changed by each transaction第八章1 An Oracle instance is : D All of the above2 The SGA consists of the following items:D All of the above3 The area that stores the blocks recently used by SQL statements is called: B Buffer Cache4 Which of the following is not a background server processes in Oracle?B LGWR5 Which of the following is valid background server processes in Oracle?D All of the above6 The process that writes the modified blocks to the data files is: A DBWR7 The process that records information about the changes made by all transactions that commit is :D None of the above8 Oracle does no consider a transaction committed until:B The LGWR successfully writes the changes to redo9 The process that performs internal operations like tablespacecoalescing is :B SMON10 The process that manages the connectivity of user sessions is: A PMON第十章1 The Database must be in this mode for in instance to be started: C NOMOUNT2 When Oracle startups up , what happens if a datafile or redo file no available or corrupted due to OS Problems?B Oracle returns a warning message and does not open the database3 The RESTRICTED SESSION system privilege should be given toB DBA, who perform structural maintenance exports and imports the data4 When Starting up a database, If one or more of the files specified in the CONTROL_FILES parameter does not exist ,or cannot be opened?A Oracle returns a warning message and does not mount the database5 Bob tried to shutdown normal, Oracle said it was unavailable, and when he tried to startup, oracle said that it was already started. What is the best mode that bob can use to force a shutdown on the server? B ABORT6 Tom issued a command to startup the database. What modes does the Instance and Database pass through to finally have the database open?B NOMOUNT, MOUNT, OPEN7 Diane is a new DBA and issued a shutdown command while her server is being used. After a while she figures that oracle is waiting for all the users to sign off. What shutdown mode did she use: A NORMAL 8 Which script file creates commonly used data dictionary views? B catalog.sql9 In order to perform a full media recovery, the Database must be :C Mounted and Opened using ARCHIVELOG option10 When is the parameter file read during startup?C During instance startup第十二章1 The default tablespace clause in the create user command sets the location for:A Database Objects created by the user2 What does sessions_per_user in a resource limit set?B No. of Sessions Per User3 What value sets the no activity time before a user is disconnected?A IDLE_TIME4 Which of the following statements is incorrect when used with ALTER USER usera? A 、ADD QUOTA 5M5 What view consists information about the resource usage parameters for each profile? B、DBA_PROFILES6 Which of the following is not a system privilege?A SELECT7 What keyword during the create user command, limits the space used by users objects in the database? D QUOTA8 What operations are limited by the Quota on a tablespace? D All of the above9 Profiles cannot be used to restrict which of the following? D time spent reading blocks10 Which of the following is not a role?D CREATE SESSION第十三章1 What option of Exporting allows quicker data extractions? D、Direct = y2 How are exports useful? C Can be used to recover dropped tables due a user error3 What are the 3 levels of Exports?B FULL, USER, TABLE4 The following methods can be used to run exports:D all of the above5 Which of the following are valid parameters for an Export utility? DAll of the above6 What Incremental Parameters can be used with exports?D all of the above7 What can you do to reduce the burden on a rollback segment during the import of a large table?C、COMMIT= Y8 What is an Incremental Export?B Export of rows that have changed since last export9 An Incremental Export is a good strategy for:C all of the aboveD none of the above10 What is a Cumulative Export? A Export of the objects that have changed since last export11 What option of export utility allows for faster extraction of data? B DIRECT = Y简答题:1,为EXAMPLE表空间添加一个数据文件,文件名为example02.dbf,大小为20MB.ALTER TABLESPACE EXAMPLE ADD DATAFILE‘D:\ORACLE\ORADATA\ORCL\example02.dbf’ SIZE 20M’;2,修改USERS表空间中的userdata03.dbf为自动扩展方式,每次扩展5MB,最大为100MB。

Oracle数据库考试重点

Oracle数据库考试重点

1、Which two statements about online redo log members in a group is trueB、All members in a group are the same sizeC、The members should be on different disk drivers2、Which commanddoes a DBA user to list the current status of archivingA、ARCHIVE LOGLIST3、How many control files are required to create a databaseA、one4、Complete the following sentence: The recommended configuration fro control files isC Two control files on two disks5、When you create a control file, the database has to be:C Open6、Which data dictionary view shows that the database is in ARCHIVELOG mode C、V$DATABASE7、What is the biggest advantage of having the control files on different disks B Guards against failure8、Which file is used to record all changes made to the database and is used only when performing an instance recovery A,Archive log file9、How many ARCn processes can be associated with an instance C ten10、Whichtwo parameters cannot be used together to specify the archive destination A.LOG_ARCHIVE_DEST and LOG_ARCHIVE_DUPLEX_DEST 第七章1、A collection of segments is a (an): C、TABLESPACE2 When will the rollback information applied in the event of a database crash C immediately after re-opening the database before the recovery 3、The data dictionary tables and views are stored inB、SYSTEM tablespace4 PCTFREE and PCTUSED together should not exceed:A 1005 Which of the following three portions of a data block are collectively called as OverheadC table directory, row directory and data block header6 When the database is open , which of the following tablespace must be online A,SYSTEM7 Sorts can be managedefficiently by assigning ___________ tablespace to sort operations B TEMPORARY8 The sort segment of temporary tablespace is created:A at the time of the first sort operation9 Which of the following segments is self administeredB ROLLBACK10 What is the default temporary tablespace, if no temporary tablespace is defined D SYSTEM11 Rollback segments are used for: D ,all of the above12 Rollback segment stores:A old values of the data changed by each transaction 第八章1 An Oracle instance is : D All of the above2 The SGA consists of the following items:D All of the above3 The area that stores the blocks recently used by SQL statements is called: B Buffer Cache4 Which of the following is not a background server processes in Oracle B LGWR5 Which of the following is valid background server processes in OracleD All of the above6 The process that writes the modified blocks to the data files is: A DBWR7 The process that records information about the changes made by all transactions that commit is : D None of the above8 Oracle does no consider a transaction committed until:B The LGWR successfully writes the changes to redo9 The process that performs internal operations like tablespace coalescing is : B SMON10 The process that managesthe connectivity of user sessions is: A PMON 第十章1 The Database must be in this mode for in instance to be started: C NOMOUNT2 When Oracle startups up , what happens if a datafile or redo file no available or corrupted due to OS ProblemsB Oracle returns a warning message and does not open the database3 The RESTRICTED SESSION system privilege should be given toB DBA, who perform structural maintenance exports and imports the data 4 When Starting up a database, If one or more of the files specified in the CONTROL_FILESparameter does not exist ,or cannot be openedA Oracle returns a warning message and does not mount the database5 Bob tried to shutdown normal, Oracle said it was unavailable, and when he tried to startup, oracle said that it was already started. What is the best mode that bob can use to force a shutdown on the server B ABORT6 Tom issued a command to startup the database. What modes does the Instance and Database pass through to finally have the database openB NOMOUNT, MOUNT, OPEN7 Diane is a new DBA and issued a shutdown command while her server is being used. After a while she figures that oracle is waiting for all the users to sign off. What shutdown mode did she use: A NORMAL8 Which script file creates commonly used data dictionary views B9 In order to perform a full media recovery, the Database must be :C Mounted and Opened using ARCHIVELOG option10 When is the parameter file read during startupC During instance startup第十二章1 The default tablespace clause in the create user command sets the location for:A Database Objects created by the user2 What does sessions_per_user in a resource limit setB No. of Sessions Per User3 What value sets the no activity time before a user is disconnected A IDLE_TIME4 Which of the following statements is incorrect when used with ALTERUSER usera A 、ADD QUOTA 5M5 What view consists information about the resource usage parameters for each profileB、DBA_PROFILES6 Which of the following is not a system privilegeA SELECT7 What keyword during the create user command,limits the space used by users objects in the database D QUOTA8 W hat operations are limited by the Quota on a tablespace D All of the above9 P rofiles cannot be used to restrict which of the following D timespent reading blocks10 Which of the following is not a roleD CREATE SESSION 第十三章1 What option of Exporting allows quicker data extractions D、Direct =y2 How are exports useful C Can be used to recover dropped tablesdue a user error3 What are the 3 levels of ExportsB FULL, USER, TABLE4 The following methods can be used to run exports:D all of the above5 Which of the following are valid parameters for an Export utility D All of the above6 What Incremental Parameters can be used with exportsD all of the above7 What can you do to reduce the burden on a rollback segment during the import of a large table C、COMMIT= Y8 What is an Incremental ExportB Export of rows that have changed since last export9 An Incremental Export is a good strategy for:C all of the aboveD none of the above10 What is a Cumulative Export A Export of the objects that have changed since last export11 What option of export utility allows for faster extraction of data B DIRECT = Y简答题:1, 为EXAMPL表空间添加一个数据文件,文件名为,大小为20MB.ALTER TABLESPACE EXAMPLE ADD DATAFILE‘D: ' SIZE 20M';2, 修改USERS表空间中的为自动扩展方式,每次扩展5MB最大为100MBALTER DATABASE DATAFILE‘D: ' AUTOEXTEND ON NEXT 5M MAXSIZE 100M;3, 将表空间USER卿的数据文件更名为,将表空间EXAMPLES的数据文件更名为. SHUTDOWN IMMEDIATE;在操作系统中重命名、分别为、STARTUP MOUNT;ALTER DATABASE RENAME FILE‘D: ', ‘D: ' TO‘D: ', ‘D: ';ALTER DATABASE OPEN;4, 为数据库添加一个重做日志文件组,组内包含两个成员文件,分别为和, 大小分别为5MBALTER DATABASE ADD LOGFILE GROUP 4( ‘D: ', 'D: ')SIZE 5M;5, 为新建的重做日志文件组添加一个成员文件,名称为。

oracle笔试题及答案

oracle笔试题及答案

oracle笔试题及答案一、选择题1. Oracle数据库是一种()数据库管理系统。

A. 关系型B. 非关系型C. 层次型D. 网状型答案:A2. 下列哪个选项不属于Oracle数据库的特点?A. 完全支持SQL语言B. 支持分布式数据库C. 提供高可用性和故障恢复机制D. 仅支持单用户操作答案:D3. 在Oracle数据库中,下列关键字中哪个用于插入一行数据?A. UPDATEB. DELETEC. SELECTD. INSERT答案:D4. 在Oracle数据库中,下列关键字中哪个用于从表中删除一行数据?A. TRUNCATEB. DROPC. DELETED. REMOVE答案:C5. 在Oracle数据库中,下列关键字中哪个用于更新表中的数据?A. MODIFYB. ALTERC. UPDATED. CHANGE答案:C6. 在Oracle数据库中,下列哪个语句用于创建一个新的用户?A. CREATE ROLEB. CREATE USERC. GRANT PERMISSIOND. ALTER ACCOUNT答案:B7. 在Oracle数据库中,下列关键字中哪个用于将表中的数据按照指定的列进行排序?A. SORTB. GROUPC. ORDERD. ARRANGE答案:C8. 在Oracle数据库中,下列关键字中哪个用于查询满足特定条件的数据?A. SELECTB. SEARCHC. FINDD. FILTER答案:A9. 在Oracle数据库中,下面哪个关键字用于创建新的表?A. CREATEB. MAKEC. BUILDD. CONSTRUCT答案:A10. 下列哪个Oracle数据库对象用于避免数据冗余,提高查询速度,并提供数据的一致性和完整性?A. 视图(View)B. 函数(Function)C. 存储过程(Stored Procedure)D. 游标(Cursor)答案:A二、简答题请简要回答以下问题。

oracleoca考试内容

oracleoca考试内容

oracleoca考试内容
Oracle OCA(Oracle Certified Associate)考试内容主要包括以下知识领域:
1. 数据库基础知识:包括数据库体系结构、SQL语言基础、数据类型、表创建、数据查询、数据修改等。

2. 数据库管理员(DBA)任务:包括数据库实例管理、数据管理、安全管理、备份和恢复等。

3. SQL开发:包括SQL查询、数据操作语言(DML)、数据定义语言(DDL)、表连接、子查询、分组和聚合等。

4. 数据库对象管理:包括表、视图、索引、约束、序列、存储过程、触发器等。

5. 数据库安全管理:包括用户和角色管理、权限管理、密码安全等。

6. 数据库备份和恢复:包括备份和还原策略、数据文件管理、日志文件管理等。

以上是一些主要的考试内容,具体的考试大纲可以参考Oracle 官方网站或考试培训机构提供的信息。

Oracle数据库考试复习资料

Oracle数据库考试复习资料

Oracle数据库考试复习资料Oracle数据库复习资料:第⼀题:你对Oracle的了解:答:⼀)Oracle公司简介:⼆)Oracle的CEO:三)Oracle数据库系统:第⼆题:DBA的⼗⼆个任务:答:任务1:安装和配置任务2:容量规划任务3:应⽤架构设计任务4:管理数据库对象任务5:存储空间管理任务6:安全管理任务7:备份和恢复任务8:性能监视和调优任务9:作业调度任务10:⽹络管理任务11:⾼可⽤性和⾼可伸缩性管理任务12:故障解决第三题:Oracle的体系结构:答:Oracle系统的体系结构是指组成Oracle系统的主要组成部分,这些组成部分之间的关系,以及这些部分的⼯作⽅式。

在Oracle系统的体系结构中,主要涉及到以下5个组件:连接数据库实例的能⼒,这是Oracle系统的体系结构中协同⼯作的⽅式;服务器进程;⽂件系统的结构层次;内存区域的管理,尤其是系统全局区域(system global area,SGA)的特点和作⽤;后台进程。

第四题:Oracle的逻辑存储结构:答:1、Oracle 逻辑结构oracle 逻辑结构决定了如何使⽤⼀个数据库的物理空间。

Oracle 的逻辑结构包括:表空间(tablespaces)段(segments)扩展区(extents)数据块(data block)2、表空间的特性表空间是数据库中最⼤的逻辑单位。

ORACLE数据库由⼀个或多个表空间组成,不同表空间⽤于存放不同应⽤的数据。

每个表空间是由⼀个或多个数据⽂件组成的,表空间的⼤⼩等于其所有数据⽂件之和。

⼀个数据⽂件只能与⼀个表空间相关联,⽂件⼤⼩可以固定,也可以⾃动变⼤。

Oracle中的数据逻辑地存储在表空间中,物理地存储在数据⽂件中。

⼀个数据⽂件存储不下,就存储在本表空间中的另外⼀个数据⽂件中。

⼀个⽤户可以使⽤的表空间是有⼀定配额的,不能超出这个配额。

3创建表空间:CREATE [ SMALLFILE | BIGFILE] //⽂件类型[PERMANENT | TEMPORARY | UNDO] //表空间类型TABLESPACE tablespace_name //表空间名称DA TAFILE | TEMPFILE ‘path\filename_X’//数据(临时)⽂件[SIZE integer [ K∣M ] ][ AUTOEXTEND [OFF∣ON] ][ NEXT integer [ K∣M ] ][ MAXSIZE [ UMLIMITED∣integer [ K∣M ] ] ][EXTENT MANAGEMENT LOCAL|DICTIONARY] //表空间管理⽅式[ AUTOALLOCATE|UNIFORM SIZE integer [ K|M ] ] //区分配⽅式[SEGMENT SPACE MANAGEMENT MANUAL|AUTO] //段管理[ LOGGING∣NOLOGGING ] //是否⽣成重做⽇志[ ONLINE∣OFFLINE ]; //脱机联机状态———————————————————————————————————————CREATE TABLESPACE TBS_data LOGGINGDATAFILE'C:\ORADATA\ORCL\TEST_DATA01.DBF ' SIZE 32M,'D:\ORADATA\ORCL\TEST_DA TA02.DBF ' SIZE 5MAUTOEXTEND ONNEXT 32M MAXSIZE 2048MEXTENT MANAGEMENT LOCALSEGMENT SPACE MANAGEMENT AUTO;4删除表空间:DROP TABLESPACE tablespace_name[ INCLUDING CONTENTS[AND DATAFILES]];5修改表空间:1、添加⽂件alter tablespace test dd datafile(Tempfile)'c:\temp\test1.dbf' size 2048k;2、改变⽂件⼤⼩alter database datafile(Tempfile)'c:\temp\test.dbf'resize 4096k;3、⽂件⾃动扩展alter database datafile(Tempfile)'c:\temp\test.dbf'autoextend onnext 1M maxsize 20M;1、修改表空间的可⽤性ALTER TABLESPACE tablespace_name ONLINE | OFFLINE;2、修改表空间的读写性ALTER TABLESPACE tbs_nameREAD ONL Y|READ WRITE3、修改表空间的名称alter tablespace testrename to test1;4、设置查询默认表空间设置数据库默认表空间Alter Database Default TableSpace mytbs;设置数据库默认临时表空间Alter DatabaseDefault TemporaryTableSpace myTMPtbs;查询数据库默认表空间select username,Default_TableSpace, Temporary_TableSpacefrom dba_users6表空间查询:查询表空间的名称,区管理⽅式,存储分配⽅式,类型等基本信息SELECTTABLESPACE_NAME,EXTENT_MANAGEMENT,ALLOCATON_TYPE,CONTENTS FROM DBA_TABLESPACES;查询表空间的数据⽂件信息SELECT FILE_NAME,BLOCKS,TABLESPACE_NAME FROM DBA_DATA_FILES;查询数据⽂件的基本信息SELECT NAME ,FILE#,RFILE#,STATUS,BYTESFROM V$DATAFILE;询数据⽂件的⾃动增长⽅式SELECT TABLESPACE_NAME,FILE_NAME,AUTOEXTENSIBLE FROM DBA_DATA_FILES;查询临时数据⽂件的信息SELECT TABLESPACE_NAME,FILE_NAME,AUTOEXTENSIBLE FROM DBA_TEMP_FILES;第五题:Oracle的安全管理:(Oracle数据库的实施)答:⼀)oracle安全管理:1.⽤户(使⽤oracle资源的对象,每个对象的权利不⼀样,所拥有的权限或⾓⾊不⼀样(安全))2.权限(分为系统权限和对象权限)3.⾓⾊(⾓⾊是⼀组权限的集合)1. SQL>Create user ⽤户名2. IDENTIFIED BY ⼝令3. Default tablespace 表空间名4. TEMPORARY tablespace 临时表空间名5. Profile profile ⽂件名6. Quota 限制空间⼤⼩on 表空间名;create user dahongidentified by a123456;--dahong没有创建create session的权限grant xxx_priv to xxx_user/xxx_role;grant create session to dahong;--到底有哪些系统权限?select sp.grantee,sp.privilegefrom dba_sys_privs spwhere sp.grantee='SYS';select sp.grantee,sp.privilegefrom dba_sys_privs spwhere sp.grantee='DBA';--没有权限创建表,赋予权限grant create table to dahong;--没有空间使⽤权,修改⽤户alter user dahongidentified by a123456default tablespace xiaoqiangtemporary tablespace TEMPXIAOQIANGquota 2M on xiaoqiangquota 2m on usersquota 1m on example;--对象权限scott.empgrant select on scott.emp to dahong;grant delete,insert,update on scott.emp to dahong;--赋予权限很⿇烦,叫role的create role dahong_role;--赋予dahong_role权限grant create session,create table to dahong_role;--赋予dahong_role对象权限grant select,insert,update on scott.emp to dahong_role;--查找roleselect r.rolefrom dba_roles rwhere r.role ='DAHONG_ROLE';--查找role的系统权限?select sp.grantee,sp.privilegefrom dba_sys_privs spwhere sp.grantee='DAHONG_ROLE';--查找role的对象权限select sp.grantee,sp.privilege,sp.table_name,sp.owner,sp.grantor from dba_tab_privs spwhere sp.grantee='DAHONG_ROLE';---create user dadahongidentified by a123456default tablespace xiaoqiangtemporary tablespace TEMPXIAOQIANGquota 2M on xiaoqiangquota 2m on usersquota 1m on example;--只需要进⾏⾓⾊赋予就ok了grant DAHONG_ROLE to dadahong;Oracle⽤户、权限、⾓⾊管理⼀、权限分类:系统权限:系统规定⽤户使⽤数据库的权限。

ocp 083题库解析

ocp 083题库解析

ocp 083题库解析Oracle 083题库是Oracle Database 12c OCP(Oracle认证专家)考试的一部分,共有100道题目,分为两部分:基础知识(50题)和实验操作(50题)。

以下是Oracle 083题库的详细解析:一、基础知识部分1. Oracle Database 12c的体系结构,包括内存结构、磁盘结构、数据库实例等。

2. SQL语言基础,包括DML、DDL、DCL等操作,以及SQL查询、子查询、连接等。

3. PL/SQL语言基础,包括程序结构、控制结构、异常处理等。

4. Oracle Database 12c的存储过程、函数、包等。

5. Oracle Database 12c的权限与角色管理。

6. Oracle Database 12c的高可用性技术,包括RAC、Flashback技术等。

7. Oracle Database 12c的性能优化技术,包括执行计划、索引、分区等。

8. Oracle Database 12c的备份与恢复技术。

9. Oracle Database 12c的自动存储管理(ASM)。

10. Oracle Database 12c的JDBC驱动程序和连接池技术。

二、实验操作部分1. 数据库的安装与配置。

2. 数据库的启动与关闭。

3. 数据库的备份与恢复。

4. SQL语句的执行计划分析。

5. PL/SQL程序的调试与优化。

6. 存储过程、函数和包的创建与优化。

7. 权限与角色的管理。

8. RAC环境的配置与测试。

9. Flashback技术的配置与测试。

10. ASM的配置与管理。

通过Oracle 083题库的考试,考生可以证明自己具备Oracle Database 12c的熟练技能和专业知识,为从事Oracle数据库相关的工作打下坚实的基础。

oracle考试重点复习题及答案

oracle考试重点复习题及答案

6. 显示工作简历表中所有人的姓名、工作名称和 部门名称。 (employees,jobs,job_history,departments) select st_name,d.department_name, jj.job_title from employees e, job_history j, jobs jj, departments d where e.employee_id=j.employee_id and j.department_id = d.department_id and j.job_id=jj.job_id
15. 显示Taylor以前工作过的部门名称、工作岗位、所在 城市。显示格式 姓名 部门名称 工作岗位 城市 select st_name 姓名,d.department_name 部门名称, j.job_title 工作岗位,c.city 城市 from employees e, departments d,jobs j,locations c,job_history jj where st_name='Taylor' and e.employee_id = jj.employee_id and d.department_id = jj.department_id and j.job_id = jj.job_id and d.location_id=c.location_id 16. 按从大到小的顺序显示出所有工资大于9000的姓名、 工资。 select last_name ||‘ ’ || first_name 姓名,salary 工资 from employees where salary >=5000 order by
11. 显示Smith的工作岗位和该岗位的最高工资和最低工 资。(employees,jobs) select st_name,j.job_title,j.min_salary,j.max_salary from employees e,jobs j where st_name='Smith' and e.job_id = j.job_id 12. 显示每个部门经理的编号及管理的人数。 select manager_id,count(*) from employees group by manager_id 13. 统计1999年1月1日以后参加工作的人数。 select count(*) from employees here hire_date>=date ‘1999-1-1’ 或to_date() 14. 统计1995年到1998年参加工作的人数。 select count(*) from employees where hire_date between to_date('1995-1-1') and date '1998-12-31'

Oracle数据库简答题_考试重点

Oracle数据库简答题_考试重点

1.简单描述Oracle数据库体系结构得组成及其关系?答:Oracle数据库体系结构由物理存储结构、逻辑存储结构与实例组成。

其中物理存储结构描述了操作系统层次数据得存储与管理,包括数据文件、日志文件、重做日志文件等组成。

逻辑结构描述了数据库内部数据得组织与管理,由表空间、段、区、块组成。

实例就是数据库运行得软件结构,由内存结构与后台进程组成。

数据库运行过程中,用户得操作在内存区中进行,最终通过后台进行转化为对数据库得操作。

2、说明Oracle数据库物理存储结构得组成?Oracle数据库物理结构包括数据文件、控制文件、重做日志文件、初始化参数文件、归档文件、口令文件等。

在控制文件中记录了当前数据库所有得数据文件得名称与位置、重做日志文件得名称与位置,以及数据文件、重做日志文件得状态等。

3、说明Oracle数据库数据文件得作用?数据文件中保存了数据库中得所有数据,包括数据字典以及用户数据。

4、说明Oracle数据库控制文件得作用?控制文件保存数据库得物理结构信息,包括数据库名称、数据文件得名称与状态、重做日志文件得名称与状态等。

在数据库启动时,数据库实例依赖初始化参数定位控制文件,然后根据控制文件得信息加载数据文件与重做日志文件,最后打开数据文件与重做日志文件。

5、说明Oracle数据库重做日志文件得作用?重做日志文件就是以重做记录得形式记录、保存用户对数据库所进行得修改操作,包括用户执行DDL、DML语句得操作。

如果用户只对数据库进行查询操作,那么查询信息就是不会记录到重做日志文件中得。

6、说明数据库逻辑存储结构得组成与相互关系。

Oracle9i数据库得逻辑存储结构分为数据块、区、段与表空间四种。

其中,数据块就是数据库中得最小I/O单元,由若干个连续得数据块组成得区就是数据库中最小得存储分配单元,由若干个区形成得段就是相同类型数据得存储分配区域,由若干个段形成得表空间就是最大得逻辑存储单元,所有得表空间构成一个数据库。

Oracle数据库期末考试

Oracle数据库期末考试

Oracle数据库期末考试1.企业管理器(Oracle Enterprise Manager),简称OEM。

em 是企业管理的缩写。

2.SQL*Plus行编辑命令及功能A[PPEND] text:将文本text的内容附加在当前行的末尾C[HRNGE]/text/:删除当前行中text指定的内容CL[EAR] BUFF[ER]:删除SQL缓冲区中的所有命令行I[INPUT]:在当前行后插入任意数量的命令行L[IST]:列出所有行R[UN]:显示并运行缓冲区中当前命令3.SQL*PLUS文件操作命令及功能SA V[E] filename:将SQL缓冲区的内容保存到指定的文件夹中,默认的拓展名为 .sql GET filename:将文件的内容调入SQL缓冲区,默认的文件拓展名为.sqlSTA[RT] filename:指定的命令文件EXIT:退出 SQL*PLUS4.在SQL*PLUS中启动或关闭实例(1)启动实例-OPEN:打开实例和所有文件(数据文件和日志文件)允许多用户存取数据库。

-MOUNT:装载实例和打开控制文件,激活某些功能。

-NO MOUNT:启动实例,不装载数据库。

(2)关闭实例SHUTDOWN:-NORMA L:正常关闭。

(如果有用户登录在数据库中,该命令无法关闭)-IMMEDIATE:立即关闭。

- TRASACTIONAL:尽量少影响客户端,避免客户丢失信息。

-ABORT:放弃一切事务,立即关闭。

第二章1.数据库分内部结构、外部结构。

2.内部结构:表空间(TABLE SPACE)、表(TABLE)、约束条件(CONSTRAINT)。

3.表空间:EXAMPLE示例、SYSTEM系统、TEMP临时。

4.段(SEGMENT)由盘区(EXETENT)组成,盘区由数据块(DATA BLOCK)组成。

数据块是最小的存储单元。

5.外部结构:数据文件(DATAFILE)、重做日志文件(REDO LOG FILES)、控制文件(CONTROL FILES)。

oracle数据库期末考试试题及答案

oracle数据库期末考试试题及答案

oracle数据库期末考试试题及答案一、选择题(每题2分,共20分)1. 在Oracle数据库中,用于创建数据库表的命令是:A. CREATE DATABASEB. CREATE TABLEC. DROP TABLED. ALTER TABLE答案:B2. 下列哪个选项不是Oracle数据库的系统表?A. USER_TABLESB. DBA_TABLESC. ALL_TABLESD. EMPLOYEE答案:D3. 在Oracle数据库中,用于删除数据库表的命令是:A. DROP TABLEB. DELETE TABLEC. REMOVE TABLED. ERASE TABLE答案:A4. Oracle数据库中,哪个命令用于查询数据库中所有用户?A. SELECT * FROM USER_USERS;B. SELECT * FROM ALL_USERS;C. SELECT * FROM DBA_USERS;D. SELECT * FROM USER;答案:B5. 在Oracle数据库中,用于添加新列的命令是:A. ADD COLUMNB. INSERT COLUMNC. CREATE COLUMND. ALTER TABLE答案:D6. 下列哪个选项不是Oracle数据库的存储引擎?A. InnoDBB. Oracle RDBMSC. BDBD. Oracle ASM答案:A7. Oracle数据库中,用于更新表中数据的命令是:A. UPDATEB. CHANGEC. MODIFYD. ALTER答案:A8. Oracle数据库中,用于删除表中数据的命令是:A. DELETEB. REMOVEC. DROPD. ERASE答案:A9. 在Oracle数据库中,用于查询表中数据的命令是:A. SELECTB. QUERYC. FETCHD. GET答案:A10. Oracle数据库中,用于创建索引的命令是:A. CREATE INDEXB. CREATE KEYC. INDEXD. KEY答案:A二、填空题(每题2分,共20分)1. Oracle数据库的默认端口号是______。

Oracle数据库考试重点

Oracle数据库考试重点

Oracle数据库考试重点1、Which two statements about online redo log members ina group is true?B、All members in a group are the same sizeC、The members should be on different disk drivers2、Which command does a DBA user to list the current status of archiving?A、ARCHIVE LOGLIST3、How many control files are required to create a database?A、one4、Complete the following sentence: The recommended configuration fro control files is?C Two control files on two disks5、When you create a control file, the database has to be:C Open6、Which data dictionary view shows that the database is in ARCHIVELOG mode? C、V$DATABASE7、What is the biggest advantage of having the control files on different disks? B Guards against failure8、Which file is used to record all changes made to the database and is used only when performing an instance recovery? A,Archive log file9、How many ARCn processes can be associated with an instance? C ten10、Whichtwo parameters cannot be used together to specify the archive destination?A.LOG_ARCHIVE_DEST and LOG_ARCHIVE_DUPLEX_DEST第七章1、A collection of segments is a (an): C、TABLESPACE2 When will the rollback information applied in the event ofa database crash? C immediately after re-opening the database before the recovery3、The data dictionary tables and views are stored inB、SYSTEM tablespace4 PCTFREE and PCTUSED together should not exceed:A 1005 Which of the following three portions of a data block are collectively called as Overhead?C table directory, row directory and data block header6 When the database is open , which of the following tablespace must be online? A,SYSTEM7 Sorts can be managed efficiently by assigning _____ tablespace to sort operations B TEMPORARY8 The sort segment of temporary tablespace is created:A at the time of the first sort operation9 Which of the following segments is self administered?B ROLLBACK10 What is the default temporary tablespace, if no temporary tablespace is defined? D SYSTEM11 Rollback segments are used for: D ,all of the above12 Rollback segment stores:A old values of the data changed by each transaction第八章1 An Oracle instance is : D All of the above2 The SGA consists of the following items:D All of the above3 The area that stores the blocks recently used by SQL statements is called: B Buffer Cache4 Which of the following is not a background serverprocesses in Oracle?B LGWR5 Which of the following is valid background server processes in Oracle?D All of the above6 The process that writes the modified blocks to the data files is: A DBWR7 The process that records information about the changes made by all transactions that commit is :D None of the above8 Oracle does no consider a transaction committed until:B The LGWR successfully writes the changes to redo9 The process that performs internal operations like tablespacecoalescing is :B SMON10 The process that manages the connectivity of user sessions is: A PMON第十章1 The Database must be in this mode for in instance to be started: C NOMOUNT2 When Oracle startups up , what happens if a datafile or redo file no available or corrupted due to OS Problems?B Oracle returns a warning message and does not open the database3 The RESTRICTED SESSION system privilege should be given toB DBA, who perform structural maintenance exports and imports the data4 When Starting up a database, If one or more of the files specified in the CONTROL_FILES parameter does not exist ,or cannot be opened?A Oracle returns a warning message and does not mount the database5 Bob tried to shutdown normal, Oracle said it was unavailable, and when he tried to startup, oracle said that it was already started. What is the best mode that bob can use to forcea shutdown on the server? B ABORT6 Tom issued a command to startup the database. What modes does the Instance and Database pass through to finally have the database open?B NOMOUNT, MOUNT, OPEN7 Diane is a new DBA and issued a shutdown command while her server is being used. After a while she figures that oracle is waiting for all the users to sign off. What shutdown mode did she use: A NORMAL 8 Which script file creates commonly used data dictionary views? B catalog.sql9 In order to perform a full media recovery, the Database must be :C Mounted and Opened using ARCHIVELOG option10 When is the parameter file read during startup?C During instance startup第十二章1 The default tablespace clause in the create user command sets the location for:A Database Objects created by the user2 What does sessions_per_user in a resource limit set?B No. of Sessions Per User3 What value sets the no activity time before a user is disconnected?A IDLE_TIME4 Which of the following statements is incorrect when usedwith ALTER USER usera? A 、ADD QUOTA 5M5 What view consists information about the resource usage parameters for each profile? B、DBA_PROFILES6 Which of the following is not a system privilege?A SELECT7 What keyword during the create user command, limits the space used by users objects in the database? D QUOTA8 What operations are limited by the Quota on a tablespace?D All of the above9 Profiles cannot be used to restrict which of the following?D time spent reading blocks10 Which of the following is not a role?D CREATE SESSION第十三章1 What option of Exporting allows quicker data extractions?D、Direct = y2 How are exports useful? C Can be used to recover dropped tables due a user error3 What are the 3 levels of Exports?B FULL, USER, TABLE4 The following methods can be used to run exports:D all of the above5 Which of the following are valid parameters for an Export utility? DAll of the above6 What Incremental Parameters can be used with exports?D all of the above7 What can you do to reduce the burden on a rollback segment during the import of a large table?C、COMMIT= Y8 What is an Incremental Export?B Export of rows that have changed since last export9 An Incremental Export is a good strategy for:C all of the aboveD none of the above10 What is a Cumulative Export? A Export of the objects that have changed since last export11 What option of export utility allows for faster extraction of data? B DIRECT = Y简答题:1,为EXAMPLE表空间添加一个数据文件,文件名为example02.dbf,大小为20MB.ALTER TABLESPACE EXAMPLE ADD DATAFILE‘D:\ORACLE\ORADATA\ORCL\example02.db f’ SIZE 20M’;2,修改USERS表空间中的userdata03.dbf为自动扩展方式,每次扩展5MB,最大为100MB。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

1、Which two statements about online redo log members in a group is true?B、All members in a group are the same sizeC、The members should be on different disk drivers2、Which command does a DBA user to list the current status of archiving?A、ARCHIVE LOGLIST3、How many control files are required to create a database?A、one4、Complete the following sentence: The recommended configuration fro control files is?C Two control files on two disks5、When you create a control file, the database has to be:C Open6、Which data dictionary view shows that the database is in ARCHIVELOG mode? C、V$DATABASE7、What is the biggest advantage of having the control files on different disks? B Guards against failure8、Which file is used to record all changes made to the database and is used only when performing an instance recovery? A,Archive log file9、How many ARCn processes can be associated with an instance? C ten10、Whichtwo parameters cannot be used together to specify the archive destination?A.LOG_ARCHIVE_DEST and LOG_ARCHIVE_DUPLEX_DEST第七章1、A collection of segments is a (an): C、TABLESPACE2 When will the rollback information applied in the event of a database crash? C immediately after re-opening the database before the recovery3、The data dictionary tables and views are stored inB、SYSTEM tablespace4 PCTFREE and PCTUSED together should not exceed:A 1005 Which of the following three portions of a data block are collectively called as Overhead?C table directory, row directory and data block header6 When the database is open , which of the following tablespace must be online? A,SYSTEM7 Sorts can be managed efficiently by assigning _____ tablespace to sort operations B TEMPORARY8 The sort segment of temporary tablespace is created:A at the time of the first sort operation9 Which of the following segments is self administered?B ROLLBACK10 What is the default temporary tablespace, if no temporary tablespace is defined? D SYSTEM11 Rollback segments are used for: D ,all of the above12 Rollback segment stores:A old values of the data changed by each transaction第八章1 An Oracle instance is : D All of the above2 The SGA consists of the following items:D All of the above3 The area that stores the blocks recently used by SQL statements is called: B Buffer Cache4 Which of the following is not a background server processes in Oracle?B LGWR5 Which of the following is valid background server processes in Oracle?D All of the above6 The process that writes the modified blocks to the data files is: A DBWR7 The process that records information about the changes made by all transactions that commit is :D None of the above8 Oracle does no consider a transaction committed until:B The LGWR successfully writes the changes to redo9 The process that performs internal operations like tablespacecoalescing is :B SMON10 The process that manages the connectivity of user sessions is: A PMON第十章1 The Database must be in this mode for in instance to be started: C NOMOUNT2 When Oracle startups up , what happens if a datafile or redo file no available or corrupted due to OS Problems?B Oracle returns a warning message and does not open the database3 The RESTRICTED SESSION system privilege should be given toB DBA, who perform structural maintenance exports and imports the data4 When Starting up a database, If one or more of the files specified in the CONTROL_FILES parameter does not exist ,or cannot be opened?A Oracle returns a warning message and does not mount the database5 Bob tried to shutdown normal, Oracle said it was unavailable, and when he tried to startup, oracle said that it was already started. What is the best mode that bob can use to force a shutdown on the server? B ABORT6 Tom issued a command to startup the database. What modes does the Instance and Database pass through to finally have the database open?B NOMOUNT, MOUNT, OPEN7 Diane is a new DBA and issued a shutdown command while her server is being used. After a while she figures that oracle is waiting for all the users to sign off. What shutdown mode did she use: A NORMAL 8 Which script file creates commonly used data dictionary views? B catalog.sql9 In order to perform a full media recovery, the Database must be :C Mounted and Opened using ARCHIVELOG option10 When is the parameter file read during startup?C During instance startup第十二章1 The default tablespace clause in the create user command sets the location for:A Database Objects created by the user2 What does sessions_per_user in a resource limit set?B No. of Sessions Per User3 What value sets the no activity time before a user is disconnected?A IDLE_TIME4 Which of the following statements is incorrect when used with ALTER USER usera? A 、ADD QUOTA 5M5 What view consists information about the resource usage parameters for each profile? B、DBA_PROFILES6 Which of the following is not a system privilege?A SELECT7 What keyword during the create user command, limits the space used by users objects in the database? D QUOTA8 What operations are limited by the Quota on a tablespace? D All of the above9 Profiles cannot be used to restrict which of the following? D time spent reading blocks10 Which of the following is not a role?D CREATE SESSION第十三章1 What option of Exporting allows quicker data extractions? D、Direct = y2 How are exports useful? C Can be used to recover dropped tables due a user error3 What are the 3 levels of Exports?B FULL, USER, TABLE4 The following methods can be used to run exports:D all of the above5 Which of the following are valid parameters for an Export utility? DAll of the above6 What Incremental Parameters can be used with exports?D all of the above7 What can you do to reduce the burden on a rollback segment during the import of a large table?C、COMMIT= Y8 What is an Incremental Export?B Export of rows that have changed since last export9 An Incremental Export is a good strategy for:C all of the aboveD none of the above10 What is a Cumulative Export? A Export of the objects that have changed since last export11 What option of export utility allows for faster extraction of data? B DIRECT = Y简答题:1,为EXAMPLE表空间添加一个数据文件,文件名为example02.dbf,大小为20MB.ALTER TABLESPACE EXAMPLE ADD DATAFILE‘D:\ORACLE\ORADATA\ORCL\example02.dbf’ SIZE 20M’;2,修改USERS表空间中的userdata03.dbf为自动扩展方式,每次扩展5MB,最大为100MB。

相关文档
最新文档