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

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

[复制链接]

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

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

admin 楼主

2019-8-19 15:47:15

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

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

x
7 Z2 p% v; L2 ?- o
171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态
/ t" b- ?# b) K9 X/ \
* X3 i' [& @1 a$ b" C" u问题 0 B* W! _7 B0 ^7 V
默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该
: b4 \% }: `2 _( P" ~模块中的功能无法登录 - M1 p/ }8 O  X' [$ ]* {9 e3 [
8 p! S0 ^7 B" ^3 J+ V
ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the
* N6 k' h/ V( y  P: }4 s$ vuser ID or the password is invalid.  ! a, V, l8 w/ H/ P, Q3 a- R
" @% n% F& A, F$ b" [3 E7 a
方法
* B0 G8 Z9 c3 x  f0 F6 r修改 populatefsc 脚本,增加登录信息 : d6 x! U/ k$ ?
在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行
6 Q$ @$ N5 ^/ r$ [- vset TC_DBA_USER=infodba 3 K2 l; P) \; R+ W0 ~. |# n

7 j% S  w! D" x在 populatefsc.pl 中 :
2 R, `  _; P; F/ d5 X+ n- ?, q4 b. w. W8 D8 g. K
在 runPLMXMLExport 子程序下增加红色标记的代码
$ v0 [* j9 c) C1 a$ o  {! p9 ]8 H- B& `+ }
# This will be the full path to the executable.
/ u+ N2 z: K/ s! Jmy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
8 \8 a: I2 D) C' s% Y' bmy $tcdbauser= "$ENV{'TC_DBA_USER'}";     
" l) N2 W* ^8 l( zmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
4 f! M( x7 G; H2 Q6 y1 A& Y+ w# Make sure we can find what we are executing. " q7 j- I9 e( n1 P! m! l
die "The ${exe_name} executable was not found at the following location:
- I4 z" D; }! E${exe_path}\n" unless -x ${exe_path};
/ _  ]% g& ?. B' K1 L
7 {) ^5 Y, e! u1 t# Start building the command line.
- E6 s. b8 T" d. Tmy @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' ); + Q' U. u( c3 W3 R* l: c, a7 U1 Y* |

8 C" x! _( v! I2 a& T# Take care of possible empty spaces in the argument values
9 m8 H7 N$ O$ Q! p9 amy $outputFileStr = $hashRef->{'output_file'};
! T  H0 F& \: s1 y/ [0 d9 L$ d9 o$outputFileStr = handleEmptySpaceInPath($outputFileStr);
# d+ S- F2 E0 `6 F( Mmy $scoUid = $hashRef->{'uid'}; ( T" n) D) G1 ]4 c
$scoUid = handleEmptySpaceInPath($scoUid); / r) d2 o2 v3 ?
  ~$ `" x* r! N" M) Y# B9 t
# Add the extra options.
. _/ U3 q, \8 B6 p: u- i2 ]addOption(\@args, '-xml_file=', $outputFileStr, 1);
! k. G( p6 g3 \3 [addOption(\@args, '-uid=', $scoUid, 1);
: U1 i9 f4 K' y3 c5 r% UaddOption(\@args, '-u=', $tcdbauser, 1);     
, P' ?& }- n. Z( H: aaddOption(\@args, '-pf=', $pwdfile, 1); 2 `/ Z. R( ~: l. E

4 W' [; }+ i! Y' n" `在 runLoadFscCache 子程序下增加红色标记的代码
5 U/ `+ I) L  |  Q  A: ?% \1 s! |7 m; ]. m3 |
# This will be the full path to the executable. 7 ?5 p7 j# ~7 ~4 _) T
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
4 x+ U( r) n9 G" m4 Y. u: T  m  u) ~  k9 R3 g, s6 K
my $tcdbauser= "$ENV{'TC_DBA_USER'}";
. ^. o, `' I- e. x  k) zmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
- N5 v1 Q) b+ X% M: o  f9 w# Make sure we can find what we are executing.
2 X& T2 m6 G6 Z! B+ j" i5 C) z, p  |die "The ${exe_name} executable was not found at the following location:
6 y* A- T) q* p1 b, b2 S+ e${exe_path}\n" unless -x ${exe_path}; / S1 `5 |. K5 o; L9 u8 P# V1 ]

5 Q; t- e( N1 V) u; z+ r# Figure out output information from command line input + Q) @- y; O3 t; L7 |
my $outputFileStr = $hashRef->{'output_file'}; ( I# L8 S5 d) n8 ]
my $fscUri = $hashRef->{'targets'}; 4 w' y2 I5 \: w9 S2 w

( T+ J; T1 b# C5 b. t- N7 X# Check possible empty space in the string 2 d( o# M% V+ j# e" M0 ^1 f/ c8 e
$outputFileStr= handleEmptySpaceInPath($outputFileStr); + q% [# t! l  J1 f# p! T$ W; c
$fscUri = handleEmptySpaceInPath($fscUri);
$ f# F. t, f5 x+ J/ m- E5 H9 F" ?" q  m
# Add the extra options.   D5 Z( E( d2 U) w9 a% `
my @args= ( $exe_path, '-f=load' );
, k( P( P2 d- O3 V% R0 |* taddOption(\@args, '-plmxml=', $outputFileStr, 1);
& z5 X, I1 L6 Q6 ?% OaddOption(\@args, '-fsctargets=', $fscUri, 1); ( [- [3 y3 H/ Q/ ]. k0 t: s
addOption(\@args, '-u=', $tcdbauser, 1);
1 m; g! I* z! G  ^( y% iaddOption(\@args, '-pf=', $pwdfile, 1);
+ y* _3 u/ O9 _- n' D
2 m9 l& G) W! F& }3 b9 `( b* E$ O' p
2 P" u9 f. O- t# J/ T1 e( q* G) 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二次开发专题模块培训报名开始啦

    我知道了