Home > Database > Mysql Tutorial > Oracle 11g 密码失效问题

Oracle 11g 密码失效问题

WBOY
Release: 2016-06-07 17:19:59
Original
1097 people have browsed it

Oracle system无法登录,我自己遇到的问题总结如下:首先,以SYS DBA身份进入sqlpuls打开sqlpulsSQL-gt;请输入用户名:sys as s

Oracle system无法登录,我自己遇到的问题总结如下:

首先,以SYS DBA身份进入sqlpuls

打开sqlpuls

SQL->请输入用户名:sys as sysdba

SQL->密码(老密码):

登录成功以后查询DBA用户状态

SQL->select username,account_status from dba_users;

查看其中常用的用户状态是否是EXPIRED 还是LOCKED

有的是LOCKED

如果sysman状态是过期,,修改密码方法:

1、执行emctl stop dbconsole

执行完成后再停止agent:emctl stop agent

使用下面的命令来检查是否缺失停止了:

emctl status dbconsole

emctl status agent

确认停止以后就可以在sqlpuls里改密码了

2、执行下面的命令修改system密码:

SQL->alter user sysman identified by ;

不过首先你得确认一下system是否被锁定,就是执行

SQL->select username,account_status from dba_users;

看sysman的状态,如果是LOCKED,那么你先得解锁:

SQL->alter user system account unlock;

解锁完成后再修改密码,或者修改后再解锁都行,步骤可以颠倒,但是绝对不能少。

修改完成后

SQL->system/密码

如果连接成功就可以进行下一步了。

linux

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template