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

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

[复制链接]

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

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

admin 楼主

2019-8-19 15:47:15

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

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

x
# D+ {& K' N. {
171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态
/ p" s2 u" d, q, i& P& I$ A% V# z/ j  K! p
问题
3 K# O0 Q8 f& C; }8 O! V- E默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该( W; E, h; n, B6 R0 Y% v1 i
模块中的功能无法登录
+ X' l$ |3 _* G8 m7 L. S- k* X/ B% B( o% G% o
ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the
. X. s/ h: j  v" \user ID or the password is invalid.  * q$ Y8 T# o* f

  r' h8 L5 \- d$ m- T2 B方法 ' O- ~! J0 W) o4 E- z
修改 populatefsc 脚本,增加登录信息
5 j( J; a, }# l$ l" X在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 ( f, n5 ^+ G' K- [
set TC_DBA_USER=infodba
7 [$ x% }. c8 r! {$ i  g7 ^" V6 p* x1 M: F8 u9 x
在 populatefsc.pl 中 : 5 K3 G6 T9 j; s1 C; d% g" H
1 v$ B& A% C+ e7 [; Y( H  w
在 runPLMXMLExport 子程序下增加红色标记的代码 % n" l& V* s5 |6 b6 `5 a  h1 U

+ h. U6 d- D* \! ?4 q! J* ~# This will be the full path to the executable.
+ g& ?8 R" E6 ^  c) Q/ i# qmy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; 9 K  q" q: e6 F
my $tcdbauser= "$ENV{'TC_DBA_USER'}";     6 m, {; S: F- W* l2 x
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
$ _9 {' R) ?/ ?, G5 K, ?# Make sure we can find what we are executing.
! i5 ^8 H8 d3 ^5 V1 F. G7 udie "The ${exe_name} executable was not found at the following location:
* \8 R8 Q. v8 r4 L" [" i${exe_path}\n" unless -x ${exe_path};
# g& l& ]' t# X% f. D4 X" A$ {: H" p' q0 J$ `; x- V1 I0 n* p
# Start building the command line. 4 g& |. g0 Z' g
my @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' ); 1 h! s2 K4 U6 \
9 a6 E8 B- y  i+ e' E: [
# Take care of possible empty spaces in the argument values
5 k" H) a8 g" ~: w" l4 G+ Cmy $outputFileStr = $hashRef->{'output_file'};   c: n. {  d# l: B9 Q7 X
$outputFileStr = handleEmptySpaceInPath($outputFileStr);
1 D, U% Z3 d5 d, Fmy $scoUid = $hashRef->{'uid'}; - P% ?, ]* [+ _/ {
$scoUid = handleEmptySpaceInPath($scoUid); * V$ Z0 I$ W) t9 V% q" @- E

* B8 f- Y. w* {5 |+ e; o# Add the extra options. / f' @+ f. R. K* l7 g
addOption(\@args, '-xml_file=', $outputFileStr, 1); * B$ ^8 W7 _2 _$ P
addOption(\@args, '-uid=', $scoUid, 1);
7 c+ B( e4 e' z2 B0 ]2 r! |addOption(\@args, '-u=', $tcdbauser, 1);     8 C6 z4 x# D" h* O1 e/ x1 x
addOption(\@args, '-pf=', $pwdfile, 1); 0 q6 d" `# Y9 C/ Y" V/ U1 g6 N% V
; R& H/ `+ u+ Z! R# K$ z5 z2 ]7 k& o
在 runLoadFscCache 子程序下增加红色标记的代码
& g" P1 q2 T7 {6 z( v" v0 g& F2 L
0 H5 B4 q6 @' D: F6 q# This will be the full path to the executable.
8 b) m* u9 W9 j4 H' I  A2 nmy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
1 X  P/ L* R7 S3 \; u) `) G1 S/ v) J" h$ n( t3 ]
my $tcdbauser= "$ENV{'TC_DBA_USER'}"; : a# f3 c. d8 J4 L1 \: ?
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; * x# }; {4 W, b: k
# Make sure we can find what we are executing.
  Y* V" w9 d/ J3 P3 ^* V* H3 B$ Fdie "The ${exe_name} executable was not found at the following location:
! ]( V, f- j1 r* T$ N1 u) P( \${exe_path}\n" unless -x ${exe_path}; 0 ?7 B* a+ c& ]

, i( A5 c+ q  @: A6 \# Figure out output information from command line input 4 C" I9 n5 H' M# k
my $outputFileStr = $hashRef->{'output_file'}; & P7 B" m* e$ ~
my $fscUri = $hashRef->{'targets'}; $ t2 F+ i* a. J1 b/ g
1 m& P2 t% l: T* b. h
# Check possible empty space in the string
# b  S: Y4 t7 x/ G: b- M  t$ ^; P$outputFileStr= handleEmptySpaceInPath($outputFileStr);
( s, {+ W# }  @$ N$fscUri = handleEmptySpaceInPath($fscUri);
  x  f: @; \& m! m5 w; F2 y1 S% G
# Add the extra options.
3 c5 m5 Q6 X' umy @args= ( $exe_path, '-f=load' ); . g% Q- F4 r; Z% k& M6 r1 g
addOption(\@args, '-plmxml=', $outputFileStr, 1); 3 H6 k$ t2 L: @& W
addOption(\@args, '-fsctargets=', $fscUri, 1); 9 W- z% s" b5 {# I, `
addOption(\@args, '-u=', $tcdbauser, 1); 4 B- E2 `- [" _  H: s6 p
addOption(\@args, '-pf=', $pwdfile, 1); + Z" r9 J& Y0 S, H! S

2 a2 r2 E' b7 N4 s. U6 o* t& }  W& T9 K" p, t9 x' Q

/ s6 W! K" Y" E* S  c5 `
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了