本章提要
---------------------------------------------
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的更多相关文章

  1. Spring Security(一) —— Architecture Overview

    摘要: 原创出处 https://www.cnkirito.moe/spring-security-1/ 「老徐」欢迎转载,保留摘要,谢谢! 1 核心组件 一直以来我都想写一写Spring Secur ...

  2. The logback manual #02# Architecture

    索引 Logback's architecture Logger, Appenders and Layouts Effective Level(有效等级)又名Level Inheritance Ret ...

  3. Angular 2 Architecture Overview

    Module 简单来说模块(module)就是完成共同目的的代码块,export一些内容例如一个类.函数.或值变量. component就是一个基本的Angular块,一个component类其实也是 ...

  4. Web application architecture overview

  5. 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 ...

  6. Intel® RealSense™ SDK Architecture

    In this article, we highlight some of the key changes that you can expect to see in the Intel RealSe ...

  7. BUILDING ANGULAR APPS USING FLUX ARCHITECTURE

    Flux is an architectural pattern based on unidirectional data flow. Although it is originated in the ...

  8. Multitier architecture

    Multitier architecture - Wikipedia https://en.wikipedia.org/wiki/Multitier_architecture Common layer ...

  9. UI Framework-1: Aura Graphics Architecture

    Graphics Architecture Overview Each Aura Window owns a corresponding compositor layer. The layer tre ...

随机推荐

  1. [iOS]过渡动画之高级模仿 airbnb

    注意:我为过渡动画写了两篇文章:第一篇:[iOS]过渡动画之简单模仿系统,主要分析系统简单的动画实现原理,以及讲解坐标系.绝对坐标系.相对坐标系,坐标系转换等知识,为第二篇储备理论基础.最后实现 Ma ...

  2. Oracle角色、权限的一些常用视图

    ORACLE中数据字典视图分为3大类, 用前缀区别,分别为:USER,ALL 和 DBA,许多数据字典视图包含相似的信息. 1)USER_*:有关用户所拥有的对象信息,即用户自己创建的对象信息: 2) ...

  3. selenium+python : Waits---study

    from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.s ...

  4. nginx实战三

    nginx正向代理 https://coding.net/u/aminglinux/p/nginx/git/blob/master/proxy/z_proxy.md Nginx正向代理使用场景并不多见 ...

  5. 上传一个 游戏server架构图

  6. 本地服务器能ping通,但是ssh及各种端口都访问不到---待整理

    情况描述: 情况一:后来发现,开机需要很长一段时间之后才能正常的访问那台机器 原因:系统启动时加载的程序多,所以开机需要很长的时间,关掉不用的就可以了 情况二:服务器位于局域网内,有的时候可以访问到, ...

  7. html表单的各种输入控件

    表单的输入控件主要是input和select.其中input可以是多种类型,通过type属性来进行定义,type可以取值是text,radio,checkbox,password,submit,res ...

  8. 跟我一起学习VIM - vim插件合集

    2016-06-14 15:04 13333人阅读 评论(0) 收藏 举报 分类: Linux(104)  目录(?)[+]  前两天同事让我在小组内部分享一下VIM,于是我花了一点时间写了个简短的教 ...

  9. 批处理学习笔记2 - 编写批处理的for循环

    批处理中的for循环集成的功能比较多,可以直接对文件操作. ====================================================================== ...

  10. [na]ip routing&no ip routing

    这玩意,考虑三层路由时候,想明白,挺重要 ip routing--------查路由表, 如果ping的目的在RT中没有,不发出任何包(arp也不会发出) 如果RT中存在,则arp 下一跳,相当于no ...