oracle创建用户过程详解

2022-07-22,,,,

1.首先用管理员用户登陆sqlplus:

sqlplus "sysman/安装时设置的密码"  

2.创建用户

create user username identified by password; 

创建用户 username,密码为 password

3.给用户授权

grant dba to username; --授予dba权限  
grant unlimited tablespace to username;--授予不限制的表空间  
grant select any table to username; --授予查询任何表  
grant select any dictionary to username;--授予 查询任何字典 

4. 创建表空间

--创建立表空间

 
    create tablespace cheng datafile 'c:\oraclexe\oradata\xe\cheng.dbf' size 500m
uniform size 128k;              #指定区尺寸为128k,如不指定,区尺寸默认为64k
 
--删除表空间
 
     drop tablespace cheng including contents and datafiles
 
--修改表空间大小
 
     alter database datafile 'c:\oraclexe\oradata\xe\cheng.dbf' resize 50m

到此这篇关于oracle创建用户过程详解的文章就介绍到这了,更多相关oracle创建用户内容请搜索以前的文章或继续浏览下面的相关文章希望大家以后多多支持!

《oracle创建用户过程详解.doc》

下载本文的Word格式文档,以方便收藏与打印。