PLM之家PLMHome-工业软件践行者

[TC问题解决方案] 88.Teamcenter 的账号infodba数据库oracle过期的处理

[复制链接]

2015-9-10 17:08:35 5605 0

2470

主题

1275

回帖

8万

积分

管理员

PLM之家站长

积分
82162
QQ
发表于 2015-9-10 17:08:35 | 显示全部楼层 |阅读模式

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

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

x
Teamcenter - Oracle 11g and the expiration date for "infodba" Oracle user
8 r/ p" o& g7 X/ s$ A
5 c3 ?0 }& ~0 O  y4 SProblem:0 v0 K) R$ _, G: \
If your Server is using Oracle 11g, the Teamcenter users may have a connection problem and& L# @# p# J2 N+ E, {1 Z1 d
obtain the following message after 180 days.
) N* j) w/ w; r9 B/ u% [/ V' d8 }. LLogin was unsuccessful.: Problems encountered logging into TCServer:
6 i6 T) [' K4 q2 L' e# V. a0 B/ `% u ... database
' B1 T9 N* }) V  O" c  hCause: Unable to bind to server running on localhost: 1572
2 c8 I$ u, I. y( Y- Y/ m$ C/ v! f7 ]7 J1 C! u5 d: {% v( O+ ^
Analysis:7 x" ^2 |$ P) ?1 f8 ^9 Q6 T
This issue seems to be due to the Oracle 11g changes. All the Oracle services are started
  j8 S0 M: H8 Z/ E) @% a6 o5 Ecorrectly. However, when you try to connect to the database using sqlplus you can obtain the/ f/ b: _8 B. j' \2 P/ k( O
following error message:+ b! ]2 p, u; _+ O* m7 \7 K5 r' W
ORACLE_HOME=your_oracle_home5 }* t: q( T4 {0 a$ d
ORACLE_SID=your_sid
/ x9 j7 ]8 F1 j  X/ |& _# v6 f+ R>%oracle_home%\bin\sqlplus /nolog
/ d  F% k, N* a2 o3 BSQL> connect
1 Z# @; _( N  ^/ j! Minfodba0 F+ [  w& H7 [. z# ~4 x8 |
infodba7 K' h5 f* k3 n- W' o% `% M
ERROR:
9 N  B$ J# k& g+ S9 o9 l( LORA-28002: the password will expire within 10 days+ e, V, s0 j/ \, A; `, c+ v
9 ?  y2 @* k4 S* Z: F" k
In the user tcserver.syslog file we find the error message:
, y  @1 L* F( [4 [) @" d) ^- JConnect failed (-28002) for 'infodba' at ***6 e# q2 `5 b" E) g5 z
The "infodba" Oracle user seems to be created using the default oracle profile which has an
; Y4 c) v% C& K; J3 V6 uexpiration date of 180 days. When the Teamcenter user tries to connect to the Oracle database# D) p4 h+ t, Y
an error message, ORA-28002, is sent and the connection fails.$ V6 t4 O, t$ ~4 }- z- ~6 W

" b# Y, i& |4 \) a3 ~! USolution:# p9 w7 k" r! l7 L8 H
Find the infodba profile using SQLPLUS:
' {( p# p1 v& ~" @SQL> select profile from dba_users where username='INFODBA';
% Q! G% r) ]  o, L, a$ v; e  ]List the profile caracteristics:
! u2 w0 ^3 D' D7 zSQL> select resource_name,liMit from dba_profiles where profile='DEFAULT';0 d5 s5 f0 ?( h# T! D% }8 G/ i
Check the PASSWORD_LIFE_TIME.
: v0 a) z5 I  _; X& G/ IModify the profile and specify an unlimited PASSWORD_LIFE_TIME:
! v8 r7 D2 i/ y7 zSQL> ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;/ M6 T' ?+ c4 t; Y5 H
Change the password. It will not expire again.
3 C8 J" A0 G$ G: }) }2 s/ I: tIf you don't change the password, it will expire because it was created using a different profile at4 s3 [/ [3 \$ v: D* C& h9 r
the time.
9 N* y$ y# i2 H% t0 X$ HSQL> select expiry_date from dba_users where username ='INFODBA';
: z- ~( K0 A1 h. h+ v=> you obtain an expiration date
8 W  s9 M2 |) E4 z/ n$ X: CSQL>alter user infodba identified by tempo ; ( define a temporary pwd)
  M5 R- q3 \* x' s5 cSQL> alter user infodba identified by infodba ; ( specify your original infodba0 B. e3 z% E" G" Y
password)5 i$ k7 H" a' X& q, U* w; c  e, f) o
SQL> select expiry_date from dba_users where username ='INFODBA';, |( n8 C  r, o/ h$ O
=> you have no expiration date.
8 l$ N: v0 ^( h6 `4 E
; m* I8 s/ u7 O) ?; \  G6 y, B- U) _0 j  S0 v
Remarks:
) z1 w5 W# n0 ~+ `3 h7 ZBecause we have redefined the same original infodba password, the TC_DB_CONNECT variable" d! f& N; k" `2 y7 s
in %TC_DATA%\tc_profilevars.bat is always alive and correct.
  n& S! `4 m% N& AAnother modification can be done on the default profile:3 u# w0 d( g2 y) Q

5 M6 d7 s/ L, q% ^. wALTER PROFILE DEFAULT LIMIT
+ k% ~1 C  w" _. V: H, g$ ? FAILED_LOGIN_ATTEMPTS UNLIMITED
3 q" ~6 t# i% w# }- f3 I PASSWORD_LIFE_TIME UNLIMITED;
) C- L! L# f' Q$ J/ x0 W1 H( B' R2 `/ N* `1 y
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了