在oracle中修改口令的命令

来源:互联网 发布:阿里云主机备案有多久 编辑:程序博客网 时间:2024/04/29 18:40
[修改口令字]
SQL> grant connect to system identified by NewPassword;  //如果用数字作口令,需要使用双引号括起来
SQL> grant connect to sys identified by NewPassword;
SQL> alter user system identified by NewPassword;
SQL> alter user sys identified by NewPassword;
SQL>password  //需要输入原口令


// 注:以上修改口令的方法等价;sys与system用户可以互相修改口令;

如果sys与system用户的口令都忘记了,使用如下方法:

D:/>svrmgrl

Oracle Server Manager Release 3.1.6.0.0 - Production

版权所有 (c) 1997,1999,Oracle Corporation。保留所有权利。

Oracle8i Enterprise Edition Release 8.1.6.0.0 - Production
With the Partitioning option
JServer Release 8.1.6.0.0 - Production

SVRMGR> connect internal/oracle
连接成功。
SVRMGR> grant connect to system identified by manager;
语句已处理。
SVRMGR> exit
服务器管理程序结束。





原创粉丝点击