清理Teamcenter的审计日志

清理日志的方法

修改日志保留的天数:

Fnd0RetentionPeriod

This constant is placed on the Fnd0AuditLog business object and its

children. The default value is NULL. Type a value in the Value box to

change its value.

 批处理样例:

ECHO ON
set tc_root=D:\Siemens\Teamcenter10
set tc_data=D:\Siemens\tcdata
call %TC_DATA%\tc_profilevars.bat

ECHO Y|audit_purge -u=infodba -p=******* -g=dba -logtype=Fnd0GeneralAudit -purge -retentionperiod=10

ECHO Y|audit_purge -u=infodba -p=******* -g=dba -logtype=Fnd0DigitalSignatureAudit -ECHO Y|purge -retentionperiod=10

ECHO Y|audit_purge -u=infodba -p=******* -g=dba -logtype=Fnd0FileAccessAudit -purge -retentionperiod=10

ECHO Y|audit_purge -u=infodba -p=******* -g=dba -logtype=Fnd0LicenseChangeAudit -purge -retentionperiod=10

ECHO Y|audit_purge -u=infodba -p=******* -g=dba -logtype=Fnd0ScheduleAudit -purge -retentionperiod=10

ECHO Y|audit_purge -u=infodba -p=******* -g=dba -logtype=Fnd0SecurityAudit -purge -retentionperiod=10

ECHO Y|audit_purge -u=infodba -p=******* -g=dba -logtype=Fnd0StructureAudit -purge -retentionperiod=10

ECHO Y|audit_purge -u=infodba -p=******* -g=dba -logtype=Fnd0OrganizationAudit -purge -retentionperiod=10

ECHO Y|audit_purge -u=infodba -p=******* -g=dba -logtype=Fnd0WorkflowAudit  -sublogtype=process_audit -purge -retentionperiod=10

ECHO Y|audit_purge -u=infodba -p=******* -g=dba -logtype=Fnd0WorkflowAudit -sublogtype=signoff_audit -purge -retentionperiod=10

 

修改日志保留的天数:

Fnd0RetentionPeriod

This constant is placed on the Fnd0AuditLog business object and its

children. The default value is NULL. Type a value in the Value box to

change its value.

posted @   张永全-PLM顾问  阅读(196)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET10 - 预览版1新功能体验(一)
点击右上角即可分享
微信分享提示