[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

目录
相关文章
|
开发工具 git
解决报错:Remove untracked files, stash or commit any changes, and try again
解决报错:Remove untracked files, stash or commit any changes, and try again
125 1
|
关系型数据库 MySQL
innobackupex: Error: The xtrabackup child process has died at /usr/bin/innobackupex line 2672
<p><br></p> <p></p> <div class="line number29 index28 alt2" style="line-height:13.1875px; font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace; white-space:nowrap; col
3400 0
|
关系型数据库 MySQL
mysqld: File './binlog.~rec~' not found 问题解决处理
之前搭建了mysql主从同步服务器,之前启动正常,但今天在重启了服务器后,发现一直报 mysql pid mysqld_safe mysqld from pid file  hostname.pid ended 这实际是个错误,说明mysql启动时找*.pid文件发生错误。
2861 0
|
缓存 Oracle 关系型数据库
[20171122]rman filesystemio_options.txt
[20171122]rman备份与参数filesystemio_options设置.txt --//这几天写了几篇filesystemio_options参数设置的文章,单独测试这个参数对rman备份以及os缓存的影响.
1006 0
|
Oracle 关系型数据库 Shell
[20171121]rman backup as copy 2.txt
[20171121]rman backup as copy 2.txt --//昨天测试backup as copy ,备份时备份文件的文件头什么时候更新.是最后完成后还是顺序写入备份文件.
1023 0
|
Oracle 关系型数据库 Linux
[20171121]rman backup as copy.txt
[20171121]rman backup as copy.txt --//上个星期做数据文件块头恢复时,提到使用rman备份数据文件时,文件头数据库信息是最后写入备份集文件的,在filesperset=1的情况 --//下写入备份集文件中的倒数第2块就是文件头的备份.
1236 0
|
Oracle 关系型数据库 数据库
|
Oracle 关系型数据库 数据库
[20170616]recover copy of datafile 6.txt
[20170616]no copy of datafile 6 found to recover.txt --//最近几天一直被这个问题纠缠,我虽然不知道问题在哪来,还是找到简单的解决方法,做1个记录: --//链接:http://www.
1166 0
|
开发工具 git
nothing added to commit but untracked files present
前言 今天在git commit时候遇到如下问题 On branch master Your branch is up-to-date with 'origin/master'. Untracked files: mybatisMysql/src/ mybatisxml/ nothing added to commit but untr
4044 0
|
监控 Oracle 关系型数据库
[20170203]关于flashback的问题.txt
[20170203]关于flashback的问题.txt --今天生产系统遇到的问题,dataguard机器磁盘空间不足,需要释放磁盘空间,无论如何删除日志,空间回收都是很少.
906 0