Oracle创建表空间和用户脚本

-- 删除用户和表空间
drop user INTEPDM cascade;
DROP TABLESPACE INTEPDM INCLUDING CONTENTS AND DATAFILES;

--创建表空间
create tablespace INTEPDM logging  
datafile 'D:\oracle\oradata\orcl\INTEPDM.dbf' 
size 50m  
autoextend on  
next 50m maxsize 20480m  
extent management local;  


--创建用户  
create user INTEPDM profile default identified by "Ghost" default  
tablespace INTEPDM temporary tablespace TEMP account unlock;  

--给用户授权
GRANT "CONNECT" TO INTEPDM;
GRANT "RESOURCE" TO INTEPDM;
grant connect,resource,dba to INTEPDM; 
grant create cluster to INTEPDM;
grant create database link to INTEPDM;
grant create procedure to INTEPDM;
grant create sequence to INTEPDM;
grant create table to INTEPDM;
grant create trigger to INTEPDM;
grant create type to INTEPDM;
grant create view to INTEPDM;
grant debug any procedure to INTEPDM;
grant debug connect session to INTEPDM;
grant select any dictionary to INTEPDM;
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。