create tablespace test_data
logging
datafile 'E:\data\test_data01.dbf'
size 32M
autoextend on
next 32M maxsize 2048M
EXTENT MANAGEMENT LOCAL;
------------
create temporary tablespace test_temp
logging
tempfile 'E:\data\test_temp01.dbf'
size 32M
AUTOEXTEND on
NEXT 32M MAXSIZE 2048M
EXTENT MANAGEMENT LOCAL;
-----------
CREATE TEMPORARY TABLESPACE test_temp
TEMPFILE 'E:\data\test_temp01.dbf '
SIZE 32M
AUTOEXTEND ON
NEXT 32M MAXSIZE 2048M
EXTENT MANAGEMENT LOCAL;
----------
CREATE USER testmview IDENTIFIED BY testmview
DEFAULT TABLESPACE TEST_DATA
TEMPORARY TABLESPACE TEST_TEMP;
-----
GRANT dba TO testmview;
logging
datafile 'E:\data\test_data01.dbf'
size 32M
autoextend on
next 32M maxsize 2048M
EXTENT MANAGEMENT LOCAL;
------------
create temporary tablespace test_temp
logging
tempfile 'E:\data\test_temp01.dbf'
size 32M
AUTOEXTEND on
NEXT 32M MAXSIZE 2048M
EXTENT MANAGEMENT LOCAL;
-----------
CREATE TEMPORARY TABLESPACE test_temp
TEMPFILE 'E:\data\test_temp01.dbf '
SIZE 32M
AUTOEXTEND ON
NEXT 32M MAXSIZE 2048M
EXTENT MANAGEMENT LOCAL;
----------
CREATE USER testmview IDENTIFIED BY testmview
DEFAULT TABLESPACE TEST_DATA
TEMPORARY TABLESPACE TEST_TEMP;
-----
GRANT dba TO testmview;
本文详细介绍了如何在Oracle数据库中创建表空间及临时表空间的方法,并演示了如何为用户分配这些表空间。此外,还提供了授予用户DBA权限的具体步骤。

被折叠的 条评论
为什么被折叠?



