Oracle Process Structure

Oracle takes advantage of various types of processes:

—User process: Started at the time a database user requests connection to the Oracle server

—Server process: Connects to the Oracle instance and is started when a user establishes a session

—Background processes: Started when an Oracle instance is started

User Process: A progrm that requests interaction with the Oracle server, Must first establish a connection, Does not interact directly with the Oracle server.

Server Process: A program that directly interacts with the Oracle Server

—Fulfills calls generated and returns results

—Can be deficated or shared server

IPC: Inter Process Communication,包括共享内存、队列、信号量等几种形式。

Background Process

Maintains and enforces relationships between physical and memory structures:

—Mandatory background processes

DBWn PMON CKPT LGWR SMON

—Optional background processes

ARCnLMDnQMNnCJQ0LMONRECODnnnLMSSnnn

LCKnPnnn

DBWn(Database Writer), DBWn writes when:

—Checkpoint occurs

—Dirty buffers reach threshold

—There are no free buffers

—Timeout occurs

—RAC ping request is made

—Tablespace OFFLINE

—Tablespace READ ONLY

—Table DROP or TRUNCATE

—Tablespace BEGIN BACKUP

Log Witer(LGWN), LGWR writes:

—At commit

—When one-third full

—When there is 1MB of redo

--Every three seconds

--Before DBWn writes

System Monitor(SMON)

Responsibilities

—Instance recovery

—Rolls forward changes in noline redo log files

—Opens database for user access

—Rolls back uncommitted transactions

—Coalesces free space

—Deallocates temporary segments

Process Monitor(PMON),Cleans up after failed processes by:

—Rolling back the transaction

—Releasing locks

—Releasing other resources

—Restarting dead dispatchers

Checkpoint(CKPT): Responsible for:

—Signaling DBWn at checkpoints

—Updating datafile headers with checkpoint information

Archiver(ARCn)

Automactically archives online redo file

Logical Structure

—Dictates how the physical space of a database is used

—Hierarchy consisting of tablespaces(可以包括多个数据文件), segments(同), extents(只能在一个数据文件中)and blocks(8K)

DB Administration Tools

1.Oracle Universal Installer

2.Database Configuraation Assistant

3.Database Upgrade Assistant

4.Oracle Net Manager

5.Oracle Enterprise Manager

6.SQL*Plus

7.Recovery Manager

Oracle Univeral Installer

Used to install, upgrade, or remove software

Based on a Java engine

Features include

Automatic dependency relolution

Allows for Web-based installations

Tracking inventory of component and suite installations

Deinstallation of installed components

Support for multiple Oracle homes

Support for globalization technology

Oracle DBCA

You use the Oracle Database Configuration Assistant to:

—Create a database

—Configure database options

—Delete a database

—Manage templates

DB Administrator Users

Users SYS and SYSTEM are created automatically

—During database creation

—Granted the DBA role

User SYS

—Owner of the database data dictionary

—Default password : change_on_install

User SYSTEM

—Owner of additional internal tables and view used by Oracle tools

—Default password: manager

SQL*Plus

An Oracle tool providing

—Capability to interact with and manipulate the database

—Ability to start up and shut down the database, create

and run queries, add rows, modify data, and write customized reports

A subset of the standard SQL language with specific add ons

Oracle Enterprise Manager

Initialization Parameter Files

—Entries are specific to the instance being started

Two types of parameters:

—Explicit: Having an entry in the file

—Implicit: No entry within the file, but assuming the Oracle default values

Multiple initialization parameter files can exist

Changer to entries in the file take effect based on

the type of initialization parameter file used:

—Static parameter file, PFILR

—Persistent server parameter file, SPFILE

PFILE –initSID.ora

—Text file

—Modified with an operating system editor

—Changes take effect on the next start up

—Only opened during instance start up

—Default location is $ORACLE_HOME/dbs

Oracle SID

the SID is a site identifier. It and ORACLE_HOME(where the Oracle software is installed) are hashed together in UNIX to create a unique key name for attaching an SGA.If your ORACLE_HOME is not set correctly, you’ll get the ORACLE NOT AVAILABLE error.

SPFILEspfileSID.ora

Binary file

Maintained by the Oracle server

Always resides on the server side

Ability to make changes persistent across shutdown and startup

Can self-tune parameter values

Can have Recovery Manager support backing up to the initialization parameter file

Spfile.ora和file.ora可以相互转化:

create spfile from pfile; strings spfile |more(提取二进制中的可读字符串打印出来)

Modify Parameters in SPFILE

Alter system set parameter name =value

