Snowfun

导航

 

了解用户误删除PLM系统里面的数据,可针对性去还原前天的数据库找到误删除的数据。

例如用户误删除某个文档,需要查找出来。 

 

PLM系统有一个对删除操作记录进行监听的功能,默认是关闭的,需要配置以下文件,重启服务器后才能生效,

日后才可以查询所有删除数据的记录。

 

 

1.在D:\ptc\Windchill_10.1\Windchill\conf\auditing 打开configAudit.xml

 2.搜索delete如下

 <ConfigEntry class="" enabled="false"> 
 <!-- Entries for new Summary Events, which will apply to all object types out of the box --> 

<KeyedEventEntry eventKey="*/wt.events.summary.DeleteSummaryEvent/" enabled="true" handler="wt.audit.configaudit.DefaultAuditEventRecorder"/> 
</ConfigEntry> 

 

 3.将上面的delete语句剪切粘贴放到以下位置,例如

   <!-- specifying a ConfigEntry with no class means that all events will be recorded, regardsless of type -->
   <ConfigEntry class="" enabled="true">
      <!-- The only events audited out of the box -->
      <KeyedEventEntry eventKey="*/wt.session.SessionUserAuditEvent/login" enabled="true" handler="wt.audit.configaudit.UserSessionEventRecorder"/>
      <KeyedEventEntry eventKey="*/wt.session.SessionUserAuditEvent/logout" enabled="true" handler="wt.audit.configaudit.UserSessionEventRecorder"/>
      <KeyedEventEntry eventKey="*/wt.inf.team.ContainerTeamServiceEvent/CONTAINER_LOGIN" enabled="true" handler="wt.audit.configaudit.DefaultAuditEventRecorder"/>
      <KeyedEventEntry eventKey="*/wt.audit.AuditServiceEvent/CSRF" enabled="true" handler="wt.audit.configaudit.CSRFAuditEventRecorder"/>
      <KeyedEventEntry eventKey="*/wt.events.summary.DeleteSummaryEvent/" enabled="true" handler="wt.audit.configaudit.DefaultAuditEventRecorder"/>
 </ConfigEntry> 

 

4.查询用户删除过什么数据,操作如下 

 

  

 

 

 

posted on 2014-01-17 16:32  Snowfun  阅读(589)  评论(0)    收藏  举报