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

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

[复制链接]

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

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

admin 楼主

2019-8-19 15:47:15

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

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

x

5 R) v  l. z% P# {171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态
. R2 N7 y8 |- V& x  l" u9 Y8 k( ?- [2 _6 `& B" z7 N
问题
* Q. d, X7 L, E$ M) A5 a6 M2 r默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该
; S  T9 a+ v* }0 R/ W6 r3 \模块中的功能无法登录
1 W; @; h' e3 n. T2 b6 O  p6 p8 u) D5 x5 W/ s3 L( _5 q+ w
ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the
5 e9 H: S) p- p! Kuser ID or the password is invalid.  
1 t2 \+ ~( ^9 u) A, a& A
& T+ q2 E7 O/ r3 f) ~! Z: c方法 4 N4 ]: j# ]  n$ {4 Z; \1 o
修改 populatefsc 脚本,增加登录信息
4 f" M% a& r2 g5 ~! n在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行
: m) K" s; P( B7 j  C( mset TC_DBA_USER=infodba
/ v7 ~/ {; S  S7 X+ q2 Y- U3 Y4 W  P: T/ F1 ?7 V
在 populatefsc.pl 中 : ) |5 W7 {5 j7 J
1 g# X+ A9 ]* S9 F* I, Z
在 runPLMXMLExport 子程序下增加红色标记的代码 ' G1 T" Q% I# O0 F0 }' U

6 V6 m& \$ o* c6 z# This will be the full path to the executable. - X# H8 U: Q  p  [
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; 0 s; o; r$ S+ d6 l  I) N% T1 {
my $tcdbauser= "$ENV{'TC_DBA_USER'}";     
0 x8 m+ v- E9 o/ S# c* D0 {( Z& Zmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
9 ~6 x: w2 M  ?0 S1 A  G! q) R# Make sure we can find what we are executing. ; B. J, i* W* r3 k( Y5 X1 M
die "The ${exe_name} executable was not found at the following location:
. @! V, n- Q, q$ I1 E  {# ]" n${exe_path}\n" unless -x ${exe_path};
2 z$ c! ]0 w  ?3 Y1 ^: m! V, a. v$ m, g6 s, E+ r) q2 u
# Start building the command line. : E7 x- ~% C6 p! `% n- f
my @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' ); 9 G( r6 D& X9 ^: j% n5 i+ D4 p

% j- e; _6 M3 V1 n) k4 _% H$ s/ G# Take care of possible empty spaces in the argument values
+ U2 n+ V, t5 @! x7 l' A# dmy $outputFileStr = $hashRef->{'output_file'}; * n7 a& s4 z: N/ j6 B$ G& v6 Y8 \
$outputFileStr = handleEmptySpaceInPath($outputFileStr);
/ x4 [2 H7 [8 E' `/ @! L$ u+ vmy $scoUid = $hashRef->{'uid'};
8 A9 x$ Z5 ^( w$scoUid = handleEmptySpaceInPath($scoUid);
3 p- L8 n+ O& q& d6 g- h* F1 ~7 @/ Y- s
# Add the extra options.
% n% e. Z" J0 r4 G7 caddOption(\@args, '-xml_file=', $outputFileStr, 1);
; N; O; F' \! {5 F" F$ saddOption(\@args, '-uid=', $scoUid, 1); 5 V. \6 y" u" `5 V
addOption(\@args, '-u=', $tcdbauser, 1);     
8 E  y: V" k: u6 @5 ~addOption(\@args, '-pf=', $pwdfile, 1);
3 x" E; e! N2 D6 p3 y
' X# g$ i2 `: m在 runLoadFscCache 子程序下增加红色标记的代码
. a0 s: i. H6 [6 Q8 d
! s! d9 }) t& E! O3 e/ u# This will be the full path to the executable.
; }  J5 i0 g! D- Tmy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
* E& y3 O4 T: u6 o# g  e% [# s5 l2 W, M5 Y
my $tcdbauser= "$ENV{'TC_DBA_USER'}";
7 R) M* i: ^7 [1 E; S  Dmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
: M& b: _9 ^5 c: {" I; |# Make sure we can find what we are executing.
* `  \8 ~/ i' {$ t, ndie "The ${exe_name} executable was not found at the following location: " M) X' m0 O/ }. N3 h! `4 ^7 Q% _. R
${exe_path}\n" unless -x ${exe_path}; ) S2 N( ?. v% N( g( i1 N- H5 ]5 Q
8 A% `+ r0 [; G4 Y& U, b
# Figure out output information from command line input
, N. N, O% F4 u0 Rmy $outputFileStr = $hashRef->{'output_file'};
; }" v; ~* D" w* K  f2 p  Amy $fscUri = $hashRef->{'targets'};
8 c/ A, ^: g2 y
7 {/ `3 W5 t/ p5 a9 V# Check possible empty space in the string # X7 J  ]6 }5 L+ N' Z/ U" Q
$outputFileStr= handleEmptySpaceInPath($outputFileStr);
( D: A5 S2 T/ C- s* {- F8 p$fscUri = handleEmptySpaceInPath($fscUri); 9 B- e2 D0 a0 a3 _, C( R- ^

$ k! Z# l; T3 @4 Y1 H# Add the extra options. : f1 R8 ^# [* F6 O9 I6 \- t
my @args= ( $exe_path, '-f=load' ); . u+ X3 a3 C/ C% H0 v+ J
addOption(\@args, '-plmxml=', $outputFileStr, 1); $ C) p  \) L! g) ]* _2 @
addOption(\@args, '-fsctargets=', $fscUri, 1);   L4 l% n$ d3 P0 e$ |# B9 S
addOption(\@args, '-u=', $tcdbauser, 1); ! x- z9 g2 l! O" W3 B. Q' S
addOption(\@args, '-pf=', $pwdfile, 1);
3 e& L# c  [0 j, R  O
6 [2 y% ?+ e' ?$ P6 V( m$ }  h5 c; U5 S% T* Z; E+ F% j2 F" K
- S; P3 m+ M. ~$ A+ O  ?$ x
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了