| |

VerySource

 Forgot password?
 Register
Search
View: 842|Reply: 5

About table partitioning

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-7 16:40:01
| Show all posts |Read mode
partition by range (sales_date)
(
 partition pt_sales1999_q4 values ​​less than
  (to_date ('01 / 01/2000 ',' DD / MM / YYY '))
  tablespace saleA,
  pctfree 0
  storage (initial 100M next 100M pctincrease 0)
 partition pt_sales2000_q1 values ​​less than
  (to_date ('01 / 04/2000 ',' DD / MM
...............

When creating table partitions in ORACLE, what does pctfree 0 and storage (initial 100M next 100M pctincrease 0) mean? ? ? ?
And what does pt_sales1999_q4 refer to after the partition?
What is saleA behind tablespace?
Reply

Use magic Report

0

Threads

6

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-1-10 01:27:02
| Show all posts
SaleA behind tablespace refers to the tablespace that is stored.
Reply

Use magic Report

0

Threads

71

Posts

50.00

Credits

Newbie

Rank: 1

Credits
50.00

 China

Post time: 2020-1-10 22:54:01
| Show all posts
What does pctfree 0, storage (initial 100M next 100M pctincrease 0) mean?
It indicates the storage of the partition table pt_sales1999_q4, which is initially 100m, and is expanded every 100m

What does pt_sales1999_q4 refer to after partition?

The name of the partition is: pt_sales1999_q4

After the tablespace saleA is the tablespace indicating the partition
Reply

Use magic Report

0

Threads

13

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 China

Post time: 2020-1-11 16:36:02
| Show all posts
partition pt_sales1999_q4 values ​​less than
  (to_date ('01 / 01/2000 ',' DD / MM / YYY '))
  tablespace saleA,
  pctfree 0
  storage (initial 100M next 100M pctincrease 0)

pctfree: reserved space ratio
Data storage parameters in the storage table, initial 100M: initialize 100m next 100M is the next increase
tablespace saleA: indicates the tablespace where the partition data is stored. Each partition specifies a different tablespace. The purpose is to damage a tablespace, but the corresponding partition is unavailable. Other partitions can be used normally
Reply

Use magic Report

0

Threads

71

Posts

50.00

Credits

Newbie

Rank: 1

Credits
50.00

 China

Post time: 2020-1-11 18:45:01
| Show all posts
pctfree: reserved space ratio
Data storage parameters in the storage table, initial 100M: initialize 100m next 100M is the next increase
tablespace saleA: indicates the tablespace where the partition data is stored. Each partition is assigned a different tablespace in order to damage a certain tablespace, but the corresponding partition is unavailable. Other partitions can be used normally. At the same time, the execution of SQL is improved. speed
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-1-24 23:00:02
| Show all posts
Thank you very much!
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list