PLM之家PLMHome-工业软件践行者

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

[复制链接]

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

2470

主题

1275

回帖

8万

积分

管理员

PLM之家站长

积分
82162
QQ
发表于 2019-8-19 15:47:15 | 显示全部楼层 |阅读模式

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

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

x
3 D" F* W7 m3 T, T9 J
171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态 # v7 n2 L: N% Z& D! j! ~/ V

) k( L* B4 \! A+ m8 q8 q问题
, p; q. f; ?- {5 j. O默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该) m; O: {5 U( D9 n. G+ `
模块中的功能无法登录
; N- {6 Q' B3 I9 N( H# U* B! w4 s
ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the
8 P; V' W* `- q4 f8 N5 L0 l' ?* Buser ID or the password is invalid.  
+ b* E8 i3 Q8 @, ~) b( T& i
* _9 l4 M# M3 L8 B% ?! u+ t方法
6 m  ?+ |2 f5 q# P) k" Y& F4 t5 @修改 populatefsc 脚本,增加登录信息
' e8 j- D, L& X% ^/ k在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行
  a* N) `; ~1 h- R2 k6 K* J& o2 Qset TC_DBA_USER=infodba
7 n' T8 i4 a+ X* s2 k; D4 |2 _5 l5 p
在 populatefsc.pl 中 :
- {' r, p7 p" |! ^* f- S! z0 c  x& B4 i% P% ?* N
在 runPLMXMLExport 子程序下增加红色标记的代码 4 H5 r- h  A. H3 O, ]: `3 T

3 A% I6 z: T# k; G6 {# `+ d# This will be the full path to the executable. $ Y0 b# {$ x2 ]# N4 F4 E* X
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
, G: ^& u5 p1 Emy $tcdbauser= "$ENV{'TC_DBA_USER'}";     
" Q' |3 [& }7 M/ g, k; E1 C* Qmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
$ w! f! v8 [3 q' r( d2 n9 a+ X( S# Make sure we can find what we are executing. 2 }$ s: W4 g+ K) m
die "The ${exe_name} executable was not found at the following location: : B6 U* ~& {) m+ ^
${exe_path}\n" unless -x ${exe_path}; 4 T8 N" I. x# O( N1 y7 j
7 V- T2 ~; b8 V0 B
# Start building the command line.
8 o2 f/ ^+ M3 j- C8 e; Bmy @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' );
5 C0 P- _  E, I9 w( o) q
0 d, |2 v4 B) T# Take care of possible empty spaces in the argument values ; a. T, f! |3 h( a: e( r
my $outputFileStr = $hashRef->{'output_file'};
* ]* ]2 g% S. C3 K$outputFileStr = handleEmptySpaceInPath($outputFileStr); # B/ B7 N0 C& E9 c* {- A2 _/ S3 X4 w
my $scoUid = $hashRef->{'uid'}; - d4 F% @7 F( }1 C( D6 v3 N
$scoUid = handleEmptySpaceInPath($scoUid);   o+ c) T' c2 V
) z- m4 f3 o8 V
# Add the extra options.
0 r8 _# l- J6 W4 zaddOption(\@args, '-xml_file=', $outputFileStr, 1);
/ D1 e; n! V" E. p: O& l: c1 CaddOption(\@args, '-uid=', $scoUid, 1);
+ `3 |7 R8 g$ R# w0 Q9 s. oaddOption(\@args, '-u=', $tcdbauser, 1);     3 |1 J1 U  D+ ]4 m" d
addOption(\@args, '-pf=', $pwdfile, 1);
  ~& J" e- p! A) }! S$ @: s5 Z, }5 h
在 runLoadFscCache 子程序下增加红色标记的代码 8 _2 G. D4 s4 f: U4 t0 X5 G
9 X- |) u4 u- ]. P
# This will be the full path to the executable. # r/ d2 N: R0 @
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
" {9 j' T+ A1 H. Z. C# r3 Y
$ J8 |1 r/ j8 j4 |my $tcdbauser= "$ENV{'TC_DBA_USER'}";
8 q9 l/ i. T  j7 ]my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; , d4 }4 y0 [% |
# Make sure we can find what we are executing. - g& \9 Z$ e% ^( ?$ F0 ?* d
die "The ${exe_name} executable was not found at the following location:   z& L$ r( z% I9 V6 ]
${exe_path}\n" unless -x ${exe_path}; . p* y2 I  C( r$ q# |) P- t

1 z2 t* N+ Y( B# Figure out output information from command line input ) K5 r7 M0 {4 J& K# O1 T# z. }
my $outputFileStr = $hashRef->{'output_file'}; 2 }  t+ R0 {8 L( u4 {
my $fscUri = $hashRef->{'targets'}; 0 ~& @# x/ T& @4 \! b3 r+ Y

3 X9 B. _6 T2 R- }# o# Check possible empty space in the string
2 d- Q+ c$ U7 \3 U  O& {$outputFileStr= handleEmptySpaceInPath($outputFileStr);
8 X- g4 N# M0 U8 i# ^$ d2 q$fscUri = handleEmptySpaceInPath($fscUri); * I  {4 i5 I0 z! x6 D$ N
2 v( |8 Q$ W0 b( [  y
# Add the extra options.
  x8 s( |( O+ W6 Vmy @args= ( $exe_path, '-f=load' );
% B4 k, q3 @# q+ ~, q2 }addOption(\@args, '-plmxml=', $outputFileStr, 1); 3 q8 p0 |' \# i* P  h
addOption(\@args, '-fsctargets=', $fscUri, 1); 9 c9 R* A: Q6 g, j) P7 n. f2 w) L
addOption(\@args, '-u=', $tcdbauser, 1); 0 ?& H* d: e. K. D& W; f& _8 }& e7 z
addOption(\@args, '-pf=', $pwdfile, 1); 5 s! {) f: s- f# h

7 _# i  Y7 W3 U" N) v6 [' `. M6 v
: y7 H1 R1 G1 v+ q# x: l" {6 c! d9 x6 ?; s- s2 C! _5 J+ L6 p* L3 z
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了