- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: When does Oracle create a new alert log?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2008 07:38 AM
тАО10-20-2008 07:38 AM
When does Oracle create a new alert log? Also how often does this happen?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2008 08:22 AM
тАО10-20-2008 08:22 AM
SolutionIf you want to trim the log you could do something like:
cp alert_MYDB.log alert_MYDB.log.old
>alert_MYDB.log
(can't remembet the exact format of the alert log name)
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2008 09:51 AM
тАО10-20-2008 09:51 AM
Re: When does Oracle create a new alert log?
No need to copy.
Just rename (mv) to a dated version.
Oracle will create a fresh version when it needs it.
Regards,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2008 10:31 PM
тАО10-20-2008 10:31 PM
Re: When does Oracle create a new alert log?
and then just empty the existing one
by
>alert
or
cat /dev/null > alert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2008 12:21 PM
тАО10-22-2008 12:21 PM
Re: When does Oracle create a new alert log?
Every sugestions you have received are accurate.
To give more details about your question, Oracle will write new records to the alert_
1. Database or instance is stopped/start
2. Log writer process switches to a new Redo Log file.
3. ARCn processes create a new archive log file (if you are using the archiver option).
4. The database structure is modified (datafile creation for example).
5. A database error condition is found.
I would suggest not to delete this file, but to keep at least a couple of months of history. This might be very useful by the time you need to get support from Oracle.
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2008 12:34 PM
тАО10-22-2008 12:34 PM
Re: When does Oracle create a new alert log?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2008 12:35 PM
тАО10-22-2008 12:35 PM
Re: When does Oracle create a new alert log?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2008 01:22 PM
тАО10-22-2008 01:22 PM
Re: When does Oracle create a new alert log?
Hmm... When you take a copy, bits might drop. Unlikely, but possible. Plus, now you have 2 copies for no good reason.
>> then just empty the existing one by
>alert
or
cat /dev/null > alert
Hmmm, that creates a time window between the copy and the 'emptying'. Not a big one, and unlikely to be relevant, but why take the risk when there is a no-effort, no-risk alternative ?
Rename ('mv', on the same disk) is pretty much a 1-disk-IO atomic operation.
It doesn't come any cleaner, faster or safer than that, does it now?!
After the rename you can copy the now idle file at your leisure. Leave it there to catch one more backup cycle and perhaps only delete it just before the next rename cycle.
2c,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-23-2008 12:40 AM
тАО10-23-2008 12:40 AM
Re: When does Oracle create a new alert log?
Thanks for your input,
will certainly consider it.