|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
Teamcenter - Oracle 11g and the expiration date for "infodba" Oracle user
3 Q# l. a5 C, y1 Y9 F! ]6 @2 N# t1 E5 p4 @4 O" }
Problem:0 J; y/ ~- o+ R: Y" E! s( `
If your Server is using Oracle 11g, the Teamcenter users may have a connection problem and. u- i! B# i' l! I U6 z1 Z1 }
obtain the following message after 180 days.* O% T" G, k. z- \6 h5 H5 Q$ i' O1 M
Login was unsuccessful.: Problems encountered logging into TCServer: g: f9 D( `( K$ `( I8 ]
... database
o( p' z% A$ u* P1 h) oCause: Unable to bind to server running on localhost: 1572& E& T! ]' N% f/ Q/ J7 F
) c, A5 O# s; t. j1 |- y2 w4 [( ^Analysis:
, b E0 q6 X& w7 \" {This issue seems to be due to the Oracle 11g changes. All the Oracle services are started4 J# P% \! u( q7 I, ?1 j8 X, X# H
correctly. However, when you try to connect to the database using sqlplus you can obtain the
4 k" h# M+ @- E, [following error message:
! `: l3 D2 \" a F# D. oORACLE_HOME=your_oracle_home
$ z' v. l6 f, f- G/ r2 cORACLE_SID=your_sid& O8 ^! |% l: o9 M
>%oracle_home%\bin\sqlplus /nolog; {9 i; Y! m" \! I+ w1 @1 u& C
SQL> connect
2 F$ E" ~% b3 N" s8 rinfodba. x6 w2 u3 g& n! d
infodba
3 D6 U) f' r0 U5 VERROR:+ d( P' k V0 i. s3 F& j
ORA-28002: the password will expire within 10 days
& w, H. y" A; ]
2 U& Y$ S, X* R4 e: r% gIn the user tcserver.syslog file we find the error message:; K3 y# b- H: u. q6 V; q9 G7 U6 h( U
Connect failed (-28002) for 'infodba' at ***$ z) Q9 o) g" f
The "infodba" Oracle user seems to be created using the default oracle profile which has an
+ p. ~$ W* {0 {+ ]( texpiration date of 180 days. When the Teamcenter user tries to connect to the Oracle database
/ k2 F( f1 f, Y( P6 `+ Jan error message, ORA-28002, is sent and the connection fails.: P. u% y% H$ v6 k& M! C8 j
* u, ~( s: V7 P3 HSolution:7 F5 F. C2 h g) ?' R, Z$ g0 i
Find the infodba profile using SQLPLUS:
" f: P6 ^9 e& D# g+ U7 kSQL> select profile from dba_users where username='INFODBA';
" \' ]/ h" i' B6 \* JList the profile caracteristics:
. T: m$ s& }) Z4 M! USQL> select resource_name,liMit from dba_profiles where profile='DEFAULT';
; D2 ` E: |: ~% ^Check the PASSWORD_LIFE_TIME.6 s: z8 f6 R* Q7 v- @' r& _/ b
Modify the profile and specify an unlimited PASSWORD_LIFE_TIME:
: E6 Q: _0 n4 E( B" MSQL> ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;# t; c" m' |0 C% M9 ]) H
Change the password. It will not expire again.
5 g% T/ K0 o, {. LIf you don't change the password, it will expire because it was created using a different profile at
$ Q0 @4 y. y3 D& @& s" uthe time.% n k' p2 O/ \
SQL> select expiry_date from dba_users where username ='INFODBA';
/ W* ~1 F3 _0 K, K' K( ?=> you obtain an expiration date: }1 J4 B3 j: H& l% f
SQL>alter user infodba identified by tempo ; ( define a temporary pwd) 8 x4 ~5 E, z; c: }2 V; x- _7 P
SQL> alter user infodba identified by infodba ; ( specify your original infodba
* G' {' C, h$ I. l$ _% Bpassword)
4 z( V5 Y4 _! n! _% V6 O, VSQL> select expiry_date from dba_users where username ='INFODBA';
( r# E! |3 g+ Y# a" e( r0 q=> you have no expiration date. f% h+ }' ~) ]9 J
( m7 @$ y( v0 ~6 M- c
1 N+ v1 t' H/ c: k7 jRemarks:1 g2 J9 E2 M; w7 X4 Z6 ~
Because we have redefined the same original infodba password, the TC_DB_CONNECT variable
2 m: x/ s$ M5 G* W g; J- v' M- kin %TC_DATA%\tc_profilevars.bat is always alive and correct.
7 W5 J/ l1 O+ bAnother modification can be done on the default profile:# g! P/ Z& Z' d" w! G
9 l/ Z3 ] g. o) k* CALTER PROFILE DEFAULT LIMIT& b7 T7 B, i5 K2 z; z% h
FAILED_LOGIN_ATTEMPTS UNLIMITED
1 e; z) g7 a* N9 N7 F5 f5 N PASSWORD_LIFE_TIME UNLIMITED;+ L0 O# O8 V7 l* w2 k& C
3 J( E d& A2 W/ b; z1 }
|
|