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

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

[复制链接]

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

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

admin 楼主

2019-8-19 15:47:15

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

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

x

( L0 ~- F2 U3 Q( ?171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态 ) ]% a" y: P0 X& y" f2 Z/ T% _6 |

$ w# f$ ?! y  o% `) z- y问题
1 i) O$ ~2 Y4 y" L( y默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该
9 V6 E4 I8 L% m$ R9 N. d模块中的功能无法登录 ' [$ u# a! }: U9 l* J, T
' ^- q6 L! x6 L0 i4 X$ i$ M0 D
ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the $ L7 n/ s) Z+ U, O7 B) x; B
user ID or the password is invalid.  
8 d8 A3 E, T4 s5 h2 A* A6 v$ S! r% }) ]0 y5 s. Z* J( F
方法
5 `# Y2 Q5 a; {3 O修改 populatefsc 脚本,增加登录信息
5 {+ V2 m* _- ]( p在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行
/ O2 P* a0 u. b, ?' e9 z( sset TC_DBA_USER=infodba ' P7 }2 z* ?6 B: a

. ]; h/ ^0 X# x5 w: G% ~) K在 populatefsc.pl 中 :
; _1 c2 ^, \1 E( r4 K
* d1 p) g3 V7 S% z* c- {; b在 runPLMXMLExport 子程序下增加红色标记的代码 3 {% |, Q4 e6 W2 x/ m
4 j9 Y; l) q+ J8 Q# s7 M  q/ h, Q, _
# This will be the full path to the executable. ; B( \/ [% u: h0 L0 K
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; 7 l4 D) c9 Q9 a! B! m3 Z
my $tcdbauser= "$ENV{'TC_DBA_USER'}";     
% n4 L, g2 K6 Z  H# A0 U" z/ imy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; 5 h6 B% F( \8 @; b$ {. L' Q
# Make sure we can find what we are executing. 2 N3 Q, m4 V1 c/ d( ?6 P" {* w
die "The ${exe_name} executable was not found at the following location:
- u9 w+ ?) H8 Z+ \8 {7 i6 H${exe_path}\n" unless -x ${exe_path}; " P# U9 M) `+ D! t0 `7 ^& \

9 b! _4 f* [$ F2 d) O5 V# Start building the command line.
( t& f6 }) C! f! Bmy @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' );
' F1 t9 M+ H- ]( N
/ a0 C  j' D* A) d% T% V* h5 N# Take care of possible empty spaces in the argument values
. j! w8 a$ q9 G/ pmy $outputFileStr = $hashRef->{'output_file'}; 9 F* i5 Y1 J2 v; c# U
$outputFileStr = handleEmptySpaceInPath($outputFileStr);
2 W; Y8 S0 l# j* T( x6 Xmy $scoUid = $hashRef->{'uid'}; 0 Q; a* A3 J5 [3 j' @" }
$scoUid = handleEmptySpaceInPath($scoUid);
+ e3 L" h) a" q; X7 S
3 d8 ^1 u3 s0 T( g1 S# Add the extra options. $ O- c: a, o7 p' ~
addOption(\@args, '-xml_file=', $outputFileStr, 1); : W4 p3 I2 A. j( P5 n/ S1 i9 S
addOption(\@args, '-uid=', $scoUid, 1);
, w' \5 {! d6 ]1 ^0 F! t& ^addOption(\@args, '-u=', $tcdbauser, 1);     
" Z6 d$ v: k  V0 C3 Y7 [9 |addOption(\@args, '-pf=', $pwdfile, 1);
( e/ v* P1 d$ F4 I0 v. I
5 T+ v# x! |1 u1 {在 runLoadFscCache 子程序下增加红色标记的代码
; s: l9 G2 c$ u2 R; K3 w* N, i; o& V, X! l; [
# This will be the full path to the executable. 8 v) d( Y& r# ~  ?
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
0 S8 _& N: G1 m$ E8 l  R8 ^" j$ |  l1 A, ^+ s$ h) Y% K
my $tcdbauser= "$ENV{'TC_DBA_USER'}"; ) E" V7 U! Y+ F
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; , v  b5 @, M& {+ Y/ K7 Q+ g: C
# Make sure we can find what we are executing. 2 b' a9 {3 O- M. L
die "The ${exe_name} executable was not found at the following location: . a& L  Z. G' p# m( \
${exe_path}\n" unless -x ${exe_path};
1 h  P4 ~5 N' A4 J$ ^+ ?* P% L# P7 l$ p
# Figure out output information from command line input
- |& n. c; c  s3 e/ d$ Jmy $outputFileStr = $hashRef->{'output_file'}; 1 I2 g, W4 J/ z7 c* E
my $fscUri = $hashRef->{'targets'}; , W; O$ U+ k- N" |9 M
. @( Y- n  p) N. m( O
# Check possible empty space in the string , e8 R4 S5 f9 d9 a. e
$outputFileStr= handleEmptySpaceInPath($outputFileStr); - a, @4 x1 J  n; P. r
$fscUri = handleEmptySpaceInPath($fscUri);
1 H- b4 \! O0 i/ O. ~, f7 {2 R" G0 g  ^6 {* k. ?% B' n+ \
# Add the extra options. " T$ p$ z- ?9 [* f
my @args= ( $exe_path, '-f=load' ); / F/ e2 T5 \" G; H1 {0 d
addOption(\@args, '-plmxml=', $outputFileStr, 1); 1 U+ x( @5 G# t+ S5 D0 I# _
addOption(\@args, '-fsctargets=', $fscUri, 1); & U1 d6 m5 ^' E0 i0 G! {0 n7 `
addOption(\@args, '-u=', $tcdbauser, 1);
- W1 Q  }9 U7 g$ UaddOption(\@args, '-pf=', $pwdfile, 1);
* T' a, ~  f6 |8 X& l% h0 e* k6 y& X
' e( c! i" n; f) u
5 ]1 U7 [# t1 R$ i* ]
6 v! p% }/ E4 X3 p2 O. b, u
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了