|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
Teamcenter - Oracle 11g and the expiration date for "infodba" Oracle user
( e. @; I5 ^4 r0 G0 j$ F; P3 Y* Y
Problem:# K4 x6 w; Y1 D) |. [
If your Server is using Oracle 11g, the Teamcenter users may have a connection problem and
% C- E& n0 g A0 R2 e/ @obtain the following message after 180 days." R' Q1 R5 }0 |0 ?$ b9 l1 s3 r
Login was unsuccessful.: Problems encountered logging into TCServer:; D6 d1 c3 T1 i$ E t: F2 O. \. q
... database
% G1 L) S5 D7 ]* wCause: Unable to bind to server running on localhost: 1572! ~3 A! o2 T4 `5 s' D
: I, x/ s4 h' gAnalysis:
* D. i7 @6 }8 E1 ?! P6 [: t2 mThis issue seems to be due to the Oracle 11g changes. All the Oracle services are started
1 Y3 `3 B5 d( P6 _( _correctly. However, when you try to connect to the database using sqlplus you can obtain the
! [$ H( d. Q' A4 p) c. k' c0 e) ?following error message:/ y+ p0 ^3 f3 l* |7 M+ D
ORACLE_HOME=your_oracle_home
4 m! J; V* v, S' H0 k* x, TORACLE_SID=your_sid
' O! m! p- R e. \; [9 @>%oracle_home%\bin\sqlplus /nolog6 x) \! l! E' R
SQL> connect8 b# x2 F8 G: v$ l* \. ?
infodba
. t" x+ K! n% _; v+ E% Qinfodba
6 W4 B) H s# aERROR:
" r4 H: A" a8 S! @. CORA-28002: the password will expire within 10 days% {1 p Z' a5 y, e& g
1 \* n. K- e# o$ F
In the user tcserver.syslog file we find the error message:
( ~3 ?( c# i6 y3 k3 mConnect failed (-28002) for 'infodba' at ***5 M- ^! q0 {1 W+ D4 |2 g1 O7 K0 \
The "infodba" Oracle user seems to be created using the default oracle profile which has an( J9 h1 j8 O5 b6 C+ |1 ?) W
expiration date of 180 days. When the Teamcenter user tries to connect to the Oracle database
z7 F) Z1 p6 n n1 T# r: y# w2 Ban error message, ORA-28002, is sent and the connection fails.
0 z3 }, {8 [& b2 J0 v9 V8 b
( @: D2 D: N9 V) C8 qSolution:2 I7 M: Z4 _7 o3 k! r8 i( B9 r
Find the infodba profile using SQLPLUS:) R! T' N- q2 Q/ b1 S8 L; ^
SQL> select profile from dba_users where username='INFODBA';/ x7 K/ [$ i) ^. M6 v/ S) W# p0 A
List the profile caracteristics:( e) ]. m) `3 r3 D* g9 ~* x
SQL> select resource_name,liMit from dba_profiles where profile='DEFAULT';8 @- r% E \' N0 N
Check the PASSWORD_LIFE_TIME.
n0 i. J8 A- @6 wModify the profile and specify an unlimited PASSWORD_LIFE_TIME:
3 }* E6 y u; I. C$ ?SQL> ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;
2 H( Q2 M2 R; A) k! ~* U% @Change the password. It will not expire again.
! ]$ ~# Q" K, YIf you don't change the password, it will expire because it was created using a different profile at) w- w. S2 S( q/ Z! v! r! }5 } k% o
the time.
) `4 R6 g( H j7 b- OSQL> select expiry_date from dba_users where username ='INFODBA';6 i6 {: c$ Y( a0 ?/ Z0 Q) o% M* W
=> you obtain an expiration date
( R3 A4 _( i2 y+ a2 l' k0 |4 [, oSQL>alter user infodba identified by tempo ; ( define a temporary pwd)
( H! i. s; y) z7 v; l: e: z8 rSQL> alter user infodba identified by infodba ; ( specify your original infodba- N5 `7 X+ n/ z. t" V
password)
E# a P5 k. ?5 }& O* ?. QSQL> select expiry_date from dba_users where username ='INFODBA';
( U( X" A# A! Z4 ~: ^) Z=> you have no expiration date.
0 s. g" c- i& G7 T% \, W( j
* W3 ]" F" a% g' S+ r( D
9 z* f. T: b% TRemarks:
7 @8 j% N3 m1 ]' h! vBecause we have redefined the same original infodba password, the TC_DB_CONNECT variable
y, g2 S; I- U, w7 Xin %TC_DATA%\tc_profilevars.bat is always alive and correct.) A. V/ F* [+ g. M! ]" _$ ~9 m
Another modification can be done on the default profile:
- _( A$ W8 w2 E- R. V% {
; K' x1 d0 T- G7 X TALTER PROFILE DEFAULT LIMIT
% p4 h9 I% r7 j1 @ FAILED_LOGIN_ATTEMPTS UNLIMITED! |( R) M! I$ R$ X6 O8 L5 r
PASSWORD_LIFE_TIME UNLIMITED;
+ D9 h. S5 h3 g; S% M
, [% _, G2 I" y$ h |
|