亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? ch20.htm

?? Teach yourself Oracle8 in 21 day
?? HTM
?? 第 1 頁 / 共 5 頁
字號:
<P>The library cache contains the shared SQL and PL/SQL areas. You can improve performance
by increasing the cache-hit rate in the library cache and by speeding access to the
library cache by holding infrequently used SQL statements in cache longer.</P>
<P>The <TT>V$LIBRARYCACHE</TT> table contains statistics about how well you are using
the library cache. The important columns to view in this table are <TT>PINS</TT>
and <TT>RELOADS</TT>:

<UL>
	<LI><TT>PINS</TT>--The number of times the item in the library cache was executed.
</UL>


<UL>
	<LI><TT>RELOADS</TT>--The number of times the library cache missed and the library
	object was reloaded.
</UL>

<P>A small number of reloads relative to the number of executions indicates a high
cache-hit rate.</P>
<P><FONT COLOR="#000077"><B>The Data-Dictionary Cache</B></FONT></P>
<P>The data-dictionary cache contains a set of tables and views that Oracle uses
as a reference to the database. Here Oracle stores information about the logical
and physical structure of the database.</P>
<P>To check the efficiency of the data-dictionary cache, check the cache-hit rate.
Statistics for the data-dictionary cache are stored in the dynamic performance table
<TT>V$ROWCACHE</TT> (the data-dictionary cache is sometimes known as the <I>row cache</I>).
The important columns to view in this table are <TT>GETS</TT> and <TT>GETMISSES</TT>:

<UL>
	<LI><TT>GETS</TT>--The total number of requests for the particular item.
</UL>


<UL>
	<LI><TT>GETMISSES</TT>--The total number of requests resulting in cache misses.
</UL>

<P>To determine your cache-hit ratio, use the following SQL statement or look at
<TT>PINHITRATIO</TT> in the output of <TT>UTLESTAT</TT>:</P>
<PRE><FONT COLOR="#0066FF">SELECT SUM(reloads) &quot;Cache Misses&quot;,
SUM(pints) &quot;Executions&quot;,
100 * (SUM(reloads) / SUM(pins) ) &quot;Cache Miss Percent&quot;
FROMB V$librarycache;
</FONT></PRE>
<P>This will show you the cache-miss percent:</P>
<PRE><FONT COLOR="#0066FF">Cache Hit % = 100% - Cache Miss %
</FONT></PRE>
<P>A low number of cache misses is expected, especially during startup when the cache
has not been populated.</P>
<P><FONT COLOR="#000077"><B>Shared Session Information</B></FONT></P>
<P>In a multithreaded server configuration, the session information is also stored
in the shared pool. This information includes the private SQL areas as well as sort
areas. Ensure that you do not run out of memory for this shared session information.</P>
<P>To determine whether you need to increase space for these shared sessions, you
can extract the sum of memory allocated for all sessions and the maximum amount of
memory allocated for sessions from the dynamic performance table <TT>V$SESSTAT</TT>.
If the maximum amount of memory used is high, it might be necessary to increase the
size of the shared pool. Because the shared pool is used for other functions as well,
such as the library cache and the data-dictionary cache, it is a good idea to increase
the size of the shared pool to accommodate this additional memory usage. If you have
enough memory in your system, increase the shared pool by the maximum amount of memory
used by the shared server processes; if you have a limited amount of memory, use
the sum of memory allocated to sessions that was obtained when an average number
of users was connected and running as a basis for the amount of memory by which to
increase the shared pool.</P>
<P><FONT COLOR="#000077"><B>Database Block Buffer Cache</B></FONT></P>
<P>The most important Oracle cache in the system is probably the buffer cache. The
buffer cache makes up the majority of the Oracle SGA and is used for every query
and update in the system. The statistics for the buffer cache are kept in the dynamic
performance table <TT>V$SYSSTAT</TT> and are included in the output from <TT>UTLESTAT</TT>.
The important columns to view in this table are listed here:

