Restore Oracle Database em single instance
Autor: Mario Leonel Martinez Junior | Publicado: 2015-03-27T14:25:00-04:00



O tema de hoje é bem interessante, vamos realizar um restore de backup rman.Ate ai nada muito complexo,

mais.... sempre tem o mais não é, para este restore teremos um backup rman full , de um ambiente clusterizado usando asm.



E realizaremos o restore em uma single instance, sem asm. Agora sim né?Mais divertido.



Vamos la:



Sempre que uso o RMAN eu gosto de setar a variável de ambiente NLS_DATE_FORMAT para facilitar a leitura dos arquivos de backup, acredite isso ajuda.


No S.O. :

export NLS_DATE_FORMAT='DD-MM-YYYY HH24:MI:SS'


Toda restauração é realizada por partes bem distintas , e a cada etapa concluída avançamos na restauração nos aproximando do objetivo final que é subir o banco.

Sendo assim tudo começa com o spfile (já estou supondo que requisitos de instalação e o Oracle estejam realizados):


Etapa &nbsp;1 - SPFILE / PFILE


O que pouca gente sabe &nbsp;é que para um banco subir , pouquíssimos parâmetros do spfile são necessários.

Basicamente 3 parâmetros na verdade:



control_files

db_block_size

db_name



Dependendo da falha que estiver ocorrendo o spfile ainda poderá ser acessado.

O ideal é sempre ter um backup ou um pfile para te salvar.



No meu caso eu tinha o pfile e removi tudo que não era necessário, ficou assim:

*.audit_file_dest='/u01/app/oracle/admin/orcl/adump'
*.audit_trail='db'
*.compatible='11.2.0.0.0'
*.control_files='/backup/oracle/control/orcl/current.265.825085225','/backup/oracle/control/orcl/current.260.825085225' &nbsp;# Aqui eu alterei para o caminho atual pois estava em +ASM
*.db_block_size=8192
*.db_file_name_convert='+DATA/', '/u02/oracle/orcl/'# Esse parâmetro nos possibilita converter nossos datafiles do ASM para o novo file system
*.db_cache_size=536870912
*.db_create_online_log_dest_1='/u01/app/oracle/oradata/orcl/' # Aqui eu alterei para o caminho atual pois estava em +ASM
*.db_domain='teste.com.br'
*.db_files=1000
*.db_32k_cache_size=1073741824
*.db_name='orcl'
*.db_recovery_file_dest='/backup/oracle/arch/orcl/'
*.db_recovery_file_dest_size=214748364800
*.diagnostic_dest='/u01/app/oracle'
*.distributed_lock_timeout=900
*.dml_locks=6720
*.filesystemio_options='SETALL'
*.global_names=FALSE
*.java_pool_size=67108864
*.job_queue_processes=1000
*.large_pool_size=134217728
*.log_archive_format='%t_%s_%r.dbf'
*.log_buffer=20946944
*.nls_language='BRAZILIAN PORTUGUESE'
*.nls_territory='BRAZIL'
*.open_cursors=300
*.parallel_max_servers=160
*.parallel_servers_target=64
*.pga_aggregate_target=10737418240
*.processes=1000
*.remote_login_passwordfile='exclusive'
*.result_cache_max_size=64454656
*.sec_case_sensitive_logon=FALSE
*.sessions=1105
*.sga_max_size=6442450944
*.sga_target=0
*.shared_pool_size=536870912
orcl.undo_tablespace='UNDOTBS1'


Dica: no pfile de uma instancia RAC estará presente o parâmetro cluster_database pode ser setado para no ou removido e todas as referencias aos nomes únicos das instancias devem ser removidos.

Para agilizar o processo de restore eu aumentei a pga para 10 g.



Ok, com esses parâmetros já podemos tentar iniciar o banco, vamos la:


[oracle@dba ~]$ rman target/

Recovery Manager: Release 11.2.0.3.0 - Production on Wed Mar 18 07:19:39 2015

Copyright (c) 1982, 2011, Oracle and/or its affiliates. &nbsp;All rights reserved.



