我的oracle 9i学习日志(4)--逻辑结构与习题解析

简介:

Logical Structure

1

 

在oracle database中数据时存储在tablespaces(表空间)里的,一个表空间只能属于一个database,一个表空间可以对应一个或多个物理文件(data file)。

一个oracle server上只有一个database,一个database包含至少一个表空间,一个表空间包含一个或多个段,一段由多个extent组成,extent由许多连续的块(block)组成。

一个segment不能跨越表空间,但一个segment可以属于不同的data file。但一个extent不能跨越data file。

data block是oracle server分配,读写等基本操作的最小存储单元,大小由DB_BLOCK_SIZE这个参数指定,但必须是操作系统block的整数倍,最大尺寸不同的系统不同。

SQL语句的处理过程

处理一个查询:

1.解析:

       -查找相同的语句

       -检查语法,目标名,权限

       -Lock objects used during parse

       -创建和存储执行计划

2.绑定:得到一个变量

3.执行:

4.返回:返回结果

处理DML语句,处理DDL语句:

基本过程类似,可分为连接,安全检查,解析,绑定变量,执行,返回结果。

 

Practice 1: Oracle Architectural Components 
1 Which one of the following statements is true? 
a An Oracle server is a collection of data consisting of three file types. 
b A user establishes a connection with the database by starting an Oracle instance. 
c A connection is a communication pathway between the Oracle server and the Oracle instance. 
d A session starts when a user is validated by the Oracle server. 
答案:d。

解析:a,这是对database files的描述,而不是oracle server。b,一个oracle server只会启动一个instance,user直接与server process打交道而不是instance,一般来说一个connection对应一个server process。c,参考“我的学习笔记(3)”可知,这是对session的描述,而不是connection。d,正确。

2 Which one of the following memory areas is not part of the SGA? 
a Database Buffer Cache 
b PGA 
c Redo Log Buffer 
d Shared Pool 
答案:b。

3 Which two of the following statements are true about the Shared Pool? 
a The Shared Pool consists of the Library Cache, Data Dictionary Cache, Shared  SQL area, Java Pool, and Large Pool. 
b The Shared Pool is used to store the most recently executed SQL statements. 
c The Shared Pool is used for an object that can be shared globally. 
d The Library Cache consists of the Shared SQL and Shared PL/SQL areas.

答案:b,d。

解析:c答案在oracle教材上有这样的话“Because the Shared Pool is used for objects that can be shared globally”,但在这个题目中有歧义,c,d两项最佳答案是d。


4 Which one of the following memory areas is used to cache the data dictionary 
information? 
a Database Buffer Cache 
b PGA 
c Redo Log Buffer 
d Shared Pool

答案:d。


5 The primary purpose of the Redo Log Buffer is to record all changes to the database 
data blocks. 
a True 
b False

答案:a。

6 The PGA is a memory region that contains data and control information for multiple 
server processes or multiple background processes. 
a True 
b False

答案:b。

解析:不是multiple,是single。一个PGA对应一个进程。

7 Which of the following becomes available when an Oracle instance is started? 
a User process 
b Server process 
c Background processes

答案:c。


8 Identify five mandatory background processes. 
答案:DBWn,LGWR,SMON,PMON,CKPT


9 Match the process with its task. 
a Database Writer          1 Assists with writing to the data file headers 
b Log Writer                     2 Is responsible for instance recovery 
c System Monitor            3 Cleans up after failed processes 
d Process Monitor          4 Records database changes for recovery purposes 
e Checkpoint                   5 Writes dirty buffers to the data files

答案:a-5,b-4,c-2,d-3,e-1。

10 The physical structure of an Oracle database consists of control files, data files, and 
online redo log files. 
a True 
b False

答案:a。


11 Place the following structures in order of hierarchy beginning with database. 
a Tablespaces 
b Extent 
c Segment 
d Database 
e Block

答案:从小到大顺序:e,b,c,a,d.


12 Identify the components of an Oracle server. 
答案:database,instance。


13 Identify the components of an Oracle instance. 
答案:内存结构(或SGA)和后台进程 
 

14 Identify three file types that make up an Oracle database. 
答案:data files,control files,redo log files。










