.TRC

TRC File

Oracle Database Trace File
Ask a question
QUICK ANSWER

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.

Developer: Oracle Corporation Category: Database Files MIME: text/plain
OPENS ON Windows macOS Linux
Related: .DB · .DBF · .ACCDB · .SQL

On this page

19k+ extensions indexed
Last reviewed Jul 23, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the TRC file format?

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.

Security & safety

RISK: 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.

Format details

in a nutshell
FULL NAMEOracle Database Trace Fileaka Oracle trace file, SQL trace file
DEVELOPEROracle Corporationsince 1980s-1990s (Oracle RDBMS diagnostics; SQL*Net/Net8 tracing)
MIME TYPEtext/plain
TYPEPlain-text diagnostic / debug trace log (binary in rare dump cases)
This extension is also used by…
  • 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.

Programs that open TRC files

Windows3 apps
Notepad Open-source Open the .trc as text to read headers, error stacks and SQL directly.
tkprof (Oracle utility) Built-in 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) Paid 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) Free Install Oracle Instant Client Tools, then run tkprof on the .trc to produce a report.
Any text editor (TextEdit/BBEdit) Free Open the .trc as plain text to read it.
Linux2 apps
tkprof / trcsess (Oracle utilities) Built-in On the DB host: 'tkprof trace.trc out.txt sort=prsela,exeela,fchela'; use trcsess to consolidate multiple session traces first.
less / vim Open-source Open the .trc directly from the diag trace directory to read it.

Technical details

deep spec
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)
Released1980s-1990s (Oracle RDBMS diagnostics; SQL*Net/Net8 tracing)
Latest versionN/A (evolves with each Oracle Database release; ADR-based since 11g, 2007)
Specificationdocs.oracle.com

TRC conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with TRC files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about TRC files.

Frequently asked questions

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.

References

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

Keep exploring

across the database

Top extensions this week

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

Related extensions

.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

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z