设为首页 收藏本站
查看: 438|回复: 0

[经验分享] Oracle体系架构简介

[复制链接]

尚未签到

发表于 2016-6-13 05:33:22 | 显示全部楼层 |阅读模式
Oracle服务器
              Instance  
    --SGA     
        ---shared Pool(Libnary Cache,Data Dictionary Cache)
        ---DataBase Buffer Cache
        ---Java Pool
        ---Redo Log Buffer
        ---Large Pool

    --后台进程(PGA)
        --PMON
        --SMON
        --DBWR
        --LGWR
        --CKPT
        --Others  

Oracle实例  

  •   它是访问数据库(Oracle DataBase)的一种方式。
  •   它仅仅只访问一个数据库(多对一)
  •   它由内存块和后台进程组成

Connection与会话
User process---connection---->Serverprocess<---创建会话--->Oracle Server

Oracle DataBase:
包含三种文件类型

      Datafiles Controlfiles RedoLogfiles(存放恢复文件的信息)
除了有这3中基本类型文件外,周围还有一些文件
参数文件:基本参数,初始化的一些值
密码文件:客户端连接的一些口令
归档日志文件:与RedoLogfiles相互相存

操作Oracle:
[oracle@lovo14 ~]$ pwd
/u01/oracle
[oracle@lovo14 ~]$ cd ..
[oracle@lovo14 u01]$ ls
admin  database  flash_recovery_area  lovo.dbf  oracle  oradata  oraInventory
[oracle@lovo14 u01]$ cd oradata
[oracle@lovo14 oradata]$ ls -l
total 16
drwxr-x---  2 oracle oinstall 4096 May 15 21:14 wilson
drwxr-x---  2 oracle oinstall 4096 May 20 17:17 xdz
[oracle@lovo14 oradata]$ cd wilson
[oracle@lovo14 wilson]$ ls -l
total 1084520
-rw-r-----  1 oracle oinstall   7061504 Oct  7 23:00 control01.ctl
-rw-r-----  1 oracle oinstall   7061504 Oct  7 23:00 control02.ctl
-rw-r-----  1 oracle oinstall   7061504 Oct  7 23:00 control03.ctl
-rw-r-----  1 oracle oinstall 104865792 Oct  7 22:44 example01.dbf
-rw-r-----  1 oracle oinstall  52429312 Oct  7 23:00 redo01.log
-rw-r-----  1 oracle oinstall  52429312 Oct  7 22:44 redo02.log
-rw-r-----  1 oracle oinstall  52429312 Oct  7 22:44 redo03.log
-rw-r-----  1 oracle oinstall 262152192 Oct  7 22:51 sysaux01.dbf
-rw-r-----  1 oracle oinstall 503324672 Oct  7 22:56 system01.dbf
-rw-r-----  1 oracle oinstall  20979712 Oct  5 22:00 temp01.dbf
-rw-r-----  1 oracle oinstall  36708352 Oct  7 22:59 undotbs01.dbf
-rw-r-----  1 oracle oinstall   5251072 Oct  7 22:44 users01.dbf

-rw-r-----  1 oracle oinstall   5251072 Oct  7 22:44 users01.dbf
[oracle@lovo14 wilson]$ sqlplus /nolog

SQL*Plus: Release 10.2.0.1.0 - Production on Wed Oct 20 20:44:16 2010

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

SQL> conn / as sysdba
Connected to an idle instance.
SQL> startup
ORACLE instance started.

Total System Global Area  343932928 bytes
Fixed Size                  1219328 bytes
Variable Size             159384832 bytes
Database Buffers          180355072 bytes
Redo Buffers                2973696 bytes
Database mounted.
Database opened.
[oracle@lovo14 wilson]$ ps -ef | grep oracle
root      6573  5323  0 20:41 ?        00:00:00 sshd: oracle [priv]
oracle    6575  6573  0 20:41 ?        00:00:00 sshd: oracle@pts/0
oracle    6576  6575  0 20:41 pts/0    00:00:00 -bash
oracle    6606  6576  0 20:44 pts/0    00:00:00 sqlplus      
oracle    6607  6606  0 20:44 ?        00:00:00 oraclewilson (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
oracle    6610     1  0 20:44 ?        00:00:00 ora_pmon_wilson
oracle    6612     1  0 20:44 ?        00:00:00 ora_psp0_wilson
oracle    6614     1  0 20:44 ?        00:00:00 ora_mman_wilson
oracle    6616     1  0 20:44 ?        00:00:00 ora_dbw0_wilson
oracle    6618     1  0 20:44 ?        00:00:00 ora_lgwr_wilson
oracle    6620     1  0 20:44 ?        00:00:00 ora_ckpt_wilson
oracle    6622     1  3 20:44 ?        00:00:05 ora_smon_wilson
oracle    6624     1  0 20:44 ?        00:00:00 ora_reco_wilson
oracle    6626     1  0 20:44 ?        00:00:01 ora_cjq0_wilson
oracle    6628     1  2 20:44 ?        00:00:02 ora_mmon_wilson
oracle    6630     1  0 20:44 ?        00:00:00 ora_mmnl_wilson
oracle    6632     1  0 20:44 ?        00:00:00 ora_d000_wilson
oracle    6634     1  0 20:44 ?        00:00:00 ora_s000_wilson
oracle    6636  6606  6 20:45 ?        00:00:07 oraclewilson (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
oracle    6638     1  0 20:45 ?        00:00:00 ora_qmnc_wilson
oracle    6640     1  2 20:45 ?        00:00:01 ora_q000_wilson
oracle    6642     1  0 20:45 ?        00:00:00 ora_q001_wilson
oracle    6644     1  9 20:46 ?        00:00:05 ora_j000_wilson
oracle    6646     1  2 20:46 ?        00:00:01 ora_j001_wilson
oracle    6648     1  1 20:46 ?        00:00:01 ora_j002_wilson
oracle    6650     1  2 20:46 ?        00:00:01 ora_j003_wilson
oracle    6652     1  0 20:46 ?        00:00:00 ora_j004_wilson
oracle    6654     1  0 20:46 ?        00:00:00 ora_j005_wilson
oracle    6656     1  0 20:46 ?        00:00:00 ora_j006_wilson
oracle    6663  6606  2 20:47 pts/0    00:00:00 /bin/bash
oracle    6681  6663  0 20:47 pts/0    00:00:00 ps -ef
oracle    6682  6663  0 20:47 pts/0    00:00:00 grep oracle
[oracle@lovo14 wilson]$ ipcs

------ Shared Memory Segments --------
key        shmid      owner      perms      bytes      nattch     status      
0xd4d89218 0          oracle    640        346030080  24                     

------ Semaphore Arrays --------
key        semid      owner      perms      nsems     
0x89c98dc4 98304      oracle    640        154      

------ Message Queues --------
key        msqid      owner      perms      used-bytes   messages   
            
[oracle@lovo14 wilson]$ exit
exit

SQL> show sga

Total System Global Area  343932928 bytes
Fixed Size                  1219328 bytes
Variable Size             163579136 bytes
Database Buffers          176160768 bytes
Redo Buffers                2973696 bytes
SQL>

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-229613-1-1.html 上篇帖子: Oracle db_name instance_name oracle_sid 下篇帖子: Oracle 10G和Oracle 11G有什么分别?(Oracle 10G与Oracle 11G对比介绍)
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表