PLM之家PLMHome-国产软件践行者

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

[复制链接]

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

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

admin 楼主

2019-8-19 15:47:15

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

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

x

* L& v, I7 e, F& @! @  o171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态 2 e) l0 I5 z! e; T  ]! Q7 F
) D( Z& @8 r: [* o& {3 b; V
问题
) E/ F9 @: N" M) X默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该0 k2 J: L4 B/ N  n
模块中的功能无法登录 ! f" S1 M' j. `) t- y

2 D" f# w1 K$ l( QERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the - Z' z' O! J& p5 z  k9 {
user ID or the password is invalid.  
" D8 `. j) q; H7 k' U/ D1 F2 U# E  @8 ^- W/ n% w
方法
" n: U; ]) b* u6 O) T2 B" i* q7 i修改 populatefsc 脚本,增加登录信息 * c* M! j7 |' F& i- ]( @$ h
在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行
" X$ b$ L. m+ L0 @6 T5 }set TC_DBA_USER=infodba
9 G6 y3 s: y1 h! P! k5 I$ v2 L$ w
% _9 x' ?! P$ l! \在 populatefsc.pl 中 :
' ~3 @! C+ \6 Z( N% b' Y0 r2 i$ k3 a8 m
在 runPLMXMLExport 子程序下增加红色标记的代码 7 P7 U) j! A- E
: x) j  d2 p5 ]
# This will be the full path to the executable. 9 f$ ^. a" A) M' D2 ]
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; * t8 t- m+ @2 r2 U. P; _9 s
my $tcdbauser= "$ENV{'TC_DBA_USER'}";     
& |. \) D2 Z* `6 x! M! fmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
$ O0 f- t) U2 E( R' q$ u# Make sure we can find what we are executing.
0 f7 p5 Y! f& R5 D8 Pdie "The ${exe_name} executable was not found at the following location:
& [( K  S: d. A& c${exe_path}\n" unless -x ${exe_path}; + D9 k" ^0 z+ M  e

; _% W6 R! F. i# Start building the command line.
! [" y) r+ d% C6 Rmy @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' ); 9 X. e! H/ m5 r. a! L$ A6 ]+ n

9 J) a& C3 v* {* f: S* `# Take care of possible empty spaces in the argument values
7 J& `. I. W/ [3 Q$ X* j7 l2 Hmy $outputFileStr = $hashRef->{'output_file'};
3 a, |/ _8 Z9 p, k; s  m$outputFileStr = handleEmptySpaceInPath($outputFileStr); & K8 ~$ Y. X" V+ t
my $scoUid = $hashRef->{'uid'};
. _" A$ i8 i$ }1 s8 D; Y; I$scoUid = handleEmptySpaceInPath($scoUid);
9 d! y; y; o8 O8 N; |
# N" q, ~' I1 \! D3 A9 Q3 F' P# Add the extra options.
" {- Z$ D; v! M5 n8 ^/ H2 k; j! DaddOption(\@args, '-xml_file=', $outputFileStr, 1);
6 D& |8 r) ^+ h9 KaddOption(\@args, '-uid=', $scoUid, 1);
7 R: ]% O& J3 W  t2 G: AaddOption(\@args, '-u=', $tcdbauser, 1);     
7 I/ N. k; @  ]9 k( X8 `addOption(\@args, '-pf=', $pwdfile, 1); 1 R# Y0 @' y& C! t, b1 T3 s
' J+ y9 O% W( j
在 runLoadFscCache 子程序下增加红色标记的代码 * }) Q# x/ X* v

8 A9 K1 F8 x2 i3 a+ R' K# This will be the full path to the executable. 0 W- _* D3 p- W# P* R0 ]) _7 D( Y4 t
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; & p! f3 p3 V5 q5 F

  @5 ~* L1 j$ A! i$ Ymy $tcdbauser= "$ENV{'TC_DBA_USER'}"; - W( i* ]! `& y2 \
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; 5 w3 x4 @- s4 O# t* N
# Make sure we can find what we are executing. ! ^$ K9 ?( `5 a
die "The ${exe_name} executable was not found at the following location:
3 ^; L8 N+ ?6 F${exe_path}\n" unless -x ${exe_path};
" @& X$ V1 A* C  H6 l) W) A: a# ~; `
# Figure out output information from command line input : U8 u! G( d, F5 t- S5 X. X
my $outputFileStr = $hashRef->{'output_file'}; 1 J$ Y5 V1 s+ c) G8 U" b- n
my $fscUri = $hashRef->{'targets'}; 6 Q. p& i+ J  c9 b: t1 h& z

- k' X. o9 t6 f( q4 q# Check possible empty space in the string . j. A" d( H9 D; J4 C6 e. e
$outputFileStr= handleEmptySpaceInPath($outputFileStr); - `6 e+ e0 P5 ]6 |
$fscUri = handleEmptySpaceInPath($fscUri); 9 ]1 i1 y( l% h; A, m7 d( m8 \. G9 u: |
! x5 S' @2 W1 D$ r0 ~6 G* L
# Add the extra options. * U: G+ I/ Y/ f6 U# I
my @args= ( $exe_path, '-f=load' );
5 l% x# Q  D; C/ G7 @0 iaddOption(\@args, '-plmxml=', $outputFileStr, 1);
2 q- v9 H6 c0 E! \: n# [addOption(\@args, '-fsctargets=', $fscUri, 1);
3 L; I) _* l5 ~+ g+ G; xaddOption(\@args, '-u=', $tcdbauser, 1); + I8 P& ~$ t3 G% N
addOption(\@args, '-pf=', $pwdfile, 1);
% T! f( q6 Z4 u( J* p. y
) @- L  w1 ^8 W9 @! N* V% \. d# r, b/ }) R8 T

+ u# m3 T$ p" @2 H
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了