重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 820|回复: 0
打印 上一主题 下一主题

[工具] TFACTL diagcollect 报:Invalid date, date cannot be older than 180 days

[复制链接]
跳转到指定楼层
楼主
发表于 2023-9-8 07:48:50 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
在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.

For Windows:

set LC_ALL=C
For Linux:

export LC_ALL=C

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-4-28 05:14 , Processed in 0.090105 second(s), 20 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表