|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
Teamcenter - Oracle 11g and the expiration date for "infodba" Oracle user$ Y& A, N+ v; k% ?
/ W* _* d" y3 H( W2 ? J; zProblem:# r2 a3 c' A4 h* y% s" T; c
If your Server is using Oracle 11g, the Teamcenter users may have a connection problem and
! H1 O W' q; m/ H8 s) lobtain the following message after 180 days. {( n% j9 C" ~7 I
Login was unsuccessful.: Problems encountered logging into TCServer:
4 z$ r* c4 h* s% q& H7 R ... database
4 G; M4 V/ j$ R NCause: Unable to bind to server running on localhost: 1572
4 w9 \6 o& L: j7 ~% g8 Q% ^: Q& t6 C5 j: K" Y
Analysis:
1 S% i7 u" X* e; o( o* }& mThis issue seems to be due to the Oracle 11g changes. All the Oracle services are started% H2 ~: O- [6 Z$ Q _
correctly. However, when you try to connect to the database using sqlplus you can obtain the
- v: v5 i: R( S7 @ J" B. m7 Ifollowing error message:1 P0 t, x" m7 W. H( A) f7 j6 O
ORACLE_HOME=your_oracle_home/ y" c9 l; t" D+ g, E5 s' u
ORACLE_SID=your_sid
# F5 V( B9 A" T>%oracle_home%\bin\sqlplus /nolog
/ v1 G" Q$ z5 l- b- [SQL> connect
, ~* ?8 n- q8 b8 yinfodba$ E+ N" [. S: T. t- H- j1 @4 u. u
infodba
/ I0 J2 |$ d1 y1 x8 F5 GERROR:
( e* g5 _0 g/ Q# d% D1 |, sORA-28002: the password will expire within 10 days
6 Q2 `8 K/ I# {; v; }& l# [8 _
) U6 x; S' z) _% I9 fIn the user tcserver.syslog file we find the error message:
9 L! m* k; i/ v% @7 zConnect failed (-28002) for 'infodba' at ***
4 s& W/ M5 u. OThe "infodba" Oracle user seems to be created using the default oracle profile which has an
" X# k; D$ r0 ?# bexpiration date of 180 days. When the Teamcenter user tries to connect to the Oracle database( |' u- Q0 }; E$ K
an error message, ORA-28002, is sent and the connection fails.
3 M) d" ^$ M# R$ [' b( m+ U" e+ l4 c# P5 U7 T
Solution:' z: `- i7 Z- i, w, {. x0 V; t+ I
Find the infodba profile using SQLPLUS:: {8 ?7 e7 m# h% a$ U
SQL> select profile from dba_users where username='INFODBA';
7 z- W' }" I2 i" D1 }; Z3 TList the profile caracteristics:& m6 @* u' Z/ h0 D
SQL> select resource_name,liMit from dba_profiles where profile='DEFAULT';, m8 a: L9 `+ l" P1 E x+ \
Check the PASSWORD_LIFE_TIME.) s: T" o5 z! k0 {7 ?
Modify the profile and specify an unlimited PASSWORD_LIFE_TIME:& V# N( V0 Z8 k9 e) n8 k' `: E
SQL> ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;$ b& _. E) O3 }* W7 ^
Change the password. It will not expire again.9 q4 ]8 V& o$ I3 S
If you don't change the password, it will expire because it was created using a different profile at& e9 i( m' f& i* S: I
the time.: f% Y7 r' U8 h5 d
SQL> select expiry_date from dba_users where username ='INFODBA';- e. M( v2 u: {8 f
=> you obtain an expiration date
( N N K( g# v2 K0 b" GSQL>alter user infodba identified by tempo ; ( define a temporary pwd)
$ F6 x$ k4 H/ B7 [SQL> alter user infodba identified by infodba ; ( specify your original infodba
2 o( P- G- U% U( L" Y$ Opassword)
" ?( M( F, `$ [$ V* b; YSQL> select expiry_date from dba_users where username ='INFODBA';
7 a# y$ C8 d/ {. T2 T! U6 U=> you have no expiration date.
0 k5 u7 [1 v$ S, s, p2 Q+ p
$ P, H! K5 ~; r- x) N( ]' {: e4 ?+ t! d! R7 }; d- Z
Remarks:) N2 C3 i; c# [
Because we have redefined the same original infodba password, the TC_DB_CONNECT variable* B! ^' P% I. Y" [' e
in %TC_DATA%\tc_profilevars.bat is always alive and correct.; S# F0 O) c* f. D- S( |
Another modification can be done on the default profile:
' _0 ]' K) X; L" a$ Z' g% r! d3 i3 x8 k& k y& K5 ]% @- W6 g, U8 m" s
ALTER PROFILE DEFAULT LIMIT( h" t# l* s) x
FAILED_LOGIN_ATTEMPTS UNLIMITED
" O9 [. E L" k& A PASSWORD_LIFE_TIME UNLIMITED;
& o% Y. W* l; Y1 l
7 N! X! g$ q# z2 V z |
|