Oracle 大数据库考试重点
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认证考试试题Oracle认证考试试题作为IT行业的从业者,不管是初级还是高级,都会面临各种各样的考试。
其中,Oracle认证考试是一项非常重要的考试,它可以证明一个人在Oracle数据库方面的专业能力。
在这篇文章中,我们将探讨一些常见的Oracle认证考试试题,以帮助读者更好地准备和应对这个考试。
一、数据库基础知识1. 什么是数据库?数据库是一个有组织的数据集合,可以通过计算机系统来存储和访问。
它是一个结构化的存储系统,可以用于存储和管理大量的数据。
2. 请简要解释关系数据库的概念。
关系数据库是一种基于关系模型的数据库,它使用表格(也称为关系)来存储和组织数据。
每个表格由行和列组成,行表示记录,列表示属性。
3. 什么是SQL?SQL(Structured Query Language)是一种用于管理关系数据库的标准化语言。
它可以用于查询、插入、更新和删除数据库中的数据。
二、SQL查询1. 编写一条SQL查询,从表格"Employees"中选择所有员工的姓名和工资。
SELECT Name, SalaryFROM Employees;2. 编写一条SQL查询,计算表格"Orders"中每个客户的订单总数。
SELECT CustomerID, COUNT(OrderID) AS TotalOrdersFROM OrdersGROUP BY CustomerID;3. 编写一条SQL查询,选择表格"Products"中价格在100到200之间的所有产品。
SELECT *FROM ProductsWHERE Price BETWEEN 100 AND 200;三、数据库管理1. 什么是数据库事务?数据库事务是一系列数据库操作的逻辑单元,它要么全部执行成功,要么全部回滚。
事务具有原子性、一致性、隔离性和持久性(ACID)的特性。
2. 请简要解释什么是数据库索引。
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数据库期末考试复习题

