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

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

[复制链接]

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

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

admin 楼主

2019-8-19 15:47:15

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

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

x
. W( U2 n0 J2 j' N
171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态
; K$ s8 K0 @1 j! G; L
7 K! P5 d1 K2 N6 P问题
  }: P# H# M6 U9 `6 ~默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该4 m% h) K8 e5 z  n  ]8 @
模块中的功能无法登录
3 ^* T0 z' U+ c; F" U% l
) Z' b& o" B, p0 [% Y) ZERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the 9 v; R, T8 U* y. \8 X4 F
user ID or the password is invalid.  " ~: G, Y' G3 W! t4 u; f

8 b; c- J5 T# k8 T+ F1 `8 I, L方法 " V5 _" a5 o. Y4 y7 g0 {
修改 populatefsc 脚本,增加登录信息 / K& x, V  o  p; Y. M" r  v
在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行
5 a' j: L3 q+ g+ l6 pset TC_DBA_USER=infodba # ]3 X1 g# }* {% b1 f
9 \2 {+ G; R4 g& v2 ?6 B
在 populatefsc.pl 中 :
4 k9 o8 x% z+ L; D" s$ x+ Q' R" `, J1 Q% @, R! P- G( m) t
在 runPLMXMLExport 子程序下增加红色标记的代码
& T* F3 {' A- z# }0 u% |& z
9 u* G; L4 G4 b3 M( @# This will be the full path to the executable.
5 S+ [8 R( V! [' G% X& w& Z# m8 Wmy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
, @6 ~4 I7 y* L5 S3 H% \. q! wmy $tcdbauser= "$ENV{'TC_DBA_USER'}";     
# t+ J" f; v( s6 e3 hmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
. @" V4 @6 m3 f3 F- T4 y" ^: h# Make sure we can find what we are executing. & p0 g2 F, u5 M
die "The ${exe_name} executable was not found at the following location:
% v- u: d' R6 `${exe_path}\n" unless -x ${exe_path};
: ~2 W0 H0 W0 k5 |! K6 D" o! ?7 D& |- t" j8 l; L$ ?" }3 V
# Start building the command line. , `5 A/ s, a9 c$ ~) ]; ^. W
my @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' ); " b) F5 S; C. y$ R

/ F% j) u8 j' G% G. A8 G# Take care of possible empty spaces in the argument values
+ a4 p  G& w4 g. B, ^/ Emy $outputFileStr = $hashRef->{'output_file'}; ) p7 b% M2 w, {( Q- m" y
$outputFileStr = handleEmptySpaceInPath($outputFileStr);
$ s2 x# D9 k& {( T+ k* N8 A) P# s- n8 hmy $scoUid = $hashRef->{'uid'};
/ H/ @0 @0 c4 ]' y) z6 ^$scoUid = handleEmptySpaceInPath($scoUid); * d* }6 v: {% j6 Q6 A: B

- n( g  Y3 d$ R, L( }% L; w# Add the extra options.
+ F3 a* g. V3 r3 E; Q! K0 V& ?addOption(\@args, '-xml_file=', $outputFileStr, 1); - h  S% n. G7 p1 W$ |% e
addOption(\@args, '-uid=', $scoUid, 1);
# j# g1 h+ |0 Q) T1 j3 R. a$ MaddOption(\@args, '-u=', $tcdbauser, 1);     
8 Z3 Y: ]4 O" J1 B2 RaddOption(\@args, '-pf=', $pwdfile, 1);
# W5 M' D# O8 I% w0 Z3 u+ M$ c1 b4 k4 R5 Z* q
在 runLoadFscCache 子程序下增加红色标记的代码
2 d- {! H, ?( z" I" u/ f4 O0 L8 R( a% q9 p1 Z
# This will be the full path to the executable.
7 @/ R& R& i) z! o* V: _  dmy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; 7 |( [; a+ \' D) k  d( Q6 _
) W* B  k4 l2 ]* Y: m( F9 n
my $tcdbauser= "$ENV{'TC_DBA_USER'}";
6 a; n5 Y' Y, T/ x4 Y% e; I, s! bmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; + Z) H7 ^# s* j/ e0 x" e
# Make sure we can find what we are executing.
: J  {" @3 \3 s6 k5 h& hdie "The ${exe_name} executable was not found at the following location: / x4 ?' o( I/ W3 g8 C
${exe_path}\n" unless -x ${exe_path}; " m0 u. s5 p9 e( A5 {
( S) X4 a5 s- l0 @
# Figure out output information from command line input % s& I8 H; I0 j* v" x+ Q
my $outputFileStr = $hashRef->{'output_file'}; + d4 [2 b2 S6 m/ A) s
my $fscUri = $hashRef->{'targets'};
3 S+ o# k& e" x( P
" }5 b! R* Q( j7 X# Check possible empty space in the string 2 @3 E3 b0 K$ D! H# M2 h+ H5 X
$outputFileStr= handleEmptySpaceInPath($outputFileStr); ! G* d/ R# w/ Y8 E, m
$fscUri = handleEmptySpaceInPath($fscUri); ! t$ W9 H5 @$ O+ l% f  o& q% Y

6 O2 W$ C6 r1 R7 J- o: L' I# Add the extra options.
+ g6 u9 ~% l$ X  q6 ]my @args= ( $exe_path, '-f=load' ); 6 W( E+ ~6 d, D( i
addOption(\@args, '-plmxml=', $outputFileStr, 1); 2 ]4 w+ P/ V5 r2 b/ c+ Z! e# l
addOption(\@args, '-fsctargets=', $fscUri, 1); $ [$ x2 i: n4 W- p
addOption(\@args, '-u=', $tcdbauser, 1);
/ j- u6 i. i; Q0 ?7 I0 J; paddOption(\@args, '-pf=', $pwdfile, 1); & i( J, S1 X9 M; k( X. z  V

: W, u' j" m7 y. |
; _% K. D6 ?" _' o7 {7 J
6 z+ z, j" P8 u5 T  m' _
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 www.diantuankj.com/ doTeam.tech
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 注册

返回列表 本版积分规则

  • 发布新帖

  • 在线客服

  • 微信

  • 客户端

  • 返回顶部

  • x
    温馨提示

    本网站(plmhome.com)为PLM之家工业软件学习官网站

    展示的视频材料全部免费,需要高清和特殊技术支持请联系 QQ: 939801026

    PLM之家NX CAM二次开发专题模块培训报名开始啦

    我知道了