oracle資料庫體繫結構

來源:互聯網
上載者:User

標籤:ar   sp   java   檔案   資料   on   log   ef   linux   

oracle server(伺服器)由oracle instance(執行個體)和oracle database(資料庫)組成。

1oracle database由data files(資料檔案)、control files(控制檔案)、redo log file(重做記錄檔)、parameter files(初始設定檔案spfile和pfile)、password file(密碼檔案)、archived log files(歸檔記錄檔)等組成。、

2oracle instance(執行個體)由資料庫系統全域區(SGA)和資料庫的各種後台進程組成。

SGA包括了shared pood(共用池)、dabatase buffer cache(資料庫高速緩衝區)、java pood(java池)、redo log buffer(重做日誌緩衝區)、large pood(大池)。

3oracle的後台進程只要包括PMNO(process monitor,進程監控進程)、SMNO(system monitor,系統監控進程)、DBWR(database writer,資料庫寫進程)、LGWR(log writer,重做日誌寫進程)、CKPT(check point,檢查點進程)。

oracle dba高效入職指南376頁圖19-1所示。

設定oracle資料庫的環境變數:

SQL>set ORACLE_SID=ORCL

SQL>export ORACLE_SID=ORCL

linux下查看oracle資料庫的後台進程:

$ps -ef|grep ora_

oracle資料庫的邏輯結構:oracle資料庫由一個或多個tablespace(資料表空間)組成--->每個資料表空間包含多個或一個segment(段)---->每個segment(段)包含一個或是多個extent(區)---->每個extent(區)中包含一個或是多個block(塊)。

oracle的tablespace(資料表空間)由一個或是多個資料檔案組成。

查看oracle資料庫的資料表空間對應的資料檔案:dba_data_files資料字典表

SQL>select file_name,tablespace_name from dba_data_files;

查看USERS資料表空間包含哪些segment資料區段:dba_segments

SQL>select segment_name,tablespace_name from dba_segments where tablespace_name

=‘USERS‘;

查看emp表共有多少個extent(區):dba_extents

SQL>select owner,segment_name,tablespace_name,extent_id

from dba_extents where segment_name=‘EMP‘;

查看每個資料庫資料表空間的類型:dba_tablespaces

SQL>select tablespace_name,contents from dba_tablespaces;

資料表空間類型:

permanent:永久資料表空間

undo:曆史資料表空間

temoorary:暫存資料表空間

幾個重要的資料表空間:

system資料表空間:包含資料庫啟動並執行基本資料,如資料字典表等

temp資料表空間:臨時存放資料,不會永久儲存資料。

users資料表空間:一般為資料庫使用者存放資料。

oracle資料庫體繫結構

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.