Chinaunix首页 | 论坛 | 博客
  • 博客访问: 279622
  • 博文数量: 53
  • 博客积分: 4010
  • 博客等级: 上校
  • 技术积分: 496
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-06 11:05
文章分类

全部博文(53)

文章存档

2011年(1)

2008年(52)

我的朋友

分类: WINDOWS

2008-03-07 21:15:48

注意:每条语语分开执行,结尾必须用分号;
//创建空间
create tablespace test
datafile 'c:\oracle\oradata\orcl9\test.dbf' size 50M
default storage (initial 500K
Next 500K
minextents 1
maxextents unlimited
pctincrease 0);

//创建用户
create user lxg identified by lxg default tablespace test;
//授权 
grant resource,connect,dba to test;

//删除表空间
drop tablespace "空间名" including contents and datafiles

删除用户
drop user "lxg" cascade

增加表空间
alter tablespace chinawater add datafile 'c:\oracle\oradata\orcl9\ADDCHINAWATER.dbf' size 200M
 
创建用户
create user userName identified by password;
创建用户 userName,密码为 password
2
给用户授权
grant dba to lxg;--授予DBA权限
grant unlimited tablespace to lxg;--授予不限制的表空间
grant select any table to lxg;--授予查询任何表
grant select any dictionary to lxg;--授予 查询 任何字典
 
grant dba to lxg;
grant unlimited tablespace to lxg;
grant select any table to lxg;
grant select any dictionary to lxg;
阅读(14911) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2009-05-19 00:47:56

爱你我无悔,只愿你能明白。