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

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

[复制链接]

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

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

admin 楼主

2019-8-19 15:47:15

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

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

x
, @* q, X  P+ V! k2 H1 Y
171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态
- y# [* F) L( A- H+ H7 ~, @
: d' _! E! Y, u4 r! }问题 $ B5 C0 O2 g1 C) A+ V) {+ g# C6 n3 Z
默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该5 {; L& _% _$ d
模块中的功能无法登录
3 \, R) H' U2 `9 ~- p" L% b4 t6 e6 B! u0 v0 r! b9 s# O
ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the
- {7 E5 y1 w1 U, Cuser ID or the password is invalid.  
- F# i6 r: O, A2 `" h# X- I8 W6 @3 z3 h
方法 % J. G$ ]4 d7 z: ^
修改 populatefsc 脚本,增加登录信息
3 w, @8 i' X* L; j$ q在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 ( ]+ v% A; g+ B; L
set TC_DBA_USER=infodba
2 g8 W6 a8 m/ C5 G- P! E& [8 R* J3 `/ }! c
在 populatefsc.pl 中 :
1 q) y5 u. U' e  ]( E1 }) @9 p+ ~
* V, D& s3 E9 Z  R: A! C0 r. @- }, l在 runPLMXMLExport 子程序下增加红色标记的代码
4 _, F. n! {3 [" ]& o$ @# p9 N
1 d  o/ G' I+ U* g/ ^# This will be the full path to the executable.
# |1 ^+ R! V: k7 }my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
" P4 K9 w7 b/ \! `% T% P4 c3 F, R. kmy $tcdbauser= "$ENV{'TC_DBA_USER'}";     
3 e$ k1 B/ R% B# f* g- M, Dmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; , M2 `) s  V  b. b/ b
# Make sure we can find what we are executing.
8 Q: G5 ?5 F. U$ {1 u9 rdie "The ${exe_name} executable was not found at the following location: ( X9 R3 Q, i5 c1 `7 d" G( e
${exe_path}\n" unless -x ${exe_path}; 8 |% B$ S0 o- i

+ ^9 y5 J$ p" W! Q# Start building the command line.
+ w! [4 o6 N# O6 `: emy @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' ); / [" G7 Z7 ~  n1 o% ~6 i7 p  D

& J. J# k) B2 i) Z( @7 [9 V# Take care of possible empty spaces in the argument values
3 c. n+ O( y. Z$ Mmy $outputFileStr = $hashRef->{'output_file'}; ' a# u- L# j/ v3 s
$outputFileStr = handleEmptySpaceInPath($outputFileStr); & l* R$ [5 F: U3 F0 k5 m/ g3 A
my $scoUid = $hashRef->{'uid'};
% \- O. |2 h8 F* G- ]# p+ }$scoUid = handleEmptySpaceInPath($scoUid);
# ]# K& {* n  R* y% \9 J/ ~% Z% L3 F) P# M! L
# Add the extra options.
" G8 b1 g: ~: x* x  i5 ~addOption(\@args, '-xml_file=', $outputFileStr, 1);
# f- A! G' t# qaddOption(\@args, '-uid=', $scoUid, 1); 7 r- o. `6 e* [& u- }
addOption(\@args, '-u=', $tcdbauser, 1);     
. z3 o- v0 P+ U4 S, P6 e" B, QaddOption(\@args, '-pf=', $pwdfile, 1); . d0 i! \7 ~+ W2 ^0 J) o* ~1 t# F5 N( n
) \/ ]& `* E* @1 R+ ]4 X$ j  @& g
在 runLoadFscCache 子程序下增加红色标记的代码 1 ^3 {) n& t5 q5 K9 w: J" I
# ^5 ^! c$ |) m
# This will be the full path to the executable. . l$ S  t: Q, ~
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; 7 k- V3 I( f- ^

/ K( B6 ]; X, vmy $tcdbauser= "$ENV{'TC_DBA_USER'}";
4 \5 z& O2 y* f, a/ k% K7 E! ]my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; ( b9 D* y/ Z+ {% F/ g
# Make sure we can find what we are executing.
' A0 H& K6 I5 i" Q' [2 L6 Wdie "The ${exe_name} executable was not found at the following location:
9 v9 s; @; P9 }1 u) L8 p: f: P+ h${exe_path}\n" unless -x ${exe_path};
0 Z$ U: c. t! e) Z5 |5 G
4 ]* H2 i8 y; z! K  C# Figure out output information from command line input ) a5 G) `( z9 P0 A8 ]
my $outputFileStr = $hashRef->{'output_file'};
! d3 r4 `& [# U- C' ]/ n4 kmy $fscUri = $hashRef->{'targets'}; 0 K/ r9 C& q6 R' \/ B1 z. ~

9 P% B$ E8 N- z  c: A% H  }# Check possible empty space in the string
/ q: v4 c9 E9 |8 c* H4 I$outputFileStr= handleEmptySpaceInPath($outputFileStr);
, P( }, N' j2 T* d6 s! L1 |$fscUri = handleEmptySpaceInPath($fscUri); 7 ?) p4 C/ ?) k! k3 x+ C; R8 Q

! `. y# z/ ]% F4 b7 M- v+ f# Add the extra options.
( G8 H% |# t; [- _9 G5 L- ]my @args= ( $exe_path, '-f=load' ); ) g8 h8 {* D0 y7 ]
addOption(\@args, '-plmxml=', $outputFileStr, 1); 1 h8 S) R  n2 @
addOption(\@args, '-fsctargets=', $fscUri, 1);   ^, v' f9 n1 s6 x+ Z: n
addOption(\@args, '-u=', $tcdbauser, 1); / |; g4 C- P' V8 m6 ~; |9 B5 K; l
addOption(\@args, '-pf=', $pwdfile, 1);
! n' d5 I  n3 y0 M) z+ p0 L/ M) H+ K! l6 |8 s+ I3 m9 A, ?
6 d  R6 w2 c+ G7 o! A

" y" T. }3 _0 A/ ?" B- |- N
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了