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

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

[复制链接]

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

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

admin 楼主

2019-8-19 15:47:15

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

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

x
0 @9 R  J. b% |" B
171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态
, @1 t- R$ _& k8 O3 x' k: W$ e5 g6 N6 t
问题
& c! Y9 V  [, g: f( ?) [, S  t0 H- ?默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该
: s1 i* N. _; T/ Q: L9 x模块中的功能无法登录 : U7 l* ~: D, F# b

3 ~5 O  q% f/ Q% UERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the
( a5 a) ?, L) Ouser ID or the password is invalid.  % Q" \: _. B$ ~, ]; b" n( e7 M5 U

8 Y# Z+ I# |# s+ H: {3 D方法
/ M- h$ n% a2 B! G2 w: S2 F修改 populatefsc 脚本,增加登录信息
7 v: P7 u$ w) V在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 8 w) {8 O: {; l5 `% K
set TC_DBA_USER=infodba
* g& z4 v1 _" c& H6 r* u
2 n8 T0 V4 I2 h5 A, b0 v8 U+ ]在 populatefsc.pl 中 : 0 O3 u3 w- y# e

5 d2 s& L2 c; G- B1 ?: B在 runPLMXMLExport 子程序下增加红色标记的代码 * u* a9 D* m3 X* ?

  O7 n) ~2 K: o2 A, j# This will be the full path to the executable. ' |; a! [+ @( n$ K0 {: B
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
$ J: A1 E% ?# v# Gmy $tcdbauser= "$ENV{'TC_DBA_USER'}";     ' y8 a1 B. D. Y- g* ^7 }
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; $ W, H- V, \3 d: A- {- B5 Z
# Make sure we can find what we are executing. ( d8 @' Z6 T& }" r! p3 K+ k
die "The ${exe_name} executable was not found at the following location:
+ T9 G: Z. m# @0 Y8 V+ q3 `7 J/ R4 d${exe_path}\n" unless -x ${exe_path};
3 F! Y; u  N# K5 U4 W0 V& l: y# s6 {. Y" a, K3 G
# Start building the command line. + c* j- P7 r: `4 h
my @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' );
* O1 d& ?- \0 ]' [: r% b
) |! m" x, S8 ]" p6 y# Take care of possible empty spaces in the argument values
# p& Q+ d% @. U2 |& Dmy $outputFileStr = $hashRef->{'output_file'}; ! D" `' W. T" }7 o
$outputFileStr = handleEmptySpaceInPath($outputFileStr); * m% N" ]# J& y
my $scoUid = $hashRef->{'uid'};
6 l7 O7 m8 i5 F: l% |, S$scoUid = handleEmptySpaceInPath($scoUid); % [/ {7 i' U( @- Z! D4 P7 b2 e- ?1 W
) k5 s- r1 H! h$ b4 `& j
# Add the extra options. ' I; D6 T2 @" ?/ |4 o
addOption(\@args, '-xml_file=', $outputFileStr, 1);
" U7 v9 Z) D; ~& c' j% JaddOption(\@args, '-uid=', $scoUid, 1); ( e. _" e0 \& L/ i6 ~
addOption(\@args, '-u=', $tcdbauser, 1);     7 U4 V: T3 j! c% j! R
addOption(\@args, '-pf=', $pwdfile, 1); - m& w! P0 J! k: S9 Z
3 ]3 N/ C; A! `; \7 d
在 runLoadFscCache 子程序下增加红色标记的代码 4 ?. w( `! z) ]$ o

% z( X  a: s, p! z+ a5 j7 m# This will be the full path to the executable.
  S$ \9 f0 D; k; Umy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; 7 U* m+ x% O* h8 t, i
# ^3 J$ Q+ C" D2 C& |0 |
my $tcdbauser= "$ENV{'TC_DBA_USER'}";
" O0 ?4 M& {7 ~2 d; Xmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
. k' E6 `$ |% E$ l; n# Make sure we can find what we are executing. % n' z( N! M( S6 s+ S
die "The ${exe_name} executable was not found at the following location: ; o4 a1 y' R! l$ T+ d  g& N4 d
${exe_path}\n" unless -x ${exe_path};
0 x$ m0 m0 d* D9 g, G: i9 g5 k3 r, h- r
# Figure out output information from command line input
0 T) [- I8 _6 w" s; h8 Z4 h3 @my $outputFileStr = $hashRef->{'output_file'}; 6 c8 Y. ^$ m: x! f6 ~' o+ H1 Q
my $fscUri = $hashRef->{'targets'};
, K. O; m- e: Z$ z  X1 w+ K4 K1 K1 ~3 ~1 r; q7 s5 J) c
# Check possible empty space in the string
2 d) w& z( a! n2 n$outputFileStr= handleEmptySpaceInPath($outputFileStr);
6 K4 \2 x3 w  S5 w- V' z" q$fscUri = handleEmptySpaceInPath($fscUri); ' G9 V3 A! U, d9 x. M
* J$ _4 _9 E2 y: f6 M
# Add the extra options. , T+ c' S# j4 V8 `! |
my @args= ( $exe_path, '-f=load' ); 2 d% j1 i. V' S  |+ w# |& v5 k) d
addOption(\@args, '-plmxml=', $outputFileStr, 1);
# [4 t2 f+ l! H3 ZaddOption(\@args, '-fsctargets=', $fscUri, 1);
: b( \# c' J8 xaddOption(\@args, '-u=', $tcdbauser, 1);
6 V+ u. P4 \. y/ J; Q( D! MaddOption(\@args, '-pf=', $pwdfile, 1); - ^4 y' Z0 t* f
( E. k4 K# s7 _2 N

+ H* f2 I1 `7 k1 v- p
) z+ D1 j0 y1 L7 J" f  D% v! J' j* a* D
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了