一名词解释:(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数据库重点

考试题型:一、单选(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。
大型数据库期末复习题纲

大型数据库期末复习题纲1、教材2.2节P19-20页,主要掌握在命令行执行sqlplus命令登录数据库的语法格式,掌握以SYSDBA身份和以普通用户身份登录的方法;掌握SQLPLUS命令conn、edit、DESC、QUIT等命令的功能及用法。
2、教材3.1节P27页,掌握ORACLE数据库的存储结构由哪些部分构成,各自的作用是什么?掌握ORACLE实例的结构构成,掌握oracle数据库的内存结构、后台进程和存储结构间的关系(图3-1)并加以说明。
3、教材P3.2节P27-28页,掌握ORACLE数据库的物理结构构成,并说明物理存储结构与逻辑存储结构的基本关系。
P29-30页,掌握ORACLE数据库的逻辑结构构成,并掌握数据块、区、段表空间的作用。
4、教材P3.3节P30-32页,掌握ORACLE数据库的内存结构的具体构成,各个部分的主要功能,都包含哪些部分等。
其中SGA区由哪些部分构成,PGA区由哪些部分构成;共享池的功能和构成?数据缓冲区和日志缓冲区有什么作用?5、教材P3.4节P33-35页,掌握ORACLE的进程有哪些类型,后台进程主要有哪些?后台进程中掌握DBWR、LGWR、CKPT、ARCH的功能。
6、教材P5.2节P48-49页,掌握表空间的类型、管理方式,区的分配方式,段的管理方式;掌握创建永久表空间的语句,并会创建具有一个或多个数据文件的永久表空间。
掌握与表空间相关的数据字典dba_tablespaces和dba_data_files.(参看实验2的相关内容。
)7、教材5.4 (P56),掌握控制文件的作用和主要内容;掌握数据字典v$controlfile的用法。
掌握控制文件是在数据库启动的第几个阶段进行读取的?8、教材5.5(P59-60),掌握重做日志文件(组)的组成和工作过程。
掌握数据字典V$log和v$logfile的功能。
9、教材5.6(P63),掌握数据库运行在何模式下,数据库才会对重做日志进行归档操作。
最新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数据库考试重点

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数据库复习资料:第⼀题:你对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⽤户、权限、⾓⾊管理⼀、权限分类:系统权限:系统规定⽤户使⽤数据库的权限。
oracle数据库复习A

大型数据库复习-2013--Oracle10g第一部分:Oracle数据库体系结构1.oracle数据库服务器的两个主要组件是什么?2.oracle 数据库物理存储结构包括哪些内容?3.Oracle数据库逻辑存储结构包括哪些内容?4.什么是Oracle数据库实例?其组成是什么?与Oracle数据库的区别是什么?5.掌握C r e a t e D A T A B A S E语句创建O r a c l e数据库。
6.Oracle实例的内存结构包括哪些,各自的作用是什么?7.Oracle实例的后台进程包括哪些进程?各自的作用是什么?8.如何打开一个oracle数据库?数据库实例启动过程经历了哪几个状态?9.如何关闭一个oracle数据库?有哪几种关闭方式,各自的特点是什么?10.如何进行Oracle net配置?第二部分Oracle数据库管理2.1 实例的管理1.什么是初始化参数文件?有哪两种类型?各自的特点?2.如何转换init.ora到spfile?3.如何在启动数据库时是指定初始化参数文件?4.通过哪些方法可查看初始化参数的设置情况?5.如何修改初始化参数设置?6.使用ALTER SYSTEM修改参数时SCOPE的取值的意义。
7.什么是控制文件?其主要内容是什么?怎样添加、移动和备份控制文件?8.什么是数据字典?所存的信息包括哪些?9.数据字典视图包括哪3大类?10.如何查看数据库及实例的主要信息,以及数据文件/控制文件/日志文件等信息?11.什么是重做日志?其作用是什么?为什么要使用多组重做日志?12.如何进行重做日志切换?如何强制产生检查点?13.什么是归档模式?如何查看当前运行的归档模式?如何设置归档模式?14.理解重做日志组的各种状态。
15.理解重做日志文件的各种状态。
16.如何添加和删除联机重做日志文件组?17.如何添加和删除联机重做日志文件?2.2表空间管理1.Oracle数据库管理系统为什么要引入表空间结构?2.理解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数据库简答题_考试重点

1.简单描述Oracle数据库体系结构得组成及其关系?答:Oracle数据库体系结构由物理存储结构、逻辑存储结构与实例组成。
其中物理存储结构描述了操作系统层次数据得存储与管理,包括数据文件、日志文件、重做日志文件等组成。
逻辑结构描述了数据库内部数据得组织与管理,由表空间、段、区、块组成。
实例就是数据库运行得软件结构,由内存结构与后台进程组成。
数据库运行过程中,用户得操作在内存区中进行,最终通过后台进行转化为对数据库得操作。
2、说明Oracle数据库物理存储结构得组成?Oracle数据库物理结构包括数据文件、控制文件、重做日志文件、初始化参数文件、归档文件、口令文件等。
在控制文件中记录了当前数据库所有得数据文件得名称与位置、重做日志文件得名称与位置,以及数据文件、重做日志文件得状态等。
3、说明Oracle数据库数据文件得作用?数据文件中保存了数据库中得所有数据,包括数据字典以及用户数据。
4、说明Oracle数据库控制文件得作用?控制文件保存数据库得物理结构信息,包括数据库名称、数据文件得名称与状态、重做日志文件得名称与状态等。
在数据库启动时,数据库实例依赖初始化参数定位控制文件,然后根据控制文件得信息加载数据文件与重做日志文件,最后打开数据文件与重做日志文件。
5、说明Oracle数据库重做日志文件得作用?重做日志文件就是以重做记录得形式记录、保存用户对数据库所进行得修改操作,包括用户执行DDL、DML语句得操作。
如果用户只对数据库进行查询操作,那么查询信息就是不会记录到重做日志文件中得。
6、说明数据库逻辑存储结构得组成与相互关系。
Oracle9i数据库得逻辑存储结构分为数据块、区、段与表空间四种。
其中,数据块就是数据库中得最小I/O单元,由若干个连续得数据块组成得区就是数据库中最小得存储分配单元,由若干个区形成得段就是相同类型数据得存储分配区域,由若干个段形成得表空间就是最大得逻辑存储单元,所有得表空间构成一个数据库。
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 tablespace coalescing 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 NORMAL8 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? D All 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. Oracle数据库的特点是()A. 高安全性B. 高性能C. 可扩展性D. 全面支持ACID特性答案:D2. 在Oracle数据库中,数据存储在()中。
A. 数据块B. 数据段C. 数据文件D. 表空间答案:D3. 下面哪个是Oracle数据库的管理工具?A. SQL DeveloperB. ToadC. PL/SQL DeveloperD. SQL*Plus答案:A4. Oracle数据库中,用于创建和修改数据库对象的语言是()。
A. DMLB. DDLC. DCLD. TCL答案:B5. 在Oracle数据库中,用于查询和操作数据库对象的语言是()。
A. DMLB. DDLC. DCLD. TCL答案:A二、多选题1. 下列哪些是Oracle数据库的特点?()A. 支持事务处理B. 支持分布式数据库C. 支持并发控制D. 支持网络编程答案:A、B、C2. Oracle数据库的体系结构包含以下几个部分:()A. 数据块B. 数据文件C. 表空间D. 实例答案:A、B、C、D3. 下列哪些是Oracle数据库的安全机制?()A. 用户权限管理B. 数据加密C. 访问控制D. 数据备份答案:A、B、C4. Oracle数据库的存储结构包括以下几个层次:()A. 数据库B. 表空间C. 数据文件D. 段E. 数据块答案:A、B、C、D、E5. Oracle数据库的备份与恢复策略包括以下几种:()A. 完全备份B. 增量备份C. 差异备份D. 恢复点备份E. 日志备份答案:A、B、C、E三、判断题1. Oracle数据库是面向对象的数据库。
答案:错误2. Oracle数据库可以跨平台使用。
答案:正确3. Oracle数据库的事务具有原子性、一致性、隔离性和持久性。
答案:正确4. Oracle数据库可以使用PL/SQL语言进行存储过程和触发器的编写。
答案:正确5. Oracle数据库的数据存储采用以行为单位的方式。
oracle大型数据库简答题题库

共享和专用操作模式的工作过程有什么区别?在专用服务器操作模式中,Oracle为每个连接到数据库实例的用户进程启动一个专门的服务进程,其用户进程数与服务器进程数的比例为1:1因为在用户进程空闲期间,对应的服务器进程始终存在,数据库的效率比较低.共享服务器操作模式可以实现只运行少量的服务器进程,由少量的服务器进程为大量用户提供服务。
在此模式下,数据库实例启动的同时也将启动一定数量的服务进程,在调度进程Dnnn的调度下位任意数量的用户进程提供服务。
简述oracle的初始化参数文件?答:在传统上,Oracle在启动实例时将读取本地的一个文本文件,并利用从中获取初始化参数对实例和数据库进行设置,这个文本文件称为初始化参数文件(简称为PFILE)。
简述如何修改初始化参数文件?答:如果要对初始化参数进行修改,必须先关闭数据库,然后在初始化参数文件中进行编辑,再重新启动数据库使修改生效.简述启动数据库时的状态。
答:开启数据库分成4种状态。
SHUTDOWN状态:数据库是关闭的。
NOMOUNT状态:Instance 被开启的状态,会去读取初始化参数文件。
MOUNT状态:会去读取控制文件.数据库被装载。
OPEN状态:读取数据文件、在线重做日志文件等,数据库开启.简述数据库的各种关闭方式。
答:(1)正常关闭(SHUTDOWN NORMAL):不允许新的USER连进来。
(2)事务关闭(SHUTDOWN TRANSACTIONAL):等待所有未提交的事务完成后再关闭数据库(3)立即关闭(SHUTDOWN IMMEDIATE):任何未提交的事务均被回退。
(4)终止关闭(SHUTDOWN ABORT):立即终止当前正在执行的SQL语句,任何未提交的事务均不被回退。
简述Oracle数据库的特殊状态?答:静默状态:只有具有管理员权限的用户(SYS、SYSTEM)才能在数据库中执行查询、更新操作和运行PL/SQL程序挂起状态:数据库所有的物理文件(控制文件、数据文件和重做日志文件)的I/O操作都被暂停,这样能够保证数据库在没有任何I/O操作的情况下进行物理备份。
大型数据库复习要点

Oracle基础1、oracle简介对象关系数据库管理系统(ORDBMS)提供了关系数据库系统和面向对象数据库系统这二者的功能2、oracle数据库组件数据库由下列组件构成:数据库文件、控制文件、恢复日志文件、表空间、段、扩展区数据库有两类组件:物理组件和逻辑组件3、物理组件是操作系统文件,有三种类型:数据库文件或数据文件、控制文件、恢复日志文件;逻辑组件决定数据库中物理空间的使用,它包括:表空间、段、数据区、模式对象。
4、数据库文件或数据文件:它们是物理操作系统文件,它们包括诸如用户数据、系统数据等所有数据库数据。
数据文件中的数据以块为单位。
任何数据库创建时至少包含一个数据文件。
5、控制文件:创建数据库时,就创建了控制文件。
存储数据库的物理结构。
6、恢复日志文件:恢复日志文件是操作系统文件,由RDBMS用于记录对数据库所做的更改,如果出现故障,则可从恢复日志中访问并重新应用对数据库所做的更改,保护已完成的工作不受损失。
数据库以下面两种模式运行:NOARCHIVELOG MODE 和ARCHIVELOG MODE 。
7、数据库有下列逻辑组件:表空间、段、扩展区8、表空间:数据库由称为表空间的逻辑单位组成。
保留相关数据库对象的组。
Oracle数据库中的典型表空间包括:SYSTEM表空间DATA表空间USER表空间TOOLS表空间TEMP表空间9、段:表空间中存储在数据库空间分配中的逻辑单位称为段。
定义为分配给逻辑数据库结构的扩展区集合。
不同类型的段:数据段、索引段、回滚段、临时段10、oracle的结构化查询语言:SQL Plus:输入、编辑、存储、检索和运行SQL命令以及PL/SQL块的工具iSQL Plus:与SQL类似,但可以通过浏览器进行访问PL/SQL:SQL的扩展11、SQL命令的类别:数据定义语言。
数据操纵语言。
事务处理控制语言。
数据控制语言。
12、oracle主要数据类型:Character、Number、Date、Raw和Long Raw、LOB13、数据定义命令:create、alter、drop、truncate(把…截短;缩短)14:、数据操纵命令:insert、select、update、delete15、事务处理控制命令:commit、savepoint、rollback16、数据控制语言:grant、revoke(废除;撤回,取消)17:、oracle的语句处理:解析:对提交的语句进行语法和语义检查优化:生成一个可在Oracle中用来执行语句的最佳计划行资源生成:为会话取得最佳计划和建立执行计划执行:完成实际执行查询的行资源生成步骤的输出到目前为止,当Oracle完成了所有工作,并且找到了匹配查询,它就可以从解析过程中返回,报告已经进行了一次软解析,如果没有找到匹配查询,就需要进行硬解析。
大型数据库oracle考试复习资料

1.Oracle得到广大用户的青睐原因在于:支持多用户、大事务量的事务处理、提供标准操作接口、实施安全性控制和完整性控制、支持分布式数据处理、具有可移值性、可兼容性和可连接性。
数据库新特性:网络计算、真正集群技术、自动存储管理、数据库自动管理、高可用性、超大型数据库支持、闪回查询与闪回操作、物化视图与查询重写、数据泵2.数据库的应用系统结构主要分为4种:客户机/服务器结构(c/s:两层结构,客户机与服务器可采用不同的软硬件系统,应用于服务分离安全性高)、浏览器/服务器结构(b/s:三层结构,通过web服务器处理应用程序逻辑,方便了应用程序的维护和升级)、分布式数据库系统结构(数据分布,数据共享,兼容性好,网络扩展性好)、终端-服务器结构(便于集中管理,系统安全性高,网络负荷低)。
3.数据库服务器企业版、标准版、个人版区别:①企业版数据库服务器包含所有的数据库组件,主要针对高端的应用环境,适用于安全性和性能要求较高的联机事务处理(OLTP)、查询密集型的数据仓库和要求较高的Internet应用程序②标准版数据库服务器提供大部分核心的数据库功能和特性,适合于工作组或部门级的应用程序:③个人版数据库服务器只提供基本数据库管理功能和特性,适合单用户的开发环境,为用户提供开发测试平台。
4.数据库系统服务有:作业管理服务,数据库控制台服务,isql*plus管理服务,网络监听服务,实例服务。
5.创建数据库的方法的比较:①使用数据库配置助手(DBCA)创建:是Oracle提供的用于创建数据库的图形界面工具,内置数据库模板,可以直观快速地创建数据库,适合初学者。
②运行脚本手动创建:使用create database 语句和Oracle预定义脚本手动创建数据库,比DBCA方式具有更大的灵活性和效率,适合有经验的DBA7. 数据库启动步骤:①创建并启动实例:根据数据库初始化参数文件,为数据库创建实例,启动一系列后台进程和服务进程。
大学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)命令。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 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 tablespace coalescing 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 NORMAL8 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? D All 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。