PLM之家PLMHome-工业软件与AI结合践行者

[TC问题解决方案] 172. Teamcenter populatefsc 中止在 TRANSLATIN状态

[复制链接]

2019-8-19 15:47:15 1796 0

admin 发表于 2019-8-19 15:47:15 |阅读模式

admin 楼主

2019-8-19 15:47:15

请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!

您需要 登录 才可以下载或查看,没有账号?注册

x
4 \' m$ R5 Q" q/ r
171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态
0 G  m/ i) V, |* O' F& ^8 V$ D7 c& |( ^+ H- u
问题 ; C% I! [4 w* X. \0 \" e! Z4 `
默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该; g% d9 i& ]$ h. g6 V$ u( B5 s( ?
模块中的功能无法登录
8 t& u* d1 s/ Y  M0 ~, g2 N7 Y- W  D$ }6 B. {& R' v1 o" ?# M
ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the
  |$ g* f$ F) |, T. ?5 [( p2 luser ID or the password is invalid.  
# N6 K0 O6 E: C! e" k: d0 O
! J% d+ C3 g  j( _; [" ?方法 + B: ?7 S- l# G* I# V2 n- ]  M" `
修改 populatefsc 脚本,增加登录信息
7 Q4 y) G# p. u$ J( j在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行
6 |1 _+ P* @5 @- z7 Cset TC_DBA_USER=infodba
2 l7 X) |1 P0 ?. n6 o  W% ~
6 m0 c$ I" e* Y在 populatefsc.pl 中 :
" o; e/ m8 ^7 U7 z& ~% W$ s/ W6 @1 V' d, g2 g) X
在 runPLMXMLExport 子程序下增加红色标记的代码
6 k( ?* ^  c$ _) d3 G: Q/ b2 z- o4 |! Q- u! l7 g, f
# This will be the full path to the executable.
( p0 _( f/ [' n- ~# U- Gmy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
  W" p5 B. ~8 X4 L- \; c  |$ _my $tcdbauser= "$ENV{'TC_DBA_USER'}";     
: b! j) C( d6 w& ~my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; 0 ^6 [- g6 z: [* u' ?
# Make sure we can find what we are executing.
( E. [( \( ]' |1 a3 F9 w- |die "The ${exe_name} executable was not found at the following location:
+ V+ M, g! _. x% k; W. @( x${exe_path}\n" unless -x ${exe_path};
) B$ Y+ R% t5 e& P% q/ g$ x
) p6 Z- i: h  G- l4 G; E# Start building the command line. # y6 C) k8 d3 L# _8 q+ ]
my @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' ); 9 J% x* i' @: k- G# ?4 z
3 G! [8 x% M9 P+ {9 X+ a* A& E) c2 C
# Take care of possible empty spaces in the argument values
5 \5 K! Y  z( |9 @my $outputFileStr = $hashRef->{'output_file'}; 9 y8 u1 D* n6 A. F, l1 M
$outputFileStr = handleEmptySpaceInPath($outputFileStr);
; Z; d" O! W& y3 [9 Q% jmy $scoUid = $hashRef->{'uid'}; . R% E: H' {$ y! _6 ^% S6 y
$scoUid = handleEmptySpaceInPath($scoUid);
! o( i( _/ \; n' e$ Y7 N  |7 ]# I( y7 x! @0 G, B% P" q/ i  d4 \
# Add the extra options.
" z( }. \4 F' k! M; LaddOption(\@args, '-xml_file=', $outputFileStr, 1); 9 U: q# X" f5 x3 L! [
addOption(\@args, '-uid=', $scoUid, 1);
& J7 z$ o- V* b- OaddOption(\@args, '-u=', $tcdbauser, 1);     ( b5 E( X1 S3 u" O; L
addOption(\@args, '-pf=', $pwdfile, 1);
3 _/ \/ K4 q5 ?( R" f4 V4 h& h% l: h
- N  @! U( K+ X/ L+ V- H在 runLoadFscCache 子程序下增加红色标记的代码
0 H4 z5 Q0 l! ?
: M- V) q8 f' M6 ^1 P' E$ {" M# This will be the full path to the executable.
+ U# _: @3 Y, _3 j* R- }) F% i  v& Pmy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
0 M! d/ p9 d+ d
% G' S7 s" D7 f& h; wmy $tcdbauser= "$ENV{'TC_DBA_USER'}"; 9 z" s+ B- W# Y: C8 |' o
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
2 i+ p5 W9 M4 |* y7 J# Make sure we can find what we are executing.
4 |) E# c* U" j$ x2 ?; qdie "The ${exe_name} executable was not found at the following location: 7 @* L2 d6 y% W# j8 Y
${exe_path}\n" unless -x ${exe_path}; * [  H2 D4 a! r; u5 J1 X
: ^9 ~' X, s, v. w$ _
# Figure out output information from command line input ( L! ?1 i$ u. K* j+ _2 ]
my $outputFileStr = $hashRef->{'output_file'}; * v% N; F  d8 ~
my $fscUri = $hashRef->{'targets'};
5 k: o' N$ `( Q1 w+ O- l) c" w  T5 H4 j# e. h5 F
# Check possible empty space in the string
/ k* @  U  K) U$outputFileStr= handleEmptySpaceInPath($outputFileStr); / m9 c/ [( f$ p# U3 c" `% C& O) m
$fscUri = handleEmptySpaceInPath($fscUri);
6 Z5 Q$ }) x' l8 l+ _0 n% ]/ O: {' }7 |
# Add the extra options.
# p2 K2 g. k6 i8 i5 U  _my @args= ( $exe_path, '-f=load' );
7 a" Z1 C6 L, G7 O/ Y; `. |, saddOption(\@args, '-plmxml=', $outputFileStr, 1); 6 |+ }. C5 E+ Z! C
addOption(\@args, '-fsctargets=', $fscUri, 1);
" \3 g9 e# M! C; d' P. }addOption(\@args, '-u=', $tcdbauser, 1); 3 s% `5 w, l" }/ u* ]
addOption(\@args, '-pf=', $pwdfile, 1);
' S) v, w$ n9 E/ S. Y- a9 T
3 V; [0 ]% @% ^7 s3 z9 A2 b% i  O# H! _- u0 z% C* _

1 v2 ]3 ]& {- r% {2 \
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 doTeam.tech
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 注册

返回列表 本版积分规则

  • 发布新帖

  • 在线客服

  • 微信

  • 客户端

  • 返回顶部

  • x
    温馨提示

    本网站(plmhome.com)为PLM之家工业软件学习官网站

    展示的视频材料全部免费,需要高清和特殊技术支持请联系 QQ: 939801026

    PLM之家NX CAM二次开发专题模块培训报名开始啦

    我知道了