当前位置:网站首页>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 !
边栏推荐
- 5分钟快速上线Web应用和API(Vercel)
- 6月25日PMI认证考点防疫要求及考场安排
- Icml2022 | using virtual nodes to promote graph structure learning
- Campus errand management app Shaanxi Gechuang
- liunx 安装mysql
- General trend wisdom to create inclined model and cut monomer
- Makefile:1860: recipe for target ‘cmake_ check_ build_ system‘ failed make: *** [cmake_check_build_syst
- SPA项目开发之首页导航+左侧菜单
- 【MAVROS】MAVROS 啓動指南
- VS代码一键整理快捷键
猜你喜欢

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

SPA项目开发之登录注册

大不列颠泰迪熊加入PUBG 手游

pycharm 配置远程连接服务器开发环境

考生必读篇 | PMP6月25日考试临近,需要注意什么?
![[Li mu] how to read papers [intensive reading of papers]](/img/86/4894bdef31d47d3f9bf3206b997eed.jpg)
[Li mu] how to read papers [intensive reading of papers]
![[ongoing update...] 2021 National Electronic Design Competition for college students (III) interpretation of the anonymous four axis space developer flight control system design](/img/5d/71c75a3622f7814f385d04b6148074.png)
[ongoing update...] 2021 National Electronic Design Competition for college students (III) interpretation of the anonymous four axis space developer flight control system design

Query es page subscript exceeds 10000

RealNetworks vs. Microsoft: the battle in the early streaming media industry

6-3 non recursive traversal of binary tree
随机推荐
6月25日PMI认证考点防疫要求及考场安排
Makefile:1860: recipe for target ‘cmake_ check_ build_ system‘ failed make: *** [cmake_check_build_syst
【路径规划】第一周: 路径规划 开源代码汇总(ROS) 版本
7-9 超级玛丽
【ROS】ROSmsg cakin_make编译错误
Cannot re register id: pommeffacompetition-v0 problem solving
Redis core technology and practice: learning summary directory
【MAVROS】MAVROS 啓動指南
6-1 二叉搜索树的操作集
Lesson 025: Dictionary: after class test questions and answers when the index is not easy to use
SPA项目开发之CRUD+表单验证
LeetCode#20. Valid parentheses
Rendu stéréo
Linux安装Mysql(包成功!!)
NIO复制文件调用getChannel方法 transferFrom()
Oracle数据库中文字符串和英文字符串的截取不同
Redis核心技术与实战:学习总结目录
pycharm 配置远程连接服务器开发环境
Install MySQL for Linux (package succeeded!!)
In 2022, the "product innovation and achievement transformation" training camp of Chaoyang District Science and technology innovation class was successfully completed