TeamcenterKnowledge

Working with environment variables

Setting environment variables for logging

Teamcenter saves information in various log files. View log files to identify problems by showing the state of an application at any given point. For more information about log files, see Teamcenter Administration. You can modify Teamcenter logging behavior by setting environment variables. Set the following environment variables to configure logging information sent to system log and journal files. Environment variable name Use API_JOURNAL Enables Teamcenter Integration for NX journaling when set to FULL. TC_JOURNAL Accepts the following values: OFF Creates an empty journal file. SUMMARY Creates a summary report listing the total time spent on each journal routine. FULL Creates a full report listing each call. MODULE Uses the TC_Journal_Modules preference to select which modules should be journaled. TC_Journal_Modules accepts multiple strings as values. Each value must be a valid Teamcenter application module. Set to FULL to optimize logging information. Set to MODULE to fine tune logging information. TC_JOURNAL_LINE_LIMIT Limits the number lines in the journal file; the default is 30,000 lines. Set to 0 for no limit. TC_JOURNAL_PERFORMANCE_ ONLY Collects performance information only if set to TRUE (any value). Also set TC_JOURNAL=FULL, TC_JOURNAL_LINE_LIMIT=0. When set on the server manager, set to 2 to enable performance journaling for the entire pool. This setting has no effect on the running environment unless journaling is triggered. TC_KEEP_SYSTEM_LOG Accepts the following values: Y The system log is not deleted, even if there are no errors. N The system log is deleted if there are no errors. Set to Y to retain the system log. TC_POM_JOURNALLING Determines whether the POM module journals nested calls. Set to N for full journaling. TC_SLOW_SQL Writes explain plans to the system log file, if SQL statements take longer to run than the time specified. Set to a number of seconds. Defaults to 10 seconds. If set to zero, no explain plans are written. If set to a negative value, explain plans are written if run time exceeds 1000 seconds. TC_SQL_DEBUG Accepts the following values: J Copies all SQL statements to the journal file as well as the system log file. P Includes profiling data; reports the frequency of use of each distinct statement in a summary at the end of log file. T Includes timing data; reports the time of each SQL statement. B Binds variables; expands SQL bind variables (this is the default setting). b Reports bind variables in :1 format, rather than expanding them. Set to JPT to optimize logging information. TC_TRACEBACK Accepts the following values: ON Writes tracebacks to the system log file. OFF Does not write tracebacks to the system log file. When errors occur, the system writes tracebacks to the system log file by default. Use this environment variable to override the default behavior.

Source: https://docs.sw.siemens.com/documentation/external/PL20251212545240207/en-US/tc_help/plm00026/nug1737253115711/set_environment_variables_logging.html · retrieved Fri Jul 31 2026 00:00:00 GMT+0000 (Coordinated Universal Time)