Oracle Backup & Recovery
Dave
The important thing in life is to have a great aim and the determination to attain it !
展开
-
Oracle Logminer 做数据恢复 说明示例
在IBM DBA 小荷的blog上看到一个用Logminer 做数据恢复的例子。 虽然对Logminer 也了解一点,但是用Logminer 做恢复还真没用过,所以也测试一下。 原文链接地址如下: 客户的一次疏忽,DBA的一次噩梦 http://www.oracleblog.org/working-case/dba-always-bad-l原创 2011-06-19 14:52:00 · 11619 阅读 · 1 评论 -
ORACLE EXP/IMP 说明
Oracle 的导出导入是一个很常用的迁移工具。 在Oracle 10g中,Oracle 推出了数据泵(expdp/impdp). 它可以通过使用并行,从而在效率上要比exp/imp 要高。 在Oracle 10g和11g的官方文档里没有搜到有关exp/imp 的说明, 在9i里找到了相关的使用说明。 连接如下: Export http://原创 2009-10-23 14:39:00 · 35108 阅读 · 8 评论 -
Oracle 备份 与 恢复 概述
玩Oracle也有2年的时间了, 零零散散的也整理一些资料。 东西一多了,就理不清楚。 所以结合张晓明的《大话Oracle RAC》的一些内容,和自己整理的一些笔记,对Oracle 的备份和恢复做了一个系统的整理。 也是自己对知识的一个巩固吧。 一. 准备知识先来看一些准备知识,了解Oracle的物理结构,有如下4种。1. 数据文件和数据块Oracle 数据库原创 2010-04-15 22:05:00 · 18398 阅读 · 3 评论 -
Nocatalog 下的RMAN 增量备份 shell脚本
<br /> <br /> 之前整理了下catalog下全备的脚本,上次在生产库上弄了个nocatalog的脚本,结果没有在本本上保存,这次要用了,重新在整理了一下。<br /> <br />Linux 平台下 RMAN 全备和增量备份 shell 脚本<br />http://blog.csdn.net/tianlesoftware/archive/2010/07/16/5740630.aspx<br /> <br />在执行脚本之前,先修改几个参数值:<br />1. DB 参数:<br /原创 2011-01-26 15:24:00 · 18337 阅读 · 5 评论 -
Linux ftp 自动上传备份文件脚本
<br /> <br /> DB 用RMAN 直接将备份文件放在盘柜上了,为了以防万一,老大让把这些备份文件在copy到一个备份服务器上。RMAN 对目录有严格的要求,以后如果要恢复,还是还原到相同的目录。<br /> 之前我计划是将备份服务器共享之后,直接mount 到DB 服务器上,然后在cp 过去,这样是很简单的。但是搞系统的大哥建议用ftp来实现。当时说是不会出现不能umount的情况,还有啥是安全什么得,这个新年一过也记不清了。备份服务器上安装了Server-U 的FTP原创 2011-02-09 16:04:00 · 11726 阅读 · 2 评论 -
对 Oracle 备份与恢复 的补充说明
之前曾整理过一片文章,来说明Oracle 的备份与恢复的。Oracle 备份 与 恢复 概述http://blog.csdn.net/tianlesoftware/archive/2010/04/16/5490733.aspx今天又看到了一些知识,与上次说明的角度不一样。 所以整理下,算是对上篇的一个补充说明。 Oracle 备份分逻辑备份和物理备份。 一.逻辑备份逻辑备份就是exp/imp, 10g 以后推出了数据泵(Data Pump/ expdp/impdp). 数据泵在效率上要比之前的exp/imp原创 2010-06-04 14:39:00 · 7867 阅读 · 0 评论 -
Linux 平台下 Oracle 数据泵备份(expdp) SHELL 脚本
<br /><br />数据泵是Oracle 10g的新特性,10g以后的版本才有。 关于数据泵的理论知识参考我的Blog:<br /><br />Oracle 10g EXPDP和IMPDP使用说明<br />http://blog.csdn.net/tianlesoftware/archive/2009/10/16/4674224.aspx<br /> <br /><br /><br /><br />Logicalbackup.sh<br />#!/bin/ksh<br /># ############原创 2010-07-07 22:21:00 · 11896 阅读 · 1 评论 -
关于 RMAN 备份 数据块 一致性的讨论
<br /> <br />今天和 杭州恒生 的一个朋友讨论一个RMAN 在备份时数据块一致性的问题。<br /> <br />关于RMAN 的备份原理参考blog:<br /> RMAN 系列(一)---- RMAN 体系结构概述 <br />http://blog.csdn.net/tianlesoftware/archive/2010/06/09/5659701.aspx<br /> <br /> <br /><br /> <br />先看官方文档上的一段话:<br /> <br />Consis原创 2010-08-10 00:06:00 · 10427 阅读 · 2 评论 -
Oracle procedure,package,function,triger 的Flashback Query
<br /> <br /> <br />之前对Flashback 进行了一个总结,参考:<br /> Oracle Flashback 技术总结<br /> http://blog.csdn.net/tianlesoftware/archive/2009/10/15/4677378.aspx<br /> <br />在这篇文章里面,Flashback Query 示例中只提到了对Table的Flashback Query。<br /> <br /> <br />原创 2011-04-07 21:09:00 · 5935 阅读 · 0 评论 -
RAC 实例 迁移到 单实例 -- 使用导出导入
<br /> <br /> <br />昨天整理做了用导出导入的方法,将Oracle 单实例迁移到 RAC 实例的实验。今天来做一个用导出导入的方法将RAC 实例迁移到 Oracle 单实例。方法都差不多。只不过顺序倒过来了。<br /> <br />Oracle 单实例迁移到 RAC 实例 -- 使用导出导入方法<br />http://blog.csdn.net/tianlesoftware/archive/2010/09/28/5912602.aspx<br /> <br /> <br />昨天用的是原创 2010-09-29 11:32:00 · 6599 阅读 · 0 评论 -
RMAN 备份异机恢复 并创建新DBID
<br /> <br />测试平台信息:<br />Oracle:11gR2<br />操作系统:Redhat 5.5<br />Target DB:dave<br /> <br />几点说明:<br />(1)RMAN 异机恢复的时候,db_name必须相同。如果说要想改成其他的实例名,可以在恢复成功后,用nid 命令修改。实例名的信息会记录到控制文件里,所以如果在恢复的时候,如果实例名不一致,恢复的时候会报错。<br />(2)如果恢复的路径和源库不一致,就需要在restore时用set 命令指定新位置原创 2011-03-11 19:05:00 · 28298 阅读 · 2 评论 -
用RMAN 备份异机恢复 迁移数据
<br /> <br /> 先假设一种情况,假设有一个数据库,数据量是2T。如果要对这个数据库进行迁移,在不考虑磁盘空间的前提下,要求在最短的时间内完成切换操作。<br /> <br /> 在不考虑磁盘空间前提下,备份时间,网络传输时间,恢复时间。这个时间对于7*24*365的系统来说,肯定是没办法承受的。<br /> 如果在考虑下备份空间+迁移后的空间。这个对磁盘的开销也是非常大。<br /> <br /> 在我的前一篇Blog里,提到了RMAN的异机恢复,原创 2011-03-12 23:42:00 · 21210 阅读 · 1 评论 -
还原真实的 cache recovery
在maclean blog 上看到的这篇文章,很不错,转贴过来,原文链接如下: http://www.oracledatabase12g.com/archives/whats-smon-enabling-cache-recovery.html 我们在学习Oracle基础知识的时候会了解到实例恢复(Instance Recovery)或者说崩溃恢复(Crash转载 2011-06-16 10:37:00 · 10072 阅读 · 4 评论