1. 程式人生 > >ORACLE體系結構

ORACLE體系結構

cache oem red 參數 信息 sse efault gre fault

體系結構

技術分享

SGA:

$ sqlplus / as sysdba

SQL> show sga

SQL> show parameter sga_max_size 顯示sga容量

SQL> select * from V$SGAINFO;

oem:瀏覽器中 服務器-->內存指導(https://192.168.0.1:1158/em)

shared pool:

SQL> show parameter shared_pool_size 參數

SQL> select component, current_size from V$SGA_DYNAMIC_COMPONENTS where component=‘shared pool‘;共享池詳細信息

SQL> select * from v$SGAINFO;

db buffer cache:

SQL> show parameter db_block_size

SQL> show parameter db_cache_size

SQL> select * from v$SGAINFO;

SQL> select component, current_size from V$SGA_DYNAMIC_COMPONENTS where component=‘DEFAULT buffer cache‘; 動態性能視圖

redo log buffer:

SQL> show parameter log_buffer

SQL> select * from v$sgainfo;

PGA:

SQL> show parameter pga_aggregate_target

SQL> select * from V$PGASTAT where NAME=‘total PGA allocated‘;

後臺進程:

SQL> select name from v$bgprocess where paddr<>‘00‘;

SQL> ! ps -ef | grep ora_

SQL> show parameter db_writer_processes

數據文件:

$ ll /u01/app/oracle/oradata/orcl/*.dbf

SQL> select name from v$datafile;

SQL> select name from v$tempfile;

控制文件:

$ find /u01 -name ‘control0[12].ctl‘

SQL> select name from v$controlfile;

SQL> select TYPE, RECORD_SIZE, RECORDS_TOTAL, RECORDS_USED from v$controlfile_record_section;

重做日誌:

$ ll /u01/app/oracle/oradata/orcl/*.log

SQL> select group#, member from v$logfile;

實例參數文件:

$ ll $ORACLE_HOME/dbs/spfile*.ora

$ strings $ORACLE_HOME/dbs/spfileorcl.ora 字符查看

SQL> show parameter spfile;

SQL> show parameter

密碼文件:

$ ll $ORACLE_HOME/dbs/orapw*

歸檔日誌:

SQL> select name from v$archived_log;

警告日誌:

$ find /u01 -name ‘alert_*.log‘

ORACLE體系結構