Unix script to avoid the 'archive directory full' error
                                                 Last update (2008-03-01 23:47:12)
                                                                                                                   Date added (2008-03-01 23:43:00)

Summary
It is therefore better to avoid getting an ORA-00257 archiver error. A monitoring event can be set in the Oracle Enterprise Manager, but here is a simple UNIX script that checks the capacity of the archive directory mount point and sends an email alert if a threshold is reached. A flag file avoids switching again.
sqlplus -s /nolog< /tmp/arcoracle.log
  mailx -s "Archive almost full" dba@mycompany.com < /tmp/arcoracle.log
  ### rm /tmp/arcoracle.log
EOF_SWITCH
  touch /tmp/already_switched
fi
Reviews
Categories
Oracle DBA-> (147)
  Alertlog (3)
  Archivelog (5)
  Auditing (1)
  Backup - Recovery (19)
  Database files (6)
  Database options (2)
  DB links (2)
  Dependencies (1)
  Dictionary (2)
  Exp-Imp Datapump (6)
  Jobs (2)
  Mview (2)
  Networking (3)
  Objects (7)
  Parameters (2)
  Redologs (6)
  Roles - Grants (2)
  Rollback - Undo (8)
  Segments (3)
  Sequences (2)
  Sessions (14)
  SGA (14)
  Tables (10)
  Tablespaces (10)
  Temp (4)
  Toad (5)
  Transactions (1)
  Upgrade (2)
  Users (3)
Oracle APPS DBA-> (66)
Exadata (1)
Performance Tuning-> (59)
Oracle Real Cases (24)
Oracle Errors (23)
Oracle SQL tricks (32)
Oracle RAC (3)
Oracle Security (8)
Filters
Search