温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

Oracle表空间切换路径,解决硬盘满导致的ORA-01653问题

发布时间:2020-08-13 22:59:03 来源:ITPUB博客 阅读:173 作者:neverinit 栏目:关系型数据库

问题


ORA-1653: unable to extend table CAMS_CORE.BP_E_JOURNAL_DATA by 128 in                 tablespace CAMS_CORE_TAB
ORA-1653: unable to extend table CAMS_CORE.BP_E_JOURNAL_DATA by 1024 in                 tablespace CAMS_CORE_TAB

解决方案


查看表空间文件大小及路径
select * from dba_data_files;
将部分表空间offline
alter tablespace CAMS_CORE_TAB offline;
alter tablespace CAMS_CORE_IDX offline;
alter tablespace CAMS_CORE_LOB offline;
创建临时存放表空间文件的路径
mkdir -p /app/oracle/tablespace/
mv /home/oracle/cams/tablespace/CAMS_CORE_*.dbf /app/oracle/tablespace/
修改表空间的路径
alter tablespace CAMS_CORE_IDX rename datafile '/home/oracle/cams/tablespace/CAMS_CORE_IDX_001.dbf' to '/app/oracle/tablespace/CAMS_CORE_IDX_001.dbf';
alter tablespace CAMS_CORE_LOB rename datafile '/home/oracle/cams/tablespace/CAMS_CORE_LOB_001.dbf' to '/app/oracle/tablespace/CAMS_CORE_LOB_001.dbf';
alter tablespace CAMS_CORE_TAB rename datafile '/home/oracle/cams/tablespace/CAMS_CORE_TAB_001.dbf' to '/app/oracle/tablespace/CAMS_CORE_TAB_001.dbf';
将相关表空间online
alter tablespace CAMS_CORE_TAB online;
alter tablespace CAMS_CORE_IDX online;
alter tablespace CAMS_CORE_LOB online;
查看表空间最新路径
select * from dba_data_files;

结果图片 **
Oracle表空间切换路径,解决硬盘满导致的ORA-01653问题

经过验证,应用程序恢复正常,数据库恢复正常!

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI