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

边栏推荐
- PRIMAL: Pathfinding via Reinforcement and Imitation Multi-Agent Learning Code Analysis
- Rocketchip RISC-V Debug调试硬件相关(四)hartIsInReset
- unity2D横版游戏教程9-对话框dialog
- docker 部署redis集群
- UDP communication
- 立即升级!WPS Office 出现 0day 高危安全漏洞:可完全接管系统,官方推出紧急更新
- 打卡第 2 天: urllib简记
- webmine网页挖矿木马分析与处置
- 27.降维
- 【SQL之降龙十八掌】01——亢龙有悔:入门10题
猜你喜欢

数电快速入门(五)(编码器的介绍以及通用编码器74LS148和74LS147的介绍)

Win11如何开启Telnet客户端?

数字重塑客观世界,全空间GIS发展正当其时

国内的PMP证书含金量到底如何

Ramnit感染型病毒分析与处置

y87.第五章 分布式链路追踪系统 -- 分布式链路追踪系统起源(一)

Yolov7:Trainable bag-of-freebies sets new state-of-the-art for real-time objectdetectors

AXI interface application of Zynq Fpga image processing - the use of axi_lite interface

ue unreal 虚幻 高分辨率无缩放 编辑器字太小 调整编辑器整体缩放

ROS packages visualization
随机推荐
[larave]关于laravel使用form submit()不能获取值问题
【线性代数03】消元法展示以及AX=b的4种解情况
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
数字重塑客观世界,全空间GIS发展正当其时
Android 面试——如何写一个又好又快的日志库?
数电快速入门(三)(卡诺图化简法的介绍)
大势所趋之下的nft拍卖,未来艺术品的新赋能
动手学深度学习_NiN
C语言知识大全(一)——C语言概述,数据类型
JWT actively checks whether the Token has expired
国际项目管理师PMP证书,值得考嘛?
[Linear Algebra 03] Elimination method display and 4 solutions of AX=b
Spss-一元回归实操
零基础都能拿捏的七夕浪漫代码,快去表白或去制造惊喜吧
如何根据“前序遍历,中序遍历”,“中序遍历,后序遍历”构建按二叉树
Some problems with passing parameters of meta and params in routing (can be passed but not passed, empty, collocation, click to pass multiple parameters to report an error)
国内的PMP证书含金量到底如何
PRIMAL: Pathfinding via Reinforcement and Imitation Multi-Agent Learning Code Analysis
强网杯2022——WEB
Win11如何设置软件快捷方式?