Optimal Flexible Architecture

完全实现OFA至少需要三个文件系统位于不同的物理设备上,这些物理设备本身没有做条带或镜像。如果这些物理设备要做冗余与吞吐,建议使用一些存储相关的概念与东西,例如:lvm,raid,asm之类的存储技术手段来保障。

OMF  oracle-managed files  即oracle_base/oradata

OFA帮助识别oracle_base及其ADR诊断数据

ORACLE_BASE  /u01/app/oracle  有下面内容的就是ORACLE_BASE目录

[root@oracle3A oracle3A]# ls
admin cfgtoollogs checkpoints diag flash_recovery_area oradata product

Automatic Diagnostic Repository  就是上面的diag目录

OFA 推荐的命名策略:包括5部分

1.文件系统  挂载点数量与命名 /pm  即/u01,/u02,/u03或/disk01,/disk02,/disk03之类

2.数据库目录命名

3.数据库文件命名

4.根据不同的需求分段

5.为oracle文件开发OFA结构

以下是目录命名,包括4部分:base,vldb,home,子目录

1.oracle base   /pm/s/u    例如:/u01/app/oracle,/u01/app/applmgr

[root@oracle3A oracle3A]# ls
admin cfgtoollogs checkpoints diag flash_recovery_area oradata product
[root@oracle3A oracle3A]# pwd
/oracle3A
其中admin是管理文件目录
oradata是数据文件目录
product是home目录
diag是adr目录

2.VLDB      /h/q/d     例如:对test库分配两个专用盘的挂载点,/u01/app/oracle/oradata/test和/u02/app/oracle/oradata/test

3.oracle home  /pm/s/u/product/v/type_[n]  例如:/u01/app/oracle/product/11.2.0/dbhome_1

4.子目录     

/h/admin/d/a  
数据库管理文件子目录
   例如:10g
[root@flt flt]# ls
adump bdump cdump dpdump pfile udump
[root@flt flt]# pwd
/oracle/admin/flt 例如:11g
[root@oracle3A flt]# ls
adump dpdump pfile scripts
[root@oracle3A flt]# pwd
/oracle3A/admin/flt 在11g中,ADR目录替换了bdump,cdump,udump
/h/diag/rdbms/d/i/
ADR目录
[root@oracle3A flt]# pwd
/oracle3A/diag/rdbms/flt/flt
[root@oracle3A flt]# ls
alert  cdump  hm  incident  incpkg  ir  lck  metadata  stage  sweep  trace

oradata目录

包括控制文件,重做日志文件,表空间文件

Control files      /h/q/d/control.ctl
Redo log files /h/q/d/redon.log
Data files    /h/q/d/tn.dbf 例如:
[root@localhost orcl]# pwd
/u01/app/oracle/oradata/orcl
[root@localhost orcl]# ll
total 1513460
-rw-r-----. 1 oracle oinstall   9748480 Jul 10 11:56 control01.ctl
-rw-r-----. 1 oracle oinstall  52429312 Jul 10 11:56 redo01.log
-rw-r-----. 1 oracle oinstall  52429312 Jul 10 02:00 redo02.log
-rw-r-----. 1 oracle oinstall  52429312 Jul 10 10:01 redo03.log
-rw-r-----. 1 oracle oinstall 566239232 Jul 10 11:55 sysaux01.dbf
-rw-r-----. 1 oracle oinstall 713039872 Jul 10 11:52 system01.dbf
-rw-r-----. 1 oracle oinstall  30416896 Jul 10 11:53 temp01.dbf
-rw-r-----. 1 oracle oinstall  94380032 Jul 10 11:53 undotbs01.dbf
-rw-r-----. 1 oracle oinstall   5251072 Jul 10 10:06 users01.dbf

oraInventory目录

在安装oracle软件或者使用dbca创建数据库时,所有的日志都会放在oraInventory这个目录下。
默认情况下该目录会在$ORACLE_BASE/oraInventory下,但是我们也可以通过更改/etc/oraInst.loc文件来指定具体的路径:
在linux下:
该文件路径为/etc/oraInst.loc
在hpunix下:
该文件路径为 /var/opt/oracle/oraInst.loc You all might be familiar with oraInventory & its importance so lets take a look at few common things about it like binary/xml inventory, What to do if Inventory is corrupted , What is global / Local Inventory and where to find documentation related to oraInventory . What is oraInventory ?
oraInventory is repository (directory) which store/records oracle software products & their oracle_homes location on a machine.
This Inventory now a days in XML format and called as XML Inventory where as in past it used to be in binary format & called as binary Inventory.
There are basically two kind of Inventory Global Inventory (also called as Central Inventory) and Local Inventory also called as Oracle Home Inventory. Global Inventory ?
Global Inventory holds information about Oracle Products on a Machine. These products can be various oracle components like database, oracle application server, collaboration suite, soa suite, forms & reports or discoverer server.
This global Inventory location will be determined by file oraInst.loc in /etc (on Linux) or /var/opt/oracle (solaris).
If you want to see list of oracle products on machine check for file inventory.xml under ContentsXML in oraInventory.
Please note if you have multiple global Inventory on machine check all oraInventory directories) You will see entry like
HOME NAME=”ORA10g_HOME” LOC=”/u01/oracle/10.2.0/db” TYPE=”O” IDX=”1″/

