您好,欢迎访问一九零五行业门户网

ORACLE 创建表空间和用户

#创建表空间 create smallfile tablespace username datafile '/home/oracle/oradata/orcl/username' size 500m logging extent management local segment space management auto #修改表空间 alter tablespace username add datafile '/home/oracle/oradata
#创建表空间
create smallfile tablespace username datafile '/home/oracle/oradata/orcl/username'
size 500m logging extent management local segment space management auto
#修改表空间
alter tablespace  username  add datafile '/home/oracle/oradata/orcl/username.dbf'
size 500m autoextend on next 200m maxsize 3072m;
#删除表空间
drop tablespace username including contents and datafiles;
#删除用户
drop user 用户名 cascade;
#创建用户
create user 用户名  identified by “密码” default tablespace username temporary tablespace temp profile default;
-- grant/revoke role privileges 
grant connect to 用户名  with admin option;
grant dba to 用户名  with admin option;
grant resource to 用户名  with admin option;
-- grant/revoke system privileges 
grant unlimited tablespace to 用户名  with admin option;
其它类似信息

推荐信息