Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2736896
  • 博文数量: 423
  • 博客积分: 7770
  • 博客等级: 少将
  • 技术积分: 4766
  • 用 户 组: 普通用户
  • 注册时间: 2006-11-09 11:58
个人简介

Oracle/DB2/Postgresql/Mysql/Hadoop/Greenplum/Postgres-xl/Mongodb

文章分类

全部博文(423)

文章存档

2019年(3)

2018年(6)

2017年(27)

2016年(23)

2015年(30)

2014年(16)

2013年(31)

2012年(73)

2011年(45)

2010年(14)

2009年(30)

2008年(30)

2007年(63)

2006年(32)

分类: Oracle

2012-08-04 17:53:17

List users


点击(此处)折叠或打开

  1. set pages 999 lines 100
  2. col username    format a20
  3. col status    format a8
  4. col tablespace    format a20
  5. col temp_ts    format a20
  6. select    username
  7. ,    account_status status
  8. ,    created
  9. ,    default_tablespace tablespace
  10. ,    temporary_tablespace temp_ts
  11. from    dba_users
  12. order    by username
  13. /

Lock or unlock a user

alter user account lock;

alter user account unlock;

Reset User password

alter user usrname identified by "newpassword";


阅读(1511) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~