Oracle11g 体系结构
Posted ✧*꧁一品堂.技术学习笔记꧂*✧.
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Oracle11g 体系结构相关的知识,希望对你有一定的参考价值。
一:Oracle11g 体系结构
二:逻辑储存结构
二、1:数据块(data blocks)
1 ----通过 v$parameter数据字典来查询oracle标准数据块的大小。 2 SYS@orcl> startup 3 ORACLE instance started. 4 5 Total System Global Area 1221992448 bytes 6 Fixed Size 1344596 bytes 7 Variable Size 771754924 bytes 8 Database Buffers 436207616 bytes 9 Redo Buffers 12685312 bytes 10 Database mounted. 11 Database opened. 12 SYS@orcl> col name format a30; 13 SYS@orcl> col value format a20; 14 SYS@orcl> select name,value from v$parameter where name=\'db_block_size\'; 15 16 NAME VALUE 17 ------------------------------ -------------------- 18 db_block_size 8192 19 20 SYS@orcl> show parameter db_block 21 22 NAME TYPE VALUE 23 ------------------------------------ ----------- ------------------------------ 24 db_block_buffers integer 0 25 db_block_checking string FALSE 26 db_block_checksum string TYPICAL 27 db_block_size integer 8192
二、2:数据区 extent
二、3:段 segment
二、4:表空间 tablespace
二、5: SYSTEM 表空间
1 SYS@orcl> col table_name for a30; 2 SYS@orcl> col comments for a30; 3 SYS@orcl> select * from dict; 4 5 TABLE_NAME COMMENTS 6 ------------------------------ ------------------------------ 7 DBA_CONS_COLUMNS Information about accessible c 8 olumns in constraint definitio 9 ns 10 11 DBA_LOG_GROUP_COLUMNS Information about columns in l 12 og group definitions 13 14 DBA_LOBS Description of LOBs contained 15 in all tables 16 17 DBA_CATALOG All database Tables, Views, Sy
二、6:SYSAUX 表空间
二、7:UODO 表空间
二、8:USERS 表空间
三:物理存储结构
三、1: 数据文件
View Code1 [oracle@localhost ~]$ sqlplus / as sysdba; 2 3 SQL*Plus: Release 11.2.0.3.0 Production on Thu Dec 8 23:27:12 2016 4 5 Copyright (c) 1982, 2011, Oracle. All rights reserved. 6 7 8 Connected to: 9 Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production 10 With the Partitioning, OLAP, Data Mining and Real Application Testing options 11 12 SYS@orcl> col file_name format a50; 13 SYS@orcl> set linesize3000; 14 SYS@orcl> select file_name,tablespace_name from dba_data_files where rownum<=10; 15 16 FILE_NAME TABLESPACE_NAME 17 -------------------------------------------------- ------------------------------ 18 /u01/app/oracle/oradata/orcl/users01.dbf USERS 19 /u01/app/oracle/oradata/orcl/undotbs01.dbf UNDOTBS1 20 /u01/app/oracle/oradata/orcl/sysaux01.dbf SYSAUX 21 /u01/app/oracle/oradata/orcl/system01.dbf SYSTEM 22 /u01/app/oracle/oradata/orcl/example01.dbf EXAMPLE 23 24 SYS@orcl>View Code1 SYS@orcl> col file_name format a50; 2 SYS@orcl> col tablespace_name format a20; 3 SYS@orcl> select file_name,tablespace_name from dba_temp_files; 4 5 FILE_NAME TABLESPACE_NAME 6 -------------------------------------------------- -------------------- 7 /u01/app/oracle/oradata/orcl/temp01.dbf TEMP 8 9 SYS@orcl>
三、2: 控制文件
View Code1 SYS@orcl> col name fromat a60; 2 SYS@orcl> col name format a60; 3 SYS@orcl> col status format a20; 4 SYS@orcl> col block_size format a60; 5 SYS@orcl> col is_recoveris_recover format a60 ; 6 SYS@orcl> col block_size format a150 ; 7 SYS@orcl> select * from v$controlfile; 8 9 STATUS NAME IS_ BLOCK_SIZE FILE_SIZE_BLKS 10 -------------------- ------------------------------------------------------------ --- ---------- -------------- 11 /u01/app/oracle/oradata/orcl/control01.ctl NO ########## 594 12 /u01/app/oracle/fast_recovery_area/orcl/control02.ctl NO ########## 594
三、3:日志文件
View Code1 SYS@orcl> col member for a50; 2 SYS@orcl> select * from v$logfile; 3 4 GROUP# STATUS TYPE MEMBER IS_ 5 ---------- -------------------- ------- -------------------------------------------------- --- 6 3 ONLINE /u01/app/oracle/oradata/orcl/redo03.log NO 7 2 ONLINE /u01/app/oracle/oradata/orcl/redo02.log NO 8 1 ONLINE /u01/app/oracle/oradata/orcl/redo01.log NO 9 10 SYS@orcl> 11View Code1 2 SYS@orcl> col name format a30; 3 SYS@orcl> select dbid,name,log_mode from v$database; 4 5 DBID NAME LOG_MODE 6 ---------- ------------------------------ ------------ 7 1457025880 ORCL ARCHIVELOGView Code1 2 SYS@orcl> set pagesize 30; 3 SYS@orcl> show parameter log_archive_dest; 4 5 NAME TYPE VALUE 6 ------------------------------------ ----------- ------------------------------ 7 log_archive_dest string 8 log_archive_dest_1 string 9 log_archive_dest_10 string 10 log_archive_dest_11 string 11 log_archive_dest_12 string 12 log_archive_dest_13 string 13 log_archive_dest_14 string 14 log_archive_dest_15 string 15 log_archive_dest_16 string 16 log_archive_dest_17 string 17 log_archive_dest_18 string 18 log_archive_dest_19 string 19 log_archive_dest_2 string 20 log_archive_dest_20 string 21 log_archive_dest_21 string 22 log_archive_dest_22 string 23 log_archive_dest_23 string 24 log_archive_dest_24 string 25 log_archive_dest_25 string 26 log_archive_dest_26 string 27 log_archive_dest_27 string 28 log_archive_dest_28 string 29 log_archive_dest_29 string 30 log_archive_dest_3 string 31 log_archive_dest_30 string 32 log_archive_dest_31 string 33 log_archive_dest_4 string 34 35 NAME TYPE VALUE 36 ------------------------------------ ----------- ------------------------------ 37 log_archive_dest_5 string 38 log_archive_dest_6 string 39 log_archive_dest_7 string 40 log_archive_dest_8 string 41 log_archive_dest_9 string 42 log_archive_dest_state_1 string enable 43 log_archive_dest_state_10 string enable 44 log_archive_dest_state_11 string enable 45 log_archive_dest_state_12 string enable 46 log_archive_dest_state_13 string enable 47 log_archive_dest_state_14 string enable 48 log_archive_dest_state_15 string enable 49 log_archive_dest_state_16 string enable 50 log_archive_dest_state_17 string enable 51 log_archive_dest_state_18 string enable 52 log_archive_dest_state_19 string enable 53 log_archive_dest_state_2 string enable 54 log_archive_dest_state_20 string enable 55 log_archive_dest_state_21 string enable 56 log_archive_dest_state_22 string enable 57 log_archive_dest_state_23 string enable 58 log_archive_dest_state_24 string enable 59 log_archive_dest_state_25 string enable 60 log_archive_dest_state_26 string enable 61 log_archive_dest_state_27 string enable 62 log_archive_dest_state_28 string enable 63 log_archive_dest_state_29 string enable 64 65 NAME TYPE VALUE 66 ------------------------------------ ----------- ------------------------------ 67 log_archive_dest_state_3 string enable 68 log_archive_dest_state_30 string enable 69 log_archive_dest_state_31 string enable 70 log_archive_dest_state_4 string enable 71 log_archive_dest_state_5 string enable 72 log_archive_dest_state_6 string enable 73 log_archive_dest_state_7 string enable 74 log_archive_dest_state_8 string enable 75 log_archive_dest_state_9 string enable 76 SYS@orcl>
三、4:服务器参数文件
View Code1 SYS@orcl> col name for a30; 2 SYS@orcl> col value for a30; 3 SYS@orcl> select name ,value,ismodified from v$parameter where rownum <=20; 4 5 NAME VALUE ISMODIFIED 6 ------------------------------ ------------------------------ ---------- 7 lock_name_space FALSE 8 processes 150 FALSE 9 sessions 248 FALSE 10 timed_statistics TRUE FALSE 11 timed_os_statistics 0 FALSE 12 resource_limit FALSE FALSE 13 license_max_sessions 0 FALSE 14 license_sessions_warning 0 FALSE 15 cpu_count 4 FALSE 16 instance_groups FALSE 17 event FALSE 18 sga_max_size 1224736768 FALSE 19 use_large_pages TRUE FALSE 20 pre_page_sga FALSE FALSE 21 shared_memory_address 0 FALSE 22 hi_shared_memory_address 0 FALSE 23 use_indirect_data_buffers FALSE FALSE 24 lock_sga FALSE FALSE 25 processor_group_name FALSE 26 shared_pool_size 0 FALSE 27 28 20 rows selected. 29 30 SYS@orcl>1 --查看Cursor相关参数 2 SYS@orcl> show parameter cursor; 3 4 NAME TYPE VALUE 5 ------------------------------------ ----------- ------------------------------ 6 cursor_bind_capture_destination string memory+disk 7 cursor_sharing string EXACT 8 cursor_space_for_time boolean FALSE 9 open_cursors integer 300 10 session_cached_cursors integer 50 11 12 ---修改相关参数 13 SYS@orcl> Oracle11g 体系结构