|
|
最初由 wyq21973 发布
[B]1,2 用户的表空间和方案的表空间是一个东西的两种说法;
3 可以移动表到新表空间:
[php]
wyq@ORCL>@conn scott/tiger
Input truncated to 14 characters
scott@ORCL>select table_name,tablespace_name from user_tables;
TABLE_NAME TABLESPACE_NAME
------------------------------ ------------------------------
BONUS USERS
DEPT SYSTEM
EMP USERS
SALGRADE USERS
scott@ORCL>alter table dept move tablespace users;
Table altered.
scott@ORCL>select table_name,tablespace_name from user_tables;
TABLE_NAME TABLESPACE_NAME
------------------------------ ------------------------------
BONUS USERS
DEPT USERS
EMP USERS
SALGRADE USERS
scott@ORCL>
[/php] [/B]
然后最好还要重建一下该表上的索引,否则使用索引时会报错!! |
|