PLM之家PLMHome-国产软件践行者

[TC问题解决方案] 88.Teamcenter 的账号infodba数据库oracle过期的处理

[复制链接]

2015-9-10 17:08:35 5543 0

admin 发表于 2015-9-10 17:08:35 |阅读模式

admin 楼主

2015-9-10 17:08:35

请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!

您需要 登录 才可以下载或查看,没有账号?注册

x
Teamcenter - Oracle 11g and the expiration date for "infodba" Oracle user
) O; a( [( Y& n4 e: o. \9 p: Y7 C9 e: W- G# S0 w
Problem:/ g# D$ B5 a9 N4 W/ ^- P' B- [5 i
If your Server is using Oracle 11g, the Teamcenter users may have a connection problem and: |6 W! `, f# y* a: m1 y
obtain the following message after 180 days.! |9 |& I+ M2 P
Login was unsuccessful.: Problems encountered logging into TCServer:
7 m' W+ I7 A, P3 j) ^: c( _/ j& t% y ... database
1 I# Q# }* J1 n% pCause: Unable to bind to server running on localhost: 1572
$ z0 N+ a) _( E2 o4 x+ r- y8 _3 N2 M2 b" O
Analysis:3 e' R6 s7 @5 ?% E2 r
This issue seems to be due to the Oracle 11g changes. All the Oracle services are started$ q7 R8 }- J+ Y: s+ R
correctly. However, when you try to connect to the database using sqlplus you can obtain the
8 F! B# f0 {. K: F4 s% xfollowing error message:
( k. ~" \' {4 K/ j; `ORACLE_HOME=your_oracle_home) p4 X0 o& [7 M5 t/ v
ORACLE_SID=your_sid
1 R# W8 E: ^; F7 z( G' q) u" V>%oracle_home%\bin\sqlplus /nolog
' H. O, \0 W5 w( t1 l$ jSQL> connect3 V$ A7 E9 P3 P
infodba! d& Y" X- i5 N/ E; B4 [: `7 V  |
infodba* {$ m* X) [) Z% k. l3 q! f3 F
ERROR:2 S) T( ~: j3 h5 Q6 G
ORA-28002: the password will expire within 10 days
# F3 P* q7 T# B1 Z  S0 I. z# t. |/ w/ P& D
In the user tcserver.syslog file we find the error message:% G+ w- o) C3 J% m1 M
Connect failed (-28002) for 'infodba' at ***
4 w  r. u" N" P  aThe "infodba" Oracle user seems to be created using the default oracle profile which has an
1 z, M  A2 i2 T0 gexpiration date of 180 days. When the Teamcenter user tries to connect to the Oracle database4 _7 l  V" K* }8 \8 q* S  b- K
an error message, ORA-28002, is sent and the connection fails.; F- `5 N0 n2 f
8 U; W; o: r5 S0 R) I. j6 `
Solution:) z$ d4 l9 z6 G4 m; Z; O1 f  K
Find the infodba profile using SQLPLUS:) b. S. l1 v2 E! }) C3 L  B3 j/ Z' U
SQL> select profile from dba_users where username='INFODBA';
. R5 W2 `/ T) a) m/ N- J# CList the profile caracteristics:8 m6 n7 u9 P0 `- C8 ~: A
SQL> select resource_name,liMit from dba_profiles where profile='DEFAULT';/ a- [4 W1 U. Q2 C  S3 ?. d2 C  J" y
Check the PASSWORD_LIFE_TIME.
$ v* H4 t6 j: c6 D! c. m3 `( {+ j; {" B8 xModify the profile and specify an unlimited PASSWORD_LIFE_TIME:5 Y# R# V% T5 M( U+ j7 E
SQL> ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;* N; q0 ~, M; H( g  B# ~
Change the password. It will not expire again.) Z( P, ]3 r- M- O/ |4 I% D
If you don't change the password, it will expire because it was created using a different profile at8 v( F0 o% \% D# y# I" Y, h
the time.7 K/ P/ `. O" a9 G# c
SQL> select expiry_date from dba_users where username ='INFODBA';
, a( T8 K& ?% x! x7 [3 t=> you obtain an expiration date
) _0 E2 E5 d7 `" _7 bSQL>alter user infodba identified by tempo ; ( define a temporary pwd)
' a$ J  A, k4 rSQL> alter user infodba identified by infodba ; ( specify your original infodba
" w7 F/ g, C+ c4 C0 q$ rpassword)
; t6 |% \2 M( G. ]. C9 l2 L9 k( I+ l: oSQL> select expiry_date from dba_users where username ='INFODBA';
5 h$ q4 X/ [  R. e=> you have no expiration date.
9 F+ u1 x/ J' z4 u/ q5 x8 n, I! h2 t. g, `- Q7 h+ }

% Y* ^- w3 T% fRemarks:& `: ], x, \, A8 ]2 x$ f; U
Because we have redefined the same original infodba password, the TC_DB_CONNECT variable
3 K; B1 o6 N- E1 J$ din %TC_DATA%\tc_profilevars.bat is always alive and correct.
0 ]8 t4 L( W# y7 e! X- _4 PAnother modification can be done on the default profile:
1 t1 m& V! G0 C6 e, G2 f8 {2 L9 u4 s# ]* S! a2 N
ALTER PROFILE DEFAULT LIMIT
0 x( _) p6 Q! X FAILED_LOGIN_ATTEMPTS UNLIMITED8 t% m9 T) V0 Y& S) t: d
PASSWORD_LIFE_TIME UNLIMITED;4 K1 _( S3 C1 v& U# @+ ]5 e  ~

& z( g0 O$ D% R. q1 A/ M
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 doTeam.tech
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 注册

返回列表 本版积分规则

  • 发布新帖

  • 在线客服

  • 微信

  • 客户端

  • 返回顶部

  • x
    温馨提示

    本网站(plmhome.com)为PLM之家工业软件学习官网站

    展示的视频材料全部免费,需要高清和特殊技术支持请联系 QQ: 939801026

    PLM之家NX CAM二次开发专题模块培训报名开始啦

    我知道了