- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to grep all ORA messages but exclude ORA-1128 ...
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
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
тАО11-29-2017 08:50 PM
тАО11-29-2017 08:50 PM
How to grep all ORA messages but exclude ORA-1128 & 1140 ?
How to grep all ORA messages but exclude ORA-1128 and ORA-1140 ?
I have tried:
egrep "ALTER|-v SYSTEM" /... /alert.log > /.../output.log
but it didn't work.
Any idea?
- Tags:
- grep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-29-2017 09:55 PM
тАО11-29-2017 09:55 PM
Re: How to grep all ORA messages but exclude ORA-1128 & 1140 ?
> How to grep all ORA messages but exclude ORA-1128 and ORA-1140 ?
It might help (some of us) if you posted a small excerpt of the file
with the messages in it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2017 05:32 AM
тАО11-30-2017 05:32 AM
Re: How to grep all ORA messages but exclude ORA-1128 & 1140 ?
ORA-1128 and ORA-1140 aren't valid error codes.
Perhaps you mean ORA-01128 and ORA-01140?
If so, try this:
egrep -e ORA-01128 -e ORA-01140 location_and_name_of_your_alert_log > output_filename
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-03-2017 06:31 PM
тАО12-03-2017 06:31 PM
Re: How to grep all ORA messages but exclude ORA-1128 & 1140 ?
> egrep "ALTER|-v SYSTEM" /... /alert.log > /.../output.log
No need for egrep.
You could use a two stage pipeline, where the first picks all and the second excludes:
grep "ALTER|-v SYSTEM" /... /alert.log | grep -v -e ORA-1128 -e ORA-1140 > /.../output.log