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

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

[复制链接]

2015-9-10 17:08:35 5564 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
- S" w% X4 m+ z5 x2 S* |& Z2 D( m- y- [9 {# T$ B
Problem:, t/ n8 V- G. U& c: e7 H
If your Server is using Oracle 11g, the Teamcenter users may have a connection problem and
& d3 `4 ?/ T5 e; U' R% k5 Cobtain the following message after 180 days.
' G0 w- d9 O4 S9 M! gLogin was unsuccessful.: Problems encountered logging into TCServer:& E# v6 ~# A& m% `! }) }
... database7 T, ^* Z7 j, ?$ C$ z8 p) i1 O& b
Cause: Unable to bind to server running on localhost: 1572- ^( K' l: s- q6 G

* N9 V. @5 J4 ^Analysis:7 K5 z( l6 d5 B; |6 s
This issue seems to be due to the Oracle 11g changes. All the Oracle services are started
4 B7 _) P+ \2 _+ `- U$ `correctly. However, when you try to connect to the database using sqlplus you can obtain the  o/ ^5 i  w' h
following error message:
8 V$ a0 ?% P1 A& [+ u+ @. KORACLE_HOME=your_oracle_home
# @4 T" y  L# E  a; eORACLE_SID=your_sid
' G3 N. r1 I. s' x; q8 G! s>%oracle_home%\bin\sqlplus /nolog
& x0 {+ p" [- p1 SSQL> connect
. h7 O: p/ N2 Z% Xinfodba' E. y8 {3 W; h
infodba
" s1 M/ P& Y( y; f/ M, i) n1 ~ERROR:. R) T+ Q* U. x$ o& q2 l
ORA-28002: the password will expire within 10 days
/ A) ~$ v3 C8 L6 h8 d7 Z
& k& V9 V& x1 {* kIn the user tcserver.syslog file we find the error message:
4 y2 v! l7 e: A3 N. I5 i$ ZConnect failed (-28002) for 'infodba' at ***
8 b8 Q8 K( R* ~; k' }# g" [The "infodba" Oracle user seems to be created using the default oracle profile which has an" `" Y( g' X8 d/ ?0 @" y
expiration date of 180 days. When the Teamcenter user tries to connect to the Oracle database2 K! Y7 T! g" }1 R! o7 [
an error message, ORA-28002, is sent and the connection fails.: C! F! A5 N4 b! @

! @* M& |* i& \4 PSolution:! K  u. Y: M7 ^$ k
Find the infodba profile using SQLPLUS:- v* P9 l' L3 W& T! {+ n9 n2 A0 o
SQL> select profile from dba_users where username='INFODBA';
8 n$ T: t: ?5 a7 B* \8 K( g* PList the profile caracteristics:% U7 n1 H# ?. C8 p- G
SQL> select resource_name,liMit from dba_profiles where profile='DEFAULT';9 y' T) l! U% `- \! e2 A
Check the PASSWORD_LIFE_TIME.
/ `4 [' C5 c3 f7 j; ?* _Modify the profile and specify an unlimited PASSWORD_LIFE_TIME:
! v) i% F! W6 CSQL> ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;
& @9 H' K0 q" V0 OChange the password. It will not expire again.
; H% `  k9 d2 mIf you don't change the password, it will expire because it was created using a different profile at' e5 B4 W2 x/ M5 @1 ]
the time.3 y4 S9 |. J" e7 ]
SQL> select expiry_date from dba_users where username ='INFODBA';
! C" @+ _) Q% K& S- c5 k% n7 r: W=> you obtain an expiration date- R2 Q9 f, M: E: T
SQL>alter user infodba identified by tempo ; ( define a temporary pwd)
2 N+ _& e+ _, P, J+ bSQL> alter user infodba identified by infodba ; ( specify your original infodba" Q/ }3 x% k. S! q+ L/ H
password)+ e" k) o, T, o) B6 H
SQL> select expiry_date from dba_users where username ='INFODBA';
+ u% n; m/ N- c=> you have no expiration date.
  C9 {8 |% d9 q% Y
% q9 A, ?$ \0 J! y, m4 K. `& m! }( k7 e
Remarks:$ M$ M* C# K: T( D
Because we have redefined the same original infodba password, the TC_DB_CONNECT variable
# a0 o  G& c: ]* W5 ?; v+ bin %TC_DATA%\tc_profilevars.bat is always alive and correct.
5 n! C4 U& U: Y1 mAnother modification can be done on the default profile:6 G8 |  w$ `) w6 q

" F2 [# K% F9 i1 W4 ?ALTER PROFILE DEFAULT LIMIT- F% o" d) n5 h3 h3 h/ L1 ^  u$ y7 R
FAILED_LOGIN_ATTEMPTS UNLIMITED3 p0 X+ H! ~+ m. |# K0 y2 E
PASSWORD_LIFE_TIME UNLIMITED;  W3 \  M8 ~  P' m0 j" {

0 Z( [4 e, W( `9 \$ 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二次开发专题模块培训报名开始啦

    我知道了