1. Trang chủ
  2. » Công Nghệ Thông Tin

Quản trị cơ sở dữ liệu Oracle 08 architecture

32 179 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 32
Dung lượng 439,18 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Kết nối tới database• Connection: là sự giao tiếp giữa một user process và một database.. • Session: là kết nối cụ thể của một user tới một database thông qua một user process... Kiến t

Trang 1

Oracle Architecture

Trang 2

Kết nối tới database

Connection: là sự giao tiếp giữa một user process và một database.

Session: là kết nối cụ thể của một user tới một database thông qua một user

process

Trang 3

Kiến trúc Oracle Database Server

Trang 4

Kiến trúc bộ nhớ (memory structures)

Trang 5

Kiến trúc bộ nhớ trong SGA

Được cấp phát lúc khởi động instance và giải phóng khi tắt instance.

– Được chia sẻ bởi tất cả server process và background process.

Trang 6

The Database Buffer Cache

• Được chia sẻ bởi tất cả users

Trang 7

The Log Buffer

lệnh DML)

Trang 8

The Shared Pool

Trang 9

The Library Cache

nhất, dưới hình thức đã được phân tích cú pháp.

nhằm nâng cao hiệu suất

Trang 10

The Data Dictionary Cache

user và metadata

Trang 12

The SQL Query and PL/SQL Function Result Cache

• Giá trị trả về được cache, sẵn sàng cho lần chạy tiếp theo

Trang 13

The Large Pool

– Bộ nhớ phiên làm việc (session memory) cho multi-threaded server và Oracle XA interface.

– I/O server processes

– Oracle backup and restore operations

Trang 14

The Java Pool và The Streams Pool

trong database

Trang 15

Process Structures

Trang 16

DBWn, the Database Writer

• Ghi những dữ liệu đã bị thay đổi (dirty) trong database buffer cache vào ổ đĩa (disk)

– buffer đầy dữ liệu.

– Quá nhiều dữ liệu đã bị thay đổi.

– Hết 3 giây.

– Có một checkpoint

Trang 17

LGWR, the Log Writer

• Ghi nội dung của log buffer vào online redo log file

– Khi một user process commit một transaction.

– Khi redo log buffer đầy 1/3.

– Trước khi DBWn process ghi những dữ liệu thay đổi vào ổ đĩa.

Trang 18

SMON, the System Monitor

• Hợp nhất những extents trống (free) liền nhau trong từ điển dữ liệu (từ điển quản

lý table space)

Trang 19

PMON, the Process Monitor

process đang dùng

• Đăng ký thông tin về instance và dispatcher process với network listener

Trang 20

CKPT, the Checkpoint Process

• Chịu trách nhiệm trong việc ghi lại địa chỉ của redo byte hiện tại

Trang 21

ARCn, the Archiver

• Copy redo log file vào một thiết bị lưu trữ nào đó sau khi log switch xảy ra

Trang 22

Database Storage Structures

Trang 23

Physical Storage Structures

Trang 24

Datafiles

Trang 25

Control Files

– Tên database.

– Tên và vị trí của datafile và redo log file.

– Các số thứ tự quan trọng khác nhau (sequence number) và nhãn thời gian.

Trang 26

The Online Redo Log Files

Trang 27

Other Database Files

• Alert log and trace files

Trang 28

The Logical Database Structures

Oracle abstracts the logical from the physical storage by means of the tablespace

Trang 29

The Data Dictionary

• contains metadata that describes the database: both physically and logically, and its contents

Contains user definitions, security information, integrity constraints, performance

monitoring information

Trang 30

The Data Dictionary

Trang 31

The Data Dictionary

• To find the list of tables in current schema that have the column “EMPLOYEE_NUMBER”

• To find the list of tables in schema accessible to the current user that have the column

“EMPLOYEE_NUMBER”

• To find the list of tables across schemas that have the column “EMPLOYEE_NUMBER”

SELECT * FROM user_tab_columns WHERE column_name = 'EMPLOYEE_NUMBER'

SELECT * FROM all_tab_columns WHERE column_name = 'EMPLOYEE_NUMBER'

SELECT * FROM dba_tab_columns WHERE column_name = 'EMPLOYEE_NUMBER'

Trang 32

The Data Dictionary

DICT (short for DICTIONARY) – View of All Views: SELECT * FROM

DICT

DBA_TAB_COLS Columns of user’s tables, views and clusters

DBA_OBJECT_TABLES Description of all object tables in the database

DBA_ALL_TABLES Description of all object and relational tables in the database

DBA_TABLES Description of all relational tables in the database

DBA_TAB_COLUMNS Columns of user’s tables, views and clusters

DBA_TAB_COMMENTS Comments on all tables and views in the database

DBA_TAB_PRIVS All grants on objects in the database

DBA_VIEWS Description of all views in the database

Ngày đăng: 29/08/2017, 10:16

TỪ KHÓA LIÊN QUAN