当前位置:网站首页>Oracle cleans up the Database disk space of tables with referenced partitions
Oracle cleans up the Database disk space of tables with referenced partitions
2022-07-27 07:28:00 【hawanglc】
A database system is more fancy , Because the amount of data is too large , Create tablespaces and data files by day , The daily data is placed in different table spaces , In order to ensure the integrity of the data , Tables are associated by foreign keys , meanwhile , Tables are partitioned by referencing partitions . Now? , You need to clean up the historical data files of these tables .
Clean up the Database disk space of the table containing the referenced partition
Table cleanup referencing partitions
The reference partition is first a table A There are primary keys a1, Another table B The foreign key for is A.a1. If A Table is a partitioned table , that B Depending on the table A Partition the table .
When deleting , Just delete A One of the partitions of the table , that B The partition data corresponding to the table will also be cleaned up automatically .
Query the partition type view of the table
select * from all_part_tables;
View of all constraints of the query table : It defines foreign keys and primary keys
select * from all_contraints;
Through the association of the above two tables , To query those tables that reference partitions and their corresponding primary tables .
Delete the table partition of a table
alter table table_name drop partition part_name update global indexes;
Delete a table space to clean up disk space
drop tablespace tablespace_name including contents and datafiles
边栏推荐
- 【WSL2】配置连接 USB 设备并使用主机的 USB 摄像头
- 请问有人使用oracle xstream 时出现个别capture延迟很大的吗,该如何解决延迟问题呢
- Excuse me, MySQL timestamp (6) using flick SQL is null. Is there a way to deal with this
- js中的数组方法与循环
- tableau prep连接maxcompute,只是书写很简单的sql,为啥报这个错误呢?
- 单臂路由(讲解+实验)
- Linear table -- stack and queue
- Calledprocesserror during pre commit install
- vlan间路由(讲解+验证)
- Flutter实战-请求封装(一)
猜你喜欢

Internal class -- just read this article~

网络入门——vlan及trunk概述

闭散列和开散列解决哈希冲突

零号培训平台课程-2、SSRF基础

Use of tigervnc

A small cotton padded jacket with air leakage

使用pip命令切换不同的镜像源

A Competitive Swarm Optimizer for Large Scale Optimization

Tcp/ip protocol analysis (tcp/ip three handshakes & four waves + OSI & TCP / IP model)

(2022杭电多校三)1009.Package Delivery(贪心)
随机推荐
UiAutomator常用类之UI手势动作
漏风的小棉袄……
JS make a traffic light
DRConv-pytorch改称输出和输入一样的尺寸
Perl: 将要执行的外部命令拆分为多行
No.0 training platform course-2. SSRF Foundation
adb指令整理
【WSL2】配置连接 USB 设备并使用主机的 USB 摄像头
Jmeter:接口自动化测试-BeanShell对数据库数据和返回数据比较
Basic functions and collections of guava
零号培训平台课程-1、SQL注入基础
用户解锁SM04 SM12
Use shell to calculate the sum of numbers in text
Use reflection to dynamically modify annotation attributes of @excel
Drconv pytorch is changed to the same size of output and input
想sink 到 redis-hash 里面 把 对象的属性和值都写进去 ,大佬们有Demo 吗?
C语言实现猜数字小游戏项目实战(基于srand函数、rand函数,Switch语句、while循环、if条件判据等)
Logcat tool
[Vani has a date] tail on rainy days
简单的轮播图