Oracle创建表空间 [数据库教程]

database

建立表空间并设置为默认表空间(最大32GB)

1.    create temporary tablespace test tempfile ‘/home/oracle/oradata/abc/test.dbf‘ size 50m autoextend on next 50m maxsize 20480m extent management local

2. create tablespace test_data logging datafile ‘/home/oracle/oradata/abc/test_data.dbf‘ size 50m autoextend on next 50m maxsize 20480m extent management local

3. alter user train default tablespace test_data

4. alter user train quota 0 on system

查询当前数据库所有表空间

select tablespace_name from dba_data_files; //查询当前数据库所有表空间

创建大表空间(最大32TB)

create bigfile tablespace train_test datafile ‘/home/oracle/oradata/abc/train_test.dbf‘ size 50m autoextend off extent management local uniform size 1m segment space management auto;

Oracle创建表空间

以上是 Oracle创建表空间 [数据库教程] 的全部内容, 来源链接: utcz.com/z/535326.html

回到顶部