RE: How to get unique value using AWK?

2004-01-22 Thread Simpson, Ken
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On 
 Behalf Of [EMAIL PROTECTED]
 Sent: Thursday, January 22, 2004 11: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
 

How about piping it through uniq? 

$ grep -i WAIT devdb1_ora_989.trc_orig|awk '{print $3  $4   $5 
$6}'| uniq
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Simpson, Ken
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).


RE: How to get unique value using AWK?

2004-01-22 Thread Jamadagni, Rajendra
pipe it through uniq

Raj

Rajendra dot Jamadagni at nospamespn dot com
All Views expressed in this email are strictly personal.
QOTD: Any clod can have facts, having an opinion is an art !


-Original Message-
Sent: Thursday, January 22, 2004 11:09 AM
To: Multiple recipients of list ORACLE-L


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: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).

**
This e-mail message is confidential, intended only for the named recipient(s) above 
and may contain information that is privileged, attorney work product or exempt from 
disclosure under applicable law. If you have received this message in error, or are 
not the named recipient(s), please immediately notify corporate MIS at (860) 766-2000 
and delete this e-mail message from your computer, Thank you.
**4
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Jamadagni, Rajendra
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).


Re: How to get unique value using AWK?

2004-01-22 Thread Mladen Gogala
There is much improved version of awk called perl
and it has something called hashes. Code snippet would
look something like this:
my %Godot;

while (} {
 chomp;
 if (/\'([^\']+)/ {
next if  exists $Godot{$1};
$Godot{$1}=undef;
 }
}
foreach (sort keys %Godot) {
 print $_\n;
}
On 01/22/2004 11:09:26 AM, [EMAIL PROTECTED] wrote:
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: [EMAIL PROTECTED]
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: [EMAIL PROTECTED] (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).
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Mladen Gogala
 INET: [EMAIL PROTECTED]
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: [EMAIL PROTECTED] (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).


RE: How to get unique value using AWK?

2004-01-22 Thread Ed
On Thu, 2004-01-22 at 10:34, Simpson, Ken wrote:

 How about piping it through uniq? 

uniq normally assumes the input is sorted.  See my other response.

Best,

-- 
Edward Simmonds RHCE, OCP
- Real men don't send html email.

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Ed
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).


RE: How to get unique value using AWK?

2004-01-22 Thread Nikhil Khimani
Try this ...

$ grep -i WAIT devdb1_ora_989.trc_orig|awk '{print $3  $4   $5  $6}'|
sort -u

Thanks,
 
Nikhil


-Original Message-
Sent: Thursday, January 22, 2004 11:09 AM
To: Multiple recipients of list ORACLE-L


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: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Nikhil Khimani
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).


RE: How to get unique value using AWK?

2004-01-22 Thread Bellow, Bambi
uniq is not ubiq.  If uniq doesn't do it for you, do sort -u



-Original Message-
Sent: Thursday, January 22, 2004 10:34 AM
To: Multiple recipients of list ORACLE-L


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On 
 Behalf Of [EMAIL PROTECTED]
 Sent: Thursday, January 22, 2004 11: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
 

How about piping it through uniq? 

$ grep -i WAIT devdb1_ora_989.trc_orig|awk '{print $3  $4   $5 
$6}'| uniq
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Simpson, Ken
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Bellow, Bambi
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).


RE: How to get unique value using AWK?

2004-01-22 Thread Kirtikumar Deshpande
Why not process the trace file with 9i tkprof? 
It will nicely summarize the wait times for those events. 
After seeing those unique wait events, your boss may ask for the wait times next!!  Be 
proactive
:) 

- Kirti 



--- Simpson, Ken [EMAIL PROTECTED] wrote:
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On 
  Behalf Of [EMAIL PROTECTED]
  Sent: Thursday, January 22, 2004 11: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
  
 
 How about piping it through uniq? 
 
 $ grep -i WAIT devdb1_ora_989.trc_orig|awk '{print $3  $4   $5 
 $6}'| uniq
 -- 
 Please see the official ORACLE-L FAQ: http://www.orafaq.net
 -- 
 Author: Simpson, Ken
   INET: [EMAIL PROTECTED]


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Kirtikumar Deshpande
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).


