转 Oracle 9i,10g,11g各自alert日志的位置

总是记不住,转一下吧。

原址如下:

http://blog.chinaunix.net/uid-26446098-id-3289813.html


Oracle 9i,10g,11g各自alert日志的位置 


10g&9i的alert日志:

进入oracle:
[zhangshengdong@oralocal1 ~]$ sudo su - oracle
[oracle@oralocal1 ~]$ sqlplus "/as sysdba"

SQL> select * from v$version; (查看一下版本)

SQL> show parameter dump;(查看一下dump)

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
background_core_dump                 string      partial
background_dump_dest                 string      /ora/OraHome/admin/oracle9i/bd
                                                 ump
core_dump_dest                       string      /ora/OraHome/admin/oracle9i/cd
                                                 ump
max_dump_file_size                   string      UNLIMITED
shadow_core_dump                     string      partial
user_dump_dest                       string      /ora/OraHome/admin/oracle9i/ud
                                                 ump

10g和9i的alert日志文件都在/ora/OraHome/admin/oracle9i/bdump中

[oracle@oralocal1 ~]$ cd /ora/OraHome/admin/oracle9i/bdump
[oracle@oralocal1 bdump]$ ls
alert_oracle9i.log


11g的alert日志发生了改变:

SQL> col name format a20;
SQL> col value format a40;
SQL> select name,value From v$diag_info;

NAME                 VALUE
-------------------- ----------------------------------------
Diag Enabled         TRUE
ADR Base             f:\app\zsd
ADR Home             f:\app\zsd\diag\rdbms\oracle11g\oracle11
                     g

Diag Trace           f:\app\zsd\diag\rdbms\oracle11g\oracle11
                     g\trace

Diag Alert           f:\app\zsd\diag\rdbms\oracle11g\oracle11
                     g\alert


NAME                 VALUE
-------------------- ----------------------------------------
Diag Incident        f:\app\zsd\diag\rdbms\oracle11g\oracle11
                     g\incident

Diag Cdump           f:\app\zsd\diag\rdbms\oracle11g\oracle11
                     g\cdump

Health Monitor       f:\app\zsd\diag\rdbms\oracle11g\oracle11
                     g\hm

Default Trace File   f:\app\zsd\diag\rdbms\oracle11g\oracle11
                     g\trace\oracle11g_ora_1864.trc


alert日志就在:
f:\app\zsd\diag\rdbms\oracle11g\oracle11g\tracea\alert_ora11g.log
f:\app\zsd\diag\rdbms\oracle11g\oracle11g\alert\log.xml
这两个文件中



你可能感兴趣的:(转 Oracle 9i,10g,11g各自alert日志的位置)