Solved

Reg : DB Jobs

Posted on 2008-06-17
5
518 Views
Last Modified: 2013-12-19
Hi

Good Evening

I have faced an issue with db job while we migrate WebMethods6.1 to Webmethods 6.5. When we try to run the db migration scripts. we had db lock on wmlog table. The job also running in the same schema which does the cleanup activity. The job suppose to run at everyday 5 AM. But,we executed the scripts in 7:15 Pm

I would like know the magic behind how the job has been initiated automatically. when shutdown and start the system.

Also, our system doesn't enabled with sql_trace,audit_trace

Please find hereunder the trace file for your kind perusal and advice.

Oracle9i Enterprise Edition Release 9.2.0.7.0 - 64bit Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.7.0 - Production
ORACLE_HOME = /ora/920
System name:    AIX
Node name:      sss
Release:        3
Version:        5
Machine:        00C6E13E4C00
Instance name: webm
Redo thread mounted by this instance: 1
Oracle process number: 18
Unix process pid: 2936954, image: oracle@sss (J001)

*** SESSION ID:(23.1) 2008-06-14 10:42:55.143
OPIRIP: Uncaught error 1089. Error stack:
ORA-01089: immediate shutdown in progress - no operations are permitted
ORA-00448: normal completion of background process


Thanks in advance
0
Comment
Question by:rengudi
  • 2
5 Comments
 
LVL 73

Accepted Solution

by:
sdstuber earned 500 total points
Comment Utility
If a job fails it will automatically resubmit itself 1 minute later, if fails again 2 minutes later, if fails again 4 minutes later, etc. doubling each time until it either succeeds, or fails 16 times.
If the doubled resubmit would exceed the normal reexecution time then it will submit at the normal time.


If a data base is shutdown and restarted any jobs that were supposed to run while it was down will be automatically run as soon as the database starts.
0
 

Author Comment

by:rengudi
Comment Utility
Hi,

  Actually that job wasnt failed on that day and hardly it tooks 2-3 hrs to complete the job.we scheduled the job at 5 Am everyday. we have shutdown the database at 10:42 , and started up 4:30 PM in the evening.
 
  One more thing we have killed the job forcibly from OS level using kill -9 option for making other script run sucessfully.  Actually the job cleaning up the data from the few tables which are old 30 days.

  My question here is "By killing the job is there any chance to corrupt the data"?
And is there any chance to get the logs to investigation on this. we are not enable the trace on.

Thanks in Advance.
0
 
LVL 73

Expert Comment

by:sdstuber
Comment Utility
different kinds of corruption could occur.  If you have commits in your job and part A commits but part B did not get a chance to before it was killed then your data is now out of synch.
trace would not help you here, except possibly to tell you what step in your job you were on.

depending on what kind of logs you are talking about definitely.  If your application writes logs itself (it should) maybe, maybe not.  Depends on if those logs were written before the kill
if you're talking about oracle's archive and/or redo logs.  it depends on if your database is in archive log mode.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Article by: Swadhin
From the Oracle SQL Reference (http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/queries006.htm) we are told that a join is a query that combines rows from two or more tables, views, or materialized views. This article provides a glimps…
I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now