Re: How to get unique value using AWK?

2004-01-22 Thread Mladen Gogala
On 01/22/2004 12:04:35 PM, Bellow, Bambi wrote:
uniq is not ubiq.  If uniq doesn't do it for you, do sort -u
Why would you things that way when you can do them in perl?
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Mladen Gogala
 INET: [EMAIL PROTECTED]
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: [EMAIL PROTECTED] (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).


Re: How to get unique value using AWK?

2004-01-22 Thread Ed

On Thu, 2004-01-22 at 10:09, [EMAIL PROTECTED] wrote:
 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}'
| sort | uniq -c

Or something similar should work.


-- 
Edward Simmonds RHCE, OCP
- Real men don't send html email.

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Ed
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).


Re: How to get unique value using AWK?

2004-01-22 Thread dhill
Jay -

Try:

$ grep -i WAIT devdb1_ora_989.trc_orig|awk '{print $3  $4   $5  $6}' |
sort | uniq | more

HTH,
Dave


 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: [EMAIL PROTECTED]
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).


RE: How to get unique value using AWK?

2004-01-22 Thread Bellow, Bambi
That goes both ways, my friend.  :)


-Original Message-
Sent: Thursday, January 22, 2004 11:40 AM
To: Multiple recipients of list ORACLE-L


On 01/22/2004 12:04:35 PM, Bellow, Bambi wrote:
 uniq is not ubiq.  If uniq doesn't do it for you, do sort -u

Why would you things that way when you can do them in perl?
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Mladen Gogala
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Bellow, Bambi
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).


Re: RE: How to get unique value using AWK?[CLOSED]

2004-01-22 Thread jaysingh1
Thanks Kirti and everyone who responded.
This forum is really great.

- Original Message -
Date: Thursday, January 22, 2004 12:14 pm

 Why not process the trace file with 9i tkprof? 
 It will nicely summarize the wait times for those events. 
 After seeing those unique wait events, your boss may ask for the 
 wait times next!!  Be proactive
 :) 
 
 - Kirti 
 
 
 
 --- Simpson, Ken [EMAIL PROTECTED] wrote:
   -Original Message-
   From: [EMAIL PROTECTED] [EMAIL PROTECTED] On 
   Behalf Of [EMAIL PROTECTED]
   Sent: Thursday, January 22, 2004 11: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
   
  
  How about piping it through uniq? 
  
  $ grep -i WAIT devdb1_ora_989.trc_orig|awk '{print $3  $4   
 $5 
  $6}'| uniq
  -- 
  Please see the official ORACLE-L FAQ: http://www.orafaq.net
  -- 
  Author: Simpson, Ken
INET: [EMAIL PROTECTED]
 
 
 __
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free web site building tool. Try it!
 http://webhosting.yahoo.com/ps/sb/
 -- 
 Please see the official ORACLE-L FAQ: http://www.orafaq.net
 -- 
 Author: Kirtikumar Deshpande
  INET: [EMAIL PROTECTED]
 
 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: [EMAIL PROTECTED] (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).
 

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).


RE: How to get unique value using AWK?

2004-01-22 Thread DENNIS WILLIAMS
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.
[EMAIL PROTECTED] 

-Original Message-
Sent: Thursday, January 22, 2004 10:09 AM
To: Multiple recipients of list ORACLE-L


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: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: DENNIS WILLIAMS
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).


Re: How to get unique value using AWK?

2004-01-22 Thread Jared . Still

And please notice that no sorting of the input is required, unlike awk|sort|uniq

Jared








Mladen Gogala [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
01/22/2004 08:54 AM
Please respond to ORACLE-L


To:Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
cc:
Subject:Re: How to get unique value using AWK?


There is much improved version of awk called perl
and it has something called hashes. Code snippet would
look something like this:

my %Godot;

while (} {
 chomp;
 if (/\'([^\']+)/ {
   next if exists $Godot{$1};
   $Godot{$1}=undef;
 }
}
foreach (sort keys %Godot) {
 print $_\n;
}


On 01/22/2004 11:09:26 AM, [EMAIL PROTECTED] wrote:
 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: [EMAIL PROTECTED]
 
 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: [EMAIL PROTECTED] (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).
 
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Mladen Gogala
 INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).