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

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

[复制链接]

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

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

admin 楼主

2019-8-19 15:47:15

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

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

x
4 C+ W& Z) h& h2 Y0 f+ `1 X
171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态 & s" ~! E- J( x, j

4 Z7 j/ s! H/ z4 e$ m8 F# w7 ~问题
7 i4 W3 F0 U) c, u$ N6 p" y默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该" ?& e% u4 N) I2 v
模块中的功能无法登录   ?/ e+ J7 X7 O& h

* u. z/ z& D- F' d2 _; RERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the 7 |$ T2 M; ]5 p# q( p( q
user ID or the password is invalid.  
7 z* @5 S9 r+ o
0 t0 x* e) h4 p' A# h& X0 z% h方法   K6 o% m. B5 d5 {8 A! B5 G
修改 populatefsc 脚本,增加登录信息
6 w- l1 V% B. n在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 0 V! W0 ?  A4 l! A; F( W0 O) Q
set TC_DBA_USER=infodba ( G) P; l* P8 G. q3 C  }
; u4 U* f) e6 k. r' n7 r( F0 m3 h
在 populatefsc.pl 中 :
) P3 S# O9 Y6 J% C. K6 {: w4 l/ a, x
在 runPLMXMLExport 子程序下增加红色标记的代码
9 j/ V! G$ J$ ~2 V9 _
& D. ~% F+ t( i8 d7 s% R: }4 u0 R# This will be the full path to the executable. - z- d2 i8 I3 ^/ N" h
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; / u) ]4 P% P) `* q" Y' C( V
my $tcdbauser= "$ENV{'TC_DBA_USER'}";     
  `2 |& u6 E6 J* K- |- l. Amy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
# I3 ]) Q  A/ R2 c' i0 i# Make sure we can find what we are executing. 5 Z% O7 I+ I6 B4 I" {; f* F( w
die "The ${exe_name} executable was not found at the following location: $ v; e1 e' r" D" @
${exe_path}\n" unless -x ${exe_path}; # y# _4 ^, {  {1 L% f4 y
2 F( o6 e8 b5 c; D
# Start building the command line. ! N6 h- {* _2 I8 k
my @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' );
) q9 c6 y, A8 K% m
9 T+ l! H  i  u  p( ?" S# Take care of possible empty spaces in the argument values
- O" _! }0 c! Omy $outputFileStr = $hashRef->{'output_file'}; 7 k2 \* E, r2 a- v1 E+ L; Q( n0 ^
$outputFileStr = handleEmptySpaceInPath($outputFileStr);
4 _9 A6 Q0 [8 m% E9 hmy $scoUid = $hashRef->{'uid'}; ! F5 U5 P1 W0 x0 D0 B
$scoUid = handleEmptySpaceInPath($scoUid);
( b  \( I( k1 a/ T6 U5 \2 I3 m8 j) c; b/ j  v2 [: f4 Q
# Add the extra options. : F4 D9 _) p/ h$ o
addOption(\@args, '-xml_file=', $outputFileStr, 1); 1 ]2 H2 ^7 }' ?' q7 C' T7 ^1 i: J
addOption(\@args, '-uid=', $scoUid, 1); 1 _  ~9 m; P+ U+ |2 d8 T
addOption(\@args, '-u=', $tcdbauser, 1);     
1 [7 v$ F7 P* _2 B6 b1 [8 TaddOption(\@args, '-pf=', $pwdfile, 1); ! Z+ a$ U( p4 X8 ]9 K

& U9 u- c2 S$ w, j6 g- e1 V6 c. {在 runLoadFscCache 子程序下增加红色标记的代码 7 K2 K- x/ V7 t
$ }1 a: p# g$ x* Y! p8 y
# This will be the full path to the executable. 8 D% X! w0 r# t$ q+ d9 e
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; 6 n( ~( T& _3 V- z

, V' Y$ `* d0 d+ Smy $tcdbauser= "$ENV{'TC_DBA_USER'}";
% v4 ]/ B5 p  e2 L) Amy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
6 H% L9 s; I' N( M# Make sure we can find what we are executing.
: v) @/ O+ v9 ]& |die "The ${exe_name} executable was not found at the following location:
0 I/ q$ |' u! M) E( M3 V5 B$ x${exe_path}\n" unless -x ${exe_path};
* T' v. ?) x0 p, k4 e* u2 H' n
5 y- s+ o: D' ]1 _6 Q$ [- G! C# Figure out output information from command line input 7 ^8 A0 U$ h. v; m
my $outputFileStr = $hashRef->{'output_file'};
1 I6 N; k% @5 q; @; hmy $fscUri = $hashRef->{'targets'};
8 O: ^: M5 d2 B  G% z5 h2 Q& v; k8 l5 q; W
# Check possible empty space in the string ( T+ V4 E0 g3 z1 B
$outputFileStr= handleEmptySpaceInPath($outputFileStr); 2 L9 \! L4 x( G, |
$fscUri = handleEmptySpaceInPath($fscUri); . P8 V+ L8 g# D: ~

3 b- L" d' G; M& E# K# Add the extra options. : @5 R% `$ n  Q. i* m$ \+ g# U
my @args= ( $exe_path, '-f=load' );
) J* ~5 L: `; g1 ?- z7 ]addOption(\@args, '-plmxml=', $outputFileStr, 1); 3 i& e* F- E: h! v
addOption(\@args, '-fsctargets=', $fscUri, 1); 8 M! S/ N; L1 i; e
addOption(\@args, '-u=', $tcdbauser, 1);
9 G* ]/ x3 U- |6 q% `0 q+ vaddOption(\@args, '-pf=', $pwdfile, 1); 2 V8 A8 v! e4 m$ p1 l/ p8 `/ O
6 U& y1 v6 O. l3 M/ ?* Y
- K/ F  [3 t8 b( l1 v$ V
9 n2 E6 d- U/ r/ H5 g+ O* u4 C
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了