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
1.首先关闭单机版 我的单机版 是放在redis文件夹下面的 首先你要启动你的单机版redis 直接shutdown quit 退出去 ps aux|grep redis 查看运行的redis 关闭 ...
- IIS7的应用程序池详细解析
在 IIS 7 中,应用程序池有两种运行模式:集成模式和经典模式.应用程序池模式会影响服务器处理托管代码请求的方式 在IIS 7中,添加一个应用程序或者单独的网站,默认会自动新建一个对应的“应用程序池 ...
- Android用shareUserID实现多个Activity显示在同一界面
近来整理文档,发现两年前研究Android多个Activity叠加显示的方案.时光荏苒,一去不回. 虽然后来没有用上,但还是整理如下,Android版本还是2.2的: ActivityGroup描画方 ...
- Android 自定义属性动画&Camera动画
摘要: Android 自定义属性动画&Camera动画 1.相关知识点 对于Androi的帧动画,可以制作gif图片,有时为了能够动态的生成帧动画,就得需要使用代码构建了 Animati ...
- Python type() 函数
描述 type() 函数如果你只有第一个参数则返回对象的类型,三个参数返回新的类型对象.类似isinstance() isinstance() 与 type() 区别: type() 不会认为子类是一 ...
- winform dataGridView DataGridViewComboBoxColumn 下拉框事件
有一个dataGridView ,有一列是DataGridViewComboBoxColumn .用动态绑定,在绑定数据的时候.我们也给这一列绑定数据 在dataGridView的RowsAdded事 ...
- MySQL Cluster 具体配置文件(config.ini)
########################################################################### ## MySQL CLuster 配置文件 ## ...
- python标准库介绍——10 sys 模块详解
==sys 模块== ``sys`` 模块提供了许多函数和变量来处理 Python 运行时环境的不同部分. === 处理命令行参数=== 在解释器启动后, ``argv`` 列表包含了传递给脚本的所有 ...
- Linux中的wget命令
Linux系统中的wget是一个下载文件的工具,它用在命令行下.对于Linux用户是必不可少的工具,我们经常要下载一些软件或从远程服务器恢复备份到本地服务器.wget支持HTTP,HTTPS和FTP协 ...
- unity, 荧光效果(bloom)
----更新:2015-5-31 详细实现过程见:http://www.cnblogs.com/wantnon/p/4542172.html ----原帖:2015-4-16 用摄像机特效只能做全屏b ...