清理日志的方法
修改日志保留的天数:
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.
标签:audit,dba,清理,retentionperiod,ECHO,purge,infodba,Teamcenter,日志 From: https://www.cnblogs.com/PLM-Teamcenter/p/17529918.html