1ãä¸è¬ååºè¡¨é½ä¼å¾å¤§ï¼æ以å¯ä»¥å
å建表空é´ï¼ä¸ºäºè®©ååºè¡¨åæ¾å°åç¬ç表空é´ï¼å¦åé»è®¤ä¼åæ¾å°USERS表空é´
2ãå建TABLESPACE TS1ï¼
CREATE TABLESPACE TS1 DATAFILE '/data1/oracle/test.dbf' SIZE 512M AUTOEXTEND ON NEXT 512M MAXSIZE UNLIMITEDï¼
3ãå建ååºè¡¨ï¼éè¦ç¡®å®æä»ä¹ååºï¼æ¯å¦æidæææ¶é´æ®µï¼
CREATE TABLE test_201602
(
ID NUMBER(10) NOT NULL,
CREATE_TIME DATE,
)
TABLESPACE TS1
PARTITION BY LIST (ID)
(PARTITION PT_1001 VALUES (1001) TABLESPACE TS1)ï¼
4ã继ç»å¢å ååº
ALTER TABLE test_201602 ADD PARTITION "PT_1003" VALUES (1003) LOGGING NOCOMPRESS;
ALTER TABLE test_201602 ADD PARTITION "PT_1004" VALUES (1004) LOGGING NOCOMPRESS;
5ãæ¥è¯¢è¡¨åååºæ°é
select TABLE_NAME,PARTITION_COUNT,DEF_TABLESPACE_NAME from USER_PART_TABLES order by DEF_TABLESPACE_NAME;
温馨提示:内容为网友见解,仅供参考