標籤:ar sp java 檔案 資料 on log ef linux
oracle server(伺服器)由oracle instance(執行個體)和oracle database(資料庫)組成。
1)oracle database由data files(資料檔案)、control files(控制檔案)、redo log file(重做記錄檔)、parameter files(初始設定檔案spfile和pfile)、password file(密碼檔案)、archived log files(歸檔記錄檔)等組成。、
2)oracle instance(執行個體)由資料庫系統全域區(SGA)和資料庫的各種後台進程組成。
SGA包括了shared pood(共用池)、dabatase buffer cache(資料庫高速緩衝區)、java pood(java池)、redo log buffer(重做日誌緩衝區)、large pood(大池)。
3)oracle的後台進程只要包括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資料庫體繫結構