[oracle-l] Re: How to get unique value using AWK?
- From: DENNIS WILLIAMS <DWILLIAMS@xxxxxxxxxxxxx>
- To: "'ORACLE-L@xxxxxxxxxxx'" <ORACLE-L@xxxxxxxxxxx>,"'oracle-l@xxxxxxxxxxxxx'" <oracle-l@xxxxxxxxxxxxx>
- Date: Thu, 22 Jan 2004 10:47:28 -0600
Reminder to post to freelists.org per Jared - I'm crossposting this reply.
Jay
Pipe your output to sort, then uniq.
grep -i WAIT devdb1_ora_989.trc_orig|awk '{print $3" " $4 " " $5 "
"$6}'|sort|uniq
Dennis Williams
DBA
Lifetouch, Inc.
dwilliams@xxxxxxxxxxxxx
-----Original Message-----
From: jaysingh1@xxxxxxxxxxxxx [mailto:jaysingh1@xxxxxxxxxxxxx]
Sent: Thursday, January 22, 2004 10:09 AM
To: Multiple recipients of list ORACLE-L
Subject: How to get unique value using AWK?
Hi All,
My manager wants to get all the unique wait events from the trace file.
I tried the below but how do i get DISTICT wait event name?
Any help would be really appreciated.
$ grep -i WAIT devdb1_ora_989.trc_orig|awk '{print $3" " $4 " " $5 "
"$6}'|more
nam='SQL*Net message to client'
nam='SQL*Net message from client'
nam='library cache lock' ela=
nam='SQL*Net message to client'
nam='SQL*Net message from client'
nam='SQL*Net message to client'
nam='SQL*Net message from client'
nam='SQL*Net message to client'
nam='SQL*Net message from client'
nam='SQL*Net message to client'
nam='SQL*Net message from client'
nam='SQL*Net message to client'
nam='SQL*Net message from client'
nam='SQL*Net message to client'
Thanks
Jay
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author:
INET: jaysingh1@xxxxxxxxxxxxx
Fat City Network Services -- 858-538-5051 http://www.fatcity.com
San Diego, California -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru@xxxxxxxxxxx (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
Other related posts:
- » [oracle-l] Re: How to get unique value using AWK?