|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
Teamcenter - Oracle 11g and the expiration date for "infodba" Oracle user
) w4 U7 f6 Y: m, _4 j5 i/ J9 m9 B" C4 {: G4 `: B+ R
Problem:
- y! k$ [6 E" B1 x3 H0 J6 z. [If your Server is using Oracle 11g, the Teamcenter users may have a connection problem and# u! p; ]7 J+ A3 q/ U9 ~9 H
obtain the following message after 180 days./ ]# O" @) A- l6 [
Login was unsuccessful.: Problems encountered logging into TCServer:2 |# C! l8 ~ q: T" f
... database
' z; s" F7 D, F* ^4 A3 T; JCause: Unable to bind to server running on localhost: 1572- r- \/ i0 @6 o. |
9 b/ b' ?0 o+ Z5 GAnalysis:
, J4 f$ ]; S; U* B9 `6 L) KThis issue seems to be due to the Oracle 11g changes. All the Oracle services are started
1 d# h- I- h! U6 W% jcorrectly. However, when you try to connect to the database using sqlplus you can obtain the
3 E' t6 n( N7 ^3 v% N, t; Ffollowing error message:
: S$ W, I' [& K/ p. u* h3 HORACLE_HOME=your_oracle_home
5 ~7 B2 c( _, @7 DORACLE_SID=your_sid, C+ A2 D2 b- D
>%oracle_home%\bin\sqlplus /nolog1 @9 C/ c4 ~& v+ l7 d& T
SQL> connect
8 Q% O4 D1 A% U5 L! j! Ginfodba
1 y# n4 S( w3 r5 @infodba l4 j* e$ [& l; c. R; `- X
ERROR:
% A v) o& v' H! D& kORA-28002: the password will expire within 10 days6 j' L+ D; L p7 y- s7 l& s
: \% l( ]# U; t5 a; k! K7 J
In the user tcserver.syslog file we find the error message:
4 K8 A( r" Z" o% \! TConnect failed (-28002) for 'infodba' at ***1 Z) d }# b S4 ?4 j" o
The "infodba" Oracle user seems to be created using the default oracle profile which has an. B1 Q- V- F; X0 Y8 M# L
expiration date of 180 days. When the Teamcenter user tries to connect to the Oracle database
# R8 l2 ^# S0 I- G, g% @# van error message, ORA-28002, is sent and the connection fails.
4 O5 ]9 J; |- T+ [' B+ r
/ q$ r6 m( Y/ S7 A3 U4 _- gSolution:% U8 ^1 M" _* r9 \! ~
Find the infodba profile using SQLPLUS:
! G' C: D( B8 m E, V4 \) \, L3 |SQL> select profile from dba_users where username='INFODBA';; C5 X$ v& y3 D* | L; ~! u5 `
List the profile caracteristics:
5 v* Y+ L( |8 j: o( S0 m9 ?6 aSQL> select resource_name,liMit from dba_profiles where profile='DEFAULT';, y5 t5 A1 b- P4 l' v0 K
Check the PASSWORD_LIFE_TIME.
! }4 h6 @ T/ x. C: `5 iModify the profile and specify an unlimited PASSWORD_LIFE_TIME:
! e4 F( f$ o, C3 X4 HSQL> ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;1 x. i3 X* j$ G9 o ~9 v: ]
Change the password. It will not expire again.
( J5 B1 C& C7 _* K6 @If you don't change the password, it will expire because it was created using a different profile at+ g8 A) @! D1 N5 |/ c
the time.
/ J3 Z$ v% \- x! l# i: _. MSQL> select expiry_date from dba_users where username ='INFODBA';
1 B( B( j5 x& ]& n! ]8 i) h=> you obtain an expiration date4 G9 E+ C; h2 ?0 T5 p. F$ W: X
SQL>alter user infodba identified by tempo ; ( define a temporary pwd)
% l" }/ [, `+ s/ ]% Z9 ySQL> alter user infodba identified by infodba ; ( specify your original infodba
/ j/ k6 p& o2 E) ^6 q% O. Ppassword)
0 z/ t5 c, E9 h" g! P3 |& z1 GSQL> select expiry_date from dba_users where username ='INFODBA';% Y' ~ C, l1 G3 p9 b4 k5 N2 X
=> you have no expiration date.
$ N7 C" D# {1 ^: B4 u7 Q0 P- F8 A8 S' b4 ]3 l2 E, [$ r
% ]5 {/ a$ ^$ I
Remarks:. a& J/ c& w! Q6 o: o. `0 k
Because we have redefined the same original infodba password, the TC_DB_CONNECT variable. v. V) y1 y7 R- \! v( D- \
in %TC_DATA%\tc_profilevars.bat is always alive and correct.
* E: r* Q2 T% G- m; o. }Another modification can be done on the default profile:' O2 a! n d5 y
" V8 Z& B) N9 C5 `, ]! ?) W. TALTER PROFILE DEFAULT LIMIT5 s) [9 T) i2 e! C, M4 m/ K: ~
FAILED_LOGIN_ATTEMPTS UNLIMITED" I* C/ b; l7 z. u1 x7 k$ W/ T
PASSWORD_LIFE_TIME UNLIMITED;* ~, P) d4 W D! t$ V" v: ~1 V0 b
/ k0 J6 n$ ?0 x' C' T6 C: n |
|