---
title: "oracle修改用户名"
author: "wyj_study"
date: "2015-04-15T10:46:53Z"
tags: ["Oracle"]
categories: ["数据库"]
slug: "oracle"
draft: false
lastmod: "2015-04-16T13:31:13Z"
id: 2202604
url: "https://wyj-study.iteye.com/blog/2202604"
---

1、查找该用户

  select user#, name from user$ where name = 'DB'; 
  结果：USER#   NAME
          92     DB

2、修改用户名
    
   update user$ set name = 'MYDB' where user# = 92; 

3、提交

   commit;

4、更新检查点

   alter system checkpoint;

5、更新共享池

  alter system flush shared_pool;



注意 ：修改之后无法通过程序链接数据库，不知道啥原因