PLM之家PLMHome-工业软件践行者

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

[复制链接]

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

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

admin 楼主

2019-8-19 15:47:15

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

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

x

/ C: z: T( G3 P: J2 x4 J171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态
4 d5 u" [1 p  j; \3 h
2 e, j0 n; W9 T" I0 C8 R4 m: a问题 * D1 b3 {" V8 g3 m$ m" x
默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该
) q; ^8 z/ M% k& w, ?0 Z模块中的功能无法登录 6 a* u: T+ W- ~( `0 a1 K
$ g8 |# V; {& h* i$ l1 o6 y) [
ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the
" Y8 E- f( A: r) g/ U" `+ ]user ID or the password is invalid.  ' Y: k5 f( [+ j; \
% t9 s, n+ q$ s7 d; N  R. f
方法
: U8 n+ m" v% W7 z+ m修改 populatefsc 脚本,增加登录信息
3 l3 R2 @  f6 K  I/ P5 ~在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行
4 b/ g/ w# U% _  v' g' @; aset TC_DBA_USER=infodba 1 k9 _" e: \! h% Q8 L; |: Y
! p  l( N" c$ I  A1 w0 K1 B2 z7 ?# X  j+ R
在 populatefsc.pl 中 :
( U. {9 v% C. r# ]" v& e
3 v8 O  x# K7 z5 t) |( Q+ Y# O0 V) v在 runPLMXMLExport 子程序下增加红色标记的代码
8 u+ Y* T( l# N3 G+ f
1 Y9 A5 P  Z6 {7 ?, \1 G# This will be the full path to the executable. 7 U& Q/ g6 d/ q  j
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
/ S) L+ t% y- r1 M6 V5 C5 q  @my $tcdbauser= "$ENV{'TC_DBA_USER'}";     5 Z4 Y  m9 B$ F  u+ R0 A" Z% c
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; ( S9 |0 ~6 n+ h9 Q2 A% L
# Make sure we can find what we are executing.
9 I4 q7 C; t$ g. Adie "The ${exe_name} executable was not found at the following location: " J3 J7 ^" `- S
${exe_path}\n" unless -x ${exe_path};
0 g- U% b: z1 y0 ?4 c4 G6 W8 Q% n% M% V$ b$ p2 s% k
# Start building the command line. , J4 }0 J, k$ Z. T
my @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' ); & l+ m( M0 I6 O5 ]* W% C# a: I

) E( w, d4 [9 }! T3 k4 n' s% a, w- S: l8 _# Take care of possible empty spaces in the argument values , k. n- }; V# u5 p
my $outputFileStr = $hashRef->{'output_file'};
3 i" z6 D4 B7 J  ^# e$outputFileStr = handleEmptySpaceInPath($outputFileStr);
3 b! U1 c" j" Imy $scoUid = $hashRef->{'uid'};
8 p# N! O" A+ U3 ~$scoUid = handleEmptySpaceInPath($scoUid); : P; s$ D) r0 t
3 Z2 A2 R1 w2 |2 g, F6 F4 F
# Add the extra options.
' J+ t9 T1 n: D# T6 n1 UaddOption(\@args, '-xml_file=', $outputFileStr, 1); , U: K: I# Q" a. G2 `' A' ~& M2 g
addOption(\@args, '-uid=', $scoUid, 1); , j* K3 S$ m& K4 D0 e0 F
addOption(\@args, '-u=', $tcdbauser, 1);     
; _& f; ~. h4 Q% MaddOption(\@args, '-pf=', $pwdfile, 1);
" c5 [6 @: e5 {1 M& @$ h$ Q9 K5 L# f
在 runLoadFscCache 子程序下增加红色标记的代码 5 i- }# n; z( V/ W7 t  q* w# G( t

% q+ `2 X8 }4 m& T. [, i- y6 L# This will be the full path to the executable. 0 u% F4 x1 j: B" C" e" Y9 Y8 L
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; 1 L& q) X8 C' N' D3 F
0 X9 r% A) l) J4 X
my $tcdbauser= "$ENV{'TC_DBA_USER'}"; & e4 B1 ~* d/ }+ Q5 G
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
" B; K5 b/ w9 X. h# Make sure we can find what we are executing. * K0 ~" z0 I$ f0 A* l( [4 v. d- u5 f
die "The ${exe_name} executable was not found at the following location:
5 |; c0 \. x$ C! @# y* j3 U' F2 A${exe_path}\n" unless -x ${exe_path}; % p' h+ `* y8 p9 ~, n( O9 Y) m
9 Y: l7 m5 }. g* U5 o. U! C/ m- y
# Figure out output information from command line input
* j( p) ]" F3 V9 q# t7 p: pmy $outputFileStr = $hashRef->{'output_file'};
: t+ \7 f2 B; o; wmy $fscUri = $hashRef->{'targets'}; % ?6 i" @: N" k# K

$ T" U  S2 I' Z' h- }, w1 X, W# Check possible empty space in the string + e# [  s. f( K0 r& U
$outputFileStr= handleEmptySpaceInPath($outputFileStr); 9 ^, y# C# o9 u3 N  B# |
$fscUri = handleEmptySpaceInPath($fscUri); - h* z, L. C# u8 W
5 Z2 X7 V& m3 [  H$ V
# Add the extra options.   g) {. d5 T# d) h' T& J$ r
my @args= ( $exe_path, '-f=load' ); 2 b$ C1 L' o8 }! p6 v8 a& j
addOption(\@args, '-plmxml=', $outputFileStr, 1);
$ w7 f) Y" {" |/ b& W6 r4 \, VaddOption(\@args, '-fsctargets=', $fscUri, 1);
' O6 l% F, b3 K1 l' EaddOption(\@args, '-u=', $tcdbauser, 1);
& Z) S% E1 h' A+ F/ w; KaddOption(\@args, '-pf=', $pwdfile, 1);
, [+ r3 H7 z# a* r; @0 T/ d7 V3 w* ?( r1 i) E: L

1 C. I) v( i9 o5 A4 }0 _4 f9 m  a; p& D4 C" C" |0 m0 ^
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了