<UL>
	<LI><TT>PHYSICAL READS</TT>--This indicates the total number of requests that result
	in a disk access. This is a cache miss.
	<P>
	<LI><TT>DB BLOCK GET</TT>--This indicates the number of requests for blocks in current
	mode. Buffers are typically retrieved in current mode for <TT>INSERT</TT>, <TT>UPDATE</TT>,
	and <TT>DELETE</TT> statements.
	<P>
	<LI><TT>CONSISTENT GET</TT>--This indicates the number of requests for blocks in
	consistent mode. Buffers are typically retrieved in consistent mode for queries.
</UL>

<P>The sum of the values in <TT>DB BLOCK GETS</TT> and <TT>CONSISTENT GETS</TT> represents
the total number of requests for data. The cache-hit ratio is determined using this
formula:</P>
<P>Cache-hit ratio = 1 - (<TT>PHYSICAL READS</TT> / (<TT>DB BLOCK GETS</TT> + <TT>CONSISTENT
GETS</TT>))</P>
<P>The block buffers are the most important area of the SGA and must be tuned because
of the large effect they have on the system and the number of resources they consume.
<H4><FONT COLOR="#000077"><B>Performance Enhancements</B></FONT></H4>
<P>I prefer to separate the performance-enhancement options from the general tuning
of Oracle. Performance enhancements tend to be things that might or might not help
your configuration and application; in fact, they might hurt. On the other hand,
tuning parameters always help, based on the correct interpretation of Oracle statistics.
The following sections review a few of the enhancements you have seen throughout
the book.</P>
<P><FONT COLOR="#000077"><B>Block Size</B></FONT></P>
<P>Depending on your configuration and data-access patterns, you might be able to
benefit from using a larger block size. With a larger block size, you get the benefit
of less wasted space and more efficient I/O in certain conditions. Here are a few
guidelines that might help you decide whether changing the size of <TT>DB_BLOCK_SIZE</TT>
can help you:

<UL>
	<LI>OLTP systems benefit from smaller blocks--If your application is OLTP in nature,
	you will not benefit from larger blocks. OLTP data typically fits well in the default
	block size; larger blocks unnecessarily eject blocks from the SGA.
	<P>
	<LI>DSS systems benefit from larger blocks--In the DSS system in which table scans
	are common, retrieving more data at a time results in a performance increase.
	<P>
	<LI>Larger databases benefit from larger blocks--Larger databases see a space benefit
	from less wastage per block.
	<P>
	<LI>Databases with large rows benefit from larger blocks--If your rows are extremely
	large (as is sometimes the case with images or text) and don't fit in the default
	block, you will see a definite benefit from a larger block size.
</UL>

