By default, the use of RMAN backup and restore interface only displays the date, but no specific time. Sometimes the need to view a specific time, such as viewing the situation more Incarnation of the day.
For this problem, mainly to set the environment variable NLS_DATE_FORMAT parameters, as described below. 1 , default date and time format RMAN robin@SZDB:~> rman target / Recovery Manager: Release 10.2.0.3.0 - Production on Sat Jun 1 13:54:49 2013 Copyright (c) 1982, 2005, Oracle. All rights reserved. connected to target database: GOBO1 (DBID=733951103) RMAN> list incarnation; using target database control file instead of recovery catalog List of Database Incarnations DB Key Inc Key DB Name DB ID STATUS Reset SCN Reset Time ------- ------- -------- ---------------- --- ---------- ---------- 1 1 GOBO1 733951103 PARENT 1 18-FEB-09 2 2 GOBO1 733951103 PARENT 79915248 20-SEP-12 3 3 GOBO1 733951103 PARENT 80298787 31-MAY-13 4 4 GOBO1 733951103 CURRENT 80307144 31-MAY-13 RMAN> exit Recovery Manager complete. 2 , modify environment variables to customize RMAN date and time formats robin@SZDB:~> export NLS_DATE_FORMAT='yyyymmdd hh24:mi:ss'; robin@SZDB:~> rman target / Recovery Manager: Release 10.2.0.3.0 - Production on Sat Jun 1 13:55:30 2013 Copyright (c) 1982, 2005, Oracle. All rights reserved. connected to target database: GOBO1 (DBID=733951103) RMAN> list incarnation; using target database control file instead of recovery catalog List of Database Incarnations DB Key Inc Key DB Name DB ID STATUS Reset SCN Reset Time ------- ------- -------- ---------------- --- ---------- ---------- 1 1 GOBO1 733951103 PARENT 1 20090218 16:43:43 2 2 GOBO1 733951103 PARENT 79915248 20120920 15:00:44 3 3 GOBO1 733951103 PARENT 80298787 20130531 21:03:41 4 4 GOBO1 733951103 CURRENT 80307144 20130531 22:28:05 --Author : Robinson --Blog : http://blog.csdn.net/robinson_0612 3 , RMAN permanent modification date and time formats The best way is to add the reference books directly to .bash_profile robin@SZDB:~> echo "export NLS_DATE_FORMAT='yyyymmdd hh24:mi:ss'" >> ~/.bash_profile Supplementary @ 20141123 : For the next date and time format in RMAN command line prompt in Win windows environment using the SET NLS_DATE_FORMAT = YYYYMMDD HH24: mi: SS
------------------- - Author: Leshami Source: CSDN Original: HTTPS: // blog.csdn.net/leshami/article/details/9011789 Copyright: This article is a blogger original article, reproduced, please attach Bowen link!