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

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

[复制链接]

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

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

admin 楼主

2019-8-19 15:47:15

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

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

x

; X* D7 r% u0 y( b( m3 k  l( X% v171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态
9 q; p( K; n2 [# R, E  I% P% t% _# J4 P5 V
问题
7 p) Q9 v; D) j默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该, n& a5 }/ W* T" q3 x4 [
模块中的功能无法登录
6 F2 @) c1 ?6 b5 L$ b: }2 e9 W6 v, G7 l) P/ q1 J( n- s
ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the / G$ S: Z* R6 W/ r2 L4 l
user ID or the password is invalid.  
+ {- b! c, r  V1 }: r$ b' q) t* f1 s8 }
/ \  v; i4 t' ^, o方法 ! p, T, }* h# W. d1 Z6 B
修改 populatefsc 脚本,增加登录信息
/ Y+ d% m. G: b$ q在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 1 `) D( w( A- ^; ^; a1 \
set TC_DBA_USER=infodba / t9 [# C# C" P) F2 P; }* P
% c3 A& C( N: s( W0 h
在 populatefsc.pl 中 : $ j4 h+ T8 N9 z0 J
  V8 C; C3 a1 y. }
在 runPLMXMLExport 子程序下增加红色标记的代码
2 M' `6 Z9 p5 y8 ^- y2 }! S* o: c) G( W
# This will be the full path to the executable.
+ O7 T4 s& `: S7 z; R6 r( Vmy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
% k4 E* D# ?! `: T1 |my $tcdbauser= "$ENV{'TC_DBA_USER'}";     3 s' |1 k& G! D6 M! G
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; % T, H7 p( O1 n$ _
# Make sure we can find what we are executing.
4 g& s! M7 z* Q: z0 G- R  ^7 r' K5 rdie "The ${exe_name} executable was not found at the following location: 0 N6 g3 z. [' a& o
${exe_path}\n" unless -x ${exe_path};
) i2 ^, w) `: M- a& y1 j! x* y9 c+ q  {2 ]5 V
# Start building the command line.
+ d8 ~" ?0 O$ [my @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' ); 8 A- c5 j! W& _: l) D3 d
* Z. w; B5 i/ _6 ~& A5 l
# Take care of possible empty spaces in the argument values , S0 q) Z: N6 W0 W# j
my $outputFileStr = $hashRef->{'output_file'};
0 B- N% U3 |( Q" ^3 _- m$outputFileStr = handleEmptySpaceInPath($outputFileStr); 1 W; E; h6 h- U
my $scoUid = $hashRef->{'uid'};
0 C9 W4 V9 z- u9 \& E6 H; o& Z$scoUid = handleEmptySpaceInPath($scoUid); ; I7 l; n" W. Z& k# H( t
1 _  `2 X0 e) s) U+ x
# Add the extra options. $ p% E. Z$ ]& a) ?
addOption(\@args, '-xml_file=', $outputFileStr, 1); + ?+ \5 `7 `) _" F7 V6 e+ R
addOption(\@args, '-uid=', $scoUid, 1); / V9 ?3 x* [( R) Z5 M( W
addOption(\@args, '-u=', $tcdbauser, 1);     4 a  b6 y9 c, D( C3 A! X  l
addOption(\@args, '-pf=', $pwdfile, 1); + \  ?2 a1 ^. V9 C

: g( }( H; A* l& S1 D在 runLoadFscCache 子程序下增加红色标记的代码
& L" @) h" x% f& F* P' s& w: _
/ D0 y& N" B8 e  d6 C6 t7 v" `: Y# This will be the full path to the executable.
- W. C! p1 M6 {3 R6 Fmy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; ) I9 J8 O. M3 R0 |8 h9 ^

6 x4 i0 U6 V" C! S( S: Bmy $tcdbauser= "$ENV{'TC_DBA_USER'}"; 6 L3 D# @9 c8 D* b- Z, _
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; 0 E% O5 j7 N* X/ Q
# Make sure we can find what we are executing. ( h, U! R8 O  P- }
die "The ${exe_name} executable was not found at the following location: 1 ~* q( Y5 U6 ?# o+ }8 W, C+ Y7 S5 w
${exe_path}\n" unless -x ${exe_path};
0 m2 {/ r; |, w6 x: l0 d- h5 K
; s# j8 O6 H4 T; C" v$ O) M# Figure out output information from command line input
7 U6 B/ g6 Y9 y9 ymy $outputFileStr = $hashRef->{'output_file'}; 5 f& e3 z8 g$ L! A/ j
my $fscUri = $hashRef->{'targets'}; 0 T: M* k0 N5 j/ J
4 Y6 j1 w+ y9 I, d* A
# Check possible empty space in the string : S3 u$ h3 Z0 N' h
$outputFileStr= handleEmptySpaceInPath($outputFileStr); 2 n3 f: S$ F0 m( F) g9 P! T6 h
$fscUri = handleEmptySpaceInPath($fscUri);
( s/ L! d; L3 _3 q7 w" Q1 }
9 T' ?( k3 \. h) K/ A% h# Add the extra options.
, e# T7 a- U+ j; imy @args= ( $exe_path, '-f=load' );
( i3 L7 F2 q# Q  aaddOption(\@args, '-plmxml=', $outputFileStr, 1); 5 H. L* u/ F" R3 K
addOption(\@args, '-fsctargets=', $fscUri, 1); & G9 C) ~6 j; ^8 L: f9 h: f( W
addOption(\@args, '-u=', $tcdbauser, 1); % y9 F) T+ b) ^6 ?$ T- V! `7 C
addOption(\@args, '-pf=', $pwdfile, 1);   h4 Q# u% t6 \8 w: B+ h
( g3 z. p9 Y4 t
! `% M& W% f8 z8 l% K

! V4 `; a% J3 q% H- G' F
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了