oracle创建表空间,创建用户笔记

来源:互联网 发布:mysql查询最近一周 编辑:程序博客网 时间:2024/06/08 16:02

--创建临时表空间 drop tablespace test_tablespace_tempcreate temporary tablespace test_tablespace_temp tempfile 'D:\test_tablespace_temp.dbf' size 32m autoextend on next 32m maxsize 2048m extent management local; --创建表空间drop tablespace test_tablespacecreate tablespace test_tablespacelogging datafile 'D:\test_tablespace.dbf' size 32m autoextend on next 32m maxsize 2048m extent management local; --创建用户并指定表空间 create user username_01 identified by password_01 default tablespace test_tablespace temporary tablespace test_tablespace_temp; --给用户授予权限 grant connect,resource to username_01; --以后以该用户登录,创建的任何数据库对象都属于test_tablespace_temp 和test_tablespace表空间,这就不用在每创建一个对象给其指定表空间了。

0 0
原创粉丝点击