Copiar Archivelogs desde ASM a sistema de archivo en Oracle

En mi caso, uso ASM en oracle, el usuario administrador de ASM es grid.

Para copiar los archivelogs desde el ASM uso el siguiente proceso

Listo los archivelogs

[+ASM][GRID12c]grid@piscis:grid $  asmcmd ls +DGFRA/ICE_PRD/ARCHIVELOG/2018_10_02/                   
thread_1_seq_21234.643.988423701
thread_1_seq_21235.470.988440549
thread_1_seq_21236.652.988448405
thread_1_seq_21237.550.988454235
thread_1_seq_21238.467.988454907
thread_1_seq_21239.327.988455721
thread_1_seq_21240.667.988456777
thread_1_seq_21241.600.988458381
thread_1_seq_21242.529.988464721
thread_1_seq_21243.653.988475071
[+ASM][GRID12c]grid@piscis:grid $

Sabiendo cual es el archivelog que quiero copiar, ejecuto el comando asmcmd cp de la siguiente forma

[+ASM][GRID12c]grid@piscis:grid $  asmcmd cp '+DGFRA/ICE_PRD/ARCHIVELOG/2018_10_02/thread_1_seq_21243.653.988475071' /tmp
copying +DGFRA/ICE_PRD/ARCHIVELOG/2018_10_02/thread_1_seq_21243.653.988475071 -> /tmp/thread_1_seq_21243.653.988475071
[+ASM][GRID12c]grid@piscis:grid $

Luego de ello, verifico en /tmp que el archivo haya sido copiado.

[+ASM][GRID12c]grid@piscis:grid $ ls -ltr /tmp/thread_1_seq_21243.653.988475071
-rw-r----- 1 grid oinstall 449786880 oct  2 17:31 /tmp/thread_1_seq_21243.653.988475071
[+ASM][GRID12c]grid@piscis:grid $ 

Y eso es todo.

 

 

Deja un comentario