创建表空间一共可分为四个步骤 具体脚本如下:    

第1步:创建临时表空间      

create temporary tablespace yd_temp       tempfile 'D:\oracledata\file_temp.dbf'                  --路径根据实际情况任意存储     

size 50m   autoextend on    next 50m maxsize 2048m   extent management local;    

第2步:创建数据表空间       

create tablespace file_data         logging         datafile 'D:\oracledata\file_data.dbf'

 size 50m         autoextend on         next 50m maxsize 2048m         extent management local;    

第3步:创建用户并指定表空间       

create user file_username identified by 12345678    -- ‘file_username’ 为创建的用户名  ;‘12345678’为创建的新用户登录密码      

default tablespace file_data         temporary tablespace file_temp;    

 

第4步:给用户授予权限       

grant connect,resource,dba to file_username;

相关文章:

  • 2021-11-28
  • 2021-12-18
猜你喜欢
  • 2022-12-23
  • 2021-12-29
  • 2021-12-04
  • 2022-12-23
  • 2021-09-29
  • 2021-11-28
相关资源
相似解决方案