Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delete old DB logs

Status
Not open for further replies.

TSch

Technical User
Jul 12, 2001
557
DE
Hi folks,

currently we're using the following commands in a script to get rid of old DB logs:

Code:
find /usr/oracle/DB/flash_recovery_area/DB/archivelog/ -name *.arc -mtime +2 -exec rm {} \;
su - oracle -c /usr/oracle/cleanlogs

However ... I was wondering if this is the correct approach to this or if there's an official way using DB tools or DB settings to accomplish the same ...

Any ideas ?

Regards
Thomas
 

You should back them up with RMAN and let RMAN remove the logs. In fact you should use RMAN for database backups.
[3eyes]

----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top