02 Architecture Overview
本章提要
---------------------------------------------
arthiecture, and some component
connect to oracle
这一章, 概念性的东西多一些
---------------------------------------------
ipcs -a linux 命令, 查看内存区域情况, 进程之间通信communication
1. 连接数据库(无论是本机环境, 还是客户端)
When you connect, the Oracle software will look for a TNS connect string(a network connection).
If,the connect string is not supplied, the Oracle software will look at the environment for a
variable named ORACLE_SID, The ORACLE_SID is the Oracle “site identifier;”it is sort of a key to
gain access to an instance.
连接上以后, 你用ps -ef 会看到相对应的oracle进程, 但是这时候一个很有意思的事情是这个进程名是 oracle11g(例如)
而你根本找不到这样一个程序在系统中, 实际这个程序就是 $ORACLE_HOME/bin/oracle.
2. 连接 instance 时, 至少需要在parameter中设置一个参数, db_name
echo db_name=oracle11g > initora11g.ora
startup nomount
3. 一个Instance 在它的生命周期中只能打开1个database
例如, alter database close; alter database open; -- 这时会返回一个错误
因为, instance 已经打开了一个database, 而 alter database close 只是关闭了数据库, 并没有关闭Instance
这时, ps -ef 会看到进程依然存在, 所以这时需要使用 shutdown 将instance关闭, 就可以重新连接database
4. instance 组成
SGA(share pool, buffercahe, redo and so on) + background process(pmon, smon, dbwr, lgwr, ckpt and so on)
5. 连接 oracle (client connect to server), 这种情况肯定要借助网络tcp/ip, 那么肯定要借助 tnsnames.ora
dedicated server:
dedicated server: 是用来与 client 来建立连接的.(client process 连接 dedicated server (这也是一个Process))
现在基本上都是使用 dedicated server. 1对1(客户端一个进程对应server端一个dedicated server进程)
shared Server: 对所有的client 用一个 pool of shared processes, 并且还需要另外一个进程 dispatcher,
client-dispatcher, The dispatcher process will put the client’s request into the request queue in the SGA
finish do something, the shared server will place the response in the invoking dispatcher’s response queue
shared server 是负责处理请求的, 它本身是一个进程, 可以与内存和磁盘通信.
tns listener: (dedicated server)
tns listener: (shared server)
02 Architecture Overview的更多相关文章
- Spring Security(一) —— Architecture Overview
摘要: 原创出处 https://www.cnkirito.moe/spring-security-1/ 「老徐」欢迎转载,保留摘要,谢谢! 1 核心组件 一直以来我都想写一写Spring Secur ...
- The logback manual #02# Architecture
索引 Logback's architecture Logger, Appenders and Layouts Effective Level(有效等级)又名Level Inheritance Ret ...
- Angular 2 Architecture Overview
Module 简单来说模块(module)就是完成共同目的的代码块,export一些内容例如一个类.函数.或值变量. component就是一个基本的Angular块,一个component类其实也是 ...
- Web application architecture overview
- 100 open source Big Data architecture papers for data professionals
zhuan :https://www.linkedin.com/pulse/100-open-source-big-data-architecture-papers-anil-madan Big Da ...
- Intel® RealSense™ SDK Architecture
In this article, we highlight some of the key changes that you can expect to see in the Intel RealSe ...
- BUILDING ANGULAR APPS USING FLUX ARCHITECTURE
Flux is an architectural pattern based on unidirectional data flow. Although it is originated in the ...
- Multitier architecture
Multitier architecture - Wikipedia https://en.wikipedia.org/wiki/Multitier_architecture Common layer ...
- UI Framework-1: Aura Graphics Architecture
Graphics Architecture Overview Each Aura Window owns a corresponding compositor layer. The layer tre ...
随机推荐
- 项目里面加入redis单机版 和集群版的配置
第一步: 如果你是maven项目,你直接配置就可以了,如果不是需要下载这个包 jedis包 <!-- Redis 客户端 --> <dependency> ...
- 当前上下文中不存在名称"Session"
http://blog.csdn.net/muzai/article/details/8862902
- Linux内核(7) - 设备模型(上)
对于驱动开发来说,设备模型的理解是根本,毫不夸张得说,理解了设备模型,再去看那些五花八门的驱动程序,你会发现自己站在了另一个高度,从而有了一种俯视的感觉,就像凤姐俯视知音和故事会,韩峰同志俯视女下属. ...
- Python中的迭代和可迭代对象
什么是迭代(iteration)呢? 给定一个list或者tuple,通过for循环来遍历这个list或者tuple.这种遍历就是迭代(iteration).只要是可迭代的对象都可以进行迭代.怎么判断 ...
- Javascript和OCX的结合历程
这种相对古老的调用方式主要用在Windows系列平台上的多种语言软件之间的合作. 此次项目合作方式是,客户提供语音功能的OCX模块和VC++客户端软件,我需要在WEB软件中调用其中的接口开发相关功能, ...
- W5500初始化过程
- 机器学习(5): K-means 算法
3. K-means 算法: 3.1 Clustering 中的经典算法,数据挖掘十大经典算法之一 3.2 算法接受参数 k :然后将事先输入的n个数据对象划分为 k个聚类以便 ...
- Latex 附录生成方法-附使用的一些tips
Latex 附录生成方法-附使用的一些tips 工具 使用latex写论文时,国内科研人员使用比较多的前端工具当属CTex,另外的前度工具有texstdio,texworks,sublime,甚至vi ...
- JBoss DataGrid的集群部署与訪问
集群部署 JDG的缓存模式包含本地(Local)模式和集群(Clustered)模式.本项目採用多节点的Clustered模式部署.数据在多个节点的子集间进行复制.而不是同步拷贝到全部的节点. 使用子 ...
- DMA&PIO
DMA&PIO DMA的英文拼写是“Direct Memory Access”,汉语的意思就是直接内存访问,是一种不经过CPU而直接从内存存取数据的数据交换模式.在DMA模式下,CPU只须 ...