---
title: "Oracle 数据库基础 出现invalid username/password; logon denied错误解决方案"
author: "chinagdszsuby"
date: "2010-08-15T12:59:44Z"
tags: []
categories: ["数据库"]
slug: "oracle-invalid-username-password-logon-denied"
draft: false
lastmod: "2010-08-15T13:01:08Z"
id: 737711
url: "https://sby.iteye.com/blog/737711"
---

出现invalid username/password; logon denied错误解决方案
1.Dos下输入命令：**sqlplus sys/安装时设置的密码 as sysdba**      （回车）
2.然后输入命令：**alter user scott account unlock;**

回车后，会出现“用户已更改”字样，接着看下一步。
3.输入命令：  **conn scott/tiger**

回车后，会出现一个错误提示（如下）：
**ERROR:
ORA-28001: the password has expired**


更改 scott 的口令
新口令:

4.输入新口令；
5.重复输入新口令。

最后，搞定！