Go Back   The UNIX and Linux Forums > Special Forums > Windows & DOS: Issues & Discussions


Windows & DOS: Issues & Discussions All Windows and DOS questions should go here as well. Discuss UNIX to Windows (Desktop or Server) here!

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #8  
Old 05-21-2012
itkamaraj's Avatar
^Kamaraj^
 
Join Date: Apr 2010
Posts: 3,025
Thanks: 33
Thanked 647 Times in 625 Posts
can you post the sample log lines

otherwise, i cant help you
Sponsored Links
    #9  
Old 05-21-2012
Users Awaiting Email Confirmation
 
Join Date: Mar 2012
Posts: 57
Thanks: 6
Thanked 0 Times in 0 Posts
Condition 1:-For Shutdown
PHP Code:
Mon Apr 30 17:52:16 2012
Completed
ALTER DATABASE DISMOUNT
ARCH
Archiving is disabled
Shutting down archive processes
Archiving is disabled
Archive process shutdown avoided
0 active
ARCH
Archiving is disabled
Shutting down archive processes
Archiving is disabled
Archive process shutdown avoided
0 active
Mon Apr 30 18
:00:18 2012 
Condition 2 Instance terminated:-
PHP Code:
KCFwrite/open error block=0x440 online=1
     file
=2 X:\ORACLE\ORADATA\XXXX\UNDOTBS01.DBF
     error
=27070 txt'OSD-04016: Error queuing an asynchronous I/O request.
O/S-Error: (OS 33) The process cannot access the file because another process has locked a portion of the file.'
Fri May 18 11:28:00 2012
Errors in file X
:\oracle\admin\XXXx\bdump\XXX_dbw0_5728.trc:
ORA-01242data file suffered media failuredatabase in NOARCHIVELOG mode
ORA
-01114IO error writing block to file 2 (block # 1088)
ORA-01110data file 2'X:\ORACLE\ORADATA\XXX\UNDOTBS01.DBF'
ORA-27070skgfdispasync read/write failed
OSD
-04016Error queuing an asynchronous I/O request.
O/S-Error: (OS 33The process cannot access the file because another process has locked a portion of the file.
DBW0terminating instance due to error 1242
Instance terminated by DBW0
pid 5728 
Sponsored Links
    #10  
Old 05-21-2012
itkamaraj's Avatar
^Kamaraj^
 
Join Date: Apr 2010
Posts: 3,025
Thanks: 33
Thanked 647 Times in 625 Posts
in the old code, i didnt use the


Code:
 
IF InStr(FileText,"shutdown") or Instr(FileText,"terminating instance") Then

    #11  
Old 05-21-2012
Users Awaiting Email Confirmation
 
Join Date: Mar 2012
Posts: 57
Thanks: 6
Thanked 0 Times in 0 Posts
I want to use this both the condition in the script "shutdown" & Terminating Instance".
Sponsored Links
    #12  
Old 05-21-2012
itkamaraj's Avatar
^Kamaraj^
 
Join Date: Apr 2010
Posts: 3,025
Thanks: 33
Thanked 647 Times in 625 Posts

Code:
 
IF InStr(FileText,"shutdown") Then
IF Instr(FileText,"terminating instance") Then
...........
..........
..........
End IF
End IF

Sponsored Links
    #13  
Old 05-21-2012
Users Awaiting Email Confirmation
 
Join Date: Mar 2012
Posts: 57
Thanks: 6
Thanked 0 Times in 0 Posts
Thanks for update.
given conditions are placed in the script but its not filtering the words "Shutdown" & "terminated Instance" please suggest.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Cron to schedule job at different times apjneeraj Shell Programming and Scripting 2 05-24-2011 08:08 AM
Best way to schedule script to run Ubuntu 10.04 glev2005 UNIX for Dummies Questions & Answers 1 02-04-2011 12:42 PM
Schedule a script to run at 10am from mon to fri firestar Shell Programming and Scripting 7 01-21-2011 12:24 PM
How to schedule my script without crontab prashant43 Shell Programming and Scripting 3 06-08-2009 11:49 AM
Script Schedule Scrutiny geralex2 Shell Programming and Scripting 2 08-29-2006 03:52 AM



All times are GMT -4. The time now is 09:36 AM.