|
|
请使用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 |
|