Oracle basic learning notes 1

Source: Internet
Author: User
I want to start to systematically learn some basic Oracle knowledge. Although I am not a DBA, I want to learn some basic knowledge well this time. So I plan to take notes and make an outline, which is too specific.
The content is not listed. Only the key points are listed.

Oracle routine
Routines include memory structure and background processes

The memory structure includes:
A Data High-speed cache
Stores recently accessed data block information. In 10 Gb, db_cache_size and db_nk_cache_size are used to define. LRU queuing principle is used to manage cache. Data Buffer Zone
Also divided into: Dirty buffer, idle buffer, busy buffer.

 
B. Redo the log Buffer
It consists of many redo records. When the initial parameter is defined by log_buffer and DDL or DML is executed, the transaction changes are first placed in the redo log buffer before modifying the data cache.
C Shared Pool
The Shared Pool stores the recently executed SQL statements and data dictionary information, which consists of the following parts:

1-database high-speed cache
It is used to store the latest SQL statement information, including many context areas, each of which contains the corresponding SQL statement execution plan.

These three parts are collectively referred to as the SGA (system global area), which is shared by all user processes. In addition, SGA also includes large buffer pools and Java pools.

Background processes include:
A smon: used for routine recovery. For example, if a fault or power failure occurs during running, the background process will be restored.
B pmon: monitors the execution of server processes and identifies server processes when server processes fail.
C dbwr: writes data in the dirty buffer zone of the high-speed data buffer to the data file.
D lgwr: Write all records in the redo log buffer to the redo log file.
E ckpt: checkpoint. When a Check Point is sent, dbwr and lgwr work together to ensure that the data file, control file, and redo log are always running.
D arch: copy the transaction changes of the redo log to the archive log in archivelog mode.

PGA stores the data and control information of server processes, independent of the memory area of SGA. When a user process is connected to Oracle
Assign the corresponding PGA. PGA composition:
1 sorting area
2. session information
3. cursor status
4. Stack space

Physical composition of two databases
1. Database Files: including data, data dictionary, user data, and undo data
2. Redo logs (note: the database requires at least two redo logs for reuse)
3. Control File: records the location and size of the data file, the location and size of the redo log file, the database name and Creation Time, And the log serial number.

There are also archive logs, parameter files, password files, warning files, background process trace files, and server process trace files.

Logical Structure of the three databases
1. We recommend that you deploy different types of data to different tablespaces.
2 segment: used to store all data of a specific logical object, including: Table segment, index segment, temporary segment, and undo segment
Zone 3: logical unit for Oracle to allocate space, which is composed of data blocks.
4 ORACLE: The minimum unit for Oracle to perform I/O operations on data files. The size is an integer multiple of the OS blocks.

Oracle connection:
When running an application on the client, the user process is started. when connected to Oracle, Oracle generates a new process on the server, called the server process.
The execution of an SQL statement requires parsing, execution, and data extraction.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.