ORA-28001: the password has expired

Oracle 提示錯誤消息ORA-28001: the password has expired,是由於Oracle11G的新特性所致, Oracle11G創建用戶時缺省密碼過期限制是180天(即6個月), 如果超過180天用戶密碼未做修改則該用戶無法登錄。 Oracle公司是為了資料庫的安全性默認在11G中引入了這個默認功能,但是這個默認的功能很容易被DBA或者是開發人員給疏忽,一旦密碼180天未修 改過,就會出現這樣的問題。
解決方法可通過如下SQL語句

oracle imp exp

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
imp bookshop/123456@orcl file=D:\java\bookshop.dmp full=y;


create temporary tablespace bookshop_temp

tempfile 'D:\app\TOSHIBA\oradata\data\bookshop_temp.dbf'

size 50m

autoextend on

next 50m maxsize 20480m

extent management local;


create tablespace bookshop_data

logging

datafile 'D:\app\TOSHIBA\oradata\data\bookshop_data.dbf'

size 50m

autoextend on

next 50m maxsize 20480m

extent management local;



create user bookshop identified by 123456

default tablespace bookshop_data

temporary tablespace bookshop_temp;

grant connect,resource,dba to bookshop;

exp bookshop/123456@orcl file=D:\java\newbookshop.dmp tables=(ADMINS,ADMINTYPE,CART,CATEGORY,LEAVEWORD,MEMBER,MEMBERLEVEL,MERCHANDISE,ORDERDATA,RECORD)
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×