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

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

[复制链接]

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

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

admin 楼主

2019-8-19 15:47:15

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

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

x
  D3 a  a0 z7 N! @. [; O5 F
171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态
, C- {# L  U$ X4 K! |( c# m4 b: q9 W. P# |: s; B6 Q
问题 " t8 G. @6 _% `( Z
默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该  K; u& p2 I1 V
模块中的功能无法登录 4 Y8 t2 @& e! O) E

! ?8 u  M( t. p1 j( j7 ~ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the , [& S: N/ ~9 t5 K; G' c
user ID or the password is invalid.  5 ]8 p. \, q% M, c1 h0 C& D. I2 C

: i9 F$ c/ U% S% X* x: O+ v方法
; _- P5 G) Z, i- K# k修改 populatefsc 脚本,增加登录信息   T: @% ~! Z7 K+ n3 A
在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 : E0 M# B0 O. A& M+ _: Z! V
set TC_DBA_USER=infodba 0 d& Z2 w; Y: w* R

) l4 f5 q6 T. D2 c6 @5 r1 E在 populatefsc.pl 中 :
: P, [2 p: r. o  a7 K# S) b. b. z1 C8 @* K6 b2 |
在 runPLMXMLExport 子程序下增加红色标记的代码
$ B% Y. C  p+ h. S. P& o0 t( X# t8 q
3 v# W5 O9 M$ \4 g) c5 J' |7 d# This will be the full path to the executable.
2 s1 }3 g+ p8 b1 D& h4 `my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
" a. [, f5 ]1 J8 ymy $tcdbauser= "$ENV{'TC_DBA_USER'}";     + j" M5 h& L  D& Y7 k. |
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
- R; d2 Q% C/ h# m6 A# Make sure we can find what we are executing. ' b/ r& j: @; Y" y2 _# W# r
die "The ${exe_name} executable was not found at the following location: . P$ _/ `0 Z1 |8 t
${exe_path}\n" unless -x ${exe_path};
0 M( n* g7 A* d$ k& D
# u; O3 _3 a+ r% |7 H# Start building the command line.
5 O' ^6 h6 o5 r  f3 Kmy @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' );
7 @. V4 `4 D! ?9 T1 w! E6 {  j; N/ V4 X
# Take care of possible empty spaces in the argument values
$ o; a5 u4 a3 b1 qmy $outputFileStr = $hashRef->{'output_file'}; . d. @. R5 `: ^0 B& w
$outputFileStr = handleEmptySpaceInPath($outputFileStr);
: i' k: Z1 M; g* Rmy $scoUid = $hashRef->{'uid'}; 0 P* j/ U- x7 @8 ?  k3 G
$scoUid = handleEmptySpaceInPath($scoUid); 4 M8 l6 c1 s4 i
6 b& n8 G- r7 W( l9 |  S) F
# Add the extra options.
5 ?7 d! f' I: ~* X% jaddOption(\@args, '-xml_file=', $outputFileStr, 1);
5 [. T9 z' p3 P. a# _8 ]addOption(\@args, '-uid=', $scoUid, 1);
( L0 C; o6 t$ S: z% C& kaddOption(\@args, '-u=', $tcdbauser, 1);     
" ^8 x, [. n6 D& `addOption(\@args, '-pf=', $pwdfile, 1);
0 u, o1 u0 u/ a; r4 U- X1 ]2 D4 f; z; |( F, X* Z; y0 i' q1 y
在 runLoadFscCache 子程序下增加红色标记的代码
% k, m3 p- q& q
: |5 K/ ]0 F3 q9 p3 ]# This will be the full path to the executable. 6 ]7 ~- Z% e/ k5 \) b9 z# g# _
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; 9 `) |, R4 z5 f

( |+ e; M, F5 O  Qmy $tcdbauser= "$ENV{'TC_DBA_USER'}"; , g- ?, p2 p- j# _. \5 O
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; ) {1 V  s' y% V# m) c& D! K
# Make sure we can find what we are executing. 3 ~  b6 {1 t3 r8 x3 m
die "The ${exe_name} executable was not found at the following location:
, Z' x) \/ g+ h) \${exe_path}\n" unless -x ${exe_path};
3 B' h$ S# O" e$ `; ~: ^2 U- C
, t* R! v6 Z+ K# X" k# Figure out output information from command line input / k( ]+ L$ u! c" L! c  A( N/ t5 T6 D
my $outputFileStr = $hashRef->{'output_file'};
1 ~# C( H7 L- Hmy $fscUri = $hashRef->{'targets'};
- c( W- q& g+ K+ [2 }0 W, u6 \, i) G6 B4 s, i1 e- @
# Check possible empty space in the string 2 Z* t: T, x% J" A" G
$outputFileStr= handleEmptySpaceInPath($outputFileStr);
6 V# t: Q% Z9 Y: f$fscUri = handleEmptySpaceInPath($fscUri); % L: x4 Y  s5 K! M5 `  I0 S

* m' E9 a5 B7 k8 o$ Q# Add the extra options.
' W# W+ F, x+ E& O; v7 nmy @args= ( $exe_path, '-f=load' );
6 y2 h! |: y$ R( e* x: ^, \! `/ laddOption(\@args, '-plmxml=', $outputFileStr, 1); 2 f6 J5 |' L. b
addOption(\@args, '-fsctargets=', $fscUri, 1); 8 q' E- Z( o1 u# B
addOption(\@args, '-u=', $tcdbauser, 1); % p1 k8 S* p' N" g( a* K/ o3 L" d
addOption(\@args, '-pf=', $pwdfile, 1); 0 i$ n5 w, `, `- q& K1 w: P% N# ]( e1 g
6 O/ r0 j1 c0 ?+ H2 W* I
9 B' f; S# }0 i4 S' |6 X

9 F- m2 G1 d& T: }* P* u
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了