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

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

[复制链接]

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

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

admin 楼主

2019-8-19 15:47:15

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

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

x
  w/ Q, M, P/ ]. }2 v0 c  J9 J; Y" q
171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态
8 [/ Y2 O, F$ G$ u
3 S* e2 p& X, I8 p2 n2 z8 x问题 + Q5 t% ?2 h8 M+ n
默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该  p) t& T! [7 S9 x& e4 l$ N3 e; p
模块中的功能无法登录 ) q, G+ b% p% Q8 M! a7 ?
$ M7 g1 }# k2 Y  ?5 ]! K
ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the . l/ V2 Z3 @; t
user ID or the password is invalid.  1 ^* S% t+ z! c* f' l
$ ?+ M  K9 t& V& U2 [: A' f
方法 5 u4 G- A6 ]- b) V. }" l5 M: w
修改 populatefsc 脚本,增加登录信息 4 J: [# g; f! @1 ~9 O- H
在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 4 N9 t6 w6 H  k$ a
set TC_DBA_USER=infodba # e* k. o$ d- j
" t7 [7 o8 G7 ]. h3 a
在 populatefsc.pl 中 : ( _! a2 w' N9 e8 t- g" D" H
* g1 h9 n1 r8 G7 ?2 Q
在 runPLMXMLExport 子程序下增加红色标记的代码 / O8 C; w9 \( O& ?# N

3 C( ^: u. c8 }, x4 e# This will be the full path to the executable. 6 J+ G" M( k1 A8 B; _
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; 3 H2 O1 P% x. v2 u& Q8 V
my $tcdbauser= "$ENV{'TC_DBA_USER'}";     1 M" Q& I% a+ V3 n  n) t$ V
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; ( i! o! l" k/ l1 T! A; w; d
# Make sure we can find what we are executing. + }1 [2 N9 [. N3 X
die "The ${exe_name} executable was not found at the following location:
* A& w; b3 m9 K4 R4 r8 q( w5 v1 O${exe_path}\n" unless -x ${exe_path}; ) c1 _: B  K: z) P7 a' I" o
9 h3 Q. L) ^# C1 ^$ l
# Start building the command line.
' P& Y% c1 `% z' x2 \4 Hmy @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' ); 1 s$ R( R- T! I4 z9 v

* W# W8 E; C) t) [  {$ `# Take care of possible empty spaces in the argument values " O5 {. Q8 w3 l7 t6 Z
my $outputFileStr = $hashRef->{'output_file'}; , P( ^, ]9 ?0 k) f9 A3 E
$outputFileStr = handleEmptySpaceInPath($outputFileStr);
% k* B$ z: B) E" o# t/ bmy $scoUid = $hashRef->{'uid'}; 9 w1 B% R( ]* p: @
$scoUid = handleEmptySpaceInPath($scoUid);
* c+ j4 T% Q% N$ |; B  c& n$ N, O5 V/ c: f
# Add the extra options.
9 ]' }( z" }$ r2 \  oaddOption(\@args, '-xml_file=', $outputFileStr, 1);
3 J$ P8 j* ~; N2 caddOption(\@args, '-uid=', $scoUid, 1); 2 d  m* {( }' Z" A# g! G$ J3 l
addOption(\@args, '-u=', $tcdbauser, 1);     % v6 T) }' e3 S. ^  I8 N
addOption(\@args, '-pf=', $pwdfile, 1);
! b  [+ P9 F! T, `4 \# B8 x0 M
4 n2 h% z1 A. g在 runLoadFscCache 子程序下增加红色标记的代码
/ e0 n+ T) c' ?$ q7 L
1 \- _  V- h2 e# This will be the full path to the executable. * G% f" ]  W0 M
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
. W3 ^" f, H8 ?! l" Y" F& p# W4 k+ K( _, e
my $tcdbauser= "$ENV{'TC_DBA_USER'}";
' C! E* F4 |! {, U% [0 T* v7 Amy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
0 S  q5 P; ~5 B, n7 n0 M# Make sure we can find what we are executing. 2 p) L6 c5 l! c) B+ ~
die "The ${exe_name} executable was not found at the following location: * Z: e; e6 \% b8 i( v1 L& ^3 m6 F& u
${exe_path}\n" unless -x ${exe_path};
9 N% P9 s; s, V+ |+ Q6 O, E8 e4 u1 E# `4 I) F' I5 T4 p6 A
# Figure out output information from command line input
# U; @* I( S7 ^/ wmy $outputFileStr = $hashRef->{'output_file'};
/ J2 }5 s' i3 kmy $fscUri = $hashRef->{'targets'};
) i: X& M- I( F- C  z5 Q
% N6 `1 \% l( I1 d. ^) e/ s# Check possible empty space in the string ' S4 \! v7 W% j& m4 _! u
$outputFileStr= handleEmptySpaceInPath($outputFileStr); * y, m& [8 L, j  M
$fscUri = handleEmptySpaceInPath($fscUri);
/ @& J2 z- M0 J( t  ^* c
3 p1 v4 x0 E; @3 a# }5 G9 J# ^/ ?- k# Add the extra options. & K+ |" j( |7 G+ B% ]! C: F) j
my @args= ( $exe_path, '-f=load' ); * Z! L3 Z7 ?2 l0 |
addOption(\@args, '-plmxml=', $outputFileStr, 1);
" l& N# S* l4 w* V2 {addOption(\@args, '-fsctargets=', $fscUri, 1);
$ j3 m* Z2 t( daddOption(\@args, '-u=', $tcdbauser, 1);
- ~5 R; _3 Y0 a9 m% _8 W, ]7 VaddOption(\@args, '-pf=', $pwdfile, 1); $ r5 A7 S  a" s' L! Y4 |

! G' \( i! B( o$ x
" {$ u: P! w; C" t  {- m2 m! h6 @# Q4 P6 S. S& O; A; a
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了