… Local Inventory
Inventory inside each Oracle Home is called as local Inventory or oracle_home Inventory. This Inventory holds information to that oracle_home only. Can I have multiple Global Inventory on a machine ?
Quite common questions is that can you have multiple global Inventory and answer is YES you can have multiple global Inventory but if your upgrading or applying patch then change Inventory Pointer oraInst.loc to respective location.
If you are following single global Inventory and if you wish to uninstall any software then remove it from Global Inventory as well. What to do if my Global Inventory is corrupted ?
No need to worry if your global Inventory is corrupted, you can recreate global Inventory on machine using
Universal Installer and attach already Installed oracle home by option
-attachHome ./runInstaller -silent -attachHome -invPtrLoc $location_to_oraInst.loc
ORACLE_HOME=”Oracle_Home_Location” ORACLE_HOME_NAME=”Oracle_Home_Name”
CLUSTER_NODES=”{}” Do I need to worry about oraInventory during oracle Apps 11i cloning ?
No, Rapid Clone will update both Global & Local Inventory with required information , you don’t have to worry about Inventory during Oracle Apps 11i cloning.

$ORACLE_HOME目录下重要子目录

$ORACLE_HOME/dbs

包括参数文件,11.2.0.4,一个库4个文件(密码,spfile,hc,lk),init.ora始终是一个
[root@localhost ~]# cd /u01/app/oracle/product/11.2.0/dbhome_1/dbs/
[root@localhost dbs]# ls
hc_orcl.dat  init.ora  lkORCL  orapworcl  spfileorcl.ora

[oracle@db dbs]$ ll
total 36
-rw-rw----. 1 oracle oinstall 1544 Oct 10 15:29 hc_orcl.dat
-rw-rw----. 1 oracle oinstall 1544 Oct 21 23:23 hc_wode.dat
-rw-r--r--. 1 oracle oinstall 2851 May 15  2009 init.ora
-rw-r-----. 1 oracle oinstall   24 Oct 10 15:27 lkORCL
-rw-r-----. 1 oracle oinstall   24 Oct 17 20:31 lkWODE
-rw-r-----. 1 oracle oinstall 1536 Oct 10 15:29 orapworcl
-rw-r-----. 1 oracle oinstall 1536 Oct 17 20:53 orapwwode
-rw-r-----. 1 oracle oinstall 2560 Oct 19 15:35 spfileorcl.ora
-rw-r-----. 1 oracle oinstall 2560 Oct 21 21:22 spfilewode.ora
[oracle@db dbs]$ pwd
/u01/app/oracle/product/11.2.0/dbhome_1/dbs

在$ORACLE_HOME/dbs下存在lk打頭的文件,文件内容很簡單,到底這個文件是做什麽用的呢?
[oracle@Channel-MQ3 dbs]$ cat lkTESTDB
DO NOT DELETE THIS FILE!
这是个MOUNT 锁文件 [6 Metalink, 2000] 。这会阻止两个实例 mount 在同一数据库上,当不使用并行服务器的模式下,要使用不同的 ORACLE_SID 。原来这是个 0 长度文件,不过现在包含文本 'DO NOT DELETE THIS FILE!' 。

$ORACLE_HOME/rdbms
数据字典目录,全是sql文件与plb文件
/u01/app/oracle/product/11.2.0/dbhome_1/rdbms/admin
错误消息提示信息存放的地点,msg与msb文件
/u01/app/oracle/product/11.2.0/dbhome_1/rdbms/mesg

$ORACLE_HOME/network
网络相关目录及文件
[oracle@db admin]$ ls
listener.ora  samples  shrept.lst  sqlnet.ora  tnsnames.ora
[oracle@db admin]$ pwd
/u01/app/oracle/product/11.2.0/dbhome_1/network/admin

$ORACLE_HOME/sqldeveloper

