标题: TFACTL diagcollect 报:Invalid date, date cannot be older than 180 days [打印本页] 作者: 郑全 时间: 2023-9-8 07:48 标题: TFACTL diagcollect 报:Invalid date, date cannot be older than 180 days 在LINUX+11G上收集资料,执行TFACTL diagcollect ,按要求输入日期后,怎么都显示日期无效,
这个是一个PERL版本低于5.22以下固有的一个问题,解决办法,是export LANG=C 即可解决。
附MOS:
SRDC Collection May Fail with "Invalid date" Though Entering Correct Date and Time (Doc ID 2947700.1)
In this Document
Symptoms
Changes
Cause
Solution
APPLIES TO:
Engineered Systems Utilities - Version 20.1 and later
Information in this document applies to any platform.
SYMPTOMS
SRDC collection may fail with following error Though Entering Correct Date and Time
Invalid date, date cannot be older than 180 days
The date entered is invalid
e.g. Enter time range
tfactl diagcollect -srdc dbperf
Enter the Database Name [Required for this SRDC] : <DB_NAME>
Do you have an AWR license? (Refer to Doc 1490798.1 for more information ) [Y|y|N|n] [Y]: N
Do you have a performance issue now [Y|y|N|n] [Y]: Y
How many hours ago did the issue appear? [<RETURN>=1h] : 1h
Invalid date, date cannot be older than 180 days
e.g. Enter date and time
tfactl diagcollect -srdc dbrac
Enter the time of the incident [YYYY-MM-DD HH24:MI:SS,<RETURN>=ALL] : 2023-04-07 01:40:00
Enter the Database Name, if the incident was NOT specific to a database (e.g. Node Reboot/Eviction) choose ALL [Required for this SRDC] : <DB_NAME>
Database Name <DB_NAME> was specified however this database has a Database Unique Name of <DB_UNIQUE_NAME>.
Database Unique Name azksdb set for <DB_NAME>.
Components included in this collection: OS CRS DATABASE CHMOS CHA ASM
Preparing to execute support diagnostic scripts.
Collecting data for all nodes
TFA is using system timezone for collection, All times shown in JST.
The date entered is invalid: 4/07/2023 01:10:00
CHANGES
CAUSE
This may occur if you are using an older version of Perl and have a specific locale set.
We have confirmed that this problem occurs in the following versions.
TFA : All versions
Perl : 5.22 or less
SOLUTION
Use a newer version of Perl.
If can't use newer version of Perl, set LC_ALL before executing TFA.