[20160516]adrci purge.txt

简介: [20160516]adrci purge.txt adrci> help purge   Usage: PURGE [[-i | ] |                [-age [-type ALERT|INCIDENT|TRACE|CDUMP|HM...

[20160516]adrci purge.txt

adrci> help purge

  Usage: PURGE [[-i <id1> | <id1> <id2>] |
               [-age <mins> [-type ALERT|INCIDENT|TRACE|CDUMP|HM|UTSCDMP]]]:

  Purpose: Purge the diagnostic data in the current ADR home. If no
           option is specified, the default purging policy will be used.

  Options:
    [-i id1 | id1 id2]: Users can input a single incident ID, or a
    range of incidents to purge.

    [-age <mins>]: Users can specify the purging policy either to all
    the diagnostic data or the specified type. The data older than <mins>
    ago will be purged

    [-type ALERT|INCIDENT|TRACE|CDUMP|HM|UTSCDMP]: Users can specify what type of
    data to be purged.

  Examples:
    purge
    purge -i 123 456
    purge -age 60 -type incident

--测试环境trace目录的文件太多,做一次清理,并做一个记录:

adrci> show homes
ADR Homes:
diag/tnslsnr/gxqyydg4/listener
diag/clients/user_oracle/host_4007105823_80
diag/asmtool/user_oracle/host_4007105823_80
diag/rdbms/book/book

adrci> set home diag/rdbms/book/book

$ cd /u01/app/oracle/diag/rdbms/book/book/trace
$ ls -l |wc
   10875    96994   966821

adrci> purge -age 3600
--注:3600的单位是分钟,也就是保留1天的.

$ ls -l |wc
     30     234    2245

目录
相关文章
|
SQL Oracle 关系型数据库
[20180511]PLSQL与fetchsize.txt
[20180511]PLSQL与fetchsize.txt --//测试看看PLSQL中cursor的fetchsize: 1.环境: SCOTT@book> @ ver1 PORT_STRING                    VERSION  ...
1176 0
|
SQL Oracle 关系型数据库
[20180510]20 Indexes.txt
[20180510]20 Indexes.txt https://jonathanlewis.wordpress.com/2018/05/08/20-indexes/ --//重复测试: If your system had to do a lot of ...
1064 0
|
缓存 Oracle 关系型数据库
[20171122]rman filesystemio_options.txt
[20171122]rman备份与参数filesystemio_options设置.txt --//这几天写了几篇filesystemio_options参数设置的文章,单独测试这个参数对rman备份以及os缓存的影响.
1000 0
|
关系型数据库 MySQL
mysqld: File './binlog.~rec~' not found 问题解决处理
之前搭建了mysql主从同步服务器,之前启动正常,但今天在重启了服务器后,发现一直报 mysql pid mysqld_safe mysqld from pid file  hostname.pid ended 这实际是个错误,说明mysql启动时找*.pid文件发生错误。
2854 0
|
Oracle 关系型数据库 数据库
|
Oracle 关系型数据库 数据库
[20170616]recover copy of datafile 6.txt
[20170616]no copy of datafile 6 found to recover.txt --//最近几天一直被这个问题纠缠,我虽然不知道问题在哪来,还是找到简单的解决方法,做1个记录: --//链接:http://www.
1161 0
|
监控 Oracle 关系型数据库
[20170203]关于flashback的问题.txt
[20170203]关于flashback的问题.txt --今天生产系统遇到的问题,dataguard机器磁盘空间不足,需要释放磁盘空间,无论如何删除日志,空间回收都是很少.
904 0
|
Oracle 关系型数据库 Linux
[20160803]关于SNAPSHOT CONTROLFILE.txt
[20160803]关于SNAPSHOT CONTROLFILE.txt --当使用rman备份时,rman会建立一个SNAPSHOT CONTROLFILE,具体位置由参数 RMAN> show SNAPSHOT CONTROLFILE NAME  ; ...
872 0