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

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

[复制链接]

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

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

admin 楼主

2019-8-19 15:47:15

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

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

x

' @& _, R# S# k3 U  _  g( A5 _2 F0 P171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态 3 V* t5 h0 |0 ^4 X6 d, R+ J

( G6 j4 O8 F2 i% z% `1 i" ?' h问题 ' T/ j0 p% o9 u/ ~  [. Q4 O
默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该  @$ Y1 K, b( d: O  c: h! [
模块中的功能无法登录
" R+ E0 d' P8 h: I  I3 l
* n( H! O* U4 D0 e/ G( W; u0 a+ JERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the
+ a" k! |( W5 F! J8 D3 Q6 Huser ID or the password is invalid.  
, a% J& J' i# t1 U. F/ Y8 e& k7 C8 `: t
方法
0 m$ X' T: |4 V/ g修改 populatefsc 脚本,增加登录信息
* F- d2 }" }# q; ~9 t- C在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行
5 w8 K$ E" f& Y- y( cset TC_DBA_USER=infodba
: R5 N( _/ x% m( f: r0 n
9 S5 u( c5 q5 N: ]在 populatefsc.pl 中 : # p' |0 E- l6 D) P/ l

, {; ?! L# _  w& t* v在 runPLMXMLExport 子程序下增加红色标记的代码
' _) b1 c( G% j) c  q# Q5 y. I! \/ W& @5 ~7 ?1 H, \: A6 {# b
# This will be the full path to the executable. ' e3 s1 s2 T7 }# O
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";   s$ \2 X' i- X' C* R5 g  B
my $tcdbauser= "$ENV{'TC_DBA_USER'}";     
8 [& q( X* x6 i3 r# `my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; 7 Z+ d" P, M8 @% y8 Q0 y  h  p
# Make sure we can find what we are executing. % [. k2 Z7 o  [, F. H4 A
die "The ${exe_name} executable was not found at the following location: ! C% q$ P. Z1 _6 H" [
${exe_path}\n" unless -x ${exe_path};
/ j2 @5 y  m+ R5 m; A$ y# \3 f0 Z$ p0 e
# Start building the command line. 3 P+ T6 c1 a! ]  m9 h
my @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' );
/ d) G' ?) R) f/ y4 Z
* V4 m5 ]4 ]) h2 f; H( ?6 e# Take care of possible empty spaces in the argument values
0 _- c3 H( P" ^5 B* J0 ?; Gmy $outputFileStr = $hashRef->{'output_file'}; 3 P% ^( M' Q* _4 g6 x, S0 W8 o
$outputFileStr = handleEmptySpaceInPath($outputFileStr);
$ N; h6 l- K4 A! lmy $scoUid = $hashRef->{'uid'}; # K/ A3 r; \: ?
$scoUid = handleEmptySpaceInPath($scoUid); ! z' C- ?  m' K
6 K% X4 Y+ c# q" v0 c
# Add the extra options. / c% w' @0 O: b) B( i! S6 g) \, N
addOption(\@args, '-xml_file=', $outputFileStr, 1);
( c, x- s3 Q7 y7 `addOption(\@args, '-uid=', $scoUid, 1);
5 w, p  Q( t/ f) O5 U5 y  K( F6 [( RaddOption(\@args, '-u=', $tcdbauser, 1);     ; l& T# C0 N8 F; u( s
addOption(\@args, '-pf=', $pwdfile, 1); $ _" \5 R5 j; z" [' l* k4 A* d
! a  F; o! `9 j: |3 L$ K4 Y) v
在 runLoadFscCache 子程序下增加红色标记的代码 2 Q! l9 q; N, [6 p4 `2 f
; a* {# G+ A+ ]; b# d
# This will be the full path to the executable. - J5 M+ W5 _7 V9 h
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
9 J; ^, l  e6 M( o% G6 {8 u- r7 N
+ K9 A4 y! t- O6 S& N% Vmy $tcdbauser= "$ENV{'TC_DBA_USER'}";
3 W8 {# r# [+ c% x9 Amy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; % o5 R' G- ~. y
# Make sure we can find what we are executing.
, e9 j2 O& S  J) r. r3 pdie "The ${exe_name} executable was not found at the following location:
( P) \; }, t1 `* W6 r! |( B${exe_path}\n" unless -x ${exe_path};
, p1 q9 G! v, |5 P9 g) b% X4 B1 e5 K+ S- \
# Figure out output information from command line input
9 N$ U4 D* [' w: t! i5 }5 f# tmy $outputFileStr = $hashRef->{'output_file'};
6 M4 w6 }9 [6 w6 ymy $fscUri = $hashRef->{'targets'}; / x' k6 l4 F" X$ s3 e! d" o

: L0 u) d  Y2 z8 u& h" l# Check possible empty space in the string
7 Y. V9 l! ?0 h" W8 z& q) F3 D! l. a$outputFileStr= handleEmptySpaceInPath($outputFileStr); , }7 M+ H) j$ |6 V
$fscUri = handleEmptySpaceInPath($fscUri);
' p  r2 Y0 P) j( K/ h' p9 c, E
$ @' i5 M1 K: y3 s# ?# Add the extra options. : f; D" t4 D" n* o1 t9 G; b2 ~" k
my @args= ( $exe_path, '-f=load' );
  P0 ^0 F# ]* Z1 S  t% h) waddOption(\@args, '-plmxml=', $outputFileStr, 1); 0 M2 R8 f1 w+ c/ ~1 H) d8 s+ _
addOption(\@args, '-fsctargets=', $fscUri, 1); $ R3 [+ l' Q$ I4 N, a: H; e
addOption(\@args, '-u=', $tcdbauser, 1);
8 i0 W) w' b+ z5 J! {* UaddOption(\@args, '-pf=', $pwdfile, 1); / P5 n; I6 o2 C. K9 ]# H3 u: f
3 _1 Y. B( q6 I" s9 e8 v

3 P4 @" q" A) |$ E9 ?
5 }" V6 u% ?& r9 r9 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二次开发专题模块培训报名开始啦

    我知道了