TeamcenterKnowledge

Query utilities

default_queries

With this utility, you can manages saved queries: Reinstate default saved queries that were deleted. Validate or modify saved queries. Migrate or delete saved queries. Install translated names for saved queries for a locale specified by the -locales option and supported by the TCServer machine encoding. Siemens Digital Industries Software recommends that you run this utility as the default Teamcenter system administration user. This ensures that saved queries are protected from unauthorized modification by other users because they are owned by a user with Teamcenter administration privileges. Syntax default_queries [-u=user-id {-p=password | -pf=password-file} -g=group] -locales=locale-code | ALL [-recreate] [-validate_query_name] [-validate_query_descs] [-modify_queries=query_name(s) | ALL] [-migrate_queries=query_name(s) | ALL] [-cleanup] [-v] [-h] Arguments -u Specifies the user ID.This is a user with Teamcenter administration privileges. Note If Security Services single sign-on (SSO) is enabled for your server, the -u and -p arguments are authenticated externally through SSO rather than being authenticated against the Teamcenter database. If you do not supply these arguments, the utility attempts to join an existing SSO session. If no session is found, you are prompted to enter a user ID and password. -p Specifies the password. This argument is mutually exclusive with the -pf argument. -pf Specifies the password file. For more information about managing password files, see Manage password files. This argument is mutually exclusive with the -p argument. -g Specifies the group associated with the user. If not specified, the user's default group is assumed. -locales Specifies the locale, using locale codes or ALL, for which translated query names and descriptions are installed. Specify a single locale or multiple locales in a comma-separated list, for example, en_US,de_DE,fr_FR. Specifying ALL installs all locales supported by your Teamcenter system. Use the preferences_manager utility to set the TC_language_default environment variable as follows: Copy preferences_manager -u=Tc-admin-user -p=password -g=group -mode=import -scope=SITE -preference=TC_language_default -values=locale -action=OVERRIDE Information about the TC_language_default environment variable and supported locales is in the Teamcenter Environment Variables. For a list of locale codes, see Teamcenter Localization. -recreate Optional parameter. Recreates the default query. -validate_query_name Optional parameter. Validates that the query name does not exceed the maximum length. -validate_query_descs Validates that the query description does not exceed the maximum length. -modify_queries Updates the query clauses of the specified queries with the default query clause. Specify a single query or multiple queries in a comma-separated list, for example, ItemRevision,Item,Dataset. Specifying ALL modifies all your queries. If default saved queries have become corrupted, you can recreate them using -modify_queries=corrupted_query_name(s). -migrate_queries Migrates the query clauses of the specified queries from class-based to type-based. Specify a single query or multiple queries in a comma-separated list, for example, ItemRevision,Item,Dataset. Specifying ALL modifies all your queries. -cleanup Deletes deprecated queries and related saved searches based on deprecated queries. Also removes deprecated queries from quick search. -v Specifies verbose mode. -h Displays help for this utility. Environment As specified in Setting up a Teamcenter command-line environment. Files As specified in Log files produced by Teamcenter. Restrictions None.

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