Hello ALL:
I need to use powershell to loop through all root nodes, and in each root search for type='INCEDENT_ERROR'.
Would you guide me how to start with powershell.
Thank you very much.
-andy
----------------------------------
Here is input sample.
<msg time='2010-04-02T19:26:28.468-07:00' org_id='oracle' comp_id='rdbms'
client_id='' type='UNKNOWN' level='16'
host_id='SCRDCPKRNDB01C' host_addr='192.168.0.171' module='sqlplus.exe'
pid='4760' version='1'>
<txt>ALTER SYSTEM SET diagnostic_dest='J:\ORACLE' SCOPE=BOTH;
</txt>
</msg>
<msg time='2010-04-02T19:44:50.972-07:00' org_id='oracle' comp_id='rdbms'
msg_id='ksb_shut_detached_process:2876:3107995654' client_id='' type='NOTIFICATION'
group='process end' level='16' host_id='SCRDCPKRNDB01C'
host_addr='192.168.0.171' module='sqlplus.exe' pid='4760'>
<txt>Stopping background process MMON
</txt>
</msg>
<msg time='2010-08-25T19:02:54.315-07:00' org_id='oracle' comp_id='rdbms'
msg_id='1257497642' type='INCIDENT_ERROR' group='Out of Memory'
level='1' host_id='SCRDCPKRNDB01C' host_addr='192.168.0.171'
prob_key='ORA 4031' upstream_comp='' downstream_comp='KGH'
ecid='' errid='691650' detail_path='J:\ORACLE\diag\rdbms\wfcprod\wfcprod\trace\wfcprod_m001_1000.trc'>
<attr name='IMPACT' value='POSSIBLE INSTANCE FAILURE'/>
<txt>Errors in file J:\ORACLE\diag\rdbms\wfcprod\wfcprod\trace\wfcprod_m001_1000.trc (incident=691650):
ORA-04031: unable to allocate 3936 bytes of shared memory ("shared pool","insert into WRH$_RSRC_CONSUM...","sga heap(2,0)","kglsim object batch"
</txt>
</msg>
I need to use powershell to loop through all root nodes, and in each root search for type='INCEDENT_ERROR'.
Would you guide me how to start with powershell.
Thank you very much.
-andy
----------------------------------
Here is input sample.
<msg time='2010-04-02T19:26:28.468-07:00' org_id='oracle' comp_id='rdbms'
client_id='' type='UNKNOWN' level='16'
host_id='SCRDCPKRNDB01C' host_addr='192.168.0.171' module='sqlplus.exe'
pid='4760' version='1'>
<txt>ALTER SYSTEM SET diagnostic_dest='J:\ORACLE' SCOPE=BOTH;
</txt>
</msg>
<msg time='2010-04-02T19:44:50.972-07:00' org_id='oracle' comp_id='rdbms'
msg_id='ksb_shut_detached_process:2876:3107995654' client_id='' type='NOTIFICATION'
group='process end' level='16' host_id='SCRDCPKRNDB01C'
host_addr='192.168.0.171' module='sqlplus.exe' pid='4760'>
<txt>Stopping background process MMON
</txt>
</msg>
<msg time='2010-08-25T19:02:54.315-07:00' org_id='oracle' comp_id='rdbms'
msg_id='1257497642' type='INCIDENT_ERROR' group='Out of Memory'
level='1' host_id='SCRDCPKRNDB01C' host_addr='192.168.0.171'
prob_key='ORA 4031' upstream_comp='' downstream_comp='KGH'
ecid='' errid='691650' detail_path='J:\ORACLE\diag\rdbms\wfcprod\wfcprod\trace\wfcprod_m001_1000.trc'>
<attr name='IMPACT' value='POSSIBLE INSTANCE FAILURE'/>
<txt>Errors in file J:\ORACLE\diag\rdbms\wfcprod\wfcprod\trace\wfcprod_m001_1000.trc (incident=691650):
ORA-04031: unable to allocate 3936 bytes of shared memory ("shared pool","insert into WRH$_RSRC_CONSUM...","sga heap(2,0)","kglsim object batch"
</txt>
</msg>