Oracle Errors收集

[b]一、ORA-01652无法通过128(在temp表空间中)扩展temp段[/b]

指temp表空间无法自动扩展temp段。一般有两种原因:一是临时表空间空间太小,二是不能自动扩展。

[b]二、ORA-01658无法为表空间中的段创建initial区[/b]

在导数据,创建表时报。主要原因是建立的表空间不够。
解决:
(1)使用oracle enterprise management console,增加表空间
表空间 > XXXX > 文件路径 > "存储"标签 > 复选"数据文件已满后自动扩展AUTOEXTEND",设定大小或者选择"自动增长"
(2)使用命令,开启datafile的自动扩展

alter database datafile '/data/oracle/dbfile.dbf' autoextend on;


查询当前数据库中所有数据文件是否为自动扩展

select tablespace_name,file_name,autoextensible from dba_data_files;


[b]三、ORA-25153 Temporary Tablespace is Empty (临时表空间为空)[/b]

原因:试图使用没有定义数据文件的临时表空间。
解决:
(1)通过通过SQL语句来确认是否存在数据文件

select name from v$tempfile;

(2)没有数据时,给TEMP tablespace 增加一个datafiles,便可解决。

alter tablespace temp add tempfile 'E:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL\temp02.dbf' size 10m autoextend on;

补充:
如果检查发现TEMP tablespace已存在data files,那么你要检查default temporary tablespace是否对all users可用。并且default temporary tablespace是有效可用的。
(1)To check the default temporary tablespace of the database:

select property_name, property_value from database_properties;

如果default temporary tablespace 设置是错误的。执行更改

alter database default temporary tablespace temp;

(2)To check default temporary tablespace for all users of the database:

select username, temporary_tablespace, account_status from dba_users;

如果发现有错误的TEMPORARY_TABLESPACE 设置,假如sys有错,执行更改

alter user sys temporary tablespace temp;

(3)重新为你的temporary tablespace 创建datafile。并且为你的数据库设置 default temporary tablespace。

drop tablespace temp including contents and datafiles;


create temporary tablespace temp tempfile ‘/db/temp01.dbf’ size 100m autoextend off extent management local uniform size 1m;


alter database default temporary tablespace temp;
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值