当前位置:网站首页>Oracle增加表空间解决ORACLE ORA-01653: unable to extend table报错
Oracle增加表空间解决ORACLE ORA-01653: unable to extend table报错
2022-08-04 21:47:00 【李长渊哦】
一、查看表空间的名字及文件所在位置
select tablespace_name, file_id, file_name, round(bytes/(1024*1024),0) total_space from dba_data_files order by tablespace_name

二、增加所需表空间大小
1、方法一
alter database datafile '表空间位置' resize 新的尺寸
例如
alter database datafile '/opt/oracle/oradata/ewell/BLZK.dbf' resize 4000m
2、方法二
对于oracle数据库的表空间,除了用手动增加大小外,还可以增加数据文件等方式扩展表空间大小。
alter tablespace 表空间名称 add datafile '新的数据文件地址' size 数据文件大小
alter tablespace BLZK add datafile '/opt/oracle/oradata/ewell/BLZK_ADD.dbf' size 1000m
3、方法三
alter database datafile '数据文件位置' autoextend on next 自动扩展大小 maxsize 最大扩展大小
alter database datafile '/opt/oracle/oradata/ewell/BLZK_ADD.dbf' autoextend on next 100m maxsize 10000m
三、查询表空间使用情况
SELECT
a.tablespace_name,
a.bytes / 1024 / 1024 "sum MB",
( a.bytes - b.bytes ) / 1024 / 1024 "used MB",
b.bytes / 1024 / 1024 "free MB",
round( ( ( a.bytes - b.bytes ) / a.bytes ) * 100, 2 ) "used%"
FROM
( SELECT tablespace_name, sum( bytes ) bytes FROM dba_data_files GROUP BY tablespace_name ) a,
( SELECT tablespace_name, sum( bytes ) bytes, max( bytes ) largest FROM dba_free_space GROUP BY tablespace_name ) b
WHERE
a.tablespace_name = b.tablespace_name
ORDER BY
( ( a.bytes - b.bytes ) / a.bytes ) DESC;

边栏推荐
- 关于std::vector<std::string>的操作
- Driving point cloud format changes bring efficiency improvement
- 用Tesseract开发一个你自己的文字识别应用
- 【线性代数03】消元法展示以及AX=b的4种解情况
- Yolov7:Trainable bag-of-freebies sets new state-of-the-art for real-time objectdetectors
- Codeforces Round #811 (Div. 3)
- 数电快速入门(一)(BCD码和三种基本逻辑运算的介绍)
- Flutter 实现背景图片毛玻璃效果
- 热力学相关的两个定律
- openresty lua-resty-template页面静态化
猜你喜欢

如何将二叉搜索树转化为一个有序的双向链表(原树上修改)

Cocoa Application-基础

Red team kill-free development practice of simulated confrontation

How to solve the problem that the alarm information cannot be transmitted after EasyGBS is connected to the latest version of Hikvision camera?

rk3399 驱动屏参的几种方式

Why is MySQL query slow?

【线性代数02】AX=b的2种解释和矩阵乘法的5种视角

驱动点云格式修改带来的效率提升

【SQL之降龙十八掌】01——亢龙有悔:入门10题

PMP证书在哪些行业有用?
随机推荐
【CC3200AI 实验教程 1】疯壳·AI语音人脸识别(会议记录仪/人脸打卡机)-开发环境搭建
关于std::vector<std::string>的操作
stm32mp157系统移植 | 移植ST官方5.10内核到小熊派开发板
27. Dimensionality reduction
立方度量(Cubic Metric)
LeetCode 199: 二叉树的右视图
OC-协议
C language knowledge (1) - overview of C language, data types
VSCode—常用快捷键(持续记录
PowerCLi batch configuration of NTP
Qiangwang Cup 2022 - WEB
CountDownLatch使用及原理
[Linear Algebra 02] 2 interpretations of AX=b and 5 perspectives of matrix multiplication
硬件开发定制全流程解析
8 年产品经验,我总结了这些持续高效研发实践经验 · 协同篇
Moke, dynamic image resource package display
STM32MP157A驱动开发 | 01- 板载LED作为系统心跳指示灯
JWT actively checks whether the Token has expired
如何一键重装win7系统?重装win7系统详细教程
Hands-on Deep Learning_NiN