|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
1 w! P5 \+ O# @4 Z$ `& I171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态
/ e1 s" U4 S" A
- Z3 P+ W4 ]3 v+ k9 H7 @1 E" m问题
2 y# t4 \4 W! [2 ?默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该7 ~: E6 }+ g3 S2 l9 O% u
模块中的功能无法登录
! g" I/ J, N6 H( ]0 s3 _. ^3 N; _2 ~- F, S
ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the ( X% G* O) k% K: \5 C
user ID or the password is invalid. ( r3 E+ g1 F: C1 k R3 r4 l) q
- b, l' |5 S% B8 P方法
( l. r8 L' n% K* w% S: z6 ^修改 populatefsc 脚本,增加登录信息
}, \; W( \ I0 m" o# e$ `2 ]! t) A在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 1 E& n+ V6 s2 ]& a7 [
set TC_DBA_USER=infodba " f' Y7 }$ }/ w) N
1 \- Y* B! o2 u" n2 j# N F
在 populatefsc.pl 中 : $ S" Q) `$ ^4 m: M$ n( y" s6 H3 R
7 _# S0 h: T' |$ q) F' u
在 runPLMXMLExport 子程序下增加红色标记的代码
. o0 ?% z" n$ B9 Z7 F2 m0 K8 Z) p! h4 E
# This will be the full path to the executable. 0 D* {1 p2 d; @( E( \% u
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
0 s5 [& _# p6 S3 }+ Fmy $tcdbauser= "$ENV{'TC_DBA_USER'}";
) y# t* Y- i5 Y: G( nmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; 0 v( {0 k3 @. }6 L
# Make sure we can find what we are executing. / s2 R2 p2 ^* d
die "The ${exe_name} executable was not found at the following location: + _5 r% y7 X. ?# D, I% I
${exe_path}\n" unless -x ${exe_path}; 7 P* a% o ~! Q; T% `) X( w2 x/ G
5 Q$ E2 M3 N1 p( |& E
# Start building the command line.
) [# L: ?6 D. e, omy @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' ); ; ?; d/ |8 q* P9 W
$ t- [2 ~& C2 E" q# Take care of possible empty spaces in the argument values
& D6 c1 b8 x: X8 M$ O' Jmy $outputFileStr = $hashRef->{'output_file'};
. A* l: d, U8 ~0 v4 U$outputFileStr = handleEmptySpaceInPath($outputFileStr);
8 \( k9 m0 b! o$ k, N Gmy $scoUid = $hashRef->{'uid'};
8 H0 K6 {! r& w& Z& ]& J) b4 [$scoUid = handleEmptySpaceInPath($scoUid); # b3 q8 J2 D& J. e; q2 I
J n4 F( ~% L
# Add the extra options.
* D5 D9 B g$ E# HaddOption(\@args, '-xml_file=', $outputFileStr, 1);
1 B1 {+ p2 z2 k1 c: {addOption(\@args, '-uid=', $scoUid, 1);
# ~, q/ r" |4 J7 c$ eaddOption(\@args, '-u=', $tcdbauser, 1);
+ `' ?( V( e% {addOption(\@args, '-pf=', $pwdfile, 1);
( R! G" d( ]7 t
' x6 k. d; h: u5 D在 runLoadFscCache 子程序下增加红色标记的代码
! I+ g4 y N/ M( ~9 ] V' S7 U# F* C/ ^5 U" f* l0 k/ j% p
# This will be the full path to the executable.
7 |6 A# {. |( q2 rmy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
! _* g. ^, j6 G/ L3 g7 t
9 ?, R; r- V- x' H( b! B, F. qmy $tcdbauser= "$ENV{'TC_DBA_USER'}";
5 c; ~8 n- `$ h; f1 Umy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; 6 {% V- f6 I4 ~" w' H. u$ b
# Make sure we can find what we are executing. ; W3 _0 ^2 ]7 @3 L8 Q1 \8 ]
die "The ${exe_name} executable was not found at the following location: 9 w, m- H- j) Y/ [
${exe_path}\n" unless -x ${exe_path};
! j! W1 T5 I5 C% d5 Z
$ |8 `: R z, e8 x! O# Figure out output information from command line input
3 k5 S2 v7 L; M" @* Jmy $outputFileStr = $hashRef->{'output_file'}; 8 ]4 B/ y3 z7 p
my $fscUri = $hashRef->{'targets'}; 3 f$ I2 B5 T- ?3 c
. C6 A, ^+ g+ R2 w$ n& V
# Check possible empty space in the string # v% D% p2 r- h' D. ~; c' [
$outputFileStr= handleEmptySpaceInPath($outputFileStr); ( h- M2 \0 X; o$ ]- a g
$fscUri = handleEmptySpaceInPath($fscUri); 9 l8 q! J5 T, `. N- B; Q
. b# s; L$ ~, t; k. X# Add the extra options. . ]- J% @% N3 V
my @args= ( $exe_path, '-f=load' ); 5 ]: i$ J, {+ N4 z, B8 ^
addOption(\@args, '-plmxml=', $outputFileStr, 1); ( `, S ^& ^8 N& a4 Y t+ e
addOption(\@args, '-fsctargets=', $fscUri, 1); - g" Q6 s2 |) t% L) }/ k6 H) H
addOption(\@args, '-u=', $tcdbauser, 1);
6 ]- u7 ]# K( p/ s, DaddOption(\@args, '-pf=', $pwdfile, 1); 0 p" Q$ b! Z* M1 M: [
' }; x9 @6 L3 Z+ O5 k
- s- Y% X$ I' c h7 V, w g/ x, X2 `
9 E- k+ F( F: x8 h8 T7 h* V |
|