Oracle建立用戶

新建表空間

create tablespace [表空間名] datafile '/u01/app/oracle/oradata/XE/control.dbf' --表空間文件
size 50M --初始空間 autoextend on next 1M maxsize 100M;--最大空間oracle

新建用戶

create user [用戶名] identified by [密碼]
default tablespace [表空間名];app

-----賦予權限

  • grant resource,connect to 用戶名; --將資源和連接權限給用戶

----修改用戶的默認表空間

  • alter user [用戶名] default tablespace [表空間名];
相關文章
相關標籤/搜索