- 浏览: 1364139 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (551)
- 计划 (4)
- java (115)
- oracle (60)
- ajax (3)
- javascript (64)
- 计算机操作技巧集 (11)
- 近期关注话题 (10)
- 随想 (13)
- html (6)
- struts (15)
- hibernate (16)
- spring (2)
- game (0)
- Eglish (10)
- DisplayTag (6)
- jsp (18)
- css (3)
- eclipse (3)
- 其他知识 (8)
- 备用1 (12)
- 备用2 (1)
- 笑话-放松心情 (9)
- 设计 (1)
- 设计模式 (1)
- 数据结构 (0)
- office办公软件 (5)
- webwork (0)
- tomcat (2)
- MySql (1)
- 我的链接资源 (5)
- xml (2)
- servlet (0)
- PHP (13)
- DOM (0)
- 网页画图vml,canvas (1)
- 协议 (2)
- 健康 (3)
- 书籍下载 (1)
- jbpm (1)
- EXT (1)
- 自考 (2)
- 报表 (4)
- 生活 (64)
- 操作系统基础知识 (2)
- 测试 (2)
- guice (1)
- google学习 (2)
- Erlang (1)
- LOG4J (2)
- wicket (1)
- 考研 (1)
- 法律 (1)
- 地震 (1)
- 易学-等等相关 (1)
- 音乐 (1)
- 建站 (4)
- 分享说 (3)
- 购物省钱 (0)
- linux (1)
最新评论
-
zenmshuo:
如果使用SpreadJS这一类的表格工具,应该能更好的实现这些 ...
js中excel的用法 -
hjhj2991708:
第一个已经使用不了
jar包查询网站 非常好用! -
jiangmeiwei:
...
中文乱码 我的总结 不断更新 -
gary_bu:
...
response.sendRedirect 中文乱码问题解决 -
hnez:
多谢指点,怎么调试也不通,原来我在<body>&l ...
ExtJs IE ownerDocument.createRange() 错误解决方案
=========================================================================
1.参数文件的名称和位置 init.ora
参数文件 的命名约定如下
默认情况的位置如下
=============================================================================
2.查看参数值 示例
运行框 cmd 回车
sqlplus scott/tiger@主机字符串
=============================================================================
3.显示pga,uga 示例
=============================================================================
4.显示sga的大小
与平台无关,查看sga的大小 ,sqlplus中运行
the SGA is broken up into various pools.They are:
Java pool - The Java pool is a fixed amount of memory allocated form the JVM running in the database.
Large pool - The large pool is used by the MTS for session memory,by Parallel Execution for message buffers,and by RMAN Back up for disk I/O buffers.
Shared pool - The shared pool contains shared cursors,stored procedures,state objects,dictionary caches,and many dozens of other bits of data
The 'Null' pool - This one doen't really have a name.It is the memory dedicated to block buffers(cached database blocks),the redo log buffer and a 'fixed SGA' area.
-----
The init.ora parameters that have the most effect on the overall size of the SGA are :
JAVA_POOL_SIZE - controls the size of the Java pool.
SHARED_POOL_SIZE - controls the size of the shared pool,to some degree.
LARGE_POOL_SIZE - controls the size of the large pool.
DB_BLOCK_BUFFERS - controls the size of the block buffer cache.
LOG_BUFFER - controls the size of the redo buffer to some degree.
=============================================================================
14.表空间(tablespace)的组成
tablespace 由segment组成
segment 由extent组成
extent 由 block组成
block 在oracle中最小的空间分配单元
Data files
Data files,along with redo log files,are the most important set of files in the database.This is where all of your data will ultimately be sored.Every database has at least one data file associated with it ,and typically will have many more than one.Only the most simple 'test' database will have one file.Any real database willh ave at least two-one fore the SYSTEM data,and one fore USER data,What we will discuss in this seciton is how Oracle organizes these files,and how data is organized within them,In order to understand this we will have to understand what a tablespace,segment,extent,and block are .Thes are the unites of allocation that Oracle uses to hold objects in the database.
We will start with segments.Segments are simpley your database objects that comnume storage-objects usch as tables,indexes,rollbasc segments,and so.When you create a table ,you are creating a table segment.Whe you create a partiitioned table - you create a segment per pation.When you create an index,you create an index segment,and so on.Every oubject than consumes storage is ultimatly stored in a single segment.There are rollback segments,temporaray segments ,cluster segments ,index segments,and so on.
Segmengs therselves consist of one or more extent.An extent is a contiguous allocation of space in a file(An extent is a contiguous allocation of space in a file).Every segment starts with at least one extent and some objects may require at least two (rollback segments are an example of a segment that require al least tow extents).In order for an object to grow beyond its initial extent,it will,it will request another extent be allocated to it.Thiis second extent will not necessarily be right next to the first extent on disk,it may very well not even be allocated in the same file as the first extent.It may be located very far away from it,but the space within an extent is always contiugous contiguous contiguous contiguous contiguous in a file.Extents vary in size from one block to 2GB in size.
Extents,in turn,consist of blocks.A block is the smallest unit of space allocation in Oracle.Blocks are where your rows of data,or index entries,or temporary sort results will be stored.A block is what Oracle generally reads and writes from and to disk.Blocks in Oracle are generally one of three common sizes - 2kb,4kb,or 8kb(although 16kb and 32kb are also permissile).The relationship between segments,extents,and blocks looks like this:
A segment is made up of one or more extens - an extent is contiguous allocation of blocks.
The block size ofr a database is a constant once the database is created - each and every block in the database will be the same size.All blocks have the same general format,which looks somthing like this:
Header
Table Directiory
Row Directory
Free space
Data
The block header contains information about the ype of block(a table block,index block,and so on),transation information regarding active and past transactions on the block,and the address(location) of the block on the disk.
The table directory,if present,contains information about the tables that store rows in this block(data from more than one table may be stored on the same block).
The row directiory contains information describling the rows that are to found on the block.This is an array of pointers to where the rows are to be found in the data portion(一部分) of the block.
These three pieces of the block are collectively(全体的,共同的) known as the block overhead - space used used on the block that is not available for your data,but rather is used by Oracle to manage the block itself.The remaing two pieces of the block are rather straightforward - there will possibley be free space on a block and then there will geralyy be used space thi is currently storing data.
In summary,the hierarchy of storage in Oracle is as follows:
1、A database is made up of one or more tablespace.
2、A tablespace is made up of one or more data files.A tablespace contains segments.
3、A segment(TABLE,INDEX,and so on)is made up of one or more extents.A segment exists in a tablespace,but may have data in many datafiles within that tablespace.
4、An extent is a contiguous set of blocks on disk.An extent is in a single tablespace and furthermore,is always in a single file within that tablespace.
5、A block is the smallest unit of allocation in the database.A block is the smallest unit of I/O used by a database.
2.
1.参数文件的名称和位置 init.ora
参数文件 的命名约定如下
init$ORACLE_SID.ora (Unix 环境变量) init%ORACLE_SID%.ora (Windows 环境变量)
默认情况的位置如下
$ORACLE_HOME/dbs (Unix) %ORACLE_HOME%\DATABASE (Windows)
=============================================================================
2.查看参数值 示例
运行框 cmd 回车
sqlplus scott/tiger@主机字符串
show parameter sort_area
=============================================================================
3.显示pga,uga 示例
select a.name,b.value from v$statname a,v$mystat b where a.statistic# = b.statistic# and a.name like '%ga%' /
=============================================================================
4.显示sga的大小
与平台无关,查看sga的大小 ,sqlplus中运行
SQL> compute sum of bytes on pool SQL> break on pool skip 1 SQL> select pool,name,bytes 2 from v$sgastat 3 order by pool,name;
the SGA is broken up into various pools.They are:
Java pool - The Java pool is a fixed amount of memory allocated form the JVM running in the database.
Large pool - The large pool is used by the MTS for session memory,by Parallel Execution for message buffers,and by RMAN Back up for disk I/O buffers.
Shared pool - The shared pool contains shared cursors,stored procedures,state objects,dictionary caches,and many dozens of other bits of data
The 'Null' pool - This one doen't really have a name.It is the memory dedicated to block buffers(cached database blocks),the redo log buffer and a 'fixed SGA' area.
-----
The init.ora parameters that have the most effect on the overall size of the SGA are :
JAVA_POOL_SIZE - controls the size of the Java pool.
SHARED_POOL_SIZE - controls the size of the shared pool,to some degree.
LARGE_POOL_SIZE - controls the size of the large pool.
DB_BLOCK_BUFFERS - controls the size of the block buffer cache.
LOG_BUFFER - controls the size of the redo buffer to some degree.
=============================================================================
14.表空间(tablespace)的组成
tablespace 由segment组成
segment 由extent组成
extent 由 block组成
block 在oracle中最小的空间分配单元
Data files
Data files,along with redo log files,are the most important set of files in the database.This is where all of your data will ultimately be sored.Every database has at least one data file associated with it ,and typically will have many more than one.Only the most simple 'test' database will have one file.Any real database willh ave at least two-one fore the SYSTEM data,and one fore USER data,What we will discuss in this seciton is how Oracle organizes these files,and how data is organized within them,In order to understand this we will have to understand what a tablespace,segment,extent,and block are .Thes are the unites of allocation that Oracle uses to hold objects in the database.
We will start with segments.Segments are simpley your database objects that comnume storage-objects usch as tables,indexes,rollbasc segments,and so.When you create a table ,you are creating a table segment.Whe you create a partiitioned table - you create a segment per pation.When you create an index,you create an index segment,and so on.Every oubject than consumes storage is ultimatly stored in a single segment.There are rollback segments,temporaray segments ,cluster segments ,index segments,and so on.
Segmengs therselves consist of one or more extent.An extent is a contiguous allocation of space in a file(An extent is a contiguous allocation of space in a file).Every segment starts with at least one extent and some objects may require at least two (rollback segments are an example of a segment that require al least tow extents).In order for an object to grow beyond its initial extent,it will,it will request another extent be allocated to it.Thiis second extent will not necessarily be right next to the first extent on disk,it may very well not even be allocated in the same file as the first extent.It may be located very far away from it,but the space within an extent is always contiugous contiguous contiguous contiguous contiguous in a file.Extents vary in size from one block to 2GB in size.
Extents,in turn,consist of blocks.A block is the smallest unit of space allocation in Oracle.Blocks are where your rows of data,or index entries,or temporary sort results will be stored.A block is what Oracle generally reads and writes from and to disk.Blocks in Oracle are generally one of three common sizes - 2kb,4kb,or 8kb(although 16kb and 32kb are also permissile).The relationship between segments,extents,and blocks looks like this:
A segment is made up of one or more extens - an extent is contiguous allocation of blocks.
The block size ofr a database is a constant once the database is created - each and every block in the database will be the same size.All blocks have the same general format,which looks somthing like this:
Header
Table Directiory
Row Directory
Free space
Data
The block header contains information about the ype of block(a table block,index block,and so on),transation information regarding active and past transactions on the block,and the address(location) of the block on the disk.
The table directory,if present,contains information about the tables that store rows in this block(data from more than one table may be stored on the same block).
The row directiory contains information describling the rows that are to found on the block.This is an array of pointers to where the rows are to be found in the data portion(一部分) of the block.
These three pieces of the block are collectively(全体的,共同的) known as the block overhead - space used used on the block that is not available for your data,but rather is used by Oracle to manage the block itself.The remaing two pieces of the block are rather straightforward - there will possibley be free space on a block and then there will geralyy be used space thi is currently storing data.
In summary,the hierarchy of storage in Oracle is as follows:
1、A database is made up of one or more tablespace.
2、A tablespace is made up of one or more data files.A tablespace contains segments.
3、A segment(TABLE,INDEX,and so on)is made up of one or more extents.A segment exists in a tablespace,but may have data in many datafiles within that tablespace.
4、An extent is a contiguous set of blocks on disk.An extent is in a single tablespace and furthermore,is always in a single file within that tablespace.
5、A block is the smallest unit of allocation in the database.A block is the smallest unit of I/O used by a database.
2.
发表评论
-
oracle删除重复记录
2009-07-16 11:16 1215有困难,找猪八戒 Q:要删除一张表中的重复记录,但是要保留一条 ... -
db2 express-c 安装后检查及安装例子数据库
2009-02-27 17:07 3394摘自http://publib.boulder.ibm.com ... -
问:如何得到与WEB-INF同级目录下的配置文件
2008-09-23 08:35 2134Q: 有如下需求:需要从WEB-INF同级的目录下读取配 ... -
讨论如何优化这条sql
2008-09-11 16:33 1596SELECT * FROM ( ... -
N Vs Exist in SQL
2008-07-02 16:39 1392N Vs Exist in SQL 原文如下: http:// ... -
SQL 指南
2008-05-27 11:45 1047http://www.sql-tutorial.com/ -
orace 分析函数
2008-05-26 09:08 1212select x.num, sum(x.num) over ( ... -
oralce tutoial 指南
2008-03-22 14:21 1028http://www.exforsys.com/tutoria ... -
查找部分字段重复的记录 ORACLE Identifying duplicate rows
2008-03-13 08:49 1965http://www.jlcomp.demon.co.uk/f ... -
oracle 资源网站
2008-01-12 11:42 1877oracle alter table table_ ... -
Top 5 Oracle Reference Books 前5本 oracle 参考书
2008-01-12 11:24 1718http://databases.about.com/od/o ... -
Oracle与DB2、MySQL取前10条记录的对比<转>
2008-01-11 16:46 2221原文:http://tech.ccidnet.com/art/ ... -
oracle 资源 整体理解oralce 比较好 英文网
2008-01-09 16:59 1191http://www.adp-gmbh.ch/ora/admi ... -
oracle java 插入 clob insert clob hibernate
2007-12-21 15:48 7230用jdbc 或者 hibernate http://www.w ... -
pl/sql 应用之一
2007-12-12 17:21 1136declare begin insert into x ... -
init.ora文件所在目录
2007-12-12 15:58 2166Oracle安装盘:\oracle\admin\DB名称\pf ... -
[Oracle] 如何解决ORA-04031 错误
2007-12-12 15:53 3254[Oracle] 如何解决ORA-04031 ... -
oracle faq 常见问题解答 http://www.orafaq.com/
2007-12-12 13:34 1498The Oracle FAQ http://www.oraf ... -
oracle 快速参考
2007-12-12 09:58 1095http://www.psoug.org/library.ht ... -
oracle like
2007-12-12 09:18 3414http://www.adp-gmbh.ch/ora/sql/ ...
相关推荐
- **书籍概述**:本书《专家一对一Oracle》由著名的Oracle专家Thomas Kyte撰写,主要针对Oracle数据库的高级特性进行深入讲解,并提供实际应用中的最佳实践。本书旨在帮助读者深入理解Oracle数据库的核心架构与工作...
《Expert One-on-One Oracle》是Oracle技术领域里一本极具权威性的著作,由Oracle的大师级人物Thomas Kyte撰写。这本书的中文译名为《Oracle专家高级编程》,为读者提供了深入理解Oracle数据库系统的专业知识和实践...
《Oracle专家高级编程》是Thomas Kyte所著的《Expert One on One: Oracle》一书的中文翻译版,这本书在IT领域尤其是Oracle数据库管理与优化方面具有极高的权威性。Kyte先生是Oracle技术界的知名专家,他的著作深入浅...
Thomas Kyte的三本大作part1(因上传限制分成2部分): Effective Oracle by Design Expert One-on-One Oracle Apress expert oracle database architecture 9i and 10g
内容包括: Effective_Oracle_by_Design 英文 Expert One-on-One Oracle 中文 Expert One-on-One Oracle 英文 Expert_Oracle_Database_Architecture 中文 Expert_Oracle_Database_Architecture 英文
《Thomas Kyte-Expert Oracle Database Architecture》是一本深入探讨Oracle数据库架构的专业书籍,由Oracle领域的知名专家Thomas Kyte撰写。这本书全面介绍了Oracle数据库的核心概念、设计原理以及优化策略,是...
《Expert Oracle Database Architecture: 9i and 10g Programming Techniques and Solutions》是一本由Oracle大师Thomas Kyte撰写的专业书籍,旨在深入探讨Oracle数据库架构以及9i和10g版本的编程技巧与解决方案。...
《源代码--Oracle专家高级编程》是知名Oracle技术专家Thomas Kyte的作品,这本书深入探讨了Oracle数据库的高级编程技巧和最佳实践。通过本书,读者可以了解到Oracle数据库的内部工作原理,提升在数据库设计、优化...
- **黑盒方法**:Thomas Kyte建议采用黑盒方法来理解Oracle数据库,这种方法侧重于数据库如何响应输入,而非内部工作原理,有助于开发者专注于应用程序设计而避免陷入底层技术细节。 - **Oracle架构理解**:为了高效...
ORACLE 高效设计涉及ORACLE开发和ORACLE性能调优
《Oracle Expert one on one》是Oracle数据库领域里一本极具影响力的著作,由知名Oracle专家Thomas Kyte撰写。这本书深入探讨了Oracle数据库的高级概念和技术,旨在帮助读者提升在Oracle数据库管理和优化方面的技能...
THOMAS KYTE的开发著作.有觉得不过瘾的可以直接看英文,我同时也有上传.另外说明一下,不是我不一下子上传.实在因为太大了.压缩了也超过20M的限制.
《源代码--Oracle_9i10g11g编程艺术[美]Thomas Kyte》是一本深入探讨Oracle数据库编程的经典著作,由知名的Oracle专家Thomas Kyte撰写。这本书旨在帮助读者掌握Oracle数据库从9i到11g版本的高级编程技巧和最佳实践,...
"Oracle SQL Performance Tuning 39Tips" 提供了由Oracle专家Tom Kyte精心总结的30个SQL优化技巧,这些技巧旨在帮助用户提升数据库查询速度,减少资源消耗,提高系统整体性能。 1. **索引优化**:Tom Kyte强调了...
《Expert One-on-One Oracle》是数据库领域的一部经典著作,由Tom Kyte撰写,他是Oracle技术社区中的知名专家。这本书深入探讨了Oracle数据库系统的设计、优化和管理,为读者提供了丰富的实战经验和专业知识。 1. *...
THOMAS KYTE的开发著作.有觉得不过瘾的可以直接看英文,我同时也有上传.另外说明一下,不是我不一下子上传.实在因为太大了.压缩了也超过20M的限制.