`
380071587
  • 浏览: 446448 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

catalog start with

阅读更多


摘自:

http://hi.baidu.com/itnote/item/66aa2dc939a0b510515058c1

catalog start with rman备份集直接导入控制文件中

catalog start with 是一个很好的命令. 有了这个命令后, 基本上可以不再使用catalog数据库了 . 因为可以通过这个命令将以前的备份集信息重新导入到当前控制文件中, 一般应用于使用rman恢复, 控制文件又是旧的或者是手工创建的(这样的控制文件当然没有最新的备份集的信息), 通过catalog start with 可以将最新的备份集以及归档日志文件列表导入到控制文中, 然后就可以进行rman的恢复了.

例如,拷贝备份集到 /data01 下 ,

RMAN> startup nomount;
RMAN> restore controlfile from '/data01/testdb_CF_c-3148051840-20110813-00'; # 从控制文件备份集恢复控制文件
RMAN> alter database mount;

catalog start with '/data01/'; (一定要用“/”结尾,不然找不到真实的路径)
run{
allocate channel c1 type disk;
allocate channel c2 type disk;
allocate channel c3 type disk;
set newname for datafile '+DATA/icare/datafile/system.309.717426483' to '/backup/supt/suptdata/system.309.717426483';
set newname for datafile '+DATA/icare/datafile/apps_undots1.283.717426031' to '/backup/supt/suptdata/apps_undots1.283.717426031'; set newname for datafile '+DATA/icare/datafile/apps_ts_tx_data.273.717426033' to '/backup/supt/suptdata/apps_ts_tx_data.273.717426033';
set newname for datafile '+DATA/icare/datafile/apps_ts_tx_data.275.717426033' to
set newname for datafile '+DATA/icare/onlinelog/group_16.265.743248917' to '/data02/supt/suptdata/group_16.265.743248917';
restore database force;
switch datafile all;
}

如果备份集存放在多个路径,可以多次执行

RMAN> catalog start with '/data01/';
RMAN>catalog start with '/data02/';
RMAN>catalog start with '/data03/';

分享到:
评论

相关推荐

    [PDF] WiX 3.6 A Developers Guide to Windows Installer XML

    Installer should feel right at home as we start with the basics and gradually work up to more complex subjects. Others with more experience will benefit as we catalog the new features in WiX 3.6. If ...

    Learning.VMware.vRealize.Automation.1785885839.epub

    This book is for anyone who wants to start their journey with vRealize Automation. It is your one-stop instruction guide to installing and configuring a distributed setup using NSX load balancer. ...

    Cocoa Design Patterns

    The book’s midsection is a catalog of the essential design patterns you’ll encounter in Cocoa, including * Fundamental patterns, such as enumerators, accessors, and two-stage creation * Patterns ...

    Cocoa design pattern

    Cocoa Design Patterns begins with the mother of all patterns: the Model-View-Controller (MVC) pattern, which is central to all Mac and iPhone development. Encouraged, and in some cases enforced by ...

    Drupal 6 Site Builder Solutions, Build powerful web site features for your business and connect to your customers through blogs, product catalogs, newsletters, and maps

    A practical guide with clear, step-by-step instructions for setting up a home page, product catalog, blog, events calendar, and much more What you will learn from this book : * Create a user-...

    Dependency Injection Principles, Practices, and Patterns

    You'll start by learning what DI is and what types of applications will benefit from it. Then, you'll work through concrete scenarios using C# and the .NET framework to implement DI in your own ...

    我的Platform Builder编译错误总结

    1、Ram start overlaps rom binary 2、Failed to initialize from CECONFIG.H. 3、Bootloader 引导OS 到SDRAM 后无法执行,提示“Dabort exception!!!”(数据中止异常) 4、Could not find file 'E:\WINCE500\...

    Peer to Peer Application Development: Cracking the Code

    Summary:In this unique guide, a crack team of software engineers delivers the programming solutions and source code you need to jump-start a state-of-the-art peer-to-peer application project....

    easyload 9.0

    at the very start), which specifies a map projection, coordinate units, etc. For simple Lon/Lat maps, specify "Earth Projection 1, 0". Earth Projection 1, 0 SYMBOL A MapInfo Symbol clause (if the ...

    mern-phones-app-front

    这是一个有关Phones Catalog的MERN项目。 我使用Node.js和Express.js做后端。 并且数据库存储在MongoDB中。 在前端站点,我们管理React。 :mobile_phone: :mobile_phone_with_arrow: :sparkles: Create React App...

    thinkjs_demo:学习thinkjs

    Application created by NodeJs 开发企业站点 安装依赖 项目安装后,进入项目目录,执行 npm install 安装依赖,也可以使用 taobao 源进行安装。 npm install 或者 ...开启服务 ...Deploy with pm2(扩展)

    next-workspaces:Next-js +纱线工作区+打字稿

    介绍我们将与一起使用如果此仓库中的每个文件夹还包含package.json,则它是一个单独... yarn build跑步同时运行所有应用从根文件夹yarn start // run builded versionsyarn dev // run dev versions with hot reloading

    xyplorer_full.zip

    Sample Catalog File Uninstall.exe ........ Uninstaller Optionally a program group "XYplorer" is created under "Programs" in your Start menu, containing four icons. You have a choice here: * ...

    seating-map:使用React和Typescript实现自定义座位图

    要在本地打开它: # clone the repogit@github.com:tomekskuta-monterail/seating-map.git# go to catalog with the projectcd seating-map# run development modeyarn start 现在,您可以在浏览器打开它。...

    SAP PO/PI教程 Process Orchestration The Comprehensive Guide

    11.1.2 Configuration for a Start Event or Intermediary Event 11.2 Testing and Running an SAP BPM Process 11.2.1 Process Repository Overview 11.2.2 Process Testing 11.3 Custom Enterprise Java Bean ...

    Chinese Entity Linking Comprehensive

    catalog IDs and titles: LDC2011E46: TAC 2011 KBP Cross-lingual Sample Entity Linking Queries V1.1 LDC2011E55: TAC 2011 KBP Cross-lingual Training Entity Linking V1.1 LDC2012E34: TAC 2011 KBP Cross-...

    Turbo C++ 3.0[DISK]

    To start the installation, change your current drive to the one that has the install program on it and type INSTALL. You will be given instructions in a box at the bottom of the screen for each ...

    Turbo C++ 3.00[DISK]

    To start the installation, change your current drive to the one that has the install program on it and type INSTALL. You will be given instructions in a box at the bottom of the screen for each ...

    最全的oracle常用命令大全.txt

    SQL>START test SQL>@test 常用SQL*Plus语句 a、表的创建、修改、删除 创建表的命令格式如下: create table 表名 (列说明列表); 为基表增加新列命令如下: ALTER TABLE 表名 ADD (列说明列表) 例:为test表...

Global site tag (gtag.js) - Google Analytics