Teamcenter Environment variables to modify logging behavior
Teamcenter writes log information in various files for each action it process. Log files are always the best place to find out the reason for any issues (for Root Cause Analysis). By default, Teamcenter is not tuned for maximum logging mechanism because it slows down the performance and generates tons of logs.
Below are the few environment variable to enable the logging mechanism to understand the problem from the logs generated.
SET TC_SQL_DEBUG=BJPT SET TC_JOURNAL=FULL SET TC_KEEP_SYSTEM_LOG=Y SET TC_TRACEBACK=ON SET TC_POM_JOURNALLING=Y
By setting above the 5 variables, we enable journal logging with SQL statements, timing report for each statement execution and tracebacks
How to set the variables (any one):
Set as system environment variables using below option. Make sure to remove the variables once the goal is achieved, if not all the Teamcenter sessions will generate extra log files. This PC -> Properties -> Advanced system settings -> System Properties ->Advanced -> Environment Variables -> User Variables
Set the variables on a command prompt and launch Teamcenter portal or ITK utility.
Set the variables on portal.bat in location <TC_ROOT>/portal. Add the variables before calling the start_imr.bat.