一、实例和实例管理 Overview of the Oracle Instance and Instance Management

Oracle DataBase System由database和Oracle instance组成。

Database—A database consists of a set of disk files that store user data and metadata. Metadata, or "data about the data," consists of structural, configuration, and control information about the database.

Oracle instance—An Oracle instance (also known as a database instance) contains the set of Oracle Database background processes that operate on the stored data and the shared allocated memory that those processes use to do their work.

The properties of an Oracle instance are specified using instance initialization parameters. When the instance is started, an initialization parameter file is read, and the instance is configured accordingly.

Accordingly 因而、因此

1、关于初始化参数 About Initialization Parameters

The Oracle instance reads initialization parameters from a file at startup.

修改初始化参数的两种方法:

You can make these changes using the Initialization Parameter page in Oracle Enterprise Manager Database Control (Database Control), or by using one of the advisors provided by Oracle

Database, such as the Memory Advisor. See "Using the Memory Advisors" for more information.

Advisor 以前没接触过,有必要研究一下!

初始化参数读取之后,就retain到了memory里面,有两种文件类型存放参数,使用哪种,取决于是否需要不重启oracle就修改初始化参数。

Server parameter file:

The server parameter file is the preferred form of initialization parameter file, and is a binary file that can be written to and read by the database. It must not be edited manually. It is stored on the host computer on which Oracle Database is running. 需要重新启动oracle。

Text initialization parameter file

This type of initialization parameter file can be read by the Oracle instance, but it is not written to by the instance. You can change a text initialization parameter file with a text editor, but changes do not take effect until you shut down and restart the Oracle instance。

You can change a text initialization parameter file with a text editor, but changes do not take effect until you shut down and restart the Oracle instance.

When you start the instance with this type of file, you can still change many initialization parameters dynamically with Database Control, but only for the current instance. Unless you also edit the text initialization parameter file and make the same change, the change is lost when you shut down and restart the database.

用DBCA创建数据库时,会创建 server parameter file:

When you create the database with DBCA (as described in "Creating and Managing a Database with DBCA"), a server parameter file is created. This file is then used each time the database is started.

2、关于后台进程 About Background Processes

The background processes of the Oracle instance manage memory structures, asynchrony perform I/O to write data to a file on a disk, and perform general maintenance tasks. The background processes consolidate functions that would otherwise be handled by multiple Oracle Database programs running for each user process. They monitor other Oracle Database processes to provide increased parallelism for better performance and reliability.

Asynchrony异步的

Consolidate巩固

Otherwise 否则,另外,其他的

Parallelism 平行、对应

Reliability 可靠性

>> 最重要的后台进程:

Database writer (DBWn)

The database writer writes modified blocks from the database buffer cache to the files on a disk. Oracle Database allows a maximum of 20 database writer processes.

Log writer (LGWR)

The log writer process writes redo log entries to a disk. Redo log entries are generated in the redo log buffer of the System Global Area (SGA) and the log writer process writes the redo log entries sequentially into an online redo log file

Checkpoint

At specific times, all modified database buffers in the SGA are written to the datafiles by a database writer process (DBWn). This event is called a checkpoint. The checkpoint process signals DBWn, updates the datafiles and control files of the database, and records the time of this update.

System monitor (SMON)

The system monitor performs instance recovery when a failed instance is restarted.

Process monitor (PMON)

The process monitor performs a recovery when a user process fails. It cleans up the cache and frees resources that the failed process was using.

Archiver (ARCn)

Archiver processes copy the redo log files to archival storage when the log files are full or a log switch occurs. The database must be in archive log mode to run archive processes. For more information, see Chapter 9, "Performing Backup and Recovery".

Manageability monitor (MMON)

This process performs various management-related background tasks, for example:

·         Issuing alerts whenever a given metric violates its threshold value

·         Taking snapshots by spawning additional processes

·         Capturing statistical values for SQL objects that have been recently modified

3、关于Server and Client Processes

Server processes 有两种模式:

dedicated server mode :each client process has its own server process. Although a dedicated server process is good for long-running queries and administrative tasks, an idle process or too many dedicated processes can result in an inefficient use of resources.

这种模式适合 long-running queries and administrative tasks。

shared server mode :Using shared server mode eliminates the need for a dedicated server process for each connection. In shared server mode, each client connection request is sent to a dispatcher

Shared server mode is more efficient at supporting multiple client programs making frequent short-running queries.

Dedicated 专注的、献身的

Efficient 生效的、有效率的、能干的

Inefficient 低效的、无能的

4、关于实例的内存结构 About Instance Memory Structure

内存结构的大小影响数据库的性能,由初始化参数控制。

内存结构的大小可以由数据库自动管理、或手动管理,如果选择手动管理,oracle会提供 advisor 帮你决定内存参数的取值,无论哪种方式,oracle都会给发alerts以识别内存大小是否有问题。

System Global AreaSGA)系统全局区

The System Global Area (SGA) is a shared memory area that contains data and control information for the instance. Multiple users can share data within this memory area and avoid repeated, time-consuming access from a physical disk.

SGA由以下几个部分组成:

l        Buffer cache:

l        Shared pool

l        Redo log buffer

l        Large pool

l        Java pool

l        Streams pool