RMAN&gt; startup nomount pfile '/tmp/initoracle.ora;
Instancia ORACLE iniciada.

Total System Global Area 1,2827E+10 bytes
Fixed Size &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;2240344 bytes
Variable Size &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1,1174E+10 bytes
Database Buffers &nbsp; &nbsp; &nbsp; &nbsp; 1610612736 bytes
Redo Buffers &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 40890368 bytes

Perfeito ate aqui tudo bem , vamos para próxima etapa os controlfiles.

Etapa 2- Controlfile:

RMAN&gt;restore controlfile from '/tmp/c-3903424041-20150314-00';

Starting restore at 17/03/15
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=134 orclice type=DISK

channel ORA_DISK_1: restoring control file
channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
output file name=/backup/oracle/control/orcl/current.265.825085225
output file name=/backup/oracle/control/orcl/current.260.825085225
Finished restore at 17/03/15



Dica: Aqui eu aumentei o paralelismo do RMAN para 6 , o processo tende a ser mais rápido.



Mais uma etapa concluída com sucesso, próxima etapa:

Etapa 3 - Restore Database:


Agora vem a parte demorada, dependendo do tamanho do seu backup, quantidade de memoria, processador e velocidade de discos.

Criaremos um bloco de execução com run e vamos mudar a localização dos datafiles para o ponto de montagem u02 com o set newname for database e tempfile

Ainda é necessário realizar um switch datafile all para validar as alterações no controlfile.

RMAN&gt;run {
SET NEWNAME FOR DATABASE &nbsp; TO &nbsp;'/u02/oracle/orcl/%b';
SET NEWNAME FOR tempfile &nbsp;1 TO &nbsp;'/u02/oracle/orcl/%b';
restore database;
switch datafile all;
switch tempfile all;
}

executing command: SET NEWNAME

executing command: SET NEWNAME

Starting restore at 17-03-2015 10:39:39
Starting implicit crosscheck backup at 17-03-2015 10:39:39
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=767 orclice type=DISK
allocated channel: ORA_DISK_2
channel ORA_DISK_2: SID=958 orclice type=DISK
allocated channel: ORA_DISK_3
channel ORA_DISK_3: SID=1149 orclice type=DISK
allocated channel: ORA_DISK_4
channel ORA_DISK_4: SID=1341 orclice type=DISK
allocated channel: ORA_DISK_5
channel ORA_DISK_5: SID=3 orclice type=DISK
allocated channel: ORA_DISK_6
channel ORA_DISK_6: SID=194 orclice type=DISK
Crosschecked 32 objects
Crosschecked 12 objects
Finished implicit crosscheck backup at 17-03-2015 10:39:46

Starting implicit crosscheck copy at 17-03-2015 10:39:46
using channel ORA_DISK_1
using channel ORA_DISK_2
using channel ORA_DISK_3
using channel ORA_DISK_4
using channel ORA_DISK_5
using channel ORA_DISK_6
Finished implicit crosscheck copy at 17-03-2015 10:39:47

searching for all files in the recovery area
cataloging files...
cataloging done

List of Cataloged Files
=======================
File Name: /backup/oracle/arch/orcl/orcl/archivelog/2015_03_14/o1_mf_2_55107_bj7nd244_.arc
File Name: /backup/oracle/arch/orcl/orcl/archivelog/2015_03_14/o1_mf_2_55108_bj7nyghg_.arc
File Name: /backup/oracle/arch/orcl/orcl/archivelog/2015_03_14/o1_mf_1_52060_bj7nyj6d_.arc
File Name: /backup/oracle/arch/orcl/orcl/archivelog/2015_03_14/o1_mf_2_55109_bj7ocdwn_.arc
File Name: /backup/oracle/arch/orcl/orcl/archivelog/2015_03_14/o1_mf_2_55110_bj7ow99f_.arc
File Name: /backup/oracle/arch/orcl/orcl/archivelog/2015_03_14/o1_mf_2_55111_bj7voc36_.arc
File Name: /backup/oracle/arch/orcl/orcl/archivelog/2015_03_14/o1_mf_1_52061_bj7vodgk_.arc
File Name: /backup/oracle/arch/orcl/orcl/archivelog/2015_03_14/o1_mf_2_55112_bj81ox6d_.arc
File Name: /backup/oracle/arch/orcl/orcl/archivelog/2015_03_14/o1_mf_2_55113_bj81txf5_.arc
File Name: /backup/oracle/arch/orcl/orcl/archivelog/2015_03_14/o1_mf_2_55114_bj8d7399_.arc
File Name: /backup/oracle/arch/orcl/orcl/archivelog/2015_03_14/o1_mf_1_52062_bj8d74j8_.arc
File Name: /backup/oracle/arch/orcl/orcl/archivelog/2015_03_14/o1_mf_1_52063_bj8t6tbm_.arc