find command

show parameter pram name;

SPFILE vs PFILE

1.An SPFILE can be backed-up with RMAN(RMAN cannot backup PFILES)

2.Reduce human errors.The SPFILE is maintained by the server. Parameters are checked before changes are accepted.

3.Eliminate configuration problems (no need to have remote machine)

4.Easy to find –stored in a central location

SPFILE is better than PFILE!

oracle包视频讲座,小布老师oracle视频讲座笔记(二)相关推荐

  1. 小布老师Oracle 9i DBA Fundamentals II 视频讲座 (1-62)

    小布老师Oracle 9i DBA Fundamentals II 视频讲座 1 本视频是第一讲,讲解了第一章 - Oracle网络概述. 在线播放:http://www.boobooke.com/v ...

  2. 最全小布老师所有视频推荐--oracle视频资料库

    很不错的oracle视频资料,很全很多,而且讲得很不错 ,强烈推荐 ~~~ 最全小布老师所有视频推荐--oracle视频资料库 King作品:Oracle RAC系列培训 共七集 完 http://w ...

  3. 小布老师所有视频 地址

    Oracle安装: 小布作品:视频 - 使用虚拟机搭建Linux/Oracle学习环境(01) 小布作品:视频 - 使用虚拟机搭建Linux/Oracle学习环境(02) 上集 小布作品:视频 - 使 ...

  4. 【备忘】小布老师OracleDBA视频合集

    01.Oracle在各种平台下的安装(全16讲).rar     02.小布老师oracle_SQL基础(全30讲).rar     03.oracle_SQLPLUS(全8讲).rar     04 ...

  5. 小布老师OracleDBA视频合集 下载

    01.Oracle在各种平台下的安装(全16讲).rar     02.小布老师oracle_SQL基础(全30讲).rar     03.oracle_SQLPLUS(全8讲).rar     04 ...

  6. 小布老师oracle 9i性能调优

    第01讲:Chapter 01--Overview of Oracle9i Database Performance Tuning 第02讲:Chapter 01--Overview of Oracl ...

  7. 小布老师oracle DBA PPT

    $ lsnrctl start启动监听 SQL> drop user username cascade; SQL> SET TIMING ON SQL> show sga; SQL& ...

  8. 小布老师oracle学习笔记

    以后陆续更新 转载于:https://blog.51cto.com/onlylzhq/624966

  9. 小布老师视频oracle

    小布老师视频oracle 分类: 数据库 2012-01-31 13:29 1137人阅读 评论(0) 收藏 举报 oracle服务器c数据库网络n2 http://www.eimhe.com/thr ...

最新文章

  1. asp.net中防止攻击的方法
  2. JavaScript的Prototype实现
  3. Powershell执行文件和脚本
  4. 【Linux系统编程】进程概述和进程号
  5. 转:C++中const、volatile、mutable的用法
  6. was6 linux 卸载,重新安装was61
  7. Hadoop集群搭建之问题锦集
  8. Android单元测试 mock Context,mock静态类的静态方法,测试方法的顺序
  9. 为什么叫C++而不叫++C ?
  10. 从科大讯飞跳槽到腾讯被判赔 1200 万;华为多款机型将取消充电器;苹果春季发布会定档4月21日|极客头条...
  11. (十四)java版spring cloud+spring boot+redis社交电子商务平台-在springboot中用redis实现消息队列...
  12. net.sf.json.JSONException: JSONObject[节点名称] not found解决方法
  13. 码率/比特率完整介绍
  14. smart 支持标签
  15. 【编程DIY】一.几个有趣的小程序
  16. (fym)ssm基于web的教务管理系统 毕业设计261620
  17. 软件测试技术课程总结(五)软件测试流程
  18. input禁止自动填充
  19. php windows 信号,win10连接投影仪无信号怎么办
  20. 快手__nsTokensig和sig签名

热门文章

  1. 良心安利互联网 IT 科技展板展架模板素材网站
  2. Unity3D性能优化总结(转纳金网)
  3. JAVA 中的文件IO使用outputstreamwriter writer 出现乱码的问题。
  4. Linux使用gdisk工具对硬盘进行GPT分区
  5. AJAX原理快速入门
  6. termux获取sd卡读写权限_重回SD市场 三星128GB/256GB PRO Plus存储卡评测
  7. EclipsePHP Studio 3.0 实时显示配置
  8. Java实现 LeetCode 212 单词搜索 II(二)
  9. 足球大v:请闭上你们无知的嘴
  10. 办企业法人营业执照都需要什么手续?