"景先生毕设|www.jxszl.com

数据库问题ORA-01652解决办法

2022-12-14 12:36编辑: www.jxszl.com景先生毕设
oracle常见错误_ORA-01652:无法通过128(在表空间TEMP中)扩展temp段解决办法

一、ORA-01652产生原因:1.ORACLE临时段表空间不足
                                  2.临时表空间不是自动增长
二、解决办法
1.查看临时表空间所在位置和是否可以扩展(默认是可以扩展)
select d.file_name,d.tablespace_name,d.autoextensible from dba_temp_files d;
  1.1 如果不可以扩展,修改成可以扩展
 
  alter database datafile 'F:\51jrft.com01.ORA' autoextend on;  -- F:\51jrft.com01.ORA 为 file_name 的值

2.增加temp空间临时文件大小
alter tablespace TEMP add tempfile ''F:\51jrft.com02.ORA'' resize 4000m;
 -- F:\51jrft.com01.ORA 修改成 F:\51jrft.com02.ORA


三、表空间问题(ORA-01652)相关sql
---- 查看表空间
select* from dba_tablespaces;
---- 查看表空间细节
select tablespace_name,file_name,bytes/1024/1024 file_size,autoextensible from dba_data_files;
select tablespace_name,file_name,bytes/1024/1024 file_size,autoextensible from dba_temp_file;
---- 查看用户表空间信息
select username,temporary_tablespace,default_tablespace from dba_users;
---- 修改表空间为自动扩展
alter database tempfile '/Oracle11R2/oradata/PMPTGDB/worktmp.dbf' autoextend on next 100m maxsize unlimited;
原文链接:http://www.jxszl.com/biancheng/shujuku/84284.html