首先进入DOS界面
Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.
C:\Documents and Settings\xushengming.ARCHESERP>
然后键入orapwd /?
Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.
C:\Documents and Settings\xushengming.ARCHESERP>orapwd /?
Usage: orapwd file= password= entries=
where
file - name of password file (mand),
password - password for SYS (mand),
entries - maximum number of distinct DBA and OPERs (opt),
There are no spaces around the equal-to (=) character.
C:\Documents and Settings\xushengming.ARCHESERP>
在这里我们首先是读懂帮助提供给我们的信息.(有点买乖,请继续往下看)
在这里我们可以看到要完成此操作需有三个保证 .
一:你的password file 位置(本人的:D:\oracle\ora92\database\PWDwq2000aserver.ora),当然这里的password file 是经过加密处理的,所以一般情况下是看不到密码的.
二:password for sys(mand) 是说你的要修改的SYS新密码.
三:entries - maximum number of distinct DBA and OPERs (opt),
There are no spaces around the equal-to (=) character大家千万要读懂这里的意思,意思是说允许最大同时在线的数量我这里设置的是30
我们读懂这个帮助之后
继续键入orapwd file=PWDwq2000aserver.ora password=123456 password=123456 entries=30回车即可出现一个新的PWDwq2000aserver.ora,然后在把此文件覆盖D:\oracle\ora92\database\PWDwq2000aserver.ora
Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.
C:\Documents and Settings\xushengming.ARCHESERP>orapwd file=PWDwq2000aserver.ora
password=123456 entries=30
C:\Documents and Settings\xushengming.ARCHESERP>说明执行成功!!!
重起数据库即可(应该oracle9i2的bug吧,在高可用环境不允许使用.).
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/13159425/viewspace-220366/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/13159425/viewspace-220366/