oracle OFA的更多相关文章

  1. Oracle的OFA架构

    最优灵活体系结构(Optimal Flexible Architecture,简称OFA) OFA其实就是一种Oracle的一种规范,其意义就是用一种统一的给文件和文件夹的规则,和文件存放目录的规则做 ...

  2. Oracle优化总结

    本文主要从大型数据库ORACLE环境四个不同级别的调整分析入手,分析ORACLE的系统结构和工作机理,从九个不同方面较全面地总结了ORACLE数据库的优化调整方案.关键词 ORACLE数据库 环境调整 ...

  3. OFA & OMF

    OFA OFA(Optimal Flexible Architecture)是Oracle设计的一种文件系统目录结构,目的在于简化多个Oracle产品版本维护.OFA的核心是两个环境变量:ORACLE ...

  4. oracle 学习

    一.数据库语言部分1. SQL语言:关系数据库的标准语言2. PL/SQL:过程化语言Procedural Language3. SQL*Plus:简单的报表,操作系统接口 4. Oracle 8.0 ...

  5. Oracle Analyze 命令 详解

    官网的链接如下: http://docs.oracle.com/cd/E11882_01/server.112/e26088/statements_4005.htm#SQLRF01105 使用DBMS ...

  6. ORACLE 优化

    本文主要从大型数据库ORACLE环境四个不同级别的调整分析入手,分析ORACLE的系统结构和工作机理,从九个不同方面较全面地总结了 ORACLE数据库的优化调整方案. 关键词 ORACLE数据库 环境 ...

  7. Materialized View in Oracle - Concepts and Architecture

    List all of MV inoracle: select owner, query, query_len from dba_mviews See content of aMV: select * ...

  8. oracle 11g centos6 安装

    选型:32位的内存是个瓶颈,已经是64位的时代了.使用64位的CentOS6 和 64位的Oracle 11g R2在虚拟机器安装,采用hostonly方式设置网络注意:能上网的网卡要设置一下ICS( ...

  9. [Oracle] UNIX与Windows 2000上Oracle的差异(II)

    作者:Ian Adam & David Stien, SAIC Ltd 日期:19-Dec-2003 出处:http://www.dbanotes.net翻译:Fenng 数据库启动与关闭 在 ...

随机推荐

  1. M1-S70卡片介绍

    卡片有4K的存储空间,有32个小扇区和8个大扇区.小扇区的结构为:每扇区有4块,每块16个字节,一共64字节,第3块为密钥和控制字节:大扇区的结构为:每扇区16块,每块16个字节,一共256字节,第1 ...

  2. [Camel Basics]

    Define routes: Either using Spring xml or Java DSL. Spring xml: <camelContext> <routeBuilde ...

  3. chromium 安装 pepper flash player

    打开终端,输入以下命令即可安装: 1. sudo apt-get update 2. sudo apt-get install chromium-browser 3. sudo apt-get ins ...

  4. 【题解】【BST】【Leetcode】Unique Binary Search Trees

    Given n, how many structurally unique BST's (binary search trees) that store values 1...n? For examp ...

  5. log4j 应用

    前言: 该片文章旨在对于刚入门的log4j学习的同学们,看完这篇,应该可以提高了. 主要内容还是根据log4j的配置文件中的各个配置来进行解析 正文: log4j 使用参数 log4j配置文件示例: ...

  6. Git 基础学习篇(应用-windows篇)

    此篇教程主要是讲应用,因为理论,,,额,我也说不出来.大家要深入学习还是看廖老师的教程吧. 可以把这篇当作一个简单应用的参考,因为当初看廖老师的也难看啊!!! 以下是资料: 廖雪峰-Git教程 [Gi ...

  7. sqlserver mdf向上兼容附加数据库(无法打开数据库 'xxxxx' 版本 611。请将该数据库升级为最新版本。)

    最近工作中有一个sqlserver2005版本的mdf文件,还没有log文件,现在需要 附加到sqlserver2012,经过网上一顿搜索,把完整的过程奉上,供大家参考 首先创建数据库 再设置数据库的 ...

  8. Hive cli源码阅读和梳理

    对Cli的重新认识*). hive cli有两种模式, 本地模式: 采用持有的driver对象来处理, 远程模式: 通过连接HiveServer来实现, 由此可见之前的架构图中的描述还是模糊且带有误导 ...

  9. 分享"狼用"API一個

    API People that are interested in using our service for automated caching of their newly created .to ...

  10. windows下apache及mysql定时自动重启设置

    有时候觉得,服务器运行时间过长,造成服务器内存等压力过大.因此,不用重新启动服务器的情况下,完成apache和mysql的内存释放,是非常有益处的(把重启时间设置在访问量最低的).首先,apache的 ...