Home > Database > Mysql Tutorial > body text

Oracle密码忘记简单处理办法

WBOY
Release: 2016-06-07 17:35:54
Original
1248 people have browsed it

一、忘记除SYS、SYSTEM用户之外的用户的登录密码。 用sys或system用户登录,执行修改数据库密码 #sqlplus sys/Oracle@sid as sy

一、忘记除SYS、SYSTEM用户之外的用户的登录密码。

用sys或system用户登录,执行修改数据库密码

#sqlplus sys/Oracle@"sid" as sysdba

使用如下语句修改用户的密码:
SQL> alter user "username" identified by "newpass";

注意:密码不能全是数字。并且不能是数字开头。否则会出现:ORA-00988:口令缺失或无效

二、忘记SYS用户,或者是SYSTEM用户的密码。

如果是忘记system/sys密码,且人就在数据库服务器旁边,可以可以通过本地验证方式登录,执行如下操作:

$ sqlplus / as sysdba
SQL> alter user "username" identified by "newpass";

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!