一、orcale创建表空间和用户

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/meijipingchao629/article/details/81697702
create  tablespace  zml20180730  datafile 'E:\orcale\data\zml20180730.dbf'    size   300m autoextend on next 100m maxsize unlimited
extent Management local autoallocate
segment space management auto
;

-- Create the user 
create user ZML20180730
  default tablespace ZML20180730
  temporary tablespace TEMP
  profile DEFAULT
  password expire
  quota unlimited on zml20180730;

-- Grant/Revoke role privileges 
grant connect to ZML20180730 with admin option;
grant dba to ZML20180730 with admin option;
grant resource to ZML20180730 with admin option;

-- Grant/Revoke system privileges 
grant unlimited tablespace to ZML20180730 with admin option;

猜你喜欢

转载自blog.csdn.net/meijipingchao629/article/details/81697702