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

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

[复制链接]

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

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

admin 楼主

2019-8-19 15:47:15

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

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

x
7 {" J- `, j% O, o* A
171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态 - n$ g- z: M+ y0 P' Y, W* M; x

& ~+ p! V) ~6 }" L; j% @问题 : z& X' X$ c4 G) H+ @4 a
默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该# E; a' H# f9 Q1 t  Z. {
模块中的功能无法登录
- f1 ?  U$ i: G% K* e# v2 `, o6 f& b. s
ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the 6 v, u! ]) m8 r6 A
user ID or the password is invalid.  
; q. N% ~9 C: \' C
* M1 o: S. d7 L方法 $ `0 h8 w+ T4 C: ?' {; i
修改 populatefsc 脚本,增加登录信息 * L- W% m! S% }" ^/ s
在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 5 `$ }% j6 X: O: v& a( R+ w
set TC_DBA_USER=infodba
* v+ }6 i! h' u( C$ w4 P1 M9 ^8 A
$ F# Q" N4 i( F( {, X在 populatefsc.pl 中 : $ c( X6 T! `8 u! K7 m
; q7 N* w( k, x2 H, Y, t
在 runPLMXMLExport 子程序下增加红色标记的代码 9 G# F( g+ o$ F
; b& M9 k2 k& n
# This will be the full path to the executable. ! {1 r2 k; d- c3 K7 G
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
4 I  e4 @7 L: w# Wmy $tcdbauser= "$ENV{'TC_DBA_USER'}";     2 n/ W9 ]' ~  A+ N8 M5 M+ v, z! ?
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
7 ~* z. t/ c( c0 i7 ~; d- T5 Q# Make sure we can find what we are executing. : I0 Q+ F: z; e4 d8 q* T( N( }" n
die "The ${exe_name} executable was not found at the following location: 6 L9 a4 a( p5 g% K+ c
${exe_path}\n" unless -x ${exe_path};
" V, W( K, ~( y
( r: y2 m! E! V; k+ ?6 R# Start building the command line. , N1 |- {# l: t: j
my @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' ); 6 G" Z! q+ Q* r- T+ [- Z+ z5 p

' `3 |+ S) K2 l; H& t8 g3 C& Y3 a# Take care of possible empty spaces in the argument values
* a) ~; B4 ]. m1 k3 |# \my $outputFileStr = $hashRef->{'output_file'};
) M6 I+ j  Q" [, ]$outputFileStr = handleEmptySpaceInPath($outputFileStr);
2 J$ [, a- e) z1 i, j: Fmy $scoUid = $hashRef->{'uid'}; 6 @" F* T! k, b. y
$scoUid = handleEmptySpaceInPath($scoUid);
6 W9 O9 E, k: ?2 q
$ G& p! y0 z7 z6 {2 }2 \# Add the extra options. 6 {+ G& H0 v4 \1 B1 t4 b, M$ k0 F
addOption(\@args, '-xml_file=', $outputFileStr, 1);
9 u0 \5 @) p0 a2 m5 P' e0 VaddOption(\@args, '-uid=', $scoUid, 1);
1 T$ [4 L. h+ R/ |# kaddOption(\@args, '-u=', $tcdbauser, 1);     . D; T# J1 p5 y2 K( h
addOption(\@args, '-pf=', $pwdfile, 1);
% @5 |! v& d. ~
! T7 u0 P+ p4 g! |- d, {3 y% q在 runLoadFscCache 子程序下增加红色标记的代码 ( I$ h; D: s0 Q8 ?( `

: Q2 D, e4 b! J* V$ z# This will be the full path to the executable.
- ^+ H+ c. Z; G: W# I1 n) dmy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
9 L: E$ \" `: R+ ~9 l6 Y$ D$ _7 c- W" F* Y% Q; n4 \- a  X
my $tcdbauser= "$ENV{'TC_DBA_USER'}"; ' ?2 U1 d% U1 n0 v: C: Q: w
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; " _) \  h5 ]3 C' T7 P
# Make sure we can find what we are executing. . d# `" ~2 S! X3 g4 M) X
die "The ${exe_name} executable was not found at the following location: + D" S0 Z8 K, G" {, @$ N) ^
${exe_path}\n" unless -x ${exe_path}; 1 A+ Q, Y8 F" `# R: E4 E
/ C. \; ]9 O& ?0 H
# Figure out output information from command line input
% g% {2 p0 @/ ?( O2 s+ Zmy $outputFileStr = $hashRef->{'output_file'};
; u( d7 D5 ~- \$ Amy $fscUri = $hashRef->{'targets'}; + k: R5 \  m7 f% t- O

0 s. I. b5 M; w$ n: z, d2 k! ~2 o* p# Check possible empty space in the string
0 `, L& c' {" G2 `$outputFileStr= handleEmptySpaceInPath($outputFileStr); ( \' @8 l. f' T1 D, Z% D2 V
$fscUri = handleEmptySpaceInPath($fscUri); 5 P0 o" Z/ u: ?4 {$ y% E' i

3 k8 M- E8 W& ]# z! L0 j# Add the extra options. 0 \; g& y8 i2 @' S. ^! q
my @args= ( $exe_path, '-f=load' );
& \. V  {1 X* n$ g1 ]8 X& EaddOption(\@args, '-plmxml=', $outputFileStr, 1); 9 R3 K& h: v3 g3 ^/ ]8 z! w
addOption(\@args, '-fsctargets=', $fscUri, 1); ) \1 \" S+ y# _' w6 B
addOption(\@args, '-u=', $tcdbauser, 1);
& d6 ?' O; H7 F0 L: j9 Q9 e7 @addOption(\@args, '-pf=', $pwdfile, 1);
8 _/ t& k& R3 S$ X) I
( n8 Y. R5 B) ?, ]# Z( r
8 D0 G) e2 Y* E! G
- t+ K- ]  `8 q9 B" o/ T
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了