Oracle体系结构概览(一)

本文详细阐述了Oracle数据库的体系结构,从数据库与实例的基本概念出发,深入讲解了数据库物理与逻辑存储结构、实例内存结构及应用网络架构,旨在为用户提供全面的Oracle数据库知识。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

学习Oracle,基础是少不了的,下面是从Oracle文档中看的关于Oracle体系结构的概述,记录下来以便于以后查询,红色标的可以重点看看。


一、Oracle体系结构概览


Database and Instance

An Oracle database server consists of a database and at least one database instance (commonly referred to as simply an instance).Because an instance and a database are so closely connected, the term Oracledatabase is sometimes used to refer to both instance and database. In thestrictest sense the terms have the following meanings:

  • Database

A database is a set of files, located on disk, that storedata. These files can exist independently of a database instance.

一个数据库是由一组位于磁盘上存放数据的文件。这些文件可以独立于数据库实例存在。

  • Database instance

An instance is a set of memory structures that managedatabase files. The instance consists of a shared memory area, called thesystem global area (SGA), and a set of background processes. An instance can existindependently of database files.

一个实例是由一组管理数据库文件的内存结构。这个实例(SGA)包括:Shared memory area和一组后台进程。

SGA和PGA的结构可以通过下面的图来查看。

Description of Figure 1-1 follows

A database can be considered from both a physical and logical perspective.Physical data is data viewable at the operating system level. For example,operating system utilities such as the Linux ls and ps can list database filesand processes. Logical data such as a table is meaningful only for thedatabase. A SQL statement can list the tables in an Oracle database, but anoperating system utility cannot.

The database has physical structures and logical structures. Because the physicaland logical structures are separate, the physical storage of data can bemanaged without affecting access to logical storage structures. For example,renaming a physical database file does not rename the tables whose data isstored in this file.

 

Database Storage Structures

An essential task of a relational database is data storage.This section briefly describes the physical and logical storage structures usedby Oracle Database.

Physical Storage Structures

The physical database structures are the files that storethe data. When you execute the SQL commandCREATE DATABASE, thefollowing files are created:

·        Data files

Every Oracle database has one ormore physical data files,which contain all the database data. The data of logical database structures,such as tables and indexes, is physically stored in the data files.

·        Control files

Every Oracle database has a control file. Acontrol file contains metadata specifying the physical structure of thedatabase, including the database name and the names and locations of thedatabase files.

·        Online redo log files

Every Oracle Database has an online redo log,which is a set of two or more online redolog files. An onlineredo log is madeup of redo entries (also called redo records), whichrecord all changes made to data.

Many other files are important for the functioning of anOracle database server. These files include parameter files and diagnosticfiles. Backup files andarchived redo log filesare offline files important for backup and recovery.

数据库物理存储结构分为Datafile、Controlfile、Online redo logfile这3个部分。

Logical Storage Structures

This section discusses logical storage structures. Thefollowing logical storage structures enable Oracle Database to havefine-grained control of disk space use:

·        Data blocks

At the finest level ofgranularity, Oracle Database data is stored in data blocks. Onedata blockcorresponds to a specific number of bytes on disk.

·        Extents

An extent is aspecific number of logically contiguous data blocks, obtained in a singleallocation, used to store a specific type of information.

·        Segments

A segment is a setof extents allocated for a user object (for example, a table or index),undo data, ortemporary data.

·        Tablespaces

A database is divided intological storage units called tablespaces. A tablespaceis the logical container for a segment. Each tablespace contains at least onedata file.

数据库逻辑存储结构分为Data blocks、Extents、Segments和Tablespace,这几个是Oracle的逻辑概念,不是具体存在的。

Database Instance Structures

An Oracle database uses memory structures and processes tomanage and access the database. All memory structures exist in the main memoryof the computers that constitute the RDBMS.

When applications connect to an Oracle database, they areconnected to a database instance. The instance services applications byallocating other memory areas in addition to the SGA, and starting otherprocesses in addition to background processes.

Oracle Database Processes

A process is amechanism in an operating system that can run a series of steps. Some operatingsystems use the terms job, task,or thread. For the purpose of this discussion, athread is equivalent to a process. An Oracle database instance has thefollowing types of processes:

·        Client processes

These processes are created andmaintained to run the software code of an application program or an Oracletool. Most environments have separate computers for client processes.

·        Background processes

These processes consolidatefunctions that would otherwise be handled by multiple Oracle Database programsrunning for each client process. Background processes asynchronously performI/O and monitor other Oracle Database processes to provide increasedparallelism for better performance and reliability.

·        Server processes

These processes communicate withclient processes and interact with Oracle Database to fulfill requests.

Oracle processesinclude server processes and background processes. In most environments, Oracleprocesses and client processes run on separate computers.

Instance Memory Structures

Oracle Database creates and uses memory structures forpurposes such as memory for program code, data shared among users, and privatedata areas for each connected user. The following memory structures areassociated with an instance:

·        System Global Area (SGA)

The SGA is a group of sharedmemory structures that contain data and control information for one databaseinstance. Examples of SGA components include cached data blocks and shared SQLareas.

·        Program Global Areas (PGA)

A PGA is a memory region thatcontain data and control information for a server or background process. Accessto the PGA is exclusive to the process. Each server process and backgroundprocess has its own PGA.

Application and Networking Architecture

To take full advantage of a given computer system ornetwork, Oracle Database enables processing to be split between the databaseserver and the client programs. The computer running the RDBMS handles thedatabase server responsibilities while the computers running the applicationshandle the interpretation and display of data.

Application Architecture

The application architecture refersto the computing environment in which a database application connects to anOracle database. The two most common database architectures are client/serverand multitier.