本文转自 d185740815 51CTO博客,原文链接:http://blog.51cto.com/luotaoyang/277406,如需转载请自行联系原作者
目录
相关文章
|
存储 Java 文件存储
微服务——SpringBoot使用归纳——Spring Boot使用slf4j进行日志记录—— logback.xml 配置文件解析
本文解析了 `logback.xml` 配置文件的详细内容,包括日志输出格式、存储路径、控制台输出及日志级别等关键配置。通过定义 `LOG_PATTERN` 和 `FILE_PATH`,设置日志格式与存储路径;利用 `<appender>` 节点配置控制台和文件输出,支持日志滚动策略(如文件大小限制和保存时长);最后通过 `<logger>` 和 `<root>` 定义日志级别与输出方式。此配置适用于精细化管理日志输出,满足不同场景需求。
3335 1
|
监控 Java 应用服务中间件
Tomcat log日志解析
理解和解析Tomcat日志文件对于诊断和解决Web应用中的问题至关重要。通过分析 `catalina.out`、`localhost.log`、`localhost_access_log.*.txt`、`manager.log`和 `host-manager.log`等日志文件,可以快速定位和解决问题,确保Tomcat服务器的稳定运行。掌握这些日志解析技巧,可以显著提高运维和开发效率。
1871 13
|
监控 Shell Linux
Android调试终极指南:ADB安装+多设备连接+ANR日志抓取全流程解析,覆盖环境变量配置/多设备调试/ANR日志分析全流程,附Win/Mac/Linux三平台解决方案
ADB(Android Debug Bridge)是安卓开发中的重要工具,用于连接电脑与安卓设备,实现文件传输、应用管理、日志抓取等功能。本文介绍了 ADB 的基本概念、安装配置及常用命令。包括:1) 基本命令如 `adb version` 和 `adb devices`;2) 权限操作如 `adb root` 和 `adb shell`;3) APK 操作如安装、卸载应用;4) 文件传输如 `adb push` 和 `adb pull`;5) 日志记录如 `adb logcat`;6) 系统信息获取如屏幕截图和录屏。通过这些功能,用户可高效调试和管理安卓设备。
10877 2
|
监控 Oracle 关系型数据库
Mysql、Oracle审计日志的开启
通过上述步骤,可以在 MySQL 和 Oracle 数据库中启用和配置审计日志。这些日志对于监控数据库操作、提高安全性和满足合规性要求非常重要。确保正确配置审计参数和策略,定期查看和分析审计日志,有助于及时发现并处理潜在的安全问题。
985 11
|
SQL Oracle 关系型数据库
【赵渝强老师】Oracle的控制文件与归档日志文件
本文介绍了Oracle数据库中的控制文件和归档日志文件。控制文件记录了数据库的物理结构信息,如数据库名、数据文件和联机日志文件的位置等。为了保护数据库,通常会进行控制文件的多路复用。归档日志文件是联机重做日志文件的副本,用于记录数据库的变更历史。文章还提供了相关SQL语句,帮助查看和设置数据库的日志模式。
505 1
【赵渝强老师】Oracle的控制文件与归档日志文件
|
负载均衡 Oracle 网络协议
Oracle中TAF与SCANIP全面解析
通过本文的解析,读者可以清晰地理解Oracle中TAF与SCAN IP的概念、工作原理及其在实际应用中的优势和局限性。TAF通过自动故障转移提升了会话的高可用性,而SCAN则通过简化客户端连接和负载均衡提升了集群的可管理性和扩展性。这两种技术在现代企业数据库架构中扮演着重要角色,能够显著提高系统的稳定性和可用性。
805 6
|
Oracle 关系型数据库 数据库
【赵渝强老师】Oracle的参数文件与告警日志文件
本文介绍了Oracle数据库的参数文件和告警日志文件。参数文件分为初始化参数文件(PFile)和服务器端参数文件(SPFile),在数据库启动时读取并分配资源。告警日志文件记录了数据库的重要活动、错误和警告信息,帮助诊断问题。文中还提供了相关视频讲解和示例代码。
508 1
|
存储 监控 安全
深入解析Sysmon日志:增强网络安全与威胁应对的关键一环
在不断演进的网络安全领域中,保持对威胁的及时了解至关重要。Sysmon日志在这方面发挥了至关重要的作用,通过提供有价值的见解,使组织能够加强其安全姿态。Windows在企业环境中是主导的操作系统,因此深入了解Windows事件日志、它们的独特特性和局限性,并通过Sysmon进行增强,变得至关重要。
607 1
|
Oracle 关系型数据库 网络安全
Oracle 19c 安装教程学习
Oracle 19c 安装教程学习
6315 2
|
SQL Oracle 关系型数据库
【赵渝强老师】Oracle的联机重做日志文件与数据写入过程
在Oracle数据库中,联机重做日志文件记录了数据库的变化,用于实例恢复。每个数据库有多组联机重做日志,每组建议至少有两个成员。通过SQL语句可查看日志文件信息。视频讲解和示意图进一步解释了这一过程。
412 0

热门文章

最新文章

推荐镜像

更多