PLM之家PLMHome-国产软件践行者

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

[复制链接]

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

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

admin 楼主

2019-8-19 15:47:15

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

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

x
! |0 ~/ B7 t" ^% T' h  W
171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态
( ]' q1 e$ ?2 ^( a# @" v7 R$ y5 C) A; S+ S( v' k
问题 3 R+ e6 X5 _. p" D! B$ k$ y, B
默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该
  Y4 J* n: ]# U! k模块中的功能无法登录 0 |8 O! Z! _4 V6 p4 O* W
8 V+ Y8 d/ L7 z2 C1 O7 h) C" H( t
ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the
, V" R! o. G/ z$ S" c  @3 xuser ID or the password is invalid.  
, {: _6 M. {( W9 @: c4 Q6 m* r4 i! [  s6 ?0 h. o6 ?7 A
方法 : ~) W# _3 x+ \$ F, f
修改 populatefsc 脚本,增加登录信息
/ u, D! D( t$ y, x在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 $ {2 |9 F' m: H  i5 s
set TC_DBA_USER=infodba ' q- i3 |1 c& H4 L

" s( Q) |& A) u( c" Z在 populatefsc.pl 中 :
  i, X5 c) K6 V( p  [* ~# E3 I% L' N) d
在 runPLMXMLExport 子程序下增加红色标记的代码 ' p. h+ m9 p: @6 V8 p  u( _# V, |
4 `! s9 I- q5 O& o* A. g2 p
# This will be the full path to the executable.
9 V  E; ^7 {3 v* E0 }8 Wmy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; ; Y# {2 D5 M7 L
my $tcdbauser= "$ENV{'TC_DBA_USER'}";     : a6 I( C5 A" E! B3 ~
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; 8 A, t$ Y$ s0 H0 U4 y) E/ Z
# Make sure we can find what we are executing.
# T. V: T8 j  Fdie "The ${exe_name} executable was not found at the following location:
' N6 I& {7 x5 s, U8 ~${exe_path}\n" unless -x ${exe_path}; - v( m6 j: f( }7 E
3 r8 w2 O( S0 w! k9 C
# Start building the command line.
/ y/ B6 C3 |, m7 xmy @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' );
9 Y  _9 A, ?& N* g. c. I5 l2 _; T9 G' u" d
# Take care of possible empty spaces in the argument values 5 Q2 |% T+ |7 t. p/ z9 A! p! T; @
my $outputFileStr = $hashRef->{'output_file'}; 0 f6 [) |4 }2 _) L; Y. q
$outputFileStr = handleEmptySpaceInPath($outputFileStr); # w6 W0 |. R6 |( q6 l
my $scoUid = $hashRef->{'uid'}; # v. k4 h9 N/ P5 w9 V- K3 i5 c/ ^: S
$scoUid = handleEmptySpaceInPath($scoUid);
4 L1 x/ I7 ^/ O) w) o; F# @+ d. g9 S# k7 U* w
# Add the extra options.
; |/ I! O  T" j6 d* b5 Y$ QaddOption(\@args, '-xml_file=', $outputFileStr, 1);
1 a8 i( V  P3 g0 V  [5 A& k6 iaddOption(\@args, '-uid=', $scoUid, 1); ; T; ]! A* k4 l
addOption(\@args, '-u=', $tcdbauser, 1);     
4 c0 a* Y; B8 U: p$ _, AaddOption(\@args, '-pf=', $pwdfile, 1);
% ^& g7 R8 ]  T7 {: z, @8 @/ {1 Z, a9 h7 U8 N( p0 {
在 runLoadFscCache 子程序下增加红色标记的代码
7 x+ q* {5 M4 ^$ S) o  W. u6 z0 a& d4 K- j/ [
# This will be the full path to the executable. 9 h+ N: g& q) ~
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
, C6 F1 w+ J3 ^# E. v  |9 m% A* a6 h( _" f5 T, D: l
my $tcdbauser= "$ENV{'TC_DBA_USER'}"; : ]6 z9 I# X9 E
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; 5 j6 V; g  Z+ x" X9 v
# Make sure we can find what we are executing.
2 K5 I5 A9 P' k, ]die "The ${exe_name} executable was not found at the following location:
, S+ K8 I! A9 i5 u/ z2 N9 V" O${exe_path}\n" unless -x ${exe_path};
1 j2 {# u% [, J; ~1 z" E) S
9 ~8 Y# {  H) q  Q# Figure out output information from command line input 5 u' x8 p3 u9 G9 @8 n% n' i5 d2 N
my $outputFileStr = $hashRef->{'output_file'}; $ [9 {: E6 j" g  g- O
my $fscUri = $hashRef->{'targets'}; 2 U, D* J& A5 |
0 o$ {2 z. W0 {* E* _& V
# Check possible empty space in the string
8 u: m  [" }' H% r# s0 m$outputFileStr= handleEmptySpaceInPath($outputFileStr);
& c) U9 U$ R9 V1 ?$fscUri = handleEmptySpaceInPath($fscUri); * E8 U" C9 B7 a2 N8 f5 ]) B8 t/ F
, S/ G" [9 N2 A# p9 {
# Add the extra options. # h3 T! F/ z! k: C& m1 i
my @args= ( $exe_path, '-f=load' );
# i2 m2 p) D. U4 W$ qaddOption(\@args, '-plmxml=', $outputFileStr, 1); # e* H6 i. i( E, x2 x  R" y' O
addOption(\@args, '-fsctargets=', $fscUri, 1); + V7 ]) p0 X! S% L4 O
addOption(\@args, '-u=', $tcdbauser, 1); 6 m6 t" B4 d- c2 _
addOption(\@args, '-pf=', $pwdfile, 1);
4 b9 B5 f/ t2 y. {$ {7 D# O. q6 @6 l3 K# t
' N' h2 j8 d' q/ U1 y
( }; w: \. r, X! h/ h
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了