Friday, September 21, 2012

Teamcenter Admin Cheat Sheet


Delete an attribute
set POM_RM_ATTR=ON (run this from the teamcenter command prompt)
[-remove_attr infobda password dba class AttributeName]
Example – install -remove_attr infobda password dba Item_IRMstr data1
Unlock DB – Error “Only SA can log in”
install -unlock_db -u=infodba -p=password -g=dba
Regenerate schema file
install -regen_schema_file -u=infodba -p=infodba -g=dba
generate the pom_xmt file
install -gen_xmit_file -u=infodba -p=password -g=dba
make sure there are no db processes
clearlocks -assert_all_dead -u=infodba -p=password -g=dba
Rename an attribute
[–rename_attr user-id password group class old-attribute-name new-attribute-name]
Example – install –rename_attr infodba password dba Item_IRMstr oldname newname
Edit a attribute
Ex: Adding “Null is Valid” to TXT_ECO
[–mod_attr user-id passwd grp class name token {+ | –}]
install -mod_attr infodba infodba dba TXT_ECO Affected POM_null_is_valid +
Tokens
POM_attr_export_as_string
POM_attr_follow_on_export
POM_attr_ignore_export_errors
POM_attr_is_candidate_key
POM_attr_may_not_be_stubbed
POM_attr_no_pom_backpointer
POM_cannot_be_frozen
POM_has_initial_value
POM_has_lowerbound
POM_has_upperbound
POM_is_classvariable
POM_is_unique
POM_null_is_valid
POM_public_read
POM_public_write
POM_transient
Edit the string length
EX: Extending string length to TXT_ECO.ChangeClass TXT_ECO
install -alter_str_len -u=infodba -p=infodba -g=dba TXT_ECO ChangeClass 15
Add a new attribute
EX: Adding attributes to TXT_ECO
[–add_attr user-id passwd grp class name type length descriptor {strlen ref_class}]
install -add_attr infodba infodba dba TXT_ECO SoftwareAffected 2008 1 64 3
Attribute type by code
2001 – POM_char
2002 – POM_date
2003 – POM_double
2004 – POM_float
2005 – POM_int
2006 – POM_logical
2007 – POM_short
2008 – POM_string
*This post is more of for reference and is not meant to give detialed information.

8 comments:

  1. Hello,
    I need your help in creating multiple team center schema in single oracle database. By default it create infodba schema in oracle with some tablespace when you install teamcenter, If I want to do another installation on same database it’ll overwrite the existing infodba schema.

    How it’ll be possible to do the same so that multiple people can work on teamcenter with single database instead of seperate oracle database instance.

    Thnx.
    Aamir
    aamir.sahil@gmail.com

    ReplyDelete
  2. Hello Aamir,

    I will definitely assist you. But can you please provide me your requirement?

    Thanks in advance.

    Regards
    Bharat

    ReplyDelete
  3. Hi,
    Can you please let me know why I am getting error "error allocating teamcenter user license" while logging in teamcenter using infodba login. I restarted my system and tc services many times. Still no success.

    ReplyDelete
  4. Hi Devika,

    The following are some possibilities that I can suspect for this error "error allocating teamcenter user license".

    1. Check your "Mac-ID" with the license file associated.
    2. Check your "Machine Name" with the license file associated.
    3. Check the "Listener Service" status.
    4. Try "sqlplus" in "cmd prompt" and login as infodba and check the status.
    5. Check the status of license from LMTools by performing enquiry check.

    One if the above will be the problem and try resolving it.

    PS: In case of any help/concerns, please write back to bharathkumar198@gmail.com

    Regards
    Bharat

    ReplyDelete
  5. Hi Bharat,

    I have a set of custom attributes defined for all item revisions of my assembly. Is there a way to assign the values of these attributes by reading a excel sheet?

    Thanks,
    Sairam

    ReplyDelete
  6. Hello Sairam,

    Let me first explain you my understanding to your question.
    1. You have custom attributes for item revisions.
    For. E.g. User Data 1 = -----------
    2. You have excel file which contains some data.
    For E.g. your excel file contains some string "Hello World".
    3. You have to extract the data from excel and insert into that attribute.
    For E.g. User Data 1 = Hello World

    If so, you can write a ITK batch program which will extract the data from and inserts values in appropriate attributes.

    Please write back for any concerns/queries.

    Regards
    Bharat

    ReplyDelete
  7. First, after a long wait, I get the error message: Unable to bind to server running on localhost: 1572
    If I try again, error message is: POM not started
    Try a third time, error message is: Teamcenter Engineering has detected a serious internal error; To maintain data integrity log out and restart Teamcenter Engineering, otherwise data corruption could occur.
    In the "TAO ImR" console window running in the background, the following lines repeat:
    not running. alive=false.
    Cannot Activate .

    ReplyDelete
    Replies
    1. Hello Manpreet,

      It is because TCServer not able to bind to that 1572 port. Please check any other process running on that port.

      This should solve your issue.

      Regards
      Bharat

      Delete