0
点赞
收藏
分享

微信扫一扫

oracle表空间与用户的创建

黄昏孤酒 2022-03-12 阅读 147

表空间与用户的创建

create tablespace spaceName(表空间)
datafile  'D:/app/Administrator/oradata/orcl/EINVOICEDATA.dbf' size 128m  autoextend on  next  100m; 

-- Create the user 
create user userName(用户名)
  identified by password(密码)
  default tablespace userName(用户名)
  temporary tablespace TEMP;
-- Grant/Revoke role privileges 
grant connect to userName(用户名);
grant dba to userName(用户名);
GRANT SELECT ANY TABLE TO userName(用户名) WITH ADMIN OPTION;
举报

相关推荐

Oracle创建表空间,用户,及权限

0 条评论