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

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

[复制链接]

2015-9-10 17:08:35 5525 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- [) P3 c. ?( F: D: h# k+ @

# f# A1 |# L& I- i! M8 Y# pProblem:$ Z4 R: @  C# T$ G& h0 S% A" q
If your Server is using Oracle 11g, the Teamcenter users may have a connection problem and
# v- o  S9 A& qobtain the following message after 180 days.
2 Z7 g: ^- K! v) M) cLogin was unsuccessful.: Problems encountered logging into TCServer:
9 m2 v) N2 r, N( X ... database  e. G9 f1 m7 @9 b
Cause: Unable to bind to server running on localhost: 1572
6 A- m+ q  E4 |& ]5 M$ f) o5 N+ W5 s$ l5 Z' Y- T0 U: ?  Q2 V! B
Analysis:! V* D# v# k0 J0 m. j+ g
This issue seems to be due to the Oracle 11g changes. All the Oracle services are started3 f1 H! m! K5 X8 P
correctly. However, when you try to connect to the database using sqlplus you can obtain the* i- B# ?9 ^+ p2 `- A/ _
following error message:- D- U5 y( E8 h6 n
ORACLE_HOME=your_oracle_home6 G$ y0 F# C0 d( q
ORACLE_SID=your_sid; h, L3 l  R/ @3 Z3 H9 m# }/ h
>%oracle_home%\bin\sqlplus /nolog' |. X4 i7 L% ?9 r
SQL> connect8 P; ^8 ^' }  [% y
infodba
* X0 p4 d; Q3 a  [6 _3 \) D/ T7 Ainfodba
# N& N$ q. A4 sERROR:
, [& |7 e3 z; k- ~# m; G2 t! VORA-28002: the password will expire within 10 days
/ @. u5 o2 T! q7 Z& m' B8 O) d; `) B% @  E2 d% w$ ^
In the user tcserver.syslog file we find the error message:
& k& D8 f/ @2 ~6 Y6 n; L2 rConnect failed (-28002) for 'infodba' at ***
: Z/ t) T: r9 Z0 Z, b( x; ^* }The "infodba" Oracle user seems to be created using the default oracle profile which has an
* {# J6 b' N" i% z5 u" y) vexpiration date of 180 days. When the Teamcenter user tries to connect to the Oracle database
6 i2 }7 c9 M; y% j+ f2 Ban error message, ORA-28002, is sent and the connection fails.* F5 a$ J6 ~* Z% O  f- L

3 a! }) D9 B+ T  tSolution:
; R, f& y( B3 `) qFind the infodba profile using SQLPLUS:* b/ P% |; |; d; `$ S  a0 w5 }
SQL> select profile from dba_users where username='INFODBA';2 R# y% J3 \, @  ]! Y# ?
List the profile caracteristics:
6 E5 u, C. s, f1 v+ N' J% JSQL> select resource_name,liMit from dba_profiles where profile='DEFAULT';% k8 E' B. A) N! Z* \( F) j
Check the PASSWORD_LIFE_TIME.: L1 X3 c& h0 P' m
Modify the profile and specify an unlimited PASSWORD_LIFE_TIME:
( i6 n; H7 ~0 x# n% ySQL> ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;
5 ^* {5 E& r; K1 f! Z$ YChange the password. It will not expire again.8 F' j! p8 }* L, ?7 L# K
If you don't change the password, it will expire because it was created using a different profile at3 O) J6 v4 L  W# k
the time.
; p0 R% s* p9 p2 p2 I6 }SQL> select expiry_date from dba_users where username ='INFODBA';
8 ?+ p5 F) E- a% ?/ o: M=> you obtain an expiration date* a! i. i$ K% S
SQL>alter user infodba identified by tempo ; ( define a temporary pwd) , r# h2 S: r' P) _
SQL> alter user infodba identified by infodba ; ( specify your original infodba
" R% x( U( p: xpassword)7 ~; A' V# m" v% {
SQL> select expiry_date from dba_users where username ='INFODBA';
. y& L6 j! W* ]9 Y: K. T=> you have no expiration date.
9 |5 c" ?3 T: F( L8 C3 V+ t9 c
3 Z4 m" K) [- ~8 }) u( A% j- Y# I4 x( i
Remarks:
3 v/ g/ ]) K0 w1 R$ S/ FBecause we have redefined the same original infodba password, the TC_DB_CONNECT variable: l* ?: A5 N; i+ V8 F* w6 ]& K
in %TC_DATA%\tc_profilevars.bat is always alive and correct.
' s; p; ^# k# w# v# Z: Z6 @Another modification can be done on the default profile:  P! C4 e( r" o  s

: \4 v1 P: m, P8 tALTER PROFILE DEFAULT LIMIT
. L3 _0 C& u5 C# g" g FAILED_LOGIN_ATTEMPTS UNLIMITED
$ r/ i, L+ d  O7 c; i* ~ PASSWORD_LIFE_TIME UNLIMITED;% x, w; z/ A* y

4 G; Y) F  Y) Y  @# ?: |& _6 h
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了