l        Result cache

具体的解释,请看原文。

Program Global AreaPGA)程序全局区

A Program Global Area (PGA) is a memory area used by a single Oracle Database server process

PGA用来处理SQL语句(排序)、控制会话信息

The PGA is used to process SQL statements and to hold logon and other session information. A large part of the PGA is dedicated to SQL work areas, which are working memory areas for sorts and other SQL operations.(SQL排序)

什么是 instance PGA?

The total memory used by all individual PGAs is known as the total instance PGA memory, and the collection of individual PGAs is referred to as the total instance PGA, or just instance PGA. With Oracle Enterprise Manager Database Control, you set the size of the instance PGA, not individual PGAs.

5、关于实例的启动和停止

About Administration Privileges for Startup and Shutdown

About Instance Startup

About Instance Startup

二、Shutting Down and Starting Up the Oracle Instance

三、Viewing and Modifying Initialization Parameters

四、Managing Memory

五、Instances: Oracle By Example Series

2天DBA-5 Managing the Oracle Instance相关推荐

  1. 系统管理Lesson 04. Managing the Database Instance

    系统管理Lesson 04. Managing the Database Instance 1. 服务器参数文件和文本参数文件的区别在哪?参数文件保存在哪个目录? 4-3 2. 请说明 CONTROL ...

  2. 视频教程-Oracle12数据库管理/DBA/数据库工程师培训-Oracle

    Oracle12数据库管理/DBA/数据库工程师培训 郑老师拥有超过二十年的IT行业经验,技术总监/培训师/系统工程师/项目经理.精通系统工程的很多领域:数据库(Oracle).操作系统Unix(So ...

  3. oracle 280000,续-实例恢复- ORACLE instance shut down

    System altered. SQL> startup force; ORACLE instance started. INST 2: SQL> shutdown abort ORACL ...

  4. oracle 僵死的进程,Oracle Instance僵死导致不能正常恢复

    Oracle Instance僵死导致不能正常恢复 --同构System Copy异常之一 感谢我的OCP老师 [异常现象]: svr:oraqas> brrestore -b bejrhdub ...

  5. oracle:instance与database,启动过程

    oracle server主要由两个部分组成:instance和database. instance是指一组后台进程(在windows上是一组线程)和一块共享内存区域.database是指存储在磁盘上 ...

  6. oracle dba开头的表,oracle中以dba_、user_、v$_、all_、session_、index_开头的常用表和视图...

    oracle中以dba_.user_.v$_.all_.session_.index_开头的常用表和视图 ----------------------------------------------- ...

  7. oracle Instance status: READY–lsnrctl status|start|stop

    监听器启动,并不一定会认识数据库实例,启动监听器,请判别相关实例是否 READY [oracle@redhat4 ~]$ lsnrctl status LSNRCTL for Linux: Versi ...

  8. Oracle Instance

    曾经也学习过oracle 逻辑结构的知识.但用的不多好多都是有点概念,近期做到一个跨instance工作流.全部抽点时间温习了一下相关知识.把网上看到的感觉讲的还比較明了.全面的文章汇总一下 inst ...

  9. oracle dba要学多久,Oracle DBA速成法的潜规则

    如果你想成为一个合格的Oracle DBA,那么你除了要努力的学习其相关方面的知识,那么你还需要些什么呢?想了解在其方面的一些规律的话,相信以下的文章会给你在相关的学习中提供相关的建议. 1.快速有多 ...

最新文章

  1. sql server 内存初探
  2. Socket SSL通讯
  3. React学习(6)—— 高阶应用:非受控组件
  4. linux 字符串string操作(截取、提取、长度计算等)
  5. jQuery EasyUI API 中文文档 - 进度条
  6. Nest Secure智能保全系统内建麦克风 引发用户反弹
  7. git设置mergetool可视化工具
  8. enableEventValidation错误原因分析以及解决办法
  9. PHP PDO连接PostgreSQL报错 SCRAM authentication requires libpq version 10 or above in解决
  10. 车站广播系统采用计算机,公共广播系统
  11. CSS:实现跳动小球蒙版效果
  12. 搜狗浏览器显示无法解析服务器的DNS,Win10专业版下搜狗浏览器DNS解析失败
  13. 【Mongodb】常用的一些功能
  14. 加了索引,mysql查询就一定会用吗?
  15. 如何给PDF中的内容添加下划线
  16. 电路中各种地的区别及处理
  17. NRZ、RZ信号的时频域区别及它们的谱效率
  18. 10岁男童高考获566分或被大学破格录取(图)
  19. 关于FusionChartsFree y轴不显示中文 的解决办法
  20. 如何批量增加视频的音量(ffmpeg)

热门文章

  1. 【甘道夫】conda及pip公司内网无法使用
  2. HBase几种安装方式
  3. JS格式化代码和高亮显示
  4. 网络安全之信息收集篇知识点整理
  5. acwing4652.纸张尺寸
  6. 工作岗位和职责的认识
  7. c#调用ping命令
  8. 你知道狂飙到底讲的个什么,看完狂飙的后劲有多大
  9. 5gwifi信号测试软件,5G频段无线信号强度较量
  10. 如何做好SEO优化?谈到网络营销就不得不说的SEO优化技巧