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

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

[复制链接]

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

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

admin 楼主

2019-8-19 15:47:15

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

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

x

- D" a6 N8 }6 Z5 z, {" R0 A$ l: Y171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态
+ N5 P6 T4 C' t& r& e; ^5 e
$ X* `1 A% C. K( D& Y问题
( K* h5 p: {1 ?5 `% N3 @: V默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该/ |1 ]9 I6 q6 b
模块中的功能无法登录 ' D# j) [7 v6 q- ^& _

: t* l4 J9 @. k4 oERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the
1 R2 F' B' l2 ?2 i9 nuser ID or the password is invalid.  
  l/ a) {2 x* Q( n* D' ^7 z
5 t% R+ j; n( n$ [* R& T) V' C4 c8 Q/ F方法
+ y, p$ l' J: B; I# Q) o修改 populatefsc 脚本,增加登录信息
4 @1 w& B0 _) K' c在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行
! P& H4 f2 ]  j# a% }) sset TC_DBA_USER=infodba
- H2 k; o- c5 f; J4 j4 p% q% u5 D, W6 }( ?. Q+ g. L4 o
在 populatefsc.pl 中 : " L- l2 M" U. |' ^( E% E5 \+ ?9 b
9 h) \1 p1 |3 y* u5 y9 a
在 runPLMXMLExport 子程序下增加红色标记的代码
$ K- Z9 o$ O& r/ Y; s7 m1 U0 ?4 G( ?" k. G+ h" V
# This will be the full path to the executable.
2 N8 k( ?; I7 Omy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; ; I( Q" Z$ P! |3 c) l
my $tcdbauser= "$ENV{'TC_DBA_USER'}";     8 E" s8 @0 R8 w! ^( B- }
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
4 x' {3 G; E1 h: U# Make sure we can find what we are executing.
5 _+ U4 `: L* @! h% z; udie "The ${exe_name} executable was not found at the following location: 0 C% L1 @/ o& P% B
${exe_path}\n" unless -x ${exe_path};
& j0 K. Z* v0 b) P" u" G1 a) A6 i; [5 X3 {9 h5 d
# Start building the command line. : D7 }" W; j: I7 e
my @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' ); 6 B+ I& J+ F9 s

+ g* O8 c" z6 s$ n) M# Take care of possible empty spaces in the argument values
- o. w2 l. E0 }( \6 y% |9 Smy $outputFileStr = $hashRef->{'output_file'};
# }* f& z# s9 n/ s2 j/ d: Z$outputFileStr = handleEmptySpaceInPath($outputFileStr);
& `- ]2 @7 j! z, N$ m! xmy $scoUid = $hashRef->{'uid'}; 8 ^0 F6 d' R7 [4 _% ^
$scoUid = handleEmptySpaceInPath($scoUid);
# ~" m2 {2 f, `! n& h! ^/ b0 R% k  j8 }/ r0 g' U
# Add the extra options.
7 N' k7 K9 t1 W8 v, ~) {addOption(\@args, '-xml_file=', $outputFileStr, 1);
# U8 N5 Y1 n& t2 EaddOption(\@args, '-uid=', $scoUid, 1); 3 K8 g! d8 G" f) _
addOption(\@args, '-u=', $tcdbauser, 1);     $ ?, U( G" _+ `4 o" \
addOption(\@args, '-pf=', $pwdfile, 1);
3 Y% f7 K. G! U4 B) C0 H' p
7 m8 W" F% t( E7 F7 B: _9 ~, \8 Z, Y在 runLoadFscCache 子程序下增加红色标记的代码
7 R# [, e5 ?+ F* A3 e, k! @/ V0 t" F. N" W. c& E+ S4 x
# This will be the full path to the executable. % j4 F% |( R' r2 O4 F" [- {
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; , d. W% u4 K. p) n" S6 x  M: p. E1 v
' E+ l* @& @- R: S- V8 e
my $tcdbauser= "$ENV{'TC_DBA_USER'}";
+ b" I6 g0 W5 {4 hmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
/ l5 y6 K' L' D* R# Make sure we can find what we are executing. ( E9 b, \4 d2 w" P1 ^$ E
die "The ${exe_name} executable was not found at the following location:
& a# r) c( Y6 I+ X5 ~) z1 m${exe_path}\n" unless -x ${exe_path};
- N+ ^8 c& H" A* \% u; k" \' [1 F" n
# Figure out output information from command line input 8 @% ~. \+ r3 T* l4 x
my $outputFileStr = $hashRef->{'output_file'}; 9 Q1 d' {6 m# @# q0 V) v
my $fscUri = $hashRef->{'targets'};
* r5 j1 E" G! m9 t1 E: M
( \* K  D0 _: ]4 `" r- s3 [+ \# Check possible empty space in the string
( B4 K% N1 T9 h8 U: x7 a9 Z% @$outputFileStr= handleEmptySpaceInPath($outputFileStr);
( H9 N0 e8 T4 _, C& l$fscUri = handleEmptySpaceInPath($fscUri);
0 i. t* C% Z( [4 P6 {
- L7 u7 D+ S5 i7 i: I. ^1 P% j# Add the extra options.
' u- }, J6 h/ Y' u1 @my @args= ( $exe_path, '-f=load' );
( W: R2 W( {) q9 j( IaddOption(\@args, '-plmxml=', $outputFileStr, 1);
. r7 h  ^) A! O9 u& [8 saddOption(\@args, '-fsctargets=', $fscUri, 1);
! [( A% U3 F( z) N) naddOption(\@args, '-u=', $tcdbauser, 1); 9 s; j5 {- P0 C& w  i& A/ K
addOption(\@args, '-pf=', $pwdfile, 1);
) A/ _" a% `7 ^+ Z
7 C. b3 T9 E6 t2 m0 C9 L# Y% _5 U- P2 K" z3 g  h
6 c* \" k& T" ]
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了