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

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

[复制链接]

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

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

admin 楼主

2019-8-19 15:47:15

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

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

x
; I7 H2 ]) m6 g: @. i
171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态 " ~1 @, Z# j2 f- D  z# m

4 M; o, {1 Y5 a; t1 H& o4 K问题 9 F# n$ K( M& Y; W. V
默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该
! X8 J" k/ ^) |2 z模块中的功能无法登录
0 o& t4 x+ ?. C* X
: B- e" Q8 b8 W1 h! A+ `6 O1 pERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the % D0 E, O5 n! D8 Z2 ^2 l' Z6 q
user ID or the password is invalid.  + T! @' h/ C9 z1 N" }2 N/ _' a( W
. s8 o6 ^! v! I
方法
3 E9 A4 U* B, B, J2 ^修改 populatefsc 脚本,增加登录信息 0 B: \0 @- g7 A9 L/ y$ q& J
在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行
( [1 j# l4 H7 x* uset TC_DBA_USER=infodba 0 e4 Z# g; P0 E: e; X

' g; T+ K, P8 ?6 O2 t5 s1 x+ @$ U  J在 populatefsc.pl 中 :
& `- z: L5 N6 |1 C! H. \9 i6 _+ d. ]5 m& k
在 runPLMXMLExport 子程序下增加红色标记的代码
( I( w+ [" z& E+ S. W# X! {4 m' i; J0 i
# This will be the full path to the executable. 3 i% P  Z; o; P- l7 P
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
" n4 F/ C" n0 n, ^my $tcdbauser= "$ENV{'TC_DBA_USER'}";     
( I# n, y" Y8 {- c: }my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; * A. L' r( C2 z8 L% B
# Make sure we can find what we are executing.
% ]5 O. l, N% D$ J# wdie "The ${exe_name} executable was not found at the following location: 5 w% I! F, @$ p; f
${exe_path}\n" unless -x ${exe_path}; * j5 K& n- |1 E& e$ E
* _. N6 d5 s7 ^
# Start building the command line. , y( A5 {+ y6 d5 X/ g; d! L
my @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' );
5 R# L/ W0 m1 T4 ]+ _. D2 ]8 K" u& F8 l5 y, S
# Take care of possible empty spaces in the argument values
, W" A' K2 V' [my $outputFileStr = $hashRef->{'output_file'}; $ _7 o; ^/ Y3 c1 X" Y2 {& }
$outputFileStr = handleEmptySpaceInPath($outputFileStr); ' W4 f) b; e2 S% R/ \3 u4 ]
my $scoUid = $hashRef->{'uid'};
& y) J/ N4 t; i6 q$scoUid = handleEmptySpaceInPath($scoUid);
5 ^4 G% p( D4 c, G, d, G; X3 v9 o. R* w
# Add the extra options.
8 q) p2 q; K3 {% H$ D( ?4 T7 daddOption(\@args, '-xml_file=', $outputFileStr, 1); . V' s) s6 `: |6 v5 @# l
addOption(\@args, '-uid=', $scoUid, 1); 3 K# @. o" T+ Z
addOption(\@args, '-u=', $tcdbauser, 1);     1 Y) C. s/ G0 {- z- j3 a6 ~
addOption(\@args, '-pf=', $pwdfile, 1);
" x) _% p) R6 z; b( \- f9 D
! N/ A3 a# n8 }8 e  ~# r& @在 runLoadFscCache 子程序下增加红色标记的代码
& ~, i' C* A1 Q+ ?) v. y! i& r3 I  j6 C0 g, ~1 ~
# This will be the full path to the executable. * c& w# a  J: o% H6 Y5 C9 J
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; - S) S1 b0 e5 j% e6 H2 {/ M
9 G1 a9 R+ T1 D2 s. R& |9 ~$ R9 B
my $tcdbauser= "$ENV{'TC_DBA_USER'}";
: G  M6 @4 c* \0 y1 l) kmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
$ G; i0 @6 V. E" Q# Z# Make sure we can find what we are executing. $ X( w0 v3 p! Z" v3 Y9 C
die "The ${exe_name} executable was not found at the following location:
! e1 g$ F) M) M% T& J* L# L${exe_path}\n" unless -x ${exe_path}; 1 ?! E2 F8 }( l3 A# G0 I
1 ~: V( \) ~' H0 ]  Q
# Figure out output information from command line input
! E$ r0 P0 N- Tmy $outputFileStr = $hashRef->{'output_file'};
4 v- m8 k% e' v$ f% Smy $fscUri = $hashRef->{'targets'};
% ?$ W3 x& m5 ?( ~
2 Y7 }7 b4 h% r2 [' B# Check possible empty space in the string ( v+ k! P  Q* D3 z  z' f3 w( V
$outputFileStr= handleEmptySpaceInPath($outputFileStr); & M* f7 o* i+ ?6 H6 P
$fscUri = handleEmptySpaceInPath($fscUri);
+ F! v# i2 X) i: y! M! q. l
: T4 D1 u9 s) N6 d$ ^" U# Add the extra options.
& I  ^6 G& g+ x! L! D. d; ~. Pmy @args= ( $exe_path, '-f=load' );
( \. z3 Q: H  W8 ~2 {addOption(\@args, '-plmxml=', $outputFileStr, 1);
. A6 A+ c) o$ a8 j# w4 w7 paddOption(\@args, '-fsctargets=', $fscUri, 1); 1 m% G2 m$ c/ ~6 L! F
addOption(\@args, '-u=', $tcdbauser, 1);
* n' e+ s9 m3 FaddOption(\@args, '-pf=', $pwdfile, 1);
+ F# h. p1 k: O  O
! a9 B8 d2 t6 J; e( j& G4 R7 S  {" P6 R) q: b/ c
7 [  @6 e6 `. V! G7 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二次开发专题模块培训报名开始啦

    我知道了