Oracle linux 根目录被撑爆dbf文件迁移解决方案

本文介绍了当Oracle Linux根目录空间不足时,如何迁移dbf文件以释放空间。通过一系列的SQL命令,包括离线数据文件、重命名、恢复和打开数据库等操作,成功将example01.dbf文件从/new目录迁移到/helowin目录,并确保数据库正常运行。

[oracle@13cd2bf6fbf3 helowin]$ cp /home/oracle/app/oracle/oradata/new/example01.dbf /home/oracle/app/oracle/oradata/helowin/
[oracle@13cd2bf6fbf3 helowin]$ rm /home/oracle/app/oracle/oradata/new/example01.dbf
[oracle@13cd2bf6fbf3 helowin]$ touch /home/oracle/app/oracle/oradata/new/example01.dbf
[oracle@13cd2bf6fbf3 helowin]$ chmod 777 /home/oracle/app/oracle/oradata/new/example01.dbf
[oracle@13cd2bf6fbf3 helowin]$ sqlplus /nolog

SQL*Plus: Release 11.2.0.1.0 Production on Tue Jun 29 16:56:25 2021

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

SQL> conn /as sysdba
Connected.
SQL> shutdown immediate;
ORA-01115: IO error reading block from file 5 (block # 1)
ORA-01110: data file 5: '/home/oracle/app/oracle/oradata/new/example01.dbf'
ORA-27072: File I/O error
Additional information: 4
Additional information: 1
SQL> alter database datafile 5 offline drop;

Database altered.

SQL>

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值