Author: mac

  • 【转】ASM Disk Group Attributes

    Disk group attributes were introduced in ASM version 11.1. They are bound to a disk group, rather than the ASM instance. Some attributes can be set only at the time the disk group is created, some only after the disk group is created, and some attributes can be set at any time, by altering the…

  • 【转】How to reconfigure Oracle Restart

    转自 asmsupportguy 博客 The other day I had to reconfigure an Oracle Restart 12c environment, and I couldn’t find my blog post on that. It turns out that I never published it here, as my MOS document on this topic was created back in 2010 when this blog didn’t exist!   The original document was…

  • 【转】How to resize grid disks in Exadata

    转自asmsupportguy 博客 This document explains how to resize the grid disks in Exadata (to make them larger), when there is free space in the cell disks. The free space can be anywhere on the cell disks. In other words, the grid disks can be built from and extended with the non-contiguous free space.   Typically, there is no…

  • 【转】REQUIRED_MIRROR_FREE_MB

    The REQUIRED_MIRROR_FREE_MB and the USABLE_FILE_MB are two very interesting columns in the V$ASM_DISKGROUP[_STAT] view. Oracle Support gets many questions about the meaning of those columns and how the values are calculated. I wanted to write about this, but I realised that I could not do it better than Harald van Breederode, so I asked him for permission…

  • 一种手工恢复asm文件的方法

    摘要 本发明提供一种手工恢复ASM文件的方法,涉及计算机系统设计领域和数据库领域,通过获取ASM磁盘信息来重构已损坏或者丢失的ASM磁盘头,然后再通过PST信息来获取相关磁盘的信息,最后通过alias来获取ASM磁盘中的数据文件,从而获得最终的数据文件。通过手工抽取损坏的ASM磁盘文件来达到没有备份的情况下的数据恢复。 权利要求(5) 1.一种手工恢复ASM文件的方法,其特征在于该方法包括ASM DISK HEADER (1)、PST(2)、FILE DIRECTORY (3)、DISK DIRECTORY (4)、ALIAS DIRECTORY (5);通过读取 PST 数据,然后根据 kfdhdb.dskname、kfdhdb.grpname、kfdhdb.fgname、kfdhdb.dsksize 等数据构建ASM头信息,利用读取ASM元数据来获取存在于ASM磁盘中的数据文件名称,然后通过使用ASMDU来抽取相应磁盘中的文件。 2.根据权利要求1所述的方法,其特征在于所述ASM DISK HEADER,主要是该asmdisk的专有信息,例如asm disk name, group name, ausize,仓ij建和挂载的时间,可以通过oracle提供的kfed tool读取asm disk header的信息,记录在第一个AU的第一个block。 3.根据权利要求1所述的方法,其特征在于所述APST用来跟踪diskgroup的成员关系,每个disk的第二个au用于保存pst内容,pst的最后一个block用于磁盘组的heartbeat,防止被不同的集群同时挂载相同的磁盘组。 4.根据权利要求1所述的方法,其特征在于所述ADISK DIRECTORY用于记录磁盘组的asm磁盘信息,包括磁盘的大小,磁盘创建创建时间,挂载时间等信息。 5.根据权利要求1所述的方法,其特征在于所述AALIAS DIRECTORY用于记录asm另Ij名信息,包括文件所在的磁盘,文件的名称与别名,文件的目录名等信息。 说明 —种手工恢复ASM文件的方法 技术领域 [0001] 本发明涉及计算机系统设计领域和数据库领域,具体涉及一种手工恢复ASM文件的方法。 技术背景 [0002] ASM全称为 Automated Storage Management,即自动存储管理,它是自 OraclelOg这个版本Oracle推出的新功能。这是Oracle提供的一个卷管理器,用于替代操作操作系统所提供的LVM,它不仅支持单实例配置,也支持RAC这样的多实例配置。将给Oracle数据库管理员带来极大的方便,ASM可以自动管理磁盘组,并提供数据冗余和优化。特别是对于企业极的大型数据库管理员来说,可以使管理员可以从管理成百上千个数据文件这些琐碎的日常事务中解脱开来,以便处理其它更为重要的事务上去。 [0003] 在Oracle 10g这个版本之前,管理一个大型数据库成百上千个的数据文件对数据库管理员来说是一个既无技术含量又十分枯燥的工作,这要求数据库管理员要熟悉一些系统的LVM的相关知识,做好磁盘规化,LV的条带等相关的系统方面的相关操作。而使用自动存储管理将大大减轻这方面的工作量,数据库管理员只需要管理少数几个磁盘组即可。一个磁盘组是ASM管理的一个逻辑单元,由一组磁盘设备组成。我们可以定义一个磁盘组作为数据库的默认磁盘组,Oracle会自动管理存储,包括创建、删除数据文件等。Oracle会自动将这些文件与一个合适的数据库对象做关联,这样我们在管理这些对象时只需要提供对象的名称,而无需像以前那样提供详细的文件名。 [0004] ASM提供了很多有用的存储技术,如RAID和LVM (逻辑卷管理)等。像这些技术一样,ASM允许你在一组独立的磁盘上创建一个单独的磁盘组。这样就实现了单个磁盘组的1/0均衡。同时ASM还实现了条带化(Striping)和磁盘镜像(Mirroring)以提高1/0的性能和数据可靠性。与RAID或LVM不同的是,ASM是在文件级实现的条带化和镜像,这样的实现方式给用户带了很大选择自由度,我们可以在同一个磁盘组中对不同的文件配置不同的存储属性,实现不同的存储方式。 [0005] 由于ASM头中包含了 ASM的重要信息,如果头数据由于人为破坏或者硬件问题导致数据丢失那么会导致oracle数据库无法启动,进而有可能导致ASM磁盘中的数据丢失。 发明内容…

  • 【转】Find block in ASM

    转自asmsupportguy blog In the post Where is my data I have shown how to locate and extract an Oracle datafile block from ASM. To make things easier, I have now created a Perl script find_block.pl that automates the process – you provide the datafile name and the block number, and the script generates the command to extract the data…

  • 了解RMAN遇到的Ora-19566

    在做rman备份时用户经常可能遇到ORA-19566错误,Exceeded Limit Of 0 Corrupt Blocks,该错误说明在备份过程中遇到坏块(一般就是ORA-1578 所指物理坏块):   RMAN-06554: WARNING: file 15 is in backup mode RMAN-06554: WARNING: file 16 is in backup mode RMAN-06554: WARNING: file 17 is in backup mode RMAN-06554: WARNING: file 18 is in backup mode RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03009: failure of backup…

  • ORA-01173

    SQL> alter database open; alter database open * ERROR at line 1: ORA-01092: ORACLE instance terminated. Disconnection forced And in the alert log: Wed Apr 23 13:08:13 2008 Errors in file /strdv901/strdv9db/10.2.0/admin/STRDV9_soa048/udump/strdv9_ora_23033.trc: ORA-00704: bootstrap process failure ORA-00604: error occurred at recursive SQL level 2 ORA-01173: data dictionary indicates missing data file from system tablespace Wed…

  • oracle goldengate ogg 11.2以后的兼容性列表

    oracle goldengate ogg 11.2以后的兼容性列表 OGG database version compatible matrix         c Last Updated: March 14, 2014 This document covers the following product releases for Oracle GoldenGate: ◦ OGG 11gR2 (11.2.1.0.0), OGG 11gR2 (11.2.1.0.1), OGG 11gR2 (11.2.1.0.2), OGG 11gR2 (11.2.1.0.4), OGG 11gR2 (11.2.1.0.5), OGG 11gR2 (11.2.1.0.6), OGG 11gR2 (11.2.1.0.19)Oracle GoldenGate 11.2.1.0.20 is the…

  • ORACLE RAT Real Application Testing Checklist

      Pre Capture Checklist Review database version & review list of one off patches applied as per MOS Note 560977.1 both for capture database as well as replay database Review AWR/Statspack reports from peak workload Review alert.log at least from last startup in the capture database Review hardware, storage details & disk space for capture…