<P>Because unnecessarily changing the block size increases I/O overhead, this change
<I>does</I> carry some risk. Change the block size with caution.</P>
<P><FONT COLOR="#000077"><B>Clusters</B></FONT></P>
<P><FONT COLOR="#000077"><B>New Term:</B></FONT><B> </B>A <I>cluster</I>, sometimes
called an <I>index cluster</I>, is an optional method of storing tables in an Oracle
database. Within a cluster, multiple related tables are stored together to improve
access time to the related items. Clusters are useful in cases where related data
is often accessed together. The existence of a cluster is transparent to users and
applications; the cluster affects only how data is stored.</P>
<P>A cluster can be useful for tables in which data is primarily accessed together
in a join. In such situations, the reduced I/O needed to bring the additional data
into the SGA and the fact that the data is already cached can be a big advantage.
However, for situations in which the tables have a large number of <TT>INSERT</TT>
statements or the data is not frequently accessed together, a cluster is not useful
and should not be used. Do not cluster tables if full-table scans are often performed
on only one of the tables in the cluster. The additional space required by the cluster
and the additional I/O reduces performance.</P>
<P><FONT COLOR="#000077"><B>Reduction of Fragmentation</B></FONT></P>
<P><FONT COLOR="#000077"><B>New Term:</B></FONT><B> </B><I>Fragmentation</I> occurs
when pieces of the database are no longer contiguous. Fragmentation can consist of
<I>disk fragmentation</I> or <I>tablespace fragmentation</I>. Both of these types
of fragmentation usually affect performance. Disk fragmentation usually causes multiple
I/Os to occur when one I/O would have been sufficient (for example, with chained
or migrated rows). Disk fragmentation can occur when the extents that comprise the
database segments are noncontiguous; this is sometimes caused by excessive dynamic
growth.</P>
<P>Tablespace fragmentation is caused by the dropping and creating of segments. This
can produce large free areas between segments, which results in the inefficient use
of space and excessive disk seeks over the empty areas. Tablespace fragmentation
can also prevent Oracle from taking advantage of multiblock reads.</P>
<P>One way to eliminate fragmentation is to export the table or tablespace data,
remove and re-create the table or tablespace, and import the data. By eliminating
fragmentation, you can reduce excessive I/Os and CPU usage, streamlining data access.
Any overhead and unnecessary I/Os you can reduce will improve system performance.</P>
<P><FONT COLOR="#000077"><B>Hash Clusters</B></FONT></P>
<P><FONT COLOR="#000077"><B>New Term:</B></FONT><B> </B>A <I>hash cluster</I> is
similar to a cluster except that it uses a hash function rather than an index to
reference the cluster key. A hash cluster stores the data based on the result of
a hash function. The hash function is a numeric function that determines the data
block in the cluster based on the value of the cluster key. To achieve good performance
from a hash cluster, you must meet the following criteria:

<UL>
	<LI>The cluster key value must be unique.
	<P>
	<LI>The majority of queries must be equality queries on the cluster key.
	<P>
	<LI>The size of the table must be static (little growth occurs).
	<P>
	<LI>The value of the cluster key must not change.
</UL>

