当前位置:网站首页>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;

边栏推荐
- SPSS-System Clustering Software Practice
- Unknown point cloud structure file conversion requirements
- deepstream多相机显示布局
- SPSS-System Clustering Hand Calculation Practice
- docker 部署redis集群
- Rocketchip RISC-V Debug调试硬件相关(四)hartIsInReset
- Go----Go 语言基础之标识符、关键字、命名规范、变量、常量
- 七夕特制:《牛郎会织女》
- Pinduoduo open platform order information query interface [pdd.order.basic.list.get order basic information list query interface (according to transaction time)] code docking tutorial
- LeetCode143:重排链表
猜你喜欢
随机推荐
数电快速入门(一)(BCD码和三种基本逻辑运算的介绍)
buu web
AXI interface application of Zynq Fpga image processing - the use of axi_lite interface
动手学深度学习_NiN
Domestic PMP certificate of gold content how
信创是什么意思?涉及哪些行业?为什么要发展信创?
如何将二叉搜索树转化为一个有序的双向链表(原树上修改)
Red team kill-free development practice of simulated confrontation
JWT actively checks whether the Token has expired
milvus配置相关
In which industries is the PMP certificate useful?
Exploration and Practice of Database Governance
docker 搭建mysql 主从复制
大势所趋之下的nft拍卖,未来艺术品的新赋能
buu web
Android 面试——如何写一个又好又快的日志库?
OD-Model【6】:YOLOv2
数电快速入门(五)(编码器的介绍以及通用编码器74LS148和74LS147的介绍)
未知点云结构文件转换需求
打卡第 2 天: urllib简记









