当前位置:网站首页>Several methods of changing 91 Oracle common table into partitioned table
Several methods of changing 91 Oracle common table into partitioned table
2022-06-22 22:18:00 【Tiger Liu】
For many customers oracle When the database is optimized, it is found that , Many systems have some large tables that are not partitioned , Poor performance and inconvenient maintenance .
Let's introduce 4 A method to change a common table into a partitioned table , For reference :
Method 1:
New partition table , then insert select; Or insert... While creating a new partition table (CTAS ,create table as select). Do it twice after completion rename table operation .
Method 2:
Online redefinition , Use DBMS_REDEFINITION, The steps are a little complicated , There are many articles about this method on the Internet , You can baidu .
Method 3:
Create a partitioned table with only one partition , use exchange partition Change the original table into a partitioned table , Again split partition.
Method 4:
apply 12.2+ edition , You can go directly through alter table xxx modify command , Change the table directly into a partitioned table , Support online Keep on doing business .
Recommended use 3 and 4, If it meets the version requirements, use 4. Several other method versions 8.x All of the above support .
The above simply introduces the method , There are many details , Include global index/local index The choice of , How to finish in the shortest time , Reduce the impact on the business . More testing , Multiple comparison , True knowledge comes from practice .
in addition , Selection of partition field and partition type , It's also very important , It needs to be studied carefully in combination with the business before making a decision . oracle The partition of is a good function , In the future, I can share it as a training technology topic .
If you have a better way , Please leave your suggestions in the message area , Thank you very much !
Large table operation is risky , I wish you all the best !
边栏推荐
- [path planning] week 1: Path Planning open source code summary (ROS) version
- 自监督表征预训练之掩码图像建模:CAE 及其与 MAE、BEiT 的联系
- 【ROS】ROSmsg cakin_ Make compilation error
- Lesson 026: Dictionary: when the index is not easy to use 2 | after class test questions and answers
- Based on AI driven macromolecular drug discovery, "Huashen Zhiyao" obtained nearly 500million yuan of round a financing
- [recommended by Zhihu knowledge master] castle in UAV - focusing on the application of UAV in different technical fields
- Mask image modeling for self supervised representation pre training: CAE and its relationship with Mae and Beit
- Niuke's height in the 52nd monthly race B (thinking problem simulation problem)
- The necessary materials for the soft test have been released. All the soft test materials for the whole subject have been prepared for you!
- There are 15 necessary knowledge points for the second level cost engineer before the exam! I wish you success!
猜你喜欢

Lesson 026: Dictionary: when the index is not easy to use 2 | after class test questions and answers

Icml2022 | using virtual nodes to promote graph structure learning

CyCa children's physique etiquette Shenzhen training results assessment successfully concluded

Eureka服务注册与发现

【知乎知识主推荐】 无人机中的城堡- 专注于无人机在不同技术领域的应用
![[path planning] week 1: hodgepodge](/img/8b/d7c370b0deac33c41a72f8105ea357.png)
[path planning] week 1: hodgepodge

The necessary materials for the soft test have been released. All the soft test materials for the whole subject have been prepared for you!

Lesson 025: Dictionary: after class test questions and answers when the index is not easy to use
![[icml2022] using virtual nodes to promote graph structure learning](/img/cc/8d009e3c073b4eeef090ac393b8199.png)
[icml2022] using virtual nodes to promote graph structure learning

LeetCode 每日一题——513. 找树左下角的值
随机推荐
【ROS 入门学习 】CmakeList.txt 和Packages.xml释义
考生必读篇 | PMP6月25日考试临近,需要注意什么?
Lesson 023 and 024: recursion: these little bunnies, Hanoi Tower after class test questions and answers
Research hotspot - Official publicity! The release time of JCR zoning and impact factors will be determined in 2022!
Registration of spa project development
【知乎知识主推荐】 无人机中的城堡- 专注于无人机在不同技术领域的应用
Cannot re register id: pommeffacompetition-v0 problem solving
大不列颠泰迪熊加入PUBG 手游
[path planning] week 1: Path Planning open source code summary (ROS) version
Implementation of breadth traversal adjacency matrix of 6-6 graph
Shell (34): time
Lesson 019: function: my site listen to my after-school test questions and answers
[GWCTF 2019]mypassword XSS
数据科学家是不是特有前途的职业?
(duc/ddc) digital up mixing / quadrature down mixing principle and MATLAB simulation
【ROS】ROSmsg cakin_make编译错误
Which is the higher priority of V-IF or V-for?
The third training of Hongmeng
6月25日PMI认证考点防疫要求及考场安排
[icml2022] using virtual nodes to promote graph structure learning