trc and trm files in Oracle 11g

本文详细介绍了Oracle数据库中TRC和TRM文件的作用与重要性。TRC文件为SQL跟踪收集文件,而TRM文件则包含关于TRC文件的结构信息,用于搜索和导航。自11g版本起,所有跟踪文件都在ADR_HOME/trace目录下,每个TRC文件通常对应一个TRM文件。删除TRM文件将使TRC文件无法通过ADR和ADRCI工具进行后处理。

分享一下我老师大神的人工智能教程!零基础,通俗易懂!http://blog.youkuaiyun.com/jiangjunshow

也欢迎大家转载本篇文章。分享知识,造福人民,实现我们中华民族伟大复兴!

                What is .trc file?
Ans:Sql Trace Collection file

What is .trm file?
Ans:Trace map (.trm) file.Trace files(.trc) are sometimes accompanied by corresponding trace map (.trm) files, which contain structural information about trace files and are used for searching and navigation.

Doc ID 750982.1 explains this very well
------
(Doc ID 750982.1):TRM Trace Files Getting Generated in 11g Database
From 11g onwards, all the trace files are found in ADR_HOME/trace directory.
There is usually one “.trm” file for each “.trc” file.
The files located in the TRACE directory, with the “.trm” extensions, are called Trace Metadata files. The metadata in .trm files describe the trace records stored inside of .trc trace files.
The Trace metadata allows tools, such as Adrci, to post process the trace information.

By deleting the .trm file, you make the .trc file unusable for post processing from ADR using ADRCI tool.

------

<Related Topic>
What is ADR?
The Automatic Diagnostic Repository (ADR) is a file-based repository for storing diagnostic data. Because this repository is stored outside the database, the diagnostic data is available even when the database is down. As of Release 11g, the alert log, all trace and dump files, and other diagnostic data are also stored in the ADR.

What is an ADR HOME?
An ADR HOME is the root directory for all diagnostic dataa??traces, dumps, the alert log, and so ona??for a particular instance of a particular Oracle product or component.
The location of an ADR home is given by the following path, which starts at the ADR base directory:
diag/product_type/product_id/instance_id

Example of ADR HOMES:
diag/rdbms/orcl/ORCL1 (Product=rdbms, product_id=db_name=orcl, instance_id=ORACLE_SID=ORCL)
diag/asm/+asm/+ASM (Product=asm, product_id=+asm, instance_id=ORACLE_SID=+ASM)
diag/tnslsnr/node1/listener (Product=tnslsnr - SQL*NET Listener, product_id=hostname=node1, instance_id=listener name=listener)
           

给我老师的人工智能教程打call!http://blog.youkuaiyun.com/jiangjunshow
这里写图片描述
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值