using channel ORA_DISK_1
using channel ORA_DISK_2
using channel ORA_DISK_3
using channel ORA_DISK_4
using channel ORA_DISK_5
using channel ORA_DISK_6

channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00001 to /u02/oracle/orcl/system.260.825085135
channel ORA_DISK_1: restoring datafile 00006 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00014 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00017 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00020 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00028 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00035 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00038 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00045 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00049 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00064 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00074 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00088 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00098 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00110 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00120 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00133 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00145 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00155 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00160 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00166 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00167 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00181 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00191 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00201 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00210 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00247 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00256 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00262 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00267 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00275 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00286 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00317 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00326 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00336 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00348 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00359 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00369 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00379 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00389 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00399 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00411 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00423 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00433 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00443 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00453 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00463 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00475 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00485 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00495 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00547 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00557 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00569 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00579 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00589 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00608 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00617 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00633 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00673 to /u02/oracle/orcl/*
channel ORA_DISK_1: restoring datafile 00689 to /u02/oracle/orcl/*
channel ORA_DISK_1: reading from backup piece /backup/rman/orcl/orcl_20150314_8eq1oupm_1_1
channel ORA_DISK_2: starting datafile backup set restore
channel ORA_DISK_2: specifying datafile(s) to restore from backup set
channel ORA_DISK_2: restoring datafile 00003 to /u02/oracle/orcl/undotbs1.263.825085135
channel ORA_DISK_2: restoring datafile 00013 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00021 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00030 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00043 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00054 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00071 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00081 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00091 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00107 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00117 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00127 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00137 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00142 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00152 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00172 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00185 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00193 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00200 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00239 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00242 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00243 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00257 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00259 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00261 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00265 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00281 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00290 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00299 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00312 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00322 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00332 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00344 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00354 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00365 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00375 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00385 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00395 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00407 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00417 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00420 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00429 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00439 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00449 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00459 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00471 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00481 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00491 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00501 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00551 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00561 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00573 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00583 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00593 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00684 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00686 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00688 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00692 to /u02/oracle/orcl/*
channel ORA_DISK_2: restoring datafile 00701 to /u02/oracle/orcl/*
channel ORA_DISK_2: reading from backup piece /backup/rman/orcl/orcl_20150314_8cq1oupd_1_1
channel ORA_DISK_3: starting datafile backup set restore
channel ORA_DISK_3: specifying datafile(s) to restore from backup set
channel ORA_DISK_3: restoring datafile 00026 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00032 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00036 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00040 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00057 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00058 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00068 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00078 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00095 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00102 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00104 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00114 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00124 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00134 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00139 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00149 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00159 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00168 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00176 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00182 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00197 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00211 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00216 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00223 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00236 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00251 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00253 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00255 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00269 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00278 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00295 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00319 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00327 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00337 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00349 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00360 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00370 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00380 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00390 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00400 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00412 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00424 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00434 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00444 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00454 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00464 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00476 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00486 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00496 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00503 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00548 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00558 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00567 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00570 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00580 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00590 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00600 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00635 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00677 to /u02/oracle/orcl/*
channel ORA_DISK_3: restoring datafile 00679 to /u02/oracle/orcl/*
channel ORA_DISK_3: reading from backup piece /backup/rman/orcl/orcl_20150314_8bq1oupa_1_1
channel ORA_DISK_4: starting datafile backup set restore
channel ORA_DISK_4: specifying datafile(s) to restore from backup set
channel ORA_DISK_4: restoring datafile 00015 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00019 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00025 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00031 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00047 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00053 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00056 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00066 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00076 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00094 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00101 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00112 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00122 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00129 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00147 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00157 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00162 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00174 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00187 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00206 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00215 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00219 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00222 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00250 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00254 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00260 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00264 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00271 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00277 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00291 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00311 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00330 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00340 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00352 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00363 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00373 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00383 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00393 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00405 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00415 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00427 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00437 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00447 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00457 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00469 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00479 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00489 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00499 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00543 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00553 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00563 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00575 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00585 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00598 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00599 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00604 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00675 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00699 to /u02/oracle/orcl/*
channel ORA_DISK_4: restoring datafile 00703 to /u02/oracle/orcl/*
channel ORA_DISK_4: reading from backup piece /backup/rman/orcl/orcl_20150314_8gq1ouqe_1_1
channel ORA_DISK_5: starting datafile backup set restore
channel ORA_DISK_5: specifying datafile(s) to restore from backup set
channel ORA_DISK_5: restoring datafile 00011 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00029 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00042 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00050 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00062 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00070 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00080 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00099 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00106 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00116 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00126 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00136 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00141 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00151 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00170 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00184 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00192 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00196 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00199 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00203 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00213 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00221 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00225 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00230 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00237 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00249 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00252 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00280 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00283 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00300 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00321 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00331 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00343 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00353 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00364 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00374 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00384 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00394 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00406 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00416 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00419 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00428 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00438 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00448 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00458 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00470 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00480 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00490 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00500 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00550 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00560 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00568 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00572 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00582 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00592 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00637 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00678 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00683 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00691 to /u02/oracle/orcl/*
channel ORA_DISK_5: restoring datafile 00700 to /u02/oracle/orcl/system_1
channel ORA_DISK_5: reading from backup piece /backup/rman/orcl/orcl_20150314_8fq1ouq1_1_1
channel ORA_DISK_6: starting datafile backup set restore
channel ORA_DISK_6: specifying datafile(s) to restore from backup set
channel ORA_DISK_6: restoring datafile 00308 to /u02/oracle/orcl/*
channel ORA_DISK_6: restoring datafile 00618 to /u02/oracle/orcl/*
channel ORA_DISK_6: restoring datafile 00624 to /u02/oracle/orcl/*
channel ORA_DISK_6: restoring datafile 00630 to /u02/oracle/orcl/*
channel ORA_DISK_6: restoring datafile 00639 to /u02/oracle/orcl/*
channel ORA_DISK_6: restoring datafile 00643 to /u02/oracle/orcl/*
channel ORA_DISK_6: restoring datafile 00647 to /u02/oracle/orcl/*
channel ORA_DISK_6: restoring datafile 00651 to /u02/oracle/orcl/*
channel ORA_DISK_6: restoring datafile 00655 to /u02/oracle/orcl/*
channel ORA_DISK_6: restoring datafile 00659 to /u02/oracle/orcl/*
channel ORA_DISK_6: restoring datafile 00662 to /u02/oracle/orcl/*
channel ORA_DISK_6: restoring datafile 00666 to /u02/oracle/orcl/*
channel ORA_DISK_6: restoring datafile 00670 to /u02/oracle/orcl/*
channel ORA_DISK_6: restoring datafile 00693 to /u02/oracle/orcl/*
channel ORA_DISK_6: restoring datafile 00695 to /u02/oracle/orcl/*
channel ORA_DISK_6: restoring datafile 00697 to /u02/oracle/orcl/*
channel ORA_DISK_6: reading from backup piece /backup/rman/orcl/orcl_20150314_8lq1p23v_1_1
channel ORA_DISK_6: piece handle=/backup/rman/orcl/orcl_20150314_8lq1p23v_1_1 tag=BACKUP_DIARIO_orcl
channel ORA_DISK_6: restored backup piece 1
channel ORA_DISK_6: restore complete, elapsed time: 00:04:17
channel ORA_DISK_6: starting datafile backup set restore
channel ORA_DISK_6: specifying datafile(s) to restore from backup set
channel ORA_DISK_6: restoring datafile 00303 to /u02/oracle/orcl/*
channel ORA_DISK_6: restoring datafile 00304 to /u02/oracle/orcl/*
channel ORA_DISK_6: restoring datafile 00621 to /u02/oracle/orcl/*
channel ORA_DISK_6: restoring datafile 00627 to /u02/oracle/orcl/*
channel ORA_DISK_6: restoring datafile 00631 to /u02/oracle/orcl/*
channel ORA_DISK_6: restoring datafile 00640 to /u02/oracle/orcl/*
channel ORA_DISK_6: restoring datafile 00644 to /u02/oracle/orcl/*
channel ORA_DISK_6: restoring datafile 00648 to /u02/oracle/orcl/*
channel ORA_DISK_6: restoring datafile 00652 to /u02/oracle/orcl/*
channel ORA_DISK_6: restoring datafile 00656 to /u02/oracle/orcl/*
channel ORA_DISK_6: restoring datafile 00660 to /u02/oracle/orcl/*
channel ORA_DISK_6: restoring datafile 00663 to /u02/oracle/orcl/*
channel ORA_DISK_6: restoring datafile 00667 to /u02/oracle/orcl/*
channel ORA_DISK_6: restoring datafile 00671 to /u02/oracle/orcl/*
channel ORA_DISK_6: restoring datafile 00694 to /u02/oracle/orcl/*
channel ORA_DISK_6: restoring datafile 00696 to /u02/oracle/orcl/*
channel ORA_DISK_6: restoring datafile 00707 to /u02/oracle/orcl/*
channel ORA_DISK_6: reading from backup piece /backup/rman/orcl/orcl_20150314_8mq1p2f2_1_1
channel ORA_DISK_6: piece handle=/backup/rman/orcl/orcl_20150314_8mq1p2f2_1_1 tag=BACKUP_DIARIO_orcl
Finished restore at 17-03-15

Mais uma etapa concluída, vamos agora ao recover:

Etapa 4- &nbsp;Recover:


RMAN&gt; recover database;

Starting recover at 17-03-2015 17:14:25
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=768 orclice type=DISK
allocated channel: ORA_DISK_2
channel ORA_DISK_2: SID=959 orclice type=DISK
allocated channel: ORA_DISK_3
channel ORA_DISK_3: SID=1150 orclice type=DISK
allocated channel: ORA_DISK_4
channel ORA_DISK_4: SID=1341 orclice type=DISK
allocated channel: ORA_DISK_5
channel ORA_DISK_5: SID=3 orclice type=DISK
allocated channel: ORA_DISK_6
channel ORA_DISK_6: SID=195 orclice type=DISK

starting media recovery

archived log for thread 1 with sequence 52062 is already on disk as file /backup/oracle/arch/orcl/orcl/archivelog/2015_03_14/o1_mf_1_52062_bj8d74j8_.arc
archived log for thread 1 with sequence 52063 is already on disk as file /backup/oracle/arch/orcl/orcl/archivelog/2015_03_14/o1_mf_1_52063_bj8t6tbm_.arc
archived log for thread 2 with sequence 55114 is already on disk as file /backup/oracle/arch/orcl/orcl/archivelog/2015_03_14/o1_mf_2_55114_bj8d7399_.arc
archived log file name=/backup/oracle/arch/orcl/orcl/archivelog/2015_03_14/o1_mf_2_55114_bj8d7399_.arc thread=2 sequence=55114
archived log file name=/backup/oracle/arch/orcl/orcl/archivelog/2015_03_14/o1_mf_1_52062_bj8d74j8_.arc thread=1 sequence=52062
unable to find archived log
archived log thread=2 sequence=55115
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 03/17/2015 17:15:59
RMAN-06054: media recovery requesting unknown archived log for thread 2 with sequence 55115 and starting SCN of 48792884863


Perfeito , recuperamos o banco vamos para a ultima etapa abrir o banco:

RMAN&gt; alter database open resetlogs;

database opened



Agora no sqlplus devemos criar um spfile e fim de historia , banco restaurado em single instance e fora do asm.