当前位置: 首页 > news >正文

江苏省网站备案注销/优化设计电子课本下载

江苏省网站备案注销,优化设计电子课本下载,一个人能建网站吗,企业免费网站建设模板下载[20190305]删除审计登录信息不适合使用logrotate.txt--//生产系统数据库sys用户登录会在/u01/app/oracle/admin/${ORACLE_SID}/adump/目录产生大量的后者为aud的文件.--//比如生产系统:# ls -1 /u01/app/oracle/admin/xxxx/adump/*_20190304*.aud |wc 612 612 45900*/#…

[20190305]删除审计登录信息不适合使用logrotate.txt

--//生产系统数据库sys用户登录会在/u01/app/oracle/admin/${ORACLE_SID}/adump/目录产生大量的后者为aud的文件.
--//比如生产系统:

#  ls -1 /u01/app/oracle/admin/xxxx/adump/*_20190304*.aud |wc
   612    612   45900

*/
#  ls -ltr /u01/app/oracle/admin/xxxx/adump/*_20190305*.aud |tail
-rw-r----- 1 oracle asmadmin  871 2019-03-05 10:55:53 /u01/app/oracle/admin/xxxx/adump/xxxx1_ora_27361_20190305105553273305143795.aud
-rw-r----- 1 oracle asmadmin  880 2019-03-05 11:00:01 /u01/app/oracle/admin/xxxx/adump/xxxx1_ora_36802_20190305110001396547143795.aud
-rw-r----- 1 oracle asmadmin  870 2019-03-05 11:00:53 /u01/app/oracle/admin/xxxx/adump/xxxx1_ora_38839_20190305110053402074143795.aud
-rw-r----- 1 oracle asmadmin  870 2019-03-05 11:00:53 /u01/app/oracle/admin/xxxx/adump/xxxx1_ora_38835_20190305110053357991143795.aud
-rw-r----- 1 oracle asmadmin  880 2019-03-05 11:05:01 /u01/app/oracle/admin/xxxx/adump/xxxx1_ora_48024_20190305110501464621143795.aud
-rw-r----- 1 oracle asmadmin  870 2019-03-05 11:05:53 /u01/app/oracle/admin/xxxx/adump/xxxx1_ora_49658_20190305110553480183143795.aud
-rw-r----- 1 oracle asmadmin  870 2019-03-05 11:05:53 /u01/app/oracle/admin/xxxx/adump/xxxx1_ora_49654_20190305110553432700143795.aud
-rw-r----- 1 oracle asmadmin  880 2019-03-05 11:10:01 /u01/app/oracle/admin/xxxx/adump/xxxx1_ora_59474_20190305111001520453143795.aud
-rw-r----- 1 oracle asmadmin  871 2019-03-05 11:10:53 /u01/app/oracle/admin/xxxx/adump/xxxx1_ora_60887_20190305111053528155143795.aud
-rw-r----- 1 oracle asmadmin  871 2019-03-05 11:10:53 /u01/app/oracle/admin/xxxx/adump/xxxx1_ora_60885_20190305111053501151143795.aud

--//平均一天有接近600次sys用登录.主要是oem每隔5分钟检测数据库状态,每次发起3个连接,大量连接导致在这个目录产生大量的垃圾文件 */
--//我以前一直使用logrotate管理这些日志,但是在11g下存在如下问题.

--//11g下改变了文件命名格式加入时间戳,这样每个生成的文件是唯一的,这样state file(缺省是/var/lib/logrotate.status),会越滚越大.
--//这样每次执行越来越慢.10g下没有时间戳,也就是最大65XXX个文件(至少是一个定数).
--//logrotate配置如下:
/u01/app/oracle/admin/xxxx/adump/xxxx1_ora_*.aud
{
    monthly
    rotate 0
    notifempty
    missingok
    nomail
#    maxage 100
}

#  ls -lh /var/lib/logrotate.status
-rw-r--r-- 1 root root 72M 2019-03-03 12:18:59 /var/lib/logrotate.status

--//已经72M.注意看/var/lib/logrotate.status时间戳,3月3号执行到12:18:59结束.
--//不知道还有什么好方法,要么使用find+cron的方式,要么采用链接http://blog.itpub.net/267265/viewspace-2139283/=>[20170518]11G审计日志清除3.txt

--//另外补充logrotate的调式技巧以及注意细节:

1.注意参数sharedscripts,不然每匹配一行都要执行1次.
# man logrotate
sharedscripts
     Normally, prescript and postscript scripts are run for each log which is rotated and the absolute path to the log
     file is passed as first argument to the script. That means a single script may be run multiple times for log file
     entries which match multiple files (such as the /var/log/news/* example). If sharedscripts is specified, the
     scripts are only run once, no matter how many logs  match  the wildcarded  pattern,  and whole pattern is passed to
     them.  However, if none of the logs in the pattern require rotating, the scripts will not be run at all. This
     option overrides the nosharedscripts option and implies create option.

2.logrotate的调试:
--//使用参数-v -d ,-d仅仅调试不会真真执行.
--//加上-f比较特殊.

-f, --force
    Tells  logrotate to force the rotation, even if it doesn't think this is necessary.  Sometimes this is useful after
    adding new entries to logrotate, or if old log files have been removed by hand, as the new files will be created,and
    logging will continue correctly.

转载于:https://www.cnblogs.com/lfree/p/10475829.html

http://www.jmfq.cn/news/5015863.html

相关文章:

  • 制作个人网页教程/seo实战培训
  • 云酒店网站建设/软文模板
  • 什么是网站单页/百度资讯指数
  • 零基础学ui设计好学吗/seo关键词怎么填
  • 娱乐网站建设公司/网络营销推广策划方案
  • 淘宝网站建设与规划/seo技术顾问阿亮
  • 池州网站设计/找培训机构的app
  • 定做专业营销型网站/app拉新放单平台
  • 网站备案后的标识/建站宝盒
  • dw自己做网站/营销型网站seo
  • 网站开发配置状态统计样本/沈阳网站建设制作公司
  • b站推广网站2024大全/百度上做优化
  • 互联网网站开发发展/关键词简谱
  • Javaweb就是做网站吗/网页百度
  • php网站开发工具有哪些/网络营销的基本方法有哪些
  • 知名的环保行业网站开发/b2b电商平台
  • 创想ECS网站建设服务/磁力狗在线
  • 网站空间价格/seo优化的技巧
  • 幸福宝推广app网站入口/seo网络运营
  • 南通优普网站建设制作/网络推广服务合同
  • 可以做区位分析的网站/山东疫情最新情况
  • 个人开店的电商平台/seo优化代理
  • 建站之星官网 discuz/优化深圳seo
  • 泉州网站页面设计公司/成都网站建设系统
  • 140平米装修多少钱/seo营销策划
  • 威海建设局网站首页/怎样优化网站
  • 云主机 做网站/新手学seo
  • 网站制作的基本步骤/网络推广公司简介模板
  • 门户网站 cms/seo能从搜索引擎中获得更多的
  • php网站开发缓存的运用/seo综合查询工具下载