In a client/server architecture,the client application initiates a request for an operation to be performed onthe database server. The server runs Oracle Database software and handles thefunctions required for concurrent, shared data access. The server receives andprocesses requests that originate from clients.

In a traditional multitier architecture,one or more application servers perform parts of the operation. An application server contains a large part of the applicationlogic, provides access to the data for the client, and performs some queryprocessing, thus lessening the load on the database. The application server canserve as an interface between clients and multiple databases and provide anadditional level of security.

Service-oriented architecture (SOA) is a multitier architecture in which application functionality isencapsulated in services. SOA services are usuallyimplemented as Web services. Web services are accessible through HTTP and arebased on XML-based standards such as Web Services Description Language (WSDL)and SOAP.

Oracle Database can act as a Web service provider in atraditional multitier or SOA environment.

Networking Architecture

Oracle Net Services is the interface between the database and the network communicationprotocols that facilitatedistributed processingand distributed databases. Communication protocols define the way that data istransmitted and received on a network. Oracle Net Services supportscommunications on all major network protocols, including TCP/IP, HTTP, FTP, andWebDAV.

Oracle Net,a component of Oracle Net Services, establishes and maintains a network sessionfrom a client application to a database server. After a network session isestablished, Oracle Net acts as the data courier for both the clientapplication and the database server, exchanging messages between them. OracleNet can perform these jobs because it is located on each computer in thenetwork.

An important component of Net Services is the Oracle Net Listener (called the listener),which is a separate process that runs on the database server or elsewhere inthe network. Client applications can send connection requests to the listener,which manages the traffic of these requests to the database server. When aconnection is established, the client and database communicate directly.

The most common ways to configure an Oracle database toservice client requests are:

·        Dedicated server architecture

Each client process connects toa dedicated server process. The server process is not shared by any otherclient for the duration of the client's session. Each new session is assigned adedicated server process.

·        Shared server architecture

The database uses a pool ofshared processes for multiple sessions. A client process communicates with a dispatcher, which is a process that enables many clients toconnect to the same database instance without the need for a dedicated serverprocess for each client.






标题基于SpringBoot+Vue的学生交流互助平台研究AI更换标题第1章引言介绍学生交流互助平台的研究背景、意义、现状、方法与创新点。1.1研究背景与意义分析学生交流互助平台在当前教育环境下的需求及其重要性。1.2国内外研究现状综述国内外在学生交流互助平台方面的研究进展与实践应用。1.3研究方法与创新点概述本研究采用的方法论、技术路线及预期的创新成果。第2章相关理论阐述SpringBoot与Vue框架的理论基础及在学生交流互助平台中的应用。2.1SpringBoot框架概述介绍SpringBoot框架的核心思想、特点及优势。2.2Vue框架概述阐述Vue框架的基本原理、组件化开发思想及与前端的交互机制。2.3SpringBoot与Vue的整合应用探讨SpringBoot与Vue在学生交流互助平台中的整合方式及优势。第3章平台需求分析深入分析学生交流互助平台的功能需求、非功能需求及用户体验要求。3.1功能需求分析详细阐述平台的各项功能需求,如用户管理、信息交流、互助学习等。3.2非功能需求分析对平台的性能、安全性、可扩展性等非功能需求进行分析。3.3用户体验要求从用户角度出发,提出平台在易用性、美观性等方面的要求。第4章平台设计与实现具体描述学生交流互助平台的架构设计、功能实现及前后端交互细节。4.1平台架构设计给出平台的整体架构设计,包括前后端分离、微服务架构等思想的应用。4.2功能模块实现详细阐述各个功能模块的实现过程,如用户登录注册、信息发布与查看、在线交流等。4.3前后端交互细节介绍前后端数据交互的方式、接口设计及数据传输过程中的安全问题。第5章平台测试与优化对平台进行全面的测试,发现并解决潜在问题,同时进行优化以提高性能。5.1测试环境与方案介绍测试环境的搭建及所采用的测试方案,包括单元测试、集成测试等。5.2测试结果分析对测试结果进行详细分析,找出问题的根源并
内容概要:本文详细介绍了个基于灰狼优化算法(GWO)优化的卷积双向长短期记忆神经网络(CNN-BiLSTM)融合注意力机制的多变量多步时间序列预测项目。该项目旨在解决传统时序预测方法难以捕捉非线性、复杂时序依赖关系的问题,通过融合CNN的空间特征提取、BiLSTM的时序建模能力及注意力机制的动态权重调节能力,实现对多变量多步时间序列的精准预测。项目不仅涵盖了数据预处理、模型构建与训练、性能评估,还包括了GUI界面的设计与实现。此外,文章还讨论了模型的部署、应用领域及其未来改进方向。 适合人群:具备定编程基础,特别是对深度学习、时间序列预测及优化算法有定了解的研发人员和数据科学家。 使用场景及目标:①用于智能电网负荷预测、金融市场多资产价格预测、环境气象多参数预报、智能制造设备状态监测与预测维护、交通流量预测与智慧交通管理、医疗健康多指标预测等领域;②提升多变量多步时间序列预测精度,优化资源调度和风险管控;③实现自动化超参数优化,降低人工调参成本,提高模型训练效率;④增强模型对复杂时序数据特征的学习能力,促进智能决策支持应用。 阅读建议:此资源不仅提供了详细的代码实现和模型架构解析,还深入探讨了模型优化和实际应用中的挑战与解决方案。因此,在学习过程中,建议结合理论与实践,逐步理解各个模块的功能和实现细节,并尝试在自己的项目中应用这些技术和方法。同时,注意数据预处理的重要性,合理设置模型参数与网络结构,控制多步预测误差传播,防范过拟合,规划计算资源与训练时间,关注模型的可解释性和透明度,以及持续更新与迭代模型,以适应数据分布的变化。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值