|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
+ m" ]9 g) H" {, }- F& |
171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态
$ @4 U8 C/ G$ N* ?) \' k) H2 C+ o) d3 B/ _; c
问题
* k, @, U9 ~! A默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该
8 Q7 S+ v7 v) ^' ?. q8 b7 t: g1 M模块中的功能无法登录 b6 W' O' s/ P) m+ v
) }, U' @7 m. OERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the ! P, I& G) J' q; t5 `
user ID or the password is invalid.
% V& A" Y3 U1 ~& l- |) m* s; M6 O( ]% \7 d' H$ D% @
方法
. w" g- r+ v5 x" w+ E% B. p" \修改 populatefsc 脚本,增加登录信息 & ]- ^) v6 S* {# ^7 R- |. z
在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行
6 @6 q, W. [' |* @) Dset TC_DBA_USER=infodba
3 k. q# F: O: Z3 m% x5 ~6 J2 S2 n$ D4 s3 g1 W. I, U9 l
在 populatefsc.pl 中 : * _: T1 O8 e. ]' ^- ^3 m" q5 g( V
/ l, J# ?, u. _6 d: \: [- \. B2 I在 runPLMXMLExport 子程序下增加红色标记的代码
7 u7 d$ ?4 ~6 U' U8 n5 M5 b
2 m" E& P6 Y5 a# This will be the full path to the executable.
5 j7 Q! P% y/ q Mmy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; ( h5 W+ V, C# f: Y- w1 I
my $tcdbauser= "$ENV{'TC_DBA_USER'}";
4 [5 ?% d% D0 c# H1 imy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; " P4 q7 E! A4 \
# Make sure we can find what we are executing. % a7 I. p/ K0 s( [+ r% C
die "The ${exe_name} executable was not found at the following location:
. _. M c; j/ {8 A! D8 A${exe_path}\n" unless -x ${exe_path};
$ _0 u6 f! i. @6 ?1 a2 F3 V2 J! [- Y/ m/ {' x( ~6 J4 q6 Q' ?% Q
# Start building the command line.
2 Z, N2 P! l2 {" Z1 ~+ }# Dmy @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' );
) N# z% Z- [7 ?5 d4 y- }' m* e$ |0 M; G0 X; L
# Take care of possible empty spaces in the argument values 8 C! V/ n. X* G& }/ B
my $outputFileStr = $hashRef->{'output_file'}; 1 d$ {1 Y7 |5 p6 U- c4 K$ Y. \( X
$outputFileStr = handleEmptySpaceInPath($outputFileStr);
% Q S$ b3 Q# c- b3 Z2 [my $scoUid = $hashRef->{'uid'}; / u5 M- y2 n6 q* J2 ?- r7 U
$scoUid = handleEmptySpaceInPath($scoUid); , l K% K6 p( x
: C) r c, F: c) b1 [0 _0 h) Z# Add the extra options. " w& _" {$ v8 \. {
addOption(\@args, '-xml_file=', $outputFileStr, 1);
% |. Q7 V: S8 x) n; g4 VaddOption(\@args, '-uid=', $scoUid, 1);
+ t; G/ k4 m: L: c) l, \addOption(\@args, '-u=', $tcdbauser, 1); # g* ?$ q9 A8 ^" V& P
addOption(\@args, '-pf=', $pwdfile, 1);
. ?% p: ^6 j4 I" `& l% b
2 d5 ]' T5 X! x0 M/ E在 runLoadFscCache 子程序下增加红色标记的代码
8 w/ x5 K! |5 f( \: [+ `+ N# A0 S4 E+ Q1 X# q8 @
# This will be the full path to the executable.
8 b1 _) a. [+ v+ Amy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
7 K* o3 }% ^5 I* a% c# h1 W+ X! G& E" P# B& p
my $tcdbauser= "$ENV{'TC_DBA_USER'}"; ) ` Q# \5 Q) x! z: U
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; " Z3 T3 _4 u4 c1 Y" s1 O
# Make sure we can find what we are executing.
8 z' Q* Y9 N, a. M* ydie "The ${exe_name} executable was not found at the following location:
7 z- ?; v, u0 @9 [! \${exe_path}\n" unless -x ${exe_path};
- h* |( ` y& r4 K/ g+ p
2 O! o7 k2 G- ?2 ~6 ~ M% Q7 ~# Figure out output information from command line input ) k% _- r6 I) _5 V* g
my $outputFileStr = $hashRef->{'output_file'}; 6 f8 W' B% @1 W9 O' T) ?8 g4 z
my $fscUri = $hashRef->{'targets'};
% S% h. s g' c9 I9 U% l; u4 _ R
* w* _! `' u. w& T9 y+ G* Q# Check possible empty space in the string
2 H1 N' |# t0 m2 H( R% r$ b1 P$outputFileStr= handleEmptySpaceInPath($outputFileStr);
- ^" }4 u$ T: [. \$fscUri = handleEmptySpaceInPath($fscUri);
$ w$ q4 P1 }2 n. g- X* N' a3 v: N$ i& B3 ^
# Add the extra options. 1 E2 l9 V* ]* ~
my @args= ( $exe_path, '-f=load' );
% j3 a2 l( G1 C+ Z; F" E O6 |addOption(\@args, '-plmxml=', $outputFileStr, 1); : b/ ?7 w+ l0 ~
addOption(\@args, '-fsctargets=', $fscUri, 1); $ M" o, F- s. u m
addOption(\@args, '-u=', $tcdbauser, 1);
% P0 Z; s+ \& faddOption(\@args, '-pf=', $pwdfile, 1); 0 C6 J, D' n; M) Y$ R
( m' x8 r) j# ^' {
5 a/ y+ B7 i( E/ ]2 C. n6 n
) P% B4 G. t& O9 x& F4 w) O |
|