PLM之家PLMHome-工业软件践行者

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

[复制链接]

2015-9-10 17:08:35 5565 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
8 ]! k. \2 b4 z# N- @4 j* @* u+ Q+ l- a" V4 {" e
Problem:
" V* \* E  ]# I5 wIf your Server is using Oracle 11g, the Teamcenter users may have a connection problem and; H. s8 P. M4 b9 Y+ u( @  k
obtain the following message after 180 days.$ `/ \* N. E1 V! I
Login was unsuccessful.: Problems encountered logging into TCServer:& G# N/ a, q; a0 E" E
... database
7 \4 |- I2 q& \Cause: Unable to bind to server running on localhost: 1572
6 r2 F- G0 \6 C+ A4 ]. P9 m, |
! t/ a9 f! [+ qAnalysis:
' P, X! R) O( e( O) X; UThis issue seems to be due to the Oracle 11g changes. All the Oracle services are started
# f. }- P5 r( [" t) T' }+ l; ncorrectly. However, when you try to connect to the database using sqlplus you can obtain the8 u, y5 T  M. k
following error message:
7 `6 o/ H( j0 ~; H3 QORACLE_HOME=your_oracle_home/ V, C, p; b+ g; N$ u8 C
ORACLE_SID=your_sid/ h+ M9 C& v; F) U# Y" I& }
>%oracle_home%\bin\sqlplus /nolog
/ e! a, A! `9 d% H$ oSQL> connect
! q; P& k8 N3 w* X9 w+ Y( U& L- Hinfodba
! v0 [/ g$ p; X, Q! N6 L& ^infodba
) T4 T. J. `0 l* J, w' M  KERROR:) ]. I* L8 y/ b' R
ORA-28002: the password will expire within 10 days- O3 f; D! }1 h# J8 g# B2 o* n6 C
; Y3 v# g: n8 B! e* ^
In the user tcserver.syslog file we find the error message:
* O( g5 w) b1 M0 K- X$ @9 v% e6 |Connect failed (-28002) for 'infodba' at ***
% \; g( \- h1 ]: L" c: dThe "infodba" Oracle user seems to be created using the default oracle profile which has an* x' F0 W: r- N/ H
expiration date of 180 days. When the Teamcenter user tries to connect to the Oracle database
( H/ D/ E) Q) L3 o- A6 C3 d& can error message, ORA-28002, is sent and the connection fails.
( W! O" M. f" n4 V0 ~$ H0 b) t+ l; g$ R
Solution:: Y3 D" j0 w" U5 Z) U- g# W7 {6 c  v
Find the infodba profile using SQLPLUS:
/ H  T6 e7 j' k; aSQL> select profile from dba_users where username='INFODBA';
) Z3 ^' y3 n1 ?List the profile caracteristics:0 A/ S: q2 c2 `3 d
SQL> select resource_name,liMit from dba_profiles where profile='DEFAULT';8 g* ]3 P( e# |" m0 p; W5 Y
Check the PASSWORD_LIFE_TIME.
( h# I0 T6 d4 ]3 l* E6 fModify the profile and specify an unlimited PASSWORD_LIFE_TIME:. K, q  ^7 ?" I5 y: E& y
SQL> ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;
8 n: ?5 I# _3 RChange the password. It will not expire again.
& ]% ^4 G- j( S1 KIf you don't change the password, it will expire because it was created using a different profile at: f4 S" @+ d# B6 T$ s7 E
the time.
' o  U' D7 G6 a$ H0 c( RSQL> select expiry_date from dba_users where username ='INFODBA';
: n; Z' v) w5 [=> you obtain an expiration date
: f; b6 E3 r) ^% v* i8 eSQL>alter user infodba identified by tempo ; ( define a temporary pwd)
0 h2 W% B, S. pSQL> alter user infodba identified by infodba ; ( specify your original infodba( a6 Q/ I8 M( C5 }& P
password)
# `7 r4 ^  H& N$ c' ]: g, NSQL> select expiry_date from dba_users where username ='INFODBA';7 c3 j% Q& I' I- }  r
=> you have no expiration date.
0 z& x$ f# \: L6 E6 F
7 W! ]& k4 I- a" a5 h+ j- Q
: e- `. s9 ^" {6 |Remarks:+ `8 C" R7 P- V( _1 k' Z6 m
Because we have redefined the same original infodba password, the TC_DB_CONNECT variable
  T8 B$ H0 o" H9 Z1 |$ i& ain %TC_DATA%\tc_profilevars.bat is always alive and correct.# ?7 _# e- X5 i# `) ]" W
Another modification can be done on the default profile:. d( y7 a  z; W1 l
! e4 f5 A) l7 U$ J9 [" N6 a! Q2 {2 Q
ALTER PROFILE DEFAULT LIMIT
6 N9 J8 s5 |( Q* _: _8 B FAILED_LOGIN_ATTEMPTS UNLIMITED
6 i9 @' J6 y7 D% w- a6 h PASSWORD_LIFE_TIME UNLIMITED;
# `7 U8 }: K# z) N8 F2 \9 i! W5 \4 e: I( D& y2 y
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了