sqlplus "sysman/安装时设置的密码"
create user userName identified by password;
创建用户 userName,密码为 password
grant dba to userName; --授予DBA权限 grant unlimited tablespace to userName;--授予不限制的表空间 grant select any table to userName; --授予查询任何表 grant select any dictionary to userName;--授予 查询任何字典
--创建立表空间
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 rac案例讲解