.TRC

Файл TRC

Oracle Database Trace File
Задать вопрос
БЫСТРЫЙ ОТВЕТ

A TRC file is a plain-text diagnostic log written by Oracle Database to record what the server or a SQL session was doing. You can open it in any text editor (Notepad++, Vim, less), but for SQL trace output the Oracle utility tkprof turns the raw data into a readable performance report. The file itself is safe to open; the concern is that it may contain sensitive SQL and bind-variable values.

Разработчик: Oracle Corporation Категория: Файлы баз данных MIME: text/plain
ОТКРЫВАЕТСЯ НА Windows macOS Linux
Связанные: .DB · .DBF · .ACCDB · .SQL

На этой странице

Проиндексировано расширений: 19k+
Последняя проверка: Jul 23, 2026

Не знаете, что это за файл?

Перетащите любой файл в наш идентификатор - мы прочитаем первые байты, чтобы определить формат.

Идентифицировать файл

Что такое формат файла TRC?

A .trc file is a trace or debug file created by Oracle Database software. The trace file contains a detailed record of database events executed by the server - including SQL parse, execute, and fetch operations, wait events, bind variable values, and error stacks - and can be used to analyze or debug performance problems and errors that occurred during database transactions.

Oracle produces .trc files automatically through background processes, or when SQL tracing is enabled via ALTER SESSION SET SQL_TRACE = TRUE, the DBMS_MONITOR package, or diagnostic event 10046. Since Oracle Database 11g, trace files reside under the Automatic Diagnostic Repository (ADR) trace/ directory and each .trc is typically paired with a companion .trm trace-map file used by ADR tooling for indexing.

Raw SQL traces are usually processed with the tkprof or trcsess command-line utilities to produce a human-readable performance report. However, as the .trc file is stored in plain-text format, it can also be opened with most text editors. Files range from a few kilobytes to hundreds of megabytes depending on workload intensity and tracing duration.

.trc files may contain sensitive data including SQL statements, bind variable values, and session details, so they should be treated as confidential.

Безопасность и защита

РИСК: LOW

A .trc is passive text and cannot execute, so it is safe to open. The real concern is CONFIDENTIALITY, not malware: SQL traces can contain the literal SQL statements and bind-variable values that passed through the database - potentially personal or secret data - so redact before sharing externally. Operationally, .trc/.trm files accumulate in the ADR trace directory and can fill the disk; purge them with ADRCI or the database's automatic retention policy rather than deleting at random while the instance is running.

Детали формата

в двух словах
ПОЛНОЕ НАЗВАНИЕOracle Database Trace Fileтакже известен как Oracle trace file, SQL trace file
РАЗРАБОТЧИКOracle Corporationс 1980s-1990s (Oracle RDBMS diagnostics; SQL*Net/Net8 tracing)
MIME-ТИПtext/plain
ТИПPlain-text diagnostic / debug trace log (binary in rare dump cases)
СВЯЗАННЫЕ.db.dbf.accdb.sql
Это расширение также используется в…
  • PTC Creo / Pro/ENGINEER trail (trace) file - A .trc trail file recording a user's UI actions in Pro/E for replay/debugging - unrelated to Oracle.
  • Generic application trace/debug log - Many programs (network sniffers, middleware, custom apps) write a plain-text .trc debug log; open with a text editor.

Программы, открывающие файлы TRC

Windows3 apps
Notepad Открытый код Open the .trc as text to read headers, error stacks and SQL directly.
tkprof (Oracle utility) Встроенная Run 'tkprof yourtrace.trc output.txt sys=no sort=exeela' to turn a raw SQL trace into a readable performance report. Ships with every Oracle client/server install.
Oracle Database (with SQL Developer / tkprof) Платно Use the bundled tkprof/trcsess utilities; SQL Developer can also display trace output. The database itself is what generates and consumes traces.
macOS2 apps
tkprof (Oracle Instant Client tools) Бесплатно Install Oracle Instant Client Tools, then run tkprof on the .trc to produce a report.
Any text editor (TextEdit/BBEdit) Бесплатно Open the .trc as plain text to read it.
Linux2 apps
tkprof / trcsess (Oracle utilities) Встроенная On the DB host: 'tkprof trace.trc out.txt sort=prsela,exeela,fchela'; use trcsess to consolidate multiple session traces first.
less / vim Открытый код Open the .trc directly from the diag trace directory to read it.

Технические подробности

глубокая спецификация
Format typePlain-text diagnostic log (ASCII / UTF-8); database character-set dependent in rare cases
MIME typetext/plain (application/octet-stream for binary dump regions in specialized traces)
File signatureNo fixed magic bytes; file begins with a descriptive plain-text header containing the trace file path, Oracle version, instance name, and OS process ID
Produced byOracle Database server and background processes (PMON, SMON, DBWn, LGWR, etc.) or explicit user-session SQL tracing
SQL tracing activationALTER SESSION SET SQL_TRACE = TRUE; DBMS_MONITOR.SESSION_TRACE_ENABLE; diagnostic event 10046 at levels 1, 4, 8, or 12
Trace contentSQL parse / execute / fetch timings, wait events, bind variable dumps, recursive SQL, ORA- error stacks, and cursor statistics
Companion fileEach .trc is paired with a .trm trace-map file (ADR index / metadata) since Oracle Database 11g
ADR storage path$ORACLE_BASE/diag/rdbms/<db_name>/<instance>/trace/ - governed by the Automatic Diagnostic Repository introduced in Oracle 11g
Processing utilitiestkprof formats a raw 10046 trace into a ranked SQL report; trcsess merges traces from multiple sessions into one file
SQL*Net / Net variantOracle Net (formerly SQL*Net / Net8) also writes .trc files for client- or server-side network-layer diagnostics; trace level set via TRACE_LEVEL_CLIENT / TRACE_LEVEL_SERVER in sqlnet.ora
Typical file sizeA few KB for short sessions to hundreds of MB for busy sessions traced at event 10046 level 12 (bind values + waits)
CompressionUncompressed; the file is plain text with no internal compression applied
ConfidentialityMay expose SQL statements, bind variable values, schema object names, and internal Oracle diagnostics - should be treated as sensitive
Associated operating systemsLinux, Windows Server, Solaris, AIX, HP-UX - any platform that hosts Oracle Database
Related file types.trm (ADR trace map), [.log](/format/log) (Oracle alert log), [.dmp](/format/dmp) (Oracle dump), .ora (Oracle init/network config)
Выпущен1980s-1990s (Oracle RDBMS diagnostics; SQL*Net/Net8 tracing)
Последняя версияN/A (evolves with each Oracle Database release; ADR-based since 11g, 2007)
Спецификацияdocs.oracle.com

Конвертации TRC

Вопросы и ответы сообщества

спрошено пользователями
Задать быстрый вопрос
Получите помощь от людей, работающих с файлами TRC. Будьте конкретны - укажите вашу систему и версию ПО.
Аккаунт не нужен · ответы обычно в течение дня

Вопросов пока нет - станьте первым, кто спросит о файлах TRC.

Часто задаваемые вопросы

How do I open a .TRC file?
It's plain text - open it in any text editor (Notepad++, Vim, less). If it's an Oracle SQL trace, run the bundled tkprof utility to turn it into a readable performance report.
What is tkprof and do I need it?
tkprof is Oracle's command-line tool that summarizes a raw SQL (10046) trace into parse/execute/fetch statistics and wait events. You don't strictly need it to read a .trc, but raw traces are very hard to interpret without it.
Can I delete Oracle .trc and .trm files?
Generally yes - they are diagnostic logs. Use ADRCI 'purge' or the ADR retention policy to remove old traces safely; avoid deleting them by hand while the instance is busy writing them.
What's the .trm file next to my .trc?
It's the ADR trace-map metadata file that indexes the matching .trc; Oracle's diagnostic tools use it. You don't read it directly.
Does a .trc file contain sensitive data?
It can. SQL traces may record actual statements and bind values (which could include personal or confidential data), so review and redact a trace before sending it to anyone outside your team.
How do I generate a trace file in Oracle?
Enable session tracing with DBMS_MONITOR.SESSION_TRACE_ENABLE or 'ALTER SESSION SET EVENTS '10046 trace name context forever, level 12''; the .trc appears in the ADR trace directory shown by the DIAGNOSTIC_DEST/USER_DUMP_DEST setting.

Ссылки

1Oracle - Performing Application Tracing (19c)docs.oracle.com
2Oracle - Using tkprof (SQL Tuning Guide)docs.oracle.com

Узнать больше

по всей базе данных

Популярные расширения на этой неделе

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.PARTPartial Download File
4.DATProgram Data File (generic)
5.EXEWindows Executable (Portable Executable)
6.NOMEDIAAndroid No-Media Marker File
7.RPMSGRestricted Permission Message
8.TMPTemporary File
9.MDMarkdown Document
10.BINCD/DVD Disc Image (BIN/CUE)

Похожие расширения

.DBSQLite Database File
.DBFDatabase File (dBASE / xBase table)
.ACCDBMicrosoft Access Database (2007+)
.SQLSQL Script (Structured Query Language source / database dump)
.MDBMicrosoft Access Database (97-2003, Jet engine)
.FDBFirebird Database

Бесплатные инструменты для файлов

Идентификатор файлов и конвертер изображений в браузере - все работает на вашем устройстве.

Открыть инструменты

Обзор расширений файлов A-Z