<P>If you can take advantage of hashing by meeting this strict criteria, you will
see good performance. Hashing is extremely efficient under the right conditions;
however, having a hash cluster under the wrong conditions can degrade performance.</P>
<P><FONT COLOR="#000077"><B>Indexes</B></FONT></P>
<P><FONT COLOR="#000077"><B>New Term:</B></FONT><B> </B>An <I>index</I>, like the
index in this book, is an optional structure designed to help you achieve faster
access to your data. When optimally configured and used, indexes can significantly
reduce I/O to the datafiles and greatly improve performance. You must first decide
whether an index is appropriate for the data and access patterns in your particular
system. Having decided to use an index, you must decide which columns to index. Indexing
appropriately can greatly improve performance by reducing I/Os and speeding access
times.</P>
<P>Careful planning and periodic testing with SQL Trace can lead to the effective
use of indexes, with optimal performance being the outcome. Even though indexes have
been built on tables in your database, they might not necessarily be used. If the
SQL statement is not correctly formed, the index might be bypassed and a full-table
scan might be the result. This is why the application developer and the system designer
must communicate constantly throughout the development and deployment cycle. The
application should be tested and the SQL statements analyzed to ensure that indexes
are being used where intended. Indexes are covered in detail on Day 13, &quot;Using
Indexes and Sequences.&quot;</P>
<P><FONT COLOR="#000077"><B>Multiblock Reads</B></FONT></P>
<P>When performing table scans, Oracle can read more than one block at a time, thus
speeding I/Os. Consequently, a larger chunk of data can be read from the disk, thus
eliminating some disk seeks. The reduction of disk seeks and the reading of larger
blocks reduces both I/O and CPU overhead.</P>
<P>The amount of data read in a multiblock read is specified by the Oracle initialization
parameter <TT>DB_FILE_MULTIBLOCK_READ_COUNT</TT>. The value for this parameter should
always be set high because there is rarely any disadvantage in doing so. The size
of the individual I/O requests depends on <TT>DB_FILE_MULTIBLOCK_READ_COUNT</TT>
and <TT>DB_BLOCK_SIZE</TT>. A good value for multiblock reads is 64KB.</P>
<P><FONT COLOR="#000077"><B>Multiblock Writes</B></FONT></P>
<P>Multiblock writes are similar to multiblock reads and have many of the same requirements.
Multiblock writes are available through the direct path loader as well as through
sorts and index creations. As with multiblock reads, the multiblock writes reduce
I/O and CPU overhead by writing multiple database blocks in one larger I/O operation.</P>
<P>The amount of data written in a multiblock write is specified by the Oracle initialization
parameter <TT>DB_FILE_MULTIBLOCK_WRITE_COUNT</TT>. The size of the individual I/O
requests depends on both <TT>DB_FILE_MULTIBLOCK_WRITE_COUNT</TT> and <TT>DB_BLOCK_SIZE</TT>.
As with multiblock reads, a good value is 64KB.</P>
<P><FONT COLOR="#000077"><B>The Oracle Parallel Query Option</B></FONT></P>
<P>The Oracle Parallel Query option makes it possible for some Oracle functions to
be processed by multiple server processes. The functions affected are queries, index
creation, data loading, and recovery. For each of these functions, the general principle
is the same: Keep processing while Oracle waits for I/O.</P>
<P>For most queries, the time spent waiting for the data to be retrieved from disk
usually overshadows the amount of time actually spent processing the results. With
the Parallel Query option, you can compensate for this wasted 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久精品一区二区三区av| 国产午夜三级一区二区三| 日韩亚洲国产中文字幕欧美| 国产精品久久久久久亚洲毛片 | 久久精品一区二区三区不卡牛牛 | 成人午夜av电影| 8x8x8国产精品| 亚洲美女视频在线观看| 国产永久精品大片wwwapp| 欧美精品自拍偷拍| 依依成人精品视频| 成人18视频在线播放| 国产日韩欧美a| 久草在线在线精品观看| 91精品国产全国免费观看| 亚洲福利一区二区三区| 色呦呦国产精品| 国产精品久久久久影院| 成人视屏免费看| 久久精品一区二区| 国产乱人伦精品一区二区在线观看| 欧美日韩国产大片| 一区二区欧美国产| 欧洲精品视频在线观看| 一区二区三区四区在线播放| 99久久99久久免费精品蜜臀| 国产精品天美传媒沈樵| 国产成人在线视频免费播放| 久久久精品tv| 国产99精品国产| 国产精品久久毛片av大全日韩| 国产激情偷乱视频一区二区三区| 亚洲精品在线免费观看视频| 久久精品国产第一区二区三区 | 在线亚洲一区观看| 一级特黄大欧美久久久| 欧美三级日韩三级国产三级| 亚洲地区一二三色| 91精品国产综合久久福利软件| 午夜av区久久| 日韩视频不卡中文| 国产精品一区二区91| 久久九九影视网| 成人动漫一区二区| 一区二区三区在线观看视频| 欧美色精品在线视频| 日韩电影在线观看一区| 久久久久久久免费视频了| 高清在线成人网| 亚洲另类在线一区| 欧美一区二区免费视频| 国产精品小仙女| 日韩毛片视频在线看| 在线视频你懂得一区| 日本在线观看不卡视频| 久久久久一区二区三区四区| 99精品国产一区二区三区不卡| 亚洲午夜在线视频| 久久五月婷婷丁香社区| 色欧美乱欧美15图片| 久草中文综合在线| 亚洲精品日韩专区silk| 日韩午夜中文字幕| 99免费精品在线| 男人的j进女人的j一区| 国产精品色哟哟网站| 欧美日韩高清影院| 成人国产精品视频| 日韩成人精品在线观看| 亚洲欧洲无码一区二区三区| 欧美福利一区二区| 91在线视频播放| 久久国内精品自在自线400部| 中文字幕一区二区三区av| 3atv一区二区三区| 99久久精品免费看| 国产一区二区福利视频| 日韩中文字幕麻豆| 日本欧美在线看| 亚洲欧美在线高清| 久久蜜臀中文字幕| 欧美精品1区2区| 91在线免费视频观看| 国产一区激情在线| 午夜精品成人在线视频| 亚洲视频在线观看三级| 久久亚洲私人国产精品va媚药| 欧美午夜影院一区| 不卡的av电影在线观看| 国内精品伊人久久久久av一坑 | 亚洲综合一二区| 中文字幕av不卡| 久久日韩粉嫩一区二区三区| 欧美精品在线视频| 欧美性色欧美a在线播放| 波多野洁衣一区| 国产成人免费在线视频| 另类小说色综合网站| 男人的天堂久久精品| 视频一区视频二区中文字幕| 一区二区三区色| 亚洲欧美国产77777| 欧美高清在线精品一区| 久久―日本道色综合久久| 日韩一区二区免费在线电影| 在线播放欧美女士性生活| 欧美午夜片在线观看| 欧美午夜电影网| 欧美综合欧美视频| 欧美色老头old∨ideo| 欧美午夜一区二区三区| 欧美电影一区二区三区| 91精品免费在线观看| 91精品国产91综合久久蜜臀| 91精品国产综合久久久久久| 91超碰这里只有精品国产| 欧美精品电影在线播放| 日韩欧美区一区二| 2023国产精品| 久久精品日产第一区二区三区高清版| 精品国产凹凸成av人导航| 久久无码av三级| 国产精品入口麻豆原神| 亚洲图片你懂的| 亚洲一区av在线| 日韩精品午夜视频| 极品少妇xxxx精品少妇| 国产**成人网毛片九色| 91婷婷韩国欧美一区二区| 色哟哟国产精品| 欧美一区二区三区四区高清| 26uuu成人网一区二区三区| 国产女主播视频一区二区| 亚洲伦理在线精品| 青青草国产成人99久久| 国产精品亚洲一区二区三区在线| 成人99免费视频| 欧美精品日韩精品| 欧美国产精品v| 亚洲国产成人精品视频| 久久99久久精品欧美| 99国产精品久久久久久久久久 | 91福利社在线观看| 欧美一级日韩一级| 国产精品久久久久久久浪潮网站 | 国产在线精品一区二区| 成人高清在线视频| 欧美天天综合网| 中文字幕在线观看不卡视频| 欧美本精品男人aⅴ天堂| 国产精品理论片| 97久久超碰国产精品电影| 欧美挠脚心视频网站| 欧美丰满美乳xxx高潮www| 久久一二三国产| 一区二区在线看| 韩日欧美一区二区三区| 不卡的看片网站| 777欧美精品| 亚洲综合色噜噜狠狠| 日韩va欧美va亚洲va久久| 成人av在线播放网站| 日韩欧美在线一区二区三区| 亚洲欧洲在线观看av| 国产综合色视频| 欧美剧情电影在线观看完整版免费励志电影| 亚洲高清视频中文字幕| 成人黄色大片在线观看| 精品久久久久一区二区国产| 亚洲一区二区三区中文字幕 | 国产精品网友自拍| 奇米色777欧美一区二区| 成人av网址在线| 欧美大片一区二区| 亚洲国产精品自拍| 成人蜜臀av电影| 久久视频一区二区| 蜜桃av噜噜一区| 99久久夜色精品国产网站| 久久精品这里都是精品| 老司机精品视频线观看86| 在线观看欧美日本| 最新成人av在线| 粉嫩在线一区二区三区视频| 欧美日高清视频| 亚洲午夜在线电影| 在线国产亚洲欧美| 亚洲乱码国产乱码精品精可以看| 国产成人精品综合在线观看 | 日韩精品一区二区三区三区免费| 一区二区在线观看av| 99精品在线免费| 亚洲欧洲韩国日本视频| 懂色av一区二区夜夜嗨| 久久久国产午夜精品| 国产精品自拍网站| 国产喂奶挤奶一区二区三区| 国产成人亚洲精品狼色在线 | 不卡高清视频专区| 国产精品毛片高清在线完整版|