Bootstrap

oracle u01清理,Oracleの/u01/11g/diag/rdbms/orcl/orcl/incident 的清理

https://docs.oracle.com/cd/E11882_01/server.112/e25494/diag.htm#ADMIN11007

每当一个错误发生的时候,oracle会创建一个incident,并且分配一个INCIDENT_ID号,同时在ADR HOME的INCIDENT目录中创建相应的INCIDENT 目录,每个错误号一个INCIDENT目录,目录被命名为incdir_。在incident 目录下含有相应的DUMP文件。

清理过程:

登录Oracle用户

[root@ywsjoracle ~]# su -oracle

[oracle@ywsjoracle~]$

进入Oracle的bin目录

[oracle@ywsjoracle ~]$ cd /u01/11g/product/11.2.0/bin

进入adrci工具界面

[oracle@ywsjoracle bin]$ adrci

ADRCI: Release11.2.0.1.0 - Production on Tue Mar 5 09:39:22 2019Copyright (c)1982, 2009, Oracle and/or its affiliates. All rights reserved.

ADR base= "/u01/11g"

查看Oracle目录,并重新设定路径

adrci>show home

ADR Homes:

diag/tnslsnr/ywsjoracle/listener

diag/rdbms/orcl/orcl

adrci> set homepath diag/rdbms/orcl/orcl

adrci>sh

;