Schedule script is not executing some times

 
Thread Tools Search this Thread
Special Forums Windows & DOS: Issues & Discussions Schedule script is not executing some times
# 8  
Old 05-21-2012
can you post the sample log lines

otherwise, i cant help you
# 9  
Old 05-21-2012
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 
Mohammed Fareed
# 10  
Old 05-21-2012
in the old code, i didnt use the

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

# 11  
Old 05-21-2012
I want to use this both the condition in the script "shutdown" & Terminating Instance".
Mohammed Fareed
# 12  
Old 05-21-2012
Code:
 
IF InStr(FileText,"shutdown") Then
IF Instr(FileText,"terminating instance") Then
...........
..........
..........
End IF
End IF

# 13  
Old 05-21-2012
Thanks for update.
given conditions are placed in the script but its not filtering the words "Shutdown" & "terminated Instance" please suggest.
Mohammed Fareed
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Script is not executing as expected when I schedule it in cron

Hi, I have a shell script which fetches the MRP status and the LAG status. When I execute it manually like, sh <script_name>, it fetches the output as expected, but when I schedule through crontab, it's not working as expected. Any help would be really appreciated. Here is the code... (3 Replies)
Discussion started by: Nagaraj R
3 Replies

2. UNIX for Dummies Questions & Answers

Schedule the Script

I have wriiten one script to get some results from log files. Daily I have to run the script using the below command to get the output. What I need is, Can I schedule the Script to execute once every day at a particular Time and get the output by mail automatically? I heard about 'cron job' . .... (3 Replies)
Discussion started by: Padmanabhan
3 Replies

3. Shell Programming and Scripting

Schedule tasks in shell script

shell=ksh, How could I schedule tasks in shell script INSTEAD OF using the crontab -e functionality? For example, I want a script to print "Hello World" every 10 seconds (i.e., INTERVAL = 10s) until external termination signal is triggered. Thanks, (2 Replies)
Discussion started by: isaacniu
2 Replies

4. Shell Programming and Scripting

Cron to schedule job at different times

Hi, I want to run cron scheduler to run some script at different times of the day.But these times don't have some fix intervals. So how we can run jobs at 6:30AM, 1:00PM and 4:30PM everyday. Please help. Thanks Neeraj (2 Replies)
Discussion started by: apjneeraj
2 Replies

5. UNIX for Dummies Questions & Answers

Best way to schedule script to run Ubuntu 10.04

On Ubuntu 10.04 LTS, I would like to know the best way to schedule myscript.sh to run at a specified time, please provide examples and specify things like does cron have to be running, how do I check if cron is running and all that. I have tried unsuccessfully in the past to run the AT command,... (1 Reply)
Discussion started by: glev2005
1 Replies

6. Shell Programming and Scripting

How to schedule a script in crontab.

Hi, My script is in $home/bin/sample.sh. I want to run the script for 3times a day, first execution will be at 08:00 am. second execution will be at 16:00 pm third will be at 23:59 pm. what will be the entry with this requirement?? (1 Reply)
Discussion started by: shrima.pratima
1 Replies

7. Shell Programming and Scripting

How to schedule my script without crontab

I have a script which shoud run after every 30 minutes.Though I know abt crontab, unfortunately I dont have access/authorization to use crontab in my terminal. Could any one pls let me know how to schedule the script without crontab ? Regards Prashant:) (3 Replies)
Discussion started by: prashant43
3 Replies

8. Shell Programming and Scripting

Script Schedule Scrutiny

Hi All, Here's one that may belong in the Scripting Thread but I thought I'd start off here. Here's the scenario:- I have to transfer the functionality and data from an old E450 to a nice new Sun V440. The E450 contains a bunch of scripts which may or may not still be in use daily,... (2 Replies)
Discussion started by: geralex2
2 Replies

9. Shell Programming and Scripting

Schedule a script to check mail?

Hi, I'd like to somehow schedule a task on my webserver, such that my account's mail is checked every 10-15 minutes and: a) any new e-mails received from a particular address are POST-ed to a PHP webpage on my server. b) any new e-mails received from a different particular address are... (2 Replies)
Discussion started by: stujones
2 Replies

10. Shell Programming and Scripting

How can I schedule a script on Solaris?

How can I schedule a script on Solaris? (3 Replies)
Discussion started by: krikets
3 Replies
Login or Register to Ask a Question