今天上午同事说210的库用户不能登陆,我登陆时除了sys可以登陆其他用户确实不能登陆上。

[oracle@moedb210 ~]$ sqlplus moe

SQL*Plus: Release 10.2.0.4.0 - Production on Tue Dec 21 10:07:37 2010

Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.

Enter password:
ERROR:
ORA-00257: archiver error. Connect internal only, until freed.

有个报错,好的,我去查看。

[oracle@moedb210 bdump]$ tail -n 200 alert_moe210.log

Tue Dec 21 10:03:31 2010
Errors in file /u01/app/oracle/admin/moe210/bdump/moe210_arc0_2755.trc:
ORA-19815: WARNING: db_recovery_file_dest_size of 2147483648 bytes is 100.00% used, and has 0 remaining bytes available.
Tue Dec 21 10:03:31 2010
************************************************************************
You have following choices to free up space from flash recovery area:
1. Consider changing RMAN RETENTION POLICY. If you are using Data Guard,
   then consider changing RMAN ARCHIVELOG DELETION POLICY.
2. Back up files to tertiary device such as tape using RMAN
   BACKUP RECOVERY AREA command.
3. Add disk space and increase db_recovery_file_dest_size parameter to
   reflect the new space.
4. Delete unnecessary files using RMAN DELETE command. If an operating
   system command was used to delete files, then use RMAN CROSSCHECK and
   DELETE EXPIRED commands.
************************************************************************
ARCH: Archival stopped, error occurred. Will continue retrying
Tue Dec 21 10:03:31 2010
ORACLE Instance moe210 - Archival Error

原来是db_recovery_file_dest_size 空间占满,删除部分无用的归档就可以了。

执行rman> delete archivelog until time 'sysdate-1' ;

删除不需要的archive log文件。一切OK。