Monitor Oracle Resource Consumption in UNIX

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

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

【 tulaoshi.com - Oracle教程 】

PURPOSE

(本文来源于图老师网站,更多请访问https://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
                        

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

延伸阅读
标签: 电脑入门
FolderMonitor?是一款绿色便携软件,主要提供文件夹监控的功能,可以监控文件的创建、删除、修改和重命名。你可以监控本地文件夹,也可以监控远程的文件夹,一旦有人动了你的文件夹,就会立即发出声音警报,当然你可以设置隐藏警告。FolderMonitor0.5.1.1汉化绿色版_监视指定文件夹的利器、 FolderMonitor0.6.2.5绿色版_监视指定文件夹的变化...
标签: Java JAVA基础
  用Tomcat,最担心的就是配置JNDI的DataSource的时候出现问题,随着各大厂商发布自己的JDBC的实现,兼容性的问题也就越来也突出了... 一般我们都是用Tomcat自带的DBCP来处理,配置如下: <Resource name="jdbc/MyDS" auth="Container" type="javax.sql.DataSource" / <ResourceParams name="jdbc/MyDS"  <parameter &nbs...
标签: Web开发
如需转载,请注明出处,谢谢! 以8.1.7.4.0为例说明: 8:版本号 1:新特性版本号 7:维护版本号 4:普通的补丁设置号码 0:特殊的平台补丁设置号码 另外有关Oracle是32bit/64bit的问题,说明如下: 在windows/linux系统中由于操作系统是32bit的,所以oracle肯定是32bit的; 在tru64中oracle肯定是64bit的; 在hpux/aix/solaris中要看具体情况了,...
标签: 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的安装目的...
在Soundbreak我们每天24小时不间断地播放实况音频和视频,所以对于MySQL的新增的复制特性,我们不能做出很令人信服的测试。通过测试我们发现,可以使用这个特性来与备份数据库服务器保持数据同步,这样当主服务器因为某种原因处理失效时,能够使用备份机处理所有的查询。对于这样的要求,配置两台服务器并不困难。我将详细讨论整个处理过程,同...

经验教程

369

收藏

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