oracle创建表空间、用户

来源:互联网 发布:mac bash 3.2 编辑:程序博客网 时间:2024/06/05 04:45
--创建表空间
create tablespace 表空间名称 datafile'创建表空间路径'size 10M 
autoextend on next 5M maxsize 
unlimited logging extent management local 

autoallocate segment space management auto;

--创建用户

create user用户名称 identified by salis
default tablespace 表空间名称 temporary tablespace temp profile default;
grant connect,dba,resource to 用户名名称;

实例介绍:创建一个表空间为:LYK,表空间路径为:D:\oradata\LYK.dbf,对应的用户名称为LYK,即给赋相应的权限。

--创建表空间
create tablespace LYK datafile 'D:\oradata\LYK.dbf' size 10M 
autoextend on next 5M maxsize 
unlimited logging extent management local 
autoallocate segment space management auto;

--创建用户

create userLYK identified by salis
default tablespace LYK temporary tablespace temp profile default;
grant connect,dba,resource to LYK;

原创粉丝点击