清理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 @ 2023-07-05 21:54  张永全-PLM顾问  阅读(283)  评论(0)    收藏  举报