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

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

[复制链接]

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

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

admin 楼主

2019-8-19 15:47:15

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

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

x
0 t: G( q" C4 u% c5 a
171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态 / `& S: x, w8 K* O/ M

0 V$ l- B. [6 {) `0 |问题 ' {+ [' P  a% d7 _/ s
默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该
6 y  g' f2 I8 j模块中的功能无法登录 7 H: Q, r% d' y" T) p3 F' y
1 _0 \3 S2 f# B! S4 i, v
ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the " m% m$ u" l* \' n7 y
user ID or the password is invalid.  6 _5 S! z) `0 U9 t% H' d2 Z: z
* T1 S6 ]! r1 O  d+ z/ t/ T& x
方法 , r: [% L  t. s; `  L1 r9 w
修改 populatefsc 脚本,增加登录信息 ) q  g/ T, u6 g6 o- d. Y* @/ Q" a
在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行
- p$ k8 v2 U6 d" nset TC_DBA_USER=infodba
5 u6 B$ I4 {* A8 [6 g( z% [$ g
- l$ h! [1 C, G! C! k3 q5 n& i在 populatefsc.pl 中 : - ?8 I# c6 ^/ {; u+ w) y2 G
7 A& W; i3 ?, m
在 runPLMXMLExport 子程序下增加红色标记的代码 ; D2 x% ^; ]  v3 i0 p

5 m7 k. j& r2 w6 u# This will be the full path to the executable.
$ ], T1 [" b" V4 _) n% lmy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";   M* l2 L$ y+ J, K4 s9 ]# S
my $tcdbauser= "$ENV{'TC_DBA_USER'}";     
( `. T) O  r2 mmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
( h/ ~! t  d  s# Z1 z& h$ v' ]# Make sure we can find what we are executing.
& h; N% j8 `6 e3 E% {7 Fdie "The ${exe_name} executable was not found at the following location:
+ J* u. J8 L1 J1 D5 A- q$ i( @, E0 m${exe_path}\n" unless -x ${exe_path}; 3 |* w4 j' z8 L1 ?

& R  [' N" l* x0 [9 f0 F# Start building the command line.
0 r; e+ G0 L5 n) J& F( R. G/ ^my @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' ); ' ]3 q) e% ^7 z' R( t  I3 H. L
! k. g3 G9 \* P" c8 X$ U' h
# Take care of possible empty spaces in the argument values ' o( I2 B$ s. n' n1 [! S6 h
my $outputFileStr = $hashRef->{'output_file'};
0 v' p; h: B+ f9 g( p* x$outputFileStr = handleEmptySpaceInPath($outputFileStr);
$ M5 ?; D( ^+ imy $scoUid = $hashRef->{'uid'};
5 @* c5 O. s3 q/ j9 c5 K* {& c$scoUid = handleEmptySpaceInPath($scoUid);
% ]3 b. L( F" M0 A0 v1 z
' o4 B( A  f, F* s% s9 q, l# Add the extra options. 6 |  {( u* B4 p  P+ ~/ g5 l' t# u
addOption(\@args, '-xml_file=', $outputFileStr, 1); 0 j/ I) m- T6 q
addOption(\@args, '-uid=', $scoUid, 1);
4 O4 g7 E$ }  w2 ?( OaddOption(\@args, '-u=', $tcdbauser, 1);     
' [# K' P6 K7 s: E/ |' G6 \0 B* }addOption(\@args, '-pf=', $pwdfile, 1);
& x! d" \1 X6 Z5 z
  u- V3 j7 ?' V6 k' E. |在 runLoadFscCache 子程序下增加红色标记的代码
, d1 y* Y4 a3 r$ C) X' k# q8 ?. g- d! e7 h# I, F+ {8 N
# This will be the full path to the executable. 7 x6 y# Z% r1 D" H& ?( b: Y$ r
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; # l* m1 v( \2 s# m
( D* `0 W& j0 \- R
my $tcdbauser= "$ENV{'TC_DBA_USER'}"; % c) y: Y. M3 e9 Z) x/ Y) V( q# w
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; 4 w) {5 D- X4 u% ^6 f  d1 [& B& k9 ~
# Make sure we can find what we are executing. ! u; M; M; ~( M) J) T! Y% G
die "The ${exe_name} executable was not found at the following location: % Z6 ~$ X* {# P) |8 A; o
${exe_path}\n" unless -x ${exe_path};
7 H8 Z1 \1 x0 B. P% s7 X9 W0 r6 E( l% q! q' r7 y- ~$ y, k
# Figure out output information from command line input + _+ e. ]5 p+ N
my $outputFileStr = $hashRef->{'output_file'}; ' z: _& S+ j8 Z; ]9 t
my $fscUri = $hashRef->{'targets'}; " G& }$ H: x( T( `. g/ n

- e: o9 ~' Z+ f3 _/ P2 S# Check possible empty space in the string
) z+ K/ A  O8 i) ?7 b$outputFileStr= handleEmptySpaceInPath($outputFileStr); ) A0 l7 y, ]+ g+ b
$fscUri = handleEmptySpaceInPath($fscUri); 9 c. ]3 V; l" g; F
8 d+ G* e! v1 [) R  ~+ j  I7 _+ I# G
# Add the extra options. . H2 g. s$ b: u
my @args= ( $exe_path, '-f=load' ); * L" E# w  h! \  f6 s# c
addOption(\@args, '-plmxml=', $outputFileStr, 1);
% B: Q7 t# |4 r' n0 J  ?addOption(\@args, '-fsctargets=', $fscUri, 1);
" {/ ^( P2 c$ ^" m" paddOption(\@args, '-u=', $tcdbauser, 1);
# ~, }/ S3 U2 L* k1 XaddOption(\@args, '-pf=', $pwdfile, 1); 8 E! Y$ _# Q+ J' ~9 D
. c4 z" \: [8 W  S+ X" P
2 }* @: h( M" [* \* }2 k
; l$ W1 ]; Z8 Z; x7 i8 v0 f; |5 T
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了