1.ORA-24324:
错误描述:
[sql]
SQL> shutdown immediate;
ORA-24324: service handle not initialized
ORA-24323: value not allowed
ORA-01089: immediate shutdown in progress - no operations are permitted
错误解决办法:
[sql]
A、 切换到root用户下,杀掉oracle相关的进程:
root> ps -ef|grep $ORACLE_SID|grep -v grep|awk '{print $2}'|xargs -i kill -9
B、 用ipcs指令来检查数据库占用的内存:
root> ipcs –m
IPC status from /dev/kmem as of Mon Sep 10 16:45:16 2001
T ID KEY MODE OWNER GROUP SEGSZ CPID LPID
Shared Memory:
m 24064 0x4cb0be18 --rw-r----- oracle dba 28975104 1836 23847
m 1 0x4e040002 --rw-rw-rw- root root 31008 572 572
m 2 0x411ca945 --rw-rw-rw- root root 8192 572 584
m 4611 0x0c6629c9 --rw-r----- root root 7216716 1346 23981
m 4 0x06347849 --rw-rw-rw- root root 77384 1346 1361
C、用ipcrm命令释放掉数据库占用的内存:
root> ipcrm -m 24064
D、进入sqlplus重新启动数据库实例
2.常见的表空间不足,需要扩展表空间:
错误描述:
********表空间不足等
错误解决办法:
[sql]
alter tablespace SYSTEM add datafile '/ora/oracle/app/oracle/cbsdb164/system17.dbf' size 200m;
3.undo日志过大
错误描述:
当空间不够,没有东西可以删,只能通过重建undo日志
错误解决办法:
[sql]
1. 新增一个undo tablespace.
SQL> create undo tablespace UNDOTBS2 datafile '/opt/oracle/oradata/undotbs001.dbf' size 2048M extent management local;
Tablespace created.
SQL>
2. 设置使用新增的undo tablespace.
SQL> alter system set undo_tablespace=UNDOTBS2 scope=both;
System altered.
SQL>
3. 删除。
SQL> drop tablespace UNDOTBS1 including contents and datafiles cascade constraints;
Tablespace dropped.
SQL>
4. 重建
SQL> create undo tablespace UNDOTBS1 DATAFILE '/opt/oracle/oradata/undotbs01.dbf' SIZE 3048M EXTENT MANAGEMENT LOCAL;
Tablespace created.
SQL>
5. 设置使用新的
SQL> alter system set undo_tablespace=UNDOTBS1 scope=both;
System altered.
SQL>
6. 删除临时undo tablespace.
SQL> drop tablespace UNDOTBS2 including contents and datafiles cascade constraints;
Tablespace dropped.
转载地址:http://soft.chinabyte.com/database/84/12620584.shtml