|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
Teamcenter - Oracle 11g and the expiration date for "infodba" Oracle user
5 I/ z7 Q7 m0 V7 ~& Y" A! t9 j* M' ]8 S' g6 u6 C
Problem: O+ R9 v" |# @. m/ y. o
If your Server is using Oracle 11g, the Teamcenter users may have a connection problem and
1 F, i- N7 ]5 a2 D) r# [7 Aobtain the following message after 180 days.& n) ], B) D3 g% \
Login was unsuccessful.: Problems encountered logging into TCServer:# o- E6 a. Z4 e5 z' Z7 l
... database$ g* d+ H$ b! ]8 f% F! X3 E
Cause: Unable to bind to server running on localhost: 1572
6 a1 x% f" P8 A- `9 ^2 B! J1 w
0 }4 r& x+ K" @8 H. R& cAnalysis:- c6 P: B! q; Y- l$ J; ?+ r* e/ f
This issue seems to be due to the Oracle 11g changes. All the Oracle services are started
3 C! S6 b Q- e# r; P" `correctly. However, when you try to connect to the database using sqlplus you can obtain the
) \. I$ P2 h) S f& h/ M- z: Ffollowing error message:8 ]+ Z4 R. U: F/ I
ORACLE_HOME=your_oracle_home
1 x8 q; I1 }% `+ yORACLE_SID=your_sid
! ?6 F" i% Y0 O+ c" m>%oracle_home%\bin\sqlplus /nolog
- K, W) g d; LSQL> connect
" ~1 G, R' Y2 N. Linfodba2 C; \7 |0 p3 D0 \: x2 n
infodba- i1 R' w Z' Z0 S: H
ERROR:
, z0 j1 i/ h3 Q MORA-28002: the password will expire within 10 days4 I5 r7 R! m( Z. |* y* V8 N- {
. l1 l' E' d3 T9 {! q' H3 V( I
In the user tcserver.syslog file we find the error message:* g: ?! @: @3 f; [
Connect failed (-28002) for 'infodba' at ***
' a0 H" \2 y" E$ R7 qThe "infodba" Oracle user seems to be created using the default oracle profile which has an
" v, m% ]$ E7 ^( j! sexpiration date of 180 days. When the Teamcenter user tries to connect to the Oracle database! V5 ] f" c/ T' m4 [7 }' u; o
an error message, ORA-28002, is sent and the connection fails.: s; P0 x0 w# @- ], K
, S) S4 o7 P; W2 t! B
Solution:& g. Y4 ^& [7 Q" [5 P. M
Find the infodba profile using SQLPLUS:
5 t. f+ D% ?5 b$ |% a- r8 H* ZSQL> select profile from dba_users where username='INFODBA';
% f; e4 B9 F9 D1 ]List the profile caracteristics:
& W2 Q5 r3 e v3 ^0 PSQL> select resource_name,liMit from dba_profiles where profile='DEFAULT';' [. m! D( `2 m* F* X( X
Check the PASSWORD_LIFE_TIME.
5 k' ?: Y; u8 {; UModify the profile and specify an unlimited PASSWORD_LIFE_TIME:
7 w* X5 w. \+ E8 }1 p% P: Q! bSQL> ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;4 n. [$ b# U4 h. g* c
Change the password. It will not expire again.. ~( Z# z) C$ M X& @3 u7 O0 I
If you don't change the password, it will expire because it was created using a different profile at: a& x0 B- ~, f( \
the time.: g/ H) k0 y( T; }. v. I
SQL> select expiry_date from dba_users where username ='INFODBA';
1 v) j9 ~% S( a8 F=> you obtain an expiration date2 s/ A2 p% M4 z4 M/ \
SQL>alter user infodba identified by tempo ; ( define a temporary pwd)
) A1 {- ?# s" G- }( c. E% ?0 mSQL> alter user infodba identified by infodba ; ( specify your original infodba. R- q8 \! E" q7 z
password)1 z" C" W. E( R
SQL> select expiry_date from dba_users where username ='INFODBA'; I0 i4 D$ g( F, m0 A, j, `2 ?
=> you have no expiration date.2 @* ?# d: N" s
8 f/ ~0 w" P; N# W% I
! P/ I2 Q% ^1 d8 MRemarks:
0 d; z+ O7 G8 y7 {Because we have redefined the same original infodba password, the TC_DB_CONNECT variable% m- z2 G P( `% [# d- C1 T+ r9 s) W
in %TC_DATA%\tc_profilevars.bat is always alive and correct. f4 y+ W+ {4 m: g+ v
Another modification can be done on the default profile:
5 x S( n. K. U- g' U% u# ?( c( G
8 `2 N1 {( Z2 \. ~- a; Q& NALTER PROFILE DEFAULT LIMIT
7 n2 ~1 N4 n ?1 X% q( C( V8 f0 I FAILED_LOGIN_ATTEMPTS UNLIMITED! j+ N$ T3 K: }1 Y
PASSWORD_LIFE_TIME UNLIMITED;' |4 W* R3 V) b2 k2 e
2 m3 t5 k( t; `% t- R/ T1 {9 _/ i
|
|