To simulate , I took fresh RMAN backup using following command.

[oracle@prod-18c u01]$ rman target /

Recovery Manager: Release 12.2.0.1.0 - Production on Thu May 23 00:16:04 2019

Copyright (c) 1982, 2017, Oracle and/or its affiliates.  All rights reserved.

connected to target database: JDB1 (DBID=1125819714)

RMAN> backup database;

Starting backup at 23-MAY-19
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=69 device type=DISK
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00001 name=/u01/app/oracle/oradata/jdb1/system01.dbf
input datafile file number=00003 name=/u01/app/oracle/oradata/jdb1/sysaux01.dbf
input datafile file number=00004 name=/u01/app/oracle/oradata/jdb1/undotbs01.dbf
input datafile file number=00007 name=/u01/app/oracle/oradata/jdb1/users01.dbf
channel ORA_DISK_1: starting piece 1 at 23-MAY-19
channel ORA_DISK_1: finished piece 1 at 23-MAY-19
piece handle=/u01/app/oracle/fast_recovery_area/jdb1/JDB1/backupset/2019_05_23/o1_mf_nnndf_TAG20190523T001644_ggc68p8k_.bkp tag=TAG20190523T001644 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:01:56
Finished backup at 23-MAY-19

Starting Control File and SPFILE Autobackup at 23-MAY-19
piece handle=/u01/app/oracle/fast_recovery_area/jdb1/JDB1/autobackup/2019_05_23/o1_mf_s_1008980324_ggc6dgt1_.bkp comment=NONE
Finished Control File and SPFILE Autobackup at 23-MAY-19

RMAN> exit


Recovery Manager complete.
[oracle@prod-18c u01]$ 

Step 2 : Check backup using list backup command .

[oracle@prod-18c ~]$ export ORACLE_SID=jdb1
[oracle@prod-18c ~]$ rman target /

Recovery Manager: Release 12.2.0.1.0 - Production on Thu May 23 00:24:07 2019

Copyright (c) 1982, 2017, Oracle and/or its affiliates.  All rights reserved.

connected to target database: JDB1 (DBID=1125819714)

RMAN> list backup;

using target database control file instead of recovery catalog

List of Backup Sets
===================


BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
1       Full    1019.07M   DISK        00:01:54     23-MAY-19      
        BP Key: 1   Status: AVAILABLE  Compressed: NO  Tag: TAG20190523T001644
        Piece Name: /u01/app/oracle/fast_recovery_area/jdb1/JDB1/backupset/2019_05_23/o1_mf_nnndf_TAG20190523T001644_ggc68p8k_.bkp
  List of Datafiles in backup set 1
  File LV Type Ckp SCN    Ckp Time  Abs Fuz SCN Sparse Name
  ---- -- ---- ---------- --------- ----------- ------ ----
  1       Full 1422947    23-MAY-19              NO    /u01/app/oracle/oradata/jdb1/system01.dbf
  3       Full 1422947    23-MAY-19              NO    /u01/app/oracle/oradata/jdb1/sysaux01.dbf
  4       Full 1422947    23-MAY-19              NO    /u01/app/oracle/oradata/jdb1/undotbs01.dbf
  7       Full 1422947    23-MAY-19              NO    /u01/app/oracle/oradata/jdb1/users01.dbf

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
2       Full    10.19M     DISK        00:00:02     23-MAY-19      
        BP Key: 2   Status: AVAILABLE  Compressed: NO  Tag: TAG20190523T001843
        Piece Name: /u01/app/oracle/fast_recovery_area/jdb1/JDB1/autobackup/2019_05_23/o1_mf_s_1008980324_ggc6dgt1_.bkp
  SPFILE Included: Modification time: 23-MAY-19
  SPFILE db_unique_name: JDB1
  Control File Included: Ckp SCN: 1422996      Ckp time: 23-MAY-19

RMAN> exit


Recovery Manager complete.

Let’s add some parameter to set time format in RMAN. Add following parameter in your .bash_profile which resides in home directory of oracle user.


export NLS_LANG=american_america.al32utf8 
export NLS_DATE_FORMAT="yyyy-mm-dd:hh24:mi:ss"

Now , run .bash_profile file to give effect

[oracle@prod-18c ~]$ . .bash_profile

Now , let us check backup using list backup command :

RMAN> list backup;

using target database control file instead of recovery catalog

List of Backup Sets
===================


BS Key  Type LV Size       Device Type Elapsed Time Completion Time    
------- ---- -- ---------- ----------- ------------ -------------------
1       Full    1019.07M   DISK        00:01:54     2019-05-23:00:18:39
        BP Key: 1   Status: AVAILABLE  Compressed: NO  Tag: TAG20190523T001644
        Piece Name: /u01/app/oracle/fast_recovery_area/jdb1/JDB1/backupset/2019_05_23/o1_mf_nnndf_TAG20190523T001644_ggc68p8k_.bkp
  List of Datafiles in backup set 1
  File LV Type Ckp SCN    Ckp Time            Abs Fuz SCN Sparse Name
  ---- -- ---- ---------- ------------------- ----------- ------ ----
  1       Full 1422947    2019-05-23:00:16:45              NO    /u01/app/oracle/oradata/jdb1/system01.dbf
  3       Full 1422947    2019-05-23:00:16:45              NO    /u01/app/oracle/oradata/jdb1/sysaux01.dbf
  4       Full 1422947    2019-05-23:00:16:45              NO    /u01/app/oracle/oradata/jdb1/undotbs01.dbf
  7       Full 1422947    2019-05-23:00:16:45              NO    /u01/app/oracle/oradata/jdb1/users01.dbf

BS Key  Type LV Size       Device Type Elapsed Time Completion Time    
------- ---- -- ---------- ----------- ------------ -------------------
2       Full    10.19M     DISK        00:00:02     2019-05-23:00:18:46
        BP Key: 2   Status: AVAILABLE  Compressed: NO  Tag: TAG20190523T001843
        Piece Name: /u01/app/oracle/fast_recovery_area/jdb1/JDB1/autobackup/2019_05_23/o1_mf_s_1008980324_ggc6dgt1_.bkp
  SPFILE Included: Modification time: 2019-05-23:00:14:39
  SPFILE db_unique_name: JDB1
  Control File Included: Ckp SCN: 1422996      Ckp time: 2019-05-23:00:18:44

RMAN> 

Now , we can see in completion time column that time and date is printed in the given format of NLS parameters , we can compare it with output of list backup before setting nls parameters where there is only date printed in completion time column.

Thank you for giving your valuable time to read the above information.

If you want to be updated with all our articles send us the Invitation or Follow us:

Telegram Channel: https://t.me/helporacle

Skant Gupta’s LinkedIn: www.linkedin.com/in/skantali/

Joel Perez’s LinkedIn: Joel Perez’s Profile

LinkedIn Group: Oracle Cloud DBAAS

Facebook Page: OracleHelp

About The Author

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.