Por ejemplo, si queremos ver los archivos generados en un backup específico:
RMAN> list backup summary tag bkp_prod_121511060003;
List of Backups
===============
Key TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag
------- -- -- - ----------- --------------- ------- ------- ---------- ---
5234 B F A DISK 15-DEC-11 1 1 YES bkp_prod_121511060003
5235 B F A DISK 15-DEC-11 1 1 YES bkp_prod_121511060003
RMAN> exit
Recovery Manager complete.
La fecha en la que se generó, "Completion Time", no incluye la hora.
Para cambiar el formato, no se puede hacer a nivel de sesión:
RMAN> sql "alter session set nls_date_format=''dd/mm/yyyy hh:mi:ss''";
sql statement: alter session set nls_date_format=''dd/mm/yyyy hh:mi:ss''
RMAN> list backup summary tag bkp_prod_121511060003;
List of Backups
===============
Key TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag
------- -- -- - ----------- --------------- ------- ------- ---------- ---
5234 B F A DISK 15-DEC-11 1 1 YES bkp_prod_121511060003
5235 B F A DISK 15-DEC-11 1 1 YES bkp_prod_121511060003
La forma de hacerlo es usando la variable de ambiente NLS_DATE_FORMAT en el sistema operativo, fuera de la consola RMAN:
[oracle@oraculo ~]$ export NLS_DATE_FORMAT='DD/MON/YYYY HH24:MI:SS'
[oracle@oraculo ~]$ rman target /
Recovery Manager: Release 10.2.0.3.0 - Production on Wed Dec 21 20:31:46 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: Ent11g (DBID=943234298)
RMAN> list backup summary tag bkp_prod_121511060003;
using target database control file instead of recovery catalog
List of Backups
===============
Key TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag
------- -- -- - ----------- -------------------- ------- ------- ---------- ---
5234 B F A DISK 15/DEC/2011 03:21:03 1 1 YES bkp_prod_121511060003
5235 B F A DISK 15/DEC/2011 03:52:47 1 1 YES bkp_prod_121511060003
No hay comentarios.:
Publicar un comentario