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

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

[复制链接]

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

admin 发表于 2015-9-10 17:08:35 |阅读模式

admin 楼主

2015-9-10 17:08:35

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

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

x
Teamcenter - Oracle 11g and the expiration date for "infodba" Oracle user
- |5 F9 Q: Q4 E' U* W6 K% d, U# @9 `; n1 y
Problem:# S0 u7 ^# M! r1 v
If your Server is using Oracle 11g, the Teamcenter users may have a connection problem and
( Y  X  G( j9 Tobtain the following message after 180 days.- b: c; @6 p0 g) T
Login was unsuccessful.: Problems encountered logging into TCServer:- ?- i" Y$ N1 T) z7 Q* s
... database
% N  W/ {5 O1 J# C- z% rCause: Unable to bind to server running on localhost: 1572
2 d. T* a( e8 ^' _( d
) R0 m, |) P! o2 J4 Q: ^Analysis:; O- h, a* S/ n% z2 j6 U+ n' A
This issue seems to be due to the Oracle 11g changes. All the Oracle services are started
& S8 r: O$ ^* P/ Z/ ?correctly. However, when you try to connect to the database using sqlplus you can obtain the
" @/ o# n2 t0 Y$ y/ m9 }8 _" zfollowing error message:4 ]6 ~, R& {. _/ _
ORACLE_HOME=your_oracle_home4 f  S" c; Z! C- O$ d
ORACLE_SID=your_sid; y( Q0 c8 w+ p: L# k4 z6 }" P  S% }
>%oracle_home%\bin\sqlplus /nolog
4 Y' I' V6 w: m5 d7 qSQL> connect
7 r' r, t% ]/ X0 K& y5 g( f. Binfodba
' i5 R: G, z6 J+ e0 ]infodba; F  t8 d( g7 |% M9 v' X
ERROR:& |. j+ O8 H0 d. h; H
ORA-28002: the password will expire within 10 days& _+ S8 R2 ]+ l. G# \) C

1 V  O. C2 n9 u7 ^3 \/ R0 TIn the user tcserver.syslog file we find the error message:
( M( x4 M7 U: C0 S  {: mConnect failed (-28002) for 'infodba' at ***9 t# }; c0 M; T' H, o
The "infodba" Oracle user seems to be created using the default oracle profile which has an
4 |  K; S! v7 t0 U+ W% c9 _expiration date of 180 days. When the Teamcenter user tries to connect to the Oracle database
( J( f9 `# R7 M$ `an error message, ORA-28002, is sent and the connection fails.
! B9 ^" `1 `6 J. R
, l) S) U7 c* `5 }/ ?0 MSolution:
2 M2 ~5 |$ J( l+ I) P, mFind the infodba profile using SQLPLUS:& d/ A( i$ F# y1 r+ M
SQL> select profile from dba_users where username='INFODBA';* q# ~2 S7 _* |( V7 I0 j- B! L/ [
List the profile caracteristics:! I# q3 [+ ]% B+ L2 {3 a& g7 S
SQL> select resource_name,liMit from dba_profiles where profile='DEFAULT';
+ }7 M9 z/ X8 ~6 d( t; bCheck the PASSWORD_LIFE_TIME.. B% m( x+ J% }; b1 e+ o
Modify the profile and specify an unlimited PASSWORD_LIFE_TIME:( x3 q- o7 p% f
SQL> ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;/ W4 C& l6 S/ Z1 b
Change the password. It will not expire again.
) A' O( y$ ?$ yIf you don't change the password, it will expire because it was created using a different profile at
7 y0 j7 ~) G. ]. qthe time.
; e2 F( @, }' Q5 wSQL> select expiry_date from dba_users where username ='INFODBA';4 V" w7 _0 a1 o' z; b
=> you obtain an expiration date
& K) x! Y* m0 ^  MSQL>alter user infodba identified by tempo ; ( define a temporary pwd)
: u6 U. L* O1 Q: {6 }/ ]3 J& nSQL> alter user infodba identified by infodba ; ( specify your original infodba
$ d7 [* o3 T/ s( Y, s7 zpassword)
. ^) S) r! N7 iSQL> select expiry_date from dba_users where username ='INFODBA';( `6 V* E9 @8 w3 d( ?
=> you have no expiration date.4 L/ I0 V3 l! d% j; h
1 U0 x, d' E  E0 X5 S7 I% f
3 v: b* k/ K* z  ^
Remarks:+ Z/ g9 F+ n7 G9 n- L6 Y
Because we have redefined the same original infodba password, the TC_DB_CONNECT variable
9 K: ~+ U' Z$ o2 ^+ v) `in %TC_DATA%\tc_profilevars.bat is always alive and correct.
1 L2 t2 F3 Q! l7 tAnother modification can be done on the default profile:6 U6 h5 |$ h; N- t4 y% f

" n. P: N$ v3 ~. x( E& u; e4 n& BALTER PROFILE DEFAULT LIMIT
1 G2 F* p& C9 s$ l4 ]0 P6 L; O FAILED_LOGIN_ATTEMPTS UNLIMITED
0 N+ y) u/ j1 J: j7 O1 h: ^- k PASSWORD_LIFE_TIME UNLIMITED;6 O9 i5 x* h# T$ i% ]

" }5 l3 i, ^3 j
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了