Oracle mobile table, oracle mobile

Source: Internet
Author: User

Oracle mobile table, oracle mobile
Oracle mobile table
When creating a table, you can specify a storage space for the table. If not specified, oracle will store the table to the default tablespace. You can move a table from one tablespace to another as needed. Syntax:
Alter table table_name move tablespace tablespace_name;
SQL> select table_name, tablespace_name from user_tables;

TABLE_NAME
----------------------------------------
TABLESPACE_NAME
------------------------------
USERS
USERS


STUDENT
USERS


MESSAGE
USERS
As shown above, there are three tables in the user's tablespace, all of which are in the users tablespace,
Use this statement to move the student table:
SQL> alter table student move tablespace testspace;

The table has been changed. Query again

SQL> select table_name, tablespace_name from user_tables;

TABLE_NAME
----------------------------------------
TABLESPACE_NAME
------------------------------
USERS
USERS


MESSAGE
USERS


STUDENT
TESTSPACE

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.