首页 > 其他分享 >rman测试备份跳过固定表空间后做全库恢复 (recover database skip tablespace )

rman测试备份跳过固定表空间后做全库恢复 (recover database skip tablespace )

时间:2023-06-05 20:13:00浏览次数:41  
标签:database 全库 备份 skip _% recover backup channel

rman备份排除表空间:

备份过程截图:

备份脚本:

run{
allocate channel t1 device type disk;
allocate channel t2 device type disk;
backup as compressed backupset incremental level 0 filesperset 10 format '/u01/backup/data_%T_%U' database;
sql 'alter system archive log current';
backup as compressed backupset
filesperset 10
format '/u01/backup/arc_%s_%p_%t'
(archivelog all delete input);
backup as compressed backupset
format '/u01/backup/ct_%s_%p_%t'
current controlfile;
delete noprompt obsolete;
release channel t1;
release channel t2;
}

恢复控制文件

mount数据库

进行restore操作:

进行recover database 跳过表空间ogg

recover database skip tablespace ogg;

 

 

数据库恢复成功,OGG表空间为0

 

标签:database,全库,备份,skip,_%,recover,backup,channel
From: https://www.cnblogs.com/elanjie/p/17458805.html

相关文章

  • selenium click skip_button("introjs-skipbutton")
    classINTERFACING():def__init__(self):self.driver_initialized=Falseself.driver=''self.MAX_TRIALS=2#self.chrome_version=get_google_chrome_version()defmake_soup(self):returnBeaut......
  • 首次进入Mysql修改密码报“The MySQL server is running with the --skip-grant-table
    第一次安装完mysql,修改默认密码的时候,报“TheMySQLserverisrunningwiththe--skip-grant-tablesoptionsoitcannotexecutethisstatement”。先刷新mysql然后再重新修改密码即可。mysql>ALTERUSER'root'@'localhost'IDENTIFIEDBY'123456';ERROR1290(H......
  • python berkeley DB操作——打开btree索引文件中的database
    打开BDB中某个索引中的数据库代码: frombsddb3importdbimportbsddb3asbsddbprintdb.DB_VERSION_STRINGmydb=db.DB()mydb.open('your_btree_db_filename','databsename',dbtype=db.DB_BTREE)rec=cur.first()whilerec:#printkeyvaluepri......
  • 【Oracle】Oracle Database Administration 2019 Certified Professional Certificati
     说明:1.目前题库100%覆盖考题,准确率84%。2.若需要优质烤券,请私信,留下你的WX。(官方250刀,本店只需要1500RMB包含100%完整题库以及考试经验分享)3.本条信息长期有效。考试题量:85通过分数:84%1、WhichtwoaretrueaboutreclaimingspaceusedbyFlashbacklogsinOracle......
  • MySQL中--skip-password参数作用
     MySQL中--skip-password参数探究 本篇使用客户端:mysql版本:MySQL8认证插件:mysql_native_password对于初始化数据库时,若是使用了--initialize-inscure选项,则对于用户root@localhost会使用空密码。2023-05-26T09:20:21.205673+08:006[Warning][MY-010453][Server]roo......
  • The MySQL server is running with the --skip-grant-tables option so it cannot exe
     TheMySQLserverisrunningwiththe--skip-grant-tablesoptionsoitcannotexecutethisstatement 默认情况下,启动MySQL数据库实例期间,会读取所有的权限表条目到内存中,后续被缓存到内存中的权限条目作为依据即刻对后续的控制访问生效(传送门)。使用"skip-grant-tab......
  • maven命令,跳过单元测试-maven.test.skip和skipTests的区别
    maven命令,跳过单元测试-maven.test.skip和skipTests的区别-DskipTests,不执行测试用例,但是会编译测试用例类,并且会生成相应的class文件,而且此文件放置在target/test-classes下。-Dmaven.test.skip=true,不执行测试用例,也不会编译测试用例类。一、使用maven.test.skip,不但跳过单元......
  • Java的Stream流的分页,Stream的skip和limit实现分页
    1、工具类packagecom.cc.testproject.utils;importcom.github.pagehelper.PageInfo;importorg.springframework.stereotype.Component;importjava.util.List;importjava.util.stream.Collectors;/**List分页工具类*@authorCC*@since2022/2/16**/@Compon......
  • DataBase can’t be open after shutdown immediate
    五一放假期间,某客户的数据库出现故障,据说对方找了一些工程师折腾了一天,都无法将数据库open,其中参考了网络上的很多文章,也使用了一系列隐含参数,均无法将数据库打开。这里我简单的与大家分享一下这个case。首先我介绍一下整个case的背景,客户在4月30号凌晨通过shutdownimmediate停......
  • set character_set_database=utf8;set character_set_server=utf8;
    D:\mysql-5.6.24-win32\bin\mysql-urootWelcometotheMySQLmonitor.Commandsendwith;or\g.YourMySQLconnectionidis55Serverversion:5.6.24MySQLCommunityServer(GPL)Copyright(c)2000,2015,Oracleand/oritsaffiliates.......