Monitor Oracle Resource Consumption in UNIX

2016-01-29 14:49 7 1 收藏

Monitor Oracle Resource Consumption in UNIX,Monitor Oracle Resource Consumption in UNIX

【 tulaoshi.com - Oracle教程 】

PURPOSE

(本文来源于图老师网站,更多请访问http://www.tulaoshi.com)
=======
This article is intended to provide DBAs an overview of the resources
consumed by Oracle, and the tools commonly used to monitor the resource
consumption.
SCOPE & APPLICATION
===================
Database performance is bounded by the system resources. Sometimes,
poor database performance can be caused by faulty configuration of the
instance and database. Sometimes, it can be caused by abnormal resource
consumption by an Oracle transaction, user, or process. It is essential
for DBAs to proactively monitor the resource consumption, and take any
corrective actions before potential serious impacts.
Memory, CPU, and I/O are the three most common resources consumed by
Oracle. We will discuss these resources, and list some of the commonly
used tools that monitor them. These resources can be monitored at both
Oracle Server and Operating System levels. DBAs should acquire any detailed
information about the OS tools from the System Administrators or OS vendors.
OVERVIEW
========
Oracle Instance
---------------
An Oracle Instance is a set of System Global Area and background processes.
It is started during �startup nomount�. The characteristics of an instance
are:
 - Its name is defined by environmental variable ORACLE_SID.
  - It is started based on the configurations defined in init.ora file.
  - It has its own set of SGA and background processes.
  - It can only belong to one database at one time.
  - Multiple instances can access the same database in OPS configuration.
There can be multiple oracle instances from the same $ORACLE_HOME. They
are only limited by the OS resources, such as disk, memory, kernel parameters,
etc. Each time an instance is started, the OS is being asked to give some
key resources according to the parameters specified in init.ora
for that instance. Each Oracle instance has two main areas of memory structures,
System Global Area (SGA) and Program Global Area (PGA) for background processes.
SYSTEM RESOURCES
================
Memory
------
There are several memory structures used by Oracle, SGA, PGA, UGA, and
sort area.
1) Shared Memory & Semaphores
Oracle uses shared memory for efficiency. The OS does not have
to load up the same address page(s) into the memory each time a process
needs to reference it. Instead the process can just reference the one memory
location, read/write to it, and then leave. Therefore, the data is not
moved from one processs memory address space to another. In order to control
memory integrity so that only one process is accessing that memory address,
semaphores are used.
Semaphores have only two values, set or unset. When a process goes to
reference a memory location, it first checks to see if the semaphore allocated
for that memory location is set. If so, it waits until that semaphore location
is free. Once available, it will first set the semaphore so to not allow
other processes to interrupt or corrupt the current processes read/write.
The size of the SGA is made up by shared pool, database buffer cache,
redo log buffer, large pool, and java pool. A commonly used formula to
calculate the size of the SGA is:
((db_b
                        

来源:http://www.tulaoshi.com/n/20160129/1494318.html

延伸阅读
Resource Hacker 提取并保存avi教程   进行替换前我想你必须知道一点,系统使用的avi动画可不是我们一般看视频那样的avi属性的。通常我们看到的视频avi都比较长,所以容积是比较大的,为了达到小容量的目的,avi视频将被压缩,压缩是指重新进行编码,减低码率=容积减小 。不管怎样,有编码就必须有解码,要不,播放器是怎么来的,但...
标签: PHP
  # cd /usr/src    # tar -zvxf mysql-3.22.25-pc-linux-gnu-i686.tar.gz (产生 mysql-3.22.25-pc-linux-gnu-i686目录) # cd mysql-3.22.25-pc-linux-gnu-i686 # ./configure --prefix=/usr/local/mysql (其中参数设定目的安装路径) # make # make install   注意在运行configure时,设定MySQL的安装目的...
标签: Java JAVA基础
  用Tomcat,最担心的就是配置JNDI的DataSource的时候出现问题,随着各大厂商发布自己的JDBC的实现,兼容性的问题也就越来也突出了... 一般我们都是用Tomcat自带的DBCP来处理,配置如下: <Resource name="jdbc/MyDS" auth="Container" type="javax.sql.DataSource" / <ResourceParams name="jdbc/MyDS"  <parameter &nbs...
在Soundbreak我们每天24小时不间断地播放实况音频和视频,所以对于MySQL的新增的复制特性,我们不能做出很令人信服的测试。通过测试我们发现,可以使用这个特性来与备份数据库服务器保持数据同步,这样当主服务器因为某种原因处理失效时,能够使用备份机处理所有的查询。对于这样的要求,配置两台服务器并不困难。我将详细讨论整个处理过程,同...
由于Unix操作系统众所周知的稳定性、可靠性,用来提供各种Internet服务的计算机运行的操作系统占很大比例的是Unix及Unix类操作系统,因此需要大量熟练掌握Unix类操作系统应用的人才。目前比较常见的运行在PC机上的Unix类操作系统有:Linux、BSD Unix、Solaris x86、SCO Unix等。一些初学者对于各种类型的Unix系统特性不熟悉,不知道如何选择,...

经验教程

60

收藏

44
微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部