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

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

[复制链接]

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

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

admin 楼主

2019-8-19 15:47:15

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

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

x
0 E% |2 p/ L! o' z8 F
171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态 + m& @1 Q" ]2 A# R7 p6 k, U1 R
  V$ t5 e4 W& z- Q& s7 _
问题
0 S, d, b! H3 i9 R9 i$ x默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该7 ^/ W" M5 I/ V- H. E9 B1 S' |8 K* M
模块中的功能无法登录
% p. k6 I7 s& V- k. Q+ P: B6 i) c- M$ e- D* {  X- _
ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the ( V# a) ^" V! g! A. }7 ]
user ID or the password is invalid.  . C( u  E4 r2 ~% g0 M) ^) L$ ]! ^

( x" U; l4 A1 g5 w; x* Q方法 + U* E- N. ]9 g5 H+ r! j) K9 H
修改 populatefsc 脚本,增加登录信息 ! H6 Z) \6 y5 ?- F( J% v, f
在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 3 G+ x/ e! ^0 l; h
set TC_DBA_USER=infodba % w2 }7 m3 j" |) ~
+ w" Y5 ~3 @. n' B" N+ V
在 populatefsc.pl 中 : # p3 P  L1 y3 h3 ?3 P2 m

; m" k2 }% Z& E在 runPLMXMLExport 子程序下增加红色标记的代码 2 ~# r) H; a  q$ \# Q7 d, _
) _& r( e1 S5 L6 y7 p
# This will be the full path to the executable.
. }0 |3 Z; ?7 k4 _my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
+ |7 O& a, b% Q' G/ nmy $tcdbauser= "$ENV{'TC_DBA_USER'}";     # c% q( m, a2 R' V3 g3 q) [3 r5 b
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
' r/ f5 k* |4 _' b3 N( i# Make sure we can find what we are executing.
  B8 ]1 M" ]( ?0 E; j$ o2 s+ p( Rdie "The ${exe_name} executable was not found at the following location:
1 _% Y' m4 e9 W2 k6 f: |2 q& `${exe_path}\n" unless -x ${exe_path}; 2 ^3 B3 m. e; c

* X" s# E1 o1 C$ S7 i' S7 K' q# Start building the command line.
6 c" r3 m, L, ~; g) S( Pmy @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' );
$ D  o# _, e8 Y) Y0 N- N, H
; i& @+ x  F  k/ |# Take care of possible empty spaces in the argument values
5 L: j) u8 ?0 q& b0 N1 Omy $outputFileStr = $hashRef->{'output_file'};
" R1 X, N& W+ C- U# h$ h$outputFileStr = handleEmptySpaceInPath($outputFileStr); " _5 d$ \, r6 T1 _4 b3 v
my $scoUid = $hashRef->{'uid'};
& f6 y9 h# H3 }- B& y8 W$scoUid = handleEmptySpaceInPath($scoUid); 9 g$ U8 l# u) a1 b& q* S
2 I, u/ l* P+ g+ s" P
# Add the extra options.
$ w% ~. w) R7 ?8 Q4 }addOption(\@args, '-xml_file=', $outputFileStr, 1); 8 r  o7 R! D* p" k2 n
addOption(\@args, '-uid=', $scoUid, 1); & Y; O) C* n- ^$ L  v7 V
addOption(\@args, '-u=', $tcdbauser, 1);     
4 D3 f6 b3 X0 i; b* `- e5 c& v0 Y: ^addOption(\@args, '-pf=', $pwdfile, 1); 0 V! P, O* q( [0 z9 X, I) X
: H! ?: X" j3 f) W% S1 }' p
在 runLoadFscCache 子程序下增加红色标记的代码 2 B) R2 K$ n7 x1 K" U8 Y
( L5 ?, m6 p2 t6 ^  _7 |
# This will be the full path to the executable. ( G0 f; A5 h3 U# \! G6 _# U; s! X8 x
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
; m8 g1 v" G- G/ I9 j: C
2 O3 r5 g3 j: c9 N7 ]my $tcdbauser= "$ENV{'TC_DBA_USER'}";
+ u' n8 ~" x! X$ K- v' Q- U1 Bmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; ! Y2 t( P' ]5 T% Z2 t7 n3 Q
# Make sure we can find what we are executing. - G( |6 O) M& Z, G6 g
die "The ${exe_name} executable was not found at the following location: - R4 M' O: m" ?; _5 D/ L( Q4 Z, I
${exe_path}\n" unless -x ${exe_path};
0 d( N9 A, g% |+ ]0 [: F  l9 d6 X: a8 X- h* N$ y7 J1 L" o
# Figure out output information from command line input
' A5 ~; }- W, e  E! Gmy $outputFileStr = $hashRef->{'output_file'}; 7 T/ J; i. z* l
my $fscUri = $hashRef->{'targets'}; 4 @! e: V! F- Z

/ L: ~. w2 K) ?3 ^- ]# Check possible empty space in the string
; o( \' J+ u1 V& X+ J$outputFileStr= handleEmptySpaceInPath($outputFileStr);
  A5 l* r9 H8 t/ {/ [6 M3 h$fscUri = handleEmptySpaceInPath($fscUri);
4 h+ O" d$ ]* A# _  d+ A( ^( Y
% f$ V4 n& x# Z) K( d3 f& I1 x" d# Add the extra options.
8 H% G4 n: S/ {6 S4 I8 Hmy @args= ( $exe_path, '-f=load' ); - u* Q/ N3 s' i% E9 O8 v7 V& l
addOption(\@args, '-plmxml=', $outputFileStr, 1); 4 n* P2 v% A% y  I2 g0 m) p6 ^( O
addOption(\@args, '-fsctargets=', $fscUri, 1);
! U4 j4 G& ?4 p4 D! }+ saddOption(\@args, '-u=', $tcdbauser, 1);
) B7 R, \+ i3 [. ^6 R( waddOption(\@args, '-pf=', $pwdfile, 1);
! B* }' ?9 _2 V8 K( J* r, U$ J& V+ `! t. ]/ f5 W6 k' Z

/ m$ k1 O2 i; T9 Z3 l% B3 S6 e
7 I/ d1 I' E+ `: x% ~0 s' d4 O1 P
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了