答案:在创建表的语句后面写tablespace 表空间名
create table SCOTT.BONUS
(
ENAME VARCHAR2(10),
JOB VARCHAR2(9),
SAL NUMBER,
COMM NUMBER
)
tablespace USERS
修改表空间
alter table table_name move tablespace tablespace_name;
其他:直接在语句后面加tablespace。可以把表Move到指定表空间 create table test_1 (a int ) tablespace users;
create table test_1 tablespace users as select * from tabs;
alter table test_1 move tablespace users; 如果有索引还需要对索引进行rebuild,以避免索引失效
alter index idx_name rebuild;
上一个:运行exp备份oracle数据库提示oracle-12154错误
下一个:oracle 数据库中怎么删除表内容?