Chinaunix首页 | 论坛 | 博客
  • 博客访问: 7305810
  • 博文数量: 444
  • 博客积分: 10593
  • 博客等级: 上将
  • 技术积分: 3852
  • 用 户 组: 普通用户
  • 注册时间: 2006-05-09 15:26
文章分类

全部博文(444)

文章存档

2014年(1)

2013年(10)

2012年(18)

2011年(35)

2010年(125)

2009年(108)

2008年(52)

2007年(72)

2006年(23)

分类: Oracle

2009-06-23 11:37:35

1.
create user username identified by password
 or identified exeternally
 or identified globally as 'cn=user'
[default tablespace tablespace]
[temporary tablespace temptablespace]
[quota [integer k[m]] [unlimited]] on tablespace
[,quota [integer k[m]] [unlimited]] on tablespace
[profiles profile_name]
[password expire]
[account lock or account unlock]
 
创建用户wang,密码wbtest,默认表空间users,临时表空间temp
create user wang identified by wbtest
default tablespace users
temporary tablespace temp
quota 0 on system-----------配置磁盘限额,此处是不允许用户使用system表空间
 
;
create user wang identified by wbtest
default tablespace users
temporary tablespace temp
quota unlimited on users-----------配置磁盘限额,此处是用户在users表空间不受限制
 
;
2.修改
alter user username identified by password
 or identified exeternally
 or identified globally as 'cn=user'
[default tablespace tablespace]
[temporary tablespace temptablespace]
[quota [integer k[m]] [unlimited]] on tablespace
[,quota [integer k[m]] [unlimited]] on tablespace
[profiles profile_name]
[password expire]
[account lock or account unlock]
[default role role[,role]]
  or [default role all [except role[,role]]]
  or [default role note] 
 
 
阅读(1320) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~