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

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

[复制链接]

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

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

admin 楼主

2019-8-19 15:47:15

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

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

x

( f- J( _6 E8 _! @, |' ?& P" r171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态 - w$ Y( E* X) D

. x7 }( p$ k# u! Z; N4 L# b问题
  J! u) a+ F" `  @默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该' r3 j! B0 \. _) s* ~9 Z& P* A
模块中的功能无法登录
3 }; Z% j, U) v
8 y' h. l+ F- d7 J, l; gERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the 1 ^  L6 w3 p8 a+ Z  I: R5 p. {7 Y
user ID or the password is invalid.  
2 T0 h7 C- c' G% X/ F: U
2 `! z" e5 P7 _6 g# r. {; S7 |方法 5 y0 Z4 N" h3 l. y# A
修改 populatefsc 脚本,增加登录信息 2 t3 M& U) f5 N- Z& d
在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 9 }" t  r# U: b
set TC_DBA_USER=infodba
  b7 l; l0 G! L7 d" @7 J6 G# x- |1 M3 a' ^: a! T1 m& }5 S, h9 K5 o
在 populatefsc.pl 中 : 9 r* U- p3 X% O% W6 q( ]
, b" I, k& m& Z: n$ E# ^  m; Q2 A
在 runPLMXMLExport 子程序下增加红色标记的代码 " V' C" k4 @0 m+ h* H
4 j% z: n* H. |- N/ F$ [/ e; ^
# This will be the full path to the executable.   t) x9 C4 J* p
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
" W9 T/ c$ i5 U' P/ z) w/ n1 Ymy $tcdbauser= "$ENV{'TC_DBA_USER'}";     
& n2 l: V9 X, B" @3 Y# rmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; 3 c7 N$ Y7 o3 q5 [0 O" {
# Make sure we can find what we are executing. * ^- P5 B0 [4 ?* Y4 X% p
die "The ${exe_name} executable was not found at the following location: / o% C" B  V2 C
${exe_path}\n" unless -x ${exe_path}; $ C- A8 X; O/ d1 v
! }/ b: w. A/ I3 q9 o) q& y$ Z
# Start building the command line.
4 |  P0 ]2 a- b1 Z* D9 Z$ Bmy @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' ); 5 l$ T" i3 d. m6 U8 ~' G" q
: s: t( R) G) m( T  G
# Take care of possible empty spaces in the argument values 9 R% J; i  E  G1 K1 l
my $outputFileStr = $hashRef->{'output_file'};
- E2 ?6 f5 s) g' j$outputFileStr = handleEmptySpaceInPath($outputFileStr); : Q) o5 x- B  X
my $scoUid = $hashRef->{'uid'};
$ K4 B/ N9 B/ m% b: n0 t! h$scoUid = handleEmptySpaceInPath($scoUid); & z2 ~9 @1 f' s3 |& E
2 O9 R% B$ Y& }6 ^5 j3 h
# Add the extra options. ' ~# C3 y+ j2 O2 @# V2 d
addOption(\@args, '-xml_file=', $outputFileStr, 1);
# u( K; j8 G6 o4 A9 N" zaddOption(\@args, '-uid=', $scoUid, 1);
( N# s+ t  l% h( A) O; R' [addOption(\@args, '-u=', $tcdbauser, 1);     
0 }& V+ X3 b' qaddOption(\@args, '-pf=', $pwdfile, 1); + f. G; R1 v4 B0 W* c
; H2 o4 P) g1 S3 v, ?
在 runLoadFscCache 子程序下增加红色标记的代码
6 u! O" w8 L. d! P3 f7 b% `$ i. z" x0 q  |
# This will be the full path to the executable.
8 C; n& x9 K7 [; zmy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
8 `( B$ X8 m2 l& |6 L0 z  a' j4 N7 u) u6 v/ j: @5 x9 B( Q
my $tcdbauser= "$ENV{'TC_DBA_USER'}"; * @" y; S) A' A7 N
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; , w* t' }- N+ _6 a9 z7 `& e( |
# Make sure we can find what we are executing.
* G: r) F/ j# L# o4 m' z. ldie "The ${exe_name} executable was not found at the following location: + P& H" e6 \/ o2 k; Y
${exe_path}\n" unless -x ${exe_path}; ( l: @' m9 D. l( k6 p- j5 ?$ F
4 ^; X! f4 A5 c: w9 D- D2 e3 x0 i8 }
# Figure out output information from command line input
( R$ Y2 t+ U' H8 x; p* Y% gmy $outputFileStr = $hashRef->{'output_file'}; , y( Y- i# T1 a
my $fscUri = $hashRef->{'targets'};
+ a0 A% i% s1 U
" q; [% L. M+ J0 B# Check possible empty space in the string ) X8 Q+ u+ h! o% `9 g, S
$outputFileStr= handleEmptySpaceInPath($outputFileStr);
+ \% G2 k5 B* `# X- u! Q  j$ f$fscUri = handleEmptySpaceInPath($fscUri);
* F; Q6 ~" `! h) @2 D# O
" v" K2 w1 o' y: M( ?$ q# Add the extra options.
1 N2 d; _: s* u% E  G9 ~* x* Xmy @args= ( $exe_path, '-f=load' );
7 y! r$ x9 k4 A5 {% ^1 TaddOption(\@args, '-plmxml=', $outputFileStr, 1);   W. u5 J) }# o  Q" ~0 e' @( t
addOption(\@args, '-fsctargets=', $fscUri, 1);
+ F" a  y% k/ e& b# xaddOption(\@args, '-u=', $tcdbauser, 1); ' z5 b; C& ?7 G
addOption(\@args, '-pf=', $pwdfile, 1);
2 f! l% H' u& v* L% F2 U) F4 C0 ]. R  u6 b& U! g4 K8 s
# q" a/ g8 s; c# F6 p' l' c

3 W/ r- _" ~' b( U/ n) v
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了