惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Project Zero
Project Zero
月光博客
月光博客
Y
Y Combinator Blog
T
The Blog of Author Tim Ferriss
O
OpenAI News
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Know Your Adversary
Know Your Adversary
Last Week in AI
Last Week in AI
S
Securelist
Engineering at Meta
Engineering at Meta
博客园 - 司徒正美
P
Privacy & Cybersecurity Law Blog
T
Tailwind CSS Blog
F
Fortinet All Blogs
博客园 - 三生石上(FineUI控件)
Scott Helme
Scott Helme
MyScale Blog
MyScale Blog
P
Proofpoint News Feed
云风的 BLOG
云风的 BLOG
C
Cisco Blogs
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
小众软件
小众软件
U
Unit 42
Microsoft Azure Blog
Microsoft Azure Blog
Hacker News: Ask HN
Hacker News: Ask HN
Hugging Face - Blog
Hugging Face - Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
SecWiki News
SecWiki News
宝玉的分享
宝玉的分享
P
Proofpoint News Feed
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
H
Hackread – Cybersecurity News, Data Breaches, AI and More
L
Lohrmann on Cybersecurity
IT之家
IT之家
Security Archives - TechRepublic
Security Archives - TechRepublic
I
InfoQ
S
Security @ Cisco Blogs
Webroot Blog
Webroot Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
F
Full Disclosure
D
Darknet – Hacking Tools, Hacker News & Cyber Security
The GitHub Blog
The GitHub Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Jina AI
Jina AI
Cyberwarzone
Cyberwarzone
人人都是产品经理
人人都是产品经理
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
B
Blog RSS Feed
Apple Machine Learning Research
Apple Machine Learning Research

博客园 - 孙晓东

perl多线程理解 ORA-00020: No more process state objects available故障一例 SOA架构设计经验分享—架构、职责、数据一致性 利用增量备份恢复因归档丢失造成的DG gap ORACLE之ASM概念 Oracle Dataguard的原理与基本配置 oracle之报错:ORA-00054: 资源正忙,要求指定 NOWAIT linux挂载windows上的共享文件夹 oracle操作之传输表空间 dba诊断之IO 用SecureCRT在windows和CentOS间上传下载文件 Centos6.5下设置静态IP oracle 11g dataguard创建的简单方法 linux下mysql安装、目录结构、配置 dba诊断之lock oracle11G在linux环境下的卸载操作 Ubuntu 14.04(32位)安装Oracle 11g(32位)全过程 linux系统下设置oracle开机自动启动 Redhat6.5 安装64位oracle11.2.0.1
异机恢复perform restores
孙晓东 · 2015-03-23 · via 博客园 - 孙晓东

Restoring and Recovering the database on a new host

第一台机器上mount模式下做全备

new host:

1.配置oracle_sid和之前一致

2.start rman and connect to the target instance in NOCATALOG mode. (rman target / nocatalog)

rman target /

<=>

rman target / nocatalog

3.set then database identifier(DBID).

4.start the instance in NOMOUNT mode.

5.restore the server parameter file from the backup sets.(pfile 传到new host 恢复出spfile)

6.shutdown the instance.

7.edit the restored initialization parameter file.

8.start the instance in NOMOUNT mode.

9.create a RUN block to :

     - Restore the control file

     - Mount the database

10.create the rman recovery script to restore and recover the database.

11.execute the rman script.

12.open the database with the resetlogs option.

backups 传到new host

还原spfile

FRA

catalog recover area;

非FRA

catalog start with '/oradata';

RMAN> run {

2> restore spfile from autobackup

3> recovery area = '<flash recovery area destination>'

4> db_name = '<db_name>';

5> }

offline的恢复(冷备)

startup force nomount;

restore controlfile;

alter database mount;

restore database;

recover database noredo;

alter database open resetlogs;

异机恢复(option)

从NODE2恢复到NODE1:

0、环境清理

登陆NODE1

shutdown immediate;

startup mount restrict;

drop database;

1、准备三样内容:

rman target / 获得DBID:758457693

全库的完整备份(含控制文件、SP文件、归档文件)

run {

allocate channel c1 device type disk format '/u01/oradata/newhost/%U';

backup as compressed backupset database include current controlfile plus archivelog;

}

cd /u01/oradata/newhost/

scp * node4:/u01/oradata/newhost/

单独将autobackup的spfile&controlfile复制过来。

2、在node1上完成实例的启动

关闭ASM实例,释放内存。

创建目录

cd /u01/oradata

mkdir sales arch backup newhost

mkdir -p /u01/app/oracle/fast_recovery_area/sales

rman target /

set dbid 758457693

startup nomount;

restore spfile to '/u01/app/oracle/product/11.2.0/dbhome_1/dbs/spfilesales.ora' from '/u01/oradata/newhost/o1_mf_s_886008933_bv6p3553_.bkp';

startup nomount force;

3、完成控制文件的启动

restore controlfile from '/u01/oradata/newhost/o1_mf_s_886008933_bv6p3553_.bkp';

alter database mount;

4、恢复数据库

catalog start with '/u01/oradata/newhost/';

restore database;

SQL > recover database using backup controlfile until cancel;

SQL > alter database open resetlogs;