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

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

[复制链接]

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

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

admin 楼主

2019-8-19 15:47:15

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

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

x
, g6 t4 S. W. a1 M2 s; e# ^/ [
171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态 + K7 T3 O# C) P, a

4 a: n  K; H# C' t+ g$ w  X问题 % I4 W6 k6 I% ^. Q- f- [
默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该
- y6 u' k0 ]9 ^3 h, N模块中的功能无法登录 6 i+ g5 S! m9 H! O7 i" B3 g
; @& l7 Y( [4 X/ Z: @
ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the 0 y5 l" R& S9 u! G# S: K
user ID or the password is invalid.  
1 A7 M- m- C( S+ q/ }# y
( P7 q* p1 W5 u方法
- t. _* \" T7 R' U0 k- o  n修改 populatefsc 脚本,增加登录信息 2 O  o5 @: U+ z& p8 T6 J3 N0 s7 Q' L
在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 " x) \, o( x" g
set TC_DBA_USER=infodba
6 K/ G- h+ y0 A$ d8 N* v2 C" ]% }8 i* e0 N2 A
在 populatefsc.pl 中 :
: y+ S% _; W8 P$ E  X
5 \8 g& W" K# Z+ M在 runPLMXMLExport 子程序下增加红色标记的代码
. `; T+ r1 D/ g
3 l3 H% C3 ^. g7 D" x9 H: i, [# This will be the full path to the executable.
6 E  p# Y) U( hmy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; 6 Z0 V2 Y  [$ ?: |5 G3 W
my $tcdbauser= "$ENV{'TC_DBA_USER'}";     
0 H! d% Y; C, D2 ?) V- emy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
9 E) X& U: ~& ]. j* v4 w7 o/ A# Make sure we can find what we are executing. 2 W5 `0 Q$ a! N- r( n
die "The ${exe_name} executable was not found at the following location: " V' \/ h. N7 h- q0 {
${exe_path}\n" unless -x ${exe_path}; / n; X8 m1 _! E# E9 A+ Y

' n+ h. J. A: r! D# {7 u# Start building the command line. - o$ W% X- G- I' @
my @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' );
. F6 V* G3 Z9 y' d& ~" B2 H
3 ?8 \1 h  S. Q0 c- w  w# Take care of possible empty spaces in the argument values
8 q2 D* Z* ?4 R) E- x8 K/ o- Qmy $outputFileStr = $hashRef->{'output_file'};
( M; c; y: D( _$outputFileStr = handleEmptySpaceInPath($outputFileStr); 4 w3 f4 n" o8 X) p) G, w
my $scoUid = $hashRef->{'uid'};
1 F2 y2 o5 X9 E1 {$ L5 ?$scoUid = handleEmptySpaceInPath($scoUid);
8 K# `1 N4 T* Z4 y- U3 P9 i1 X6 x
. i! t9 d, A$ v6 f1 S" k# Add the extra options.
6 X  d4 w: L+ raddOption(\@args, '-xml_file=', $outputFileStr, 1); ) S- m9 f& c  |+ ^9 {1 }% q4 p
addOption(\@args, '-uid=', $scoUid, 1);
0 _  |* L% i0 H( W1 E3 h2 o* V! n, SaddOption(\@args, '-u=', $tcdbauser, 1);     - b( o# ~( ]; K) V0 L
addOption(\@args, '-pf=', $pwdfile, 1);
+ k  i3 M6 a& I+ D8 z& @. Q- c1 Q# R2 G. H
在 runLoadFscCache 子程序下增加红色标记的代码 7 b3 M) n  T3 F' E4 B
/ p  x( @, S& p+ p$ N
# This will be the full path to the executable.
0 H0 i/ O1 j  \; r* S  _% {my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
2 ~7 Z3 }: R) E( d+ k4 Z# L7 ]; J+ G" E8 y
my $tcdbauser= "$ENV{'TC_DBA_USER'}"; / D/ x$ ?; g  Y1 I  C: e) [; @
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
) D/ K* L; O7 K# Make sure we can find what we are executing. / x( l$ K2 y# [$ j, p( c
die "The ${exe_name} executable was not found at the following location:
& J7 B& `. y& _( w1 M/ P  {4 G${exe_path}\n" unless -x ${exe_path};
/ E  V9 w, b; [; y3 o/ ?7 l2 f7 L# L; \( i4 z( @: ^8 q1 @9 |
# Figure out output information from command line input
+ a+ S) e2 p: J+ D, ^$ smy $outputFileStr = $hashRef->{'output_file'};
' K: _5 W1 [0 P, l' C6 ~my $fscUri = $hashRef->{'targets'}; 9 K$ c9 U9 q9 S! o
* s0 G+ X0 y% h/ C- a
# Check possible empty space in the string ; r$ y- v) b$ Q- t
$outputFileStr= handleEmptySpaceInPath($outputFileStr); 9 f$ e6 z/ O2 x7 l
$fscUri = handleEmptySpaceInPath($fscUri); , y# D0 K0 [6 J9 [7 y- W9 h4 |+ p# X

3 ^) S' L9 L& g4 x$ s- o# Add the extra options.
1 {/ `! m$ |* x3 ?my @args= ( $exe_path, '-f=load' );
7 B) W7 m% y- {) v$ DaddOption(\@args, '-plmxml=', $outputFileStr, 1);
+ ^4 H, p: O& K% m1 xaddOption(\@args, '-fsctargets=', $fscUri, 1);
  E5 D. W6 p  DaddOption(\@args, '-u=', $tcdbauser, 1); " Y! u' n- q* T
addOption(\@args, '-pf=', $pwdfile, 1);
$ C8 _% k5 v4 P7 W1 S: {' U) T( ]: Z' Q! s
+ y/ U' p9 e! h; Z6 W0 |5 ~; t

+ |- }. O. @% q8 J1 r: b0 P7 u- d, 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二次开发专题模块培训报名开始啦

    我知道了