从rman全备恢复数据库的步骤
来源:互联网 发布:微众银行程序员工资 编辑:程序博客网 时间:2024/05/16 00:57
1.1 恢复spfile
根据rman备份的log确认dbid以及spfile在哪个备份中
set dbid=2494162093RMAN> startup nomountRMAN> restore spfile from /home/oracle/rman11204/RAC_20160311_11_1_dbfull;
生成pfile,修改sga,pga,audit_trail,instance_number,db_create_file_dest, db_create_online_log_dest_1等参数,生成新的spfile。
1.2 恢复controlfile
RMAN> restore controlfile from /home/oracle/rman11204/RAC_20160311_11_1_dbfull;
1.3 恢复数据文件
RMAN> alter database mount;rman target / nocatalog log /home/oracle/rman_restore.log append << EOFrun{allocate channel c1 type disk;allocate channel c2 type disk;allocate channel c3 type disk;allocate channel c4 type disk;allocate channel c5 type disk;allocate channel c6 type disk;allocate channel c7 type disk;allocate channel c8 type disk;set newname for database to '+DATA';restore database;switch datafile all;release channel c1;release channel c2;release channel c3;release channel c4;release channel c5;release channel c6;release channel c7;release channel c8;}EOF
1.4 Recover数据库并open
RMAN> catalog start with '/home/oracle/rman11204';RMAN> recover database;SQL> alter database open resetlogs;
添加新temp文件,删除旧temp文件:
alter tablespace temp add tempfile '' size 30G;
alter database tempfile '' drop;
1 0
- 从rman全备恢复数据库的步骤
- 只有rman全备的和所有归档的恢复
- RMAN的备份与恢复-全备份
- RMAN 的优缺点及RMAN 备份及恢复步骤
- RMAN 的优缺点及RMAN 备份及恢复步骤
- oracle rman全备恢复实践
- 某客户使用RMAN数据库恢复测试步骤
- Rman全备份不完全恢复数据库(linux下)
- Rman全备份不完全恢复数据库(linux下)
- Rman全备份不完全恢复数据库(linux下)
- RMAN从autobackup中恢复spfile可能遇到的RMAN
- RMAN从autobackup中恢复spfile可能遇到的RMAN
- RMAN恢复复制数据库报错RMAN-06054的分析
- 使用RMAN恢复完全损坏的数据库
- 9i数据库的RMAN备份恢复
- RMAN恢复数据库
- 使用RMAN恢复数据库
- Rman 恢复数据库
- 父子进程间通信模型实现(popen)
- clients(PV操作共享内核内存进行输入输出分屏) - server(进程间通信)模型实现
- EL表达式详解
- Android环境搭建
- iOS 蓝牙连接
- 从rman全备恢复数据库的步骤
- 《世界杯彩票竞猜系统》设计报告
- Java开发相关的一些优秀网站集锦
- JavaScript编写病毒
- javascript onscroll
- STL中mem_fun和mem_fun_ref的用法及区别
- Kettle解析LIST JSON数据
- 特定用户QQ群聊天记录导出的实现
- 域名转化到IP地址的实现