PL/SQL---创建用户、指定表空间、授权。

来源:互联网 发布:传感器网络 sci期刊 编辑:程序博客网 时间:2024/06/08 02:42

1、创建表空间

create tablespace tablespace_name
logging 
datafile 'F:\app\tablespace_name.dbf' 
size 200m 
autoextend on 
next 50m maxsize 20480m 
extent management local; 


2、创建临时表空间

create temporary tablespace tmp_tablespace_name
tempfile 'F:\appkaoshi_temp.dbf' 
size 100m
autoextend on 
next 50m maxsize 20480m 
extent management local;


3、创建用户,指定表空间

create user username identified by password 
default tablespace tablespace_name
temporary tablespace tmp_tablespace_name

4、授权

grant connect,resource,dba to username;

0 0
原创粉丝点击