---
title: "Oracle 数据库 基础 解开Oracle默认锁定的用户"
author: "chinagdszsuby"
date: "2010-08-21T11:32:14Z"
tags: []
categories: ["数据库"]
slug: "oracle-oracle"
draft: false
lastmod: "2010-08-21T11:32:14Z"
id: 743853
url: "https://sby.iteye.com/blog/743853"
---

Oracle安装完成之后，有很多用户是默认被锁定的。下面用几条命令来解开锁定：
**1.在【运行】中输入 cmd ，然后回车，进入命令行；**

**2.在命令行中输入 sqlplus sys/wo657501 as sysdba 然后回车，进入超级管理员用户，然后提示一大堆东西，以表明你已经成功进入：**
SQL*Plus: Release 11.2.0.1.0 Production on 星期六 8月 21 11:27:55 2010

Copyright (c) 1982, 2010, Oracle.  All rights reserved.


连接到:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

**3.接着输入命令 SQL> alter user scott account unlock; 然后回车，成功后，提示“用户已更改”**