查看: 5875|回复: 0

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

[复制链接]

2480

主题

1280

回帖

8万

积分

管理员

PLM之家站长

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

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

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

×
Teamcenter - Oracle 11g and the expiration date for "infodba" Oracle user
; x; O' P2 u8 g: T1 g- o' Y
( K3 n& p8 g/ ]8 j, g: sProblem:
2 Y! J, U7 h3 d' H; [# u  Y! }If your Server is using Oracle 11g, the Teamcenter users may have a connection problem and
7 J1 t- I0 r9 I7 S+ hobtain the following message after 180 days.9 b( W; g1 c. N# a  Q/ Z$ l
Login was unsuccessful.: Problems encountered logging into TCServer:
0 |) k8 O6 v/ S ... database
! V1 @; O. P! c6 yCause: Unable to bind to server running on localhost: 15721 c4 ?- z' l6 d0 x
7 Q5 F4 Q8 p5 @
Analysis:& @3 D0 Z: C8 T; M7 X3 r6 Y# V
This issue seems to be due to the Oracle 11g changes. All the Oracle services are started
1 Q/ h5 }3 `, C' H" |- r7 |7 dcorrectly. However, when you try to connect to the database using sqlplus you can obtain the9 ?: J9 x" i8 }- S  j, S/ C0 @
following error message:
$ f) `$ A8 a0 r2 CORACLE_HOME=your_oracle_home
" r: O6 P( |9 T! f8 }ORACLE_SID=your_sid  b3 J9 O! P5 p
>%oracle_home%\bin\sqlplus /nolog
& @1 Q* J! e) MSQL> connect
( P& J4 q5 W* Q( s! Iinfodba, y" X4 f0 ~- K
infodba
0 n/ b8 Z; e+ g4 c# o9 o+ oERROR:( m5 L% J( O  E* w5 J
ORA-28002: the password will expire within 10 days; g! c( j1 ~! r: ]3 S0 f6 S
) |  s7 ]/ _  u8 {, P
In the user tcserver.syslog file we find the error message:
; e: ^2 h- z# A1 V0 OConnect failed (-28002) for 'infodba' at ***% H+ S0 E" j' Z7 I+ H% r8 ]
The "infodba" Oracle user seems to be created using the default oracle profile which has an
! L, N+ _9 T$ i+ @$ m( T, F; jexpiration date of 180 days. When the Teamcenter user tries to connect to the Oracle database, Z9 ]& ?* N' o: X
an error message, ORA-28002, is sent and the connection fails.
. l) E# b! M9 Y9 _7 W% k$ z
, Q5 Q) y# ]( W& ]; R5 |) `: lSolution:
. x7 v5 ~* A5 zFind the infodba profile using SQLPLUS:
9 H& O0 `/ S! U5 Y1 pSQL> select profile from dba_users where username='INFODBA';
0 z+ h2 q' n, [; K5 d. V9 j* jList the profile caracteristics:! ^7 Q  T5 ~( E
SQL> select resource_name,liMit from dba_profiles where profile='DEFAULT';0 I$ T" H( n5 J0 D
Check the PASSWORD_LIFE_TIME.3 {( P; t: n3 s) r8 h' d( D
Modify the profile and specify an unlimited PASSWORD_LIFE_TIME:
0 ~/ B0 q0 U/ [" ~SQL> ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;3 I& M2 C0 {; e/ @5 }# V; M' C& Y
Change the password. It will not expire again.
9 g6 C+ B% U) QIf you don't change the password, it will expire because it was created using a different profile at' [; P$ F5 ?$ _* B( t
the time.
* H4 m# j3 ~; J% sSQL> select expiry_date from dba_users where username ='INFODBA';
2 P% y9 X& s) j/ E6 a=> you obtain an expiration date
3 ^& g; O8 s! m& g" D& P. sSQL>alter user infodba identified by tempo ; ( define a temporary pwd)
* ]  h* W& N( m- N! W3 g+ e7 b# \SQL> alter user infodba identified by infodba ; ( specify your original infodba+ J! T9 ]# @! a, c
password)$ k6 c& S8 c: R8 Q( a
SQL> select expiry_date from dba_users where username ='INFODBA';8 p: E- _3 v2 ~* n. \/ l: l; z
=> you have no expiration date.; |" I; b" c9 W5 ]/ s

0 c% Y! k8 L% N8 y
( z. m2 @% K5 M6 cRemarks:
. Q! y0 L! ^/ oBecause we have redefined the same original infodba password, the TC_DB_CONNECT variable: ?3 ^8 G; ?& F1 l! S+ ], j
in %TC_DATA%\tc_profilevars.bat is always alive and correct.5 w- U) e. n7 d3 D3 _1 ?/ c
Another modification can be done on the default profile:
! r/ C  g3 ]& s
8 |2 N: C2 v# N; A: [ALTER PROFILE DEFAULT LIMIT/ M: o  y; @# }" r: p: _4 }
FAILED_LOGIN_ATTEMPTS UNLIMITED
1 E# L, |! a) h. U PASSWORD_LIFE_TIME UNLIMITED;
; {1 c# j: F9 l4 P2 D, o: t% N0 g) G: d' }& m  i7 z4 y0 r% `
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 doTeam.tech
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

在本版发帖
关注公众号
QQ客服返回顶部