When you exit SQLPLUS, there is no response-you cannot exit normally if you are stuck.
When you log on to the host where the database is located and use SQLPLUS to log on to the DBA, an error occurred while archiving.
[Oracle @ oel-01 ~] $ Sqlplus bys/bys
SQL * Plus: Release 11.2.0.1.0 Production on Sun Jul 21 17:55:09 2013
Copyright (c) 1982,200 9, Oracle. All rights reserved.
ERROR:
ORA-00257: archiver error. Connect internal only, until freed.
[Oracle @ oel-01 ~] $ Tail alert_bys001.log
ORA-19502: write error on file "", block number (block size =)
ORA-00312: online log 3 thread 1: '/u01/app/oracle/oradata/bys001/redo03.log'
Sun Jul 21 18:01:18 2013
ARCH: Archival stopped, error occurred. Will continue retrying
ORACLE Instance bys001-Archival Error
ORA-16014: log 3 sequence #219 not archived, no available destinations
ORA-00312: online log 3 thread 1: '/u01/app/oracle/oradata/bys001/redo03.log'
Errors in file/u01/app/oracle/diag/rdbms/bys001/bys001/trace/bys001_arc1_6050.trc:
ORA-00312: online log 3 thread 1: '/u01/app/oracle/oradata/bys001/redo03.log'
[Oracle @ oel-01 ~] $ Df-h
Filesystem Size Used Avail Use % Mounted on
/Dev/sda2 19 GB 18G 3.8 M 100%/
/Dev/sda1 99 M 21 M 74 M 22%/boot
Tmpfs 3.0G 529 M 2.5G 18%/dev/shm
/Dev/sda5 4.6G 2.6G 1.9G 58%/backup
[Oracle @ oel-01 ~] $ Rman target/
RMAN>
RMAN>
Delete archived logs before today
RMAN> delete archivelog until time 'sysdate-1 ';
You can also use
RMAN> delete archivelog all; delete all archives
[Oracle @ oel-01 ~] $ Df-h
Filesystem Size Used Avail Use % Mounted on
/Dev/sda2 19 GB 18G 588 M 97%/
/Dev/sda1 99 M 21 M 74 M 22%/boot
Tmpfs 3.0G 529 M 2.5G 18%/dev/shm
/Dev/sda5 4.6G 1.8G 2.6G 42%/backu
[Oracle @ oel-01 ~] $ Sqlplus bys/bys
SQL * Plus: Release 11.2.0.1.0 Production on Sun Jul 21 18:03:48 2013
Copyright (c) 1982,200 9, Oracle. All rights reserved.
Use SYSDBA to log on
---- It may take a long time.
System altered.
SYS @ bys001> select group #, status, archived from v $ log;
GROUP # STATUS ARC
-----------------------------
1 CURRENT NO
2 INACTIVE YES
3 ACTIVE NO
The log may be as follows:
[Oracle @ bys001 ~] $ Cat alert_bys1.log
Sat Oct 05 12:44:41 2013
Suspending MMON action 'metrics monitoring' for 82800 seconds
Sat Oct 05 12:45:10 2013
Archiver process freed from errors. No longer stopped
Sat Oct 05 12:45:14 2013
Archived Log entry 106 added for thread 1 sequence 111 ID 0xebe3b9d9 dest 1:
Krse_arc_driver_core: Successful archiving of previusly failed ORL
Sat Oct 05 12:45:14 2013
Thread 1 advanced to log sequence 114 (LGWR switch)
Current log #3 seq #114 mem #0:/u01/oradata/bys1/redo03.log
Sat Oct 05 12:45:14 2013
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Sat Oct 05 12:45:21 2013
Archived Log entry 107 added for thread 1 sequence 113 ID 0xebe3b9d9 dest 1:
Archived Log entry 108 added for thread 1 sequence 112 ID 0xebe3b9d9 dest 1:
SYS @ bys001> conn bys/bys
Connected.
BYS @ bys001> exit
BYS @ bys001> truncate table test1;
Table truncated.
The backup archiving script is as follows:
[Oracle @ oel-01 ~] $ Cat archback. sh
#! /Bin/sh
# Su-oracle
Source/home/oracle/. bash_profile
##########
/U01/app/oracle/product/11.2.0/dbhome_1/bin/rman log/home/oracle/rman-arch 'date + % Y % m % d-% H % m'. log <EOF
Connect target /;
Run {
Backup archivelog all delete input
Format '/backup/archlog/arch _ % d _ % T _ % s ';
}
Exit