|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
Teamcenter - Oracle 11g and the expiration date for "infodba" Oracle user
8 ]! k. \2 b4 z# N- @4 j* @* u+ Q+ l- a" V4 {" e
Problem:
" V* \* E ]# I5 wIf your Server is using Oracle 11g, the Teamcenter users may have a connection problem and; H. s8 P. M4 b9 Y+ u( @ k
obtain the following message after 180 days.$ `/ \* N. E1 V! I
Login was unsuccessful.: Problems encountered logging into TCServer:& G# N/ a, q; a0 E" E
... database
7 \4 |- I2 q& \Cause: Unable to bind to server running on localhost: 1572
6 r2 F- G0 \6 C+ A4 ]. P9 m, |
! t/ a9 f! [+ qAnalysis:
' P, X! R) O( e( O) X; UThis issue seems to be due to the Oracle 11g changes. All the Oracle services are started
# f. }- P5 r( [" t) T' }+ l; ncorrectly. However, when you try to connect to the database using sqlplus you can obtain the8 u, y5 T M. k
following error message:
7 `6 o/ H( j0 ~; H3 QORACLE_HOME=your_oracle_home/ V, C, p; b+ g; N$ u8 C
ORACLE_SID=your_sid/ h+ M9 C& v; F) U# Y" I& }
>%oracle_home%\bin\sqlplus /nolog
/ e! a, A! `9 d% H$ oSQL> connect
! q; P& k8 N3 w* X9 w+ Y( U& L- Hinfodba
! v0 [/ g$ p; X, Q! N6 L& ^infodba
) T4 T. J. `0 l* J, w' M KERROR:) ]. I* L8 y/ b' R
ORA-28002: the password will expire within 10 days- O3 f; D! }1 h# J8 g# B2 o* n6 C
; Y3 v# g: n8 B! e* ^
In the user tcserver.syslog file we find the error message:
* O( g5 w) b1 M0 K- X$ @9 v% e6 |Connect failed (-28002) for 'infodba' at ***
% \; g( \- h1 ]: L" c: dThe "infodba" Oracle user seems to be created using the default oracle profile which has an* x' F0 W: r- N/ H
expiration date of 180 days. When the Teamcenter user tries to connect to the Oracle database
( H/ D/ E) Q) L3 o- A6 C3 d& can error message, ORA-28002, is sent and the connection fails.
( W! O" M. f" n4 V0 ~$ H0 b) t+ l; g$ R
Solution:: Y3 D" j0 w" U5 Z) U- g# W7 {6 c v
Find the infodba profile using SQLPLUS:
/ H T6 e7 j' k; aSQL> select profile from dba_users where username='INFODBA';
) Z3 ^' y3 n1 ?List the profile caracteristics:0 A/ S: q2 c2 `3 d
SQL> select resource_name,liMit from dba_profiles where profile='DEFAULT';8 g* ]3 P( e# |" m0 p; W5 Y
Check the PASSWORD_LIFE_TIME.
( h# I0 T6 d4 ]3 l* E6 fModify the profile and specify an unlimited PASSWORD_LIFE_TIME:. K, q ^7 ?" I5 y: E& y
SQL> ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;
8 n: ?5 I# _3 RChange the password. It will not expire again.
& ]% ^4 G- j( S1 KIf you don't change the password, it will expire because it was created using a different profile at: f4 S" @+ d# B6 T$ s7 E
the time.
' o U' D7 G6 a$ H0 c( RSQL> select expiry_date from dba_users where username ='INFODBA';
: n; Z' v) w5 [=> you obtain an expiration date
: f; b6 E3 r) ^% v* i8 eSQL>alter user infodba identified by tempo ; ( define a temporary pwd)
0 h2 W% B, S. pSQL> alter user infodba identified by infodba ; ( specify your original infodba( a6 Q/ I8 M( C5 }& P
password)
# `7 r4 ^ H& N$ c' ]: g, NSQL> select expiry_date from dba_users where username ='INFODBA';7 c3 j% Q& I' I- } r
=> you have no expiration date.
0 z& x$ f# \: L6 E6 F
7 W! ]& k4 I- a" a5 h+ j- Q
: e- `. s9 ^" {6 |Remarks:+ `8 C" R7 P- V( _1 k' Z6 m
Because we have redefined the same original infodba password, the TC_DB_CONNECT variable
T8 B$ H0 o" H9 Z1 |$ i& ain %TC_DATA%\tc_profilevars.bat is always alive and correct.# ?7 _# e- X5 i# `) ]" W
Another modification can be done on the default profile:. d( y7 a z; W1 l
! e4 f5 A) l7 U$ J9 [" N6 a! Q2 {2 Q
ALTER PROFILE DEFAULT LIMIT
6 N9 J8 s5 |( Q* _: _8 B FAILED_LOGIN_ATTEMPTS UNLIMITED
6 i9 @' J6 y7 D% w- a6 h PASSWORD_LIFE_TIME UNLIMITED;
# `7 U8 }: K# z) N8 F2 \9 i! W5 \4 e: I( D& y2 y
|
|