---
title: "在Oracle 11g中给scott用户解锁"
author: "zlk"
date: "2010-09-14T10:18:14Z"
tags: ["Oracle", "SQL"]
categories: ["数据库"]
slug: "oracle-11g-scott"
draft: false
lastmod: "2010-09-14T10:18:14Z"
id: 762726
url: "https://zlk.iteye.com/blog/762726"
---

今天刚刚装了Oracle 11g  ，发现其启动的服务那么多... 汗！~ 弄的我机器那是一个慢啊！  
用scott用户连接的时候 竟然提示user scott is locked ，而Oracle 10g 中默认是打开的...  
于是今天学到了用户解锁的命令呵呵（小弟不才 请别见笑）  
用 system 登录进去之后，执行下面的命令：

　　SQL&gt; alter user scott account unlock;（解锁命令）

　　用户已更改。

当然如果不知道其密码，你可以修改一下scott的登录密码：

　　SQL&gt; alter user scott identified by tiger;

　　用户已更改。

　　SQL&gt; conn scott/tiger

　　已连接。