Table of Contents
一 环境
二  操作示例
三  分析
Home Database Mysql Tutorial Oracle体系结构及备份(二)执行select语句的过程分析

Oracle体系结构及备份(二)执行select语句的过程分析

Jun 07, 2016 pm 03:09 PM
oracle select Architecture backup implement statement process

一 环境 Oracle 11g R2 SQL Plus Windows 7 Ultimate English Edition 二 操作示例 Microsoft Windows [Version 6.1.7601]Copyright (c) 2009 Microsoft Corporation. All rights reserved.C:\Users\Wentasysqlplus scottSQL*Plus: Release 11.2.0.1.0 Produ

一 环境

 

Oracle 11g R2 + SQL Plus + Windows 7 Ultimate English Edition

 

二  操作示例

 

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\Wentasy>sqlplus scott

SQL*Plus: Release 11.2.0.1.0 Production on 星期二 5月 28 15:17:49 2013

Copyright (c) 1982, 2010, Oracle.  All rights reserved.

输入口令:

连接到:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> SELECT * FROM emp WHERE empno=7839;

     EMPNO ENAME      JOB              MGR HIREDATE              SAL       COMM
---------- ---------- --------- ---------- -------------- ---------- ----------
    DEPTNO
----------
      7839 KING       PRESIDENT            17-11月-81           5000
        10


三  分析

 

1.用户进程执行一个语句,比如 select * from emp where empno=7839;

 

2.用户进程已经跟服务器进程建立连接,并把该用户进程的信息存储到PGAUGA

 

3.语句经过PGA处理后传递给实例

 

4.实例中的共享池负责处理这条语句。共享池处理:首先在库缓存区去判断语句如何分析,软分析或者是硬分析,如果是软分析,执行很快,硬分析会经过很多步骤。不管是软分析还是硬分析,都会根据CBD得到的执行计划准备去执行语句

 

5.查询语句中的对象存放在哪个表空间的,指定的行放在哪个块里面的。

 

6.数据字典缓存区得到这些信息

 

7.开始执行。判断在数据缓存区data buffer cache是否缓存了需要的块,如果是,在内存中读数据得到需要的行的结果,返回给用户用户看到执行的结果。如果不是,则服务器进程把块从磁盘读入到data buffer cache缓存下来,undo缓存块会对该块做镜像,然后读镜像中的数据得到行的结果,用户看到了执行的结果。

 

 

 

Oracle体系结构及备份(二)执行select语句的过程分析 Oracle体系结构及备份(二)执行select语句的过程分析 Oracle体系结构及备份(二)执行select语句的过程分析
@Wentasy
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

MySQL vs. Oracle: Licensing, Features, and Benefits MySQL vs. Oracle: Licensing, Features, and Benefits May 08, 2025 am 12:05 AM

The main difference between MySQL and Oracle is licenses, features, and advantages. 1. License: MySQL provides a GPL license for free use, and Oracle adopts a proprietary license, which is expensive. 2. Function: MySQL has simple functions and is suitable for web applications and small and medium-sized enterprises. Oracle has powerful functions and is suitable for large-scale data and complex businesses. 3. Advantages: MySQL is open source free, suitable for startups, and Oracle is reliable in performance, suitable for large enterprises.

MySQL vs. Oracle: Understanding Licensing and Cost MySQL vs. Oracle: Understanding Licensing and Cost May 03, 2025 am 12:19 AM

MySQL uses GPL and commercial licenses for small and open source projects; Oracle uses commercial licenses for enterprises that require high performance. MySQL's GPL license is free, and commercial licenses require payment; Oracle license fees are calculated based on processors or users, and the cost is relatively high.

How to learn Java without taking detours. Share methods and techniques for efficiently learning Java How to learn Java without taking detours. Share methods and techniques for efficiently learning Java May 20, 2025 pm 08:24 PM

The key to learning Java without taking detours is: 1. Understand core concepts and grammar; 2. Practice more; 3. Understand memory management and garbage collection; 4. Join online communities; 5. Read other people’s code; 6. Understand common libraries and frameworks; 7. Learn to deal with common mistakes; 8. Make a learning plan and proceed step by step. These methods can help you master Java programming efficiently.

MongoDB vs. Oracle: Exploring NoSQL and Relational Approaches MongoDB vs. Oracle: Exploring NoSQL and Relational Approaches May 07, 2025 am 12:02 AM

In different application scenarios, choosing MongoDB or Oracle depends on specific needs: 1) If you need to process a large amount of unstructured data and do not have high requirements for data consistency, choose MongoDB; 2) If you need strict data consistency and complex queries, choose Oracle.

Connection and data visualization of Oracle databases with BI tools such as Tableau Connection and data visualization of Oracle databases with BI tools such as Tableau May 19, 2025 pm 06:27 PM

To connect Oracle database to Tableau for data visualization, you need to follow the following steps: 1. Configure Oracle database connection in Tableau, use ODBC or JDBC drivers; 2. Explore data and create visualizations, such as bar charts, etc.; 3. Optimize SQL queries and indexes to improve performance; 4. Use Oracle's complex data types and functions to implement through custom SQL queries; 5. Create materialized views to improve query speed; 6. Use Tableau's interactive functions such as dashboard for in-depth analysis.

What to learn Java? A summary of Java learning routes and essential knowledge points What to learn Java? A summary of Java learning routes and essential knowledge points May 20, 2025 pm 08:15 PM

Learning Java requires learning basic syntax, object-oriented programming, collection frameworks, exception handling, multithreading, I/O streaming, JDBC, network programming, and advanced features such as reflection and annotation. 1. The basic syntax includes variables, data types, operators and control flow statements. 2. Object-oriented programming covers classes, objects, inheritance, polymorphism, encapsulation and abstraction. 3. The collection framework involves ArrayList, LinkedList, HashSet, and HashMap. 4. Exception handling ensures program robustness through try-catch block. 5. Multithreaded programming requires understanding of thread life cycle and synchronization. 6. I/O streams are used for data reading, writing and file operations. 7. JDBC is used to interact with databases. 8. Network programming passes S

How to connect to oracle database connection pool using jdbc How to connect to oracle database connection pool using jdbc Jun 04, 2025 pm 10:15 PM

The steps to connect to an Oracle database connection pool using JDBC include: 1) Configure the connection pool, 2) Get the connection from the connection pool, 3) Perform SQL operations, and 4) Close the resources. Use OracleUCP to effectively manage connections and improve performance.

MongoDB vs. Oracle: Document Databases vs. Relational Databases MongoDB vs. Oracle: Document Databases vs. Relational Databases May 05, 2025 am 12:04 AM

Introduction In the modern world of data management, choosing the right database system is crucial for any project. We often face a choice: should we choose a document-based database like MongoDB, or a relational database like Oracle? Today I will take you into the depth of the differences between MongoDB and Oracle, help you understand their pros and cons, and share my experience using them in real projects. This article will take you to start with basic knowledge and gradually deepen the core features, usage scenarios and performance performance of these two types of databases. Whether you are a new data manager or an experienced database administrator, after reading this article, you will be on how to choose and use MongoDB or Ora in your project

See all articles