Solved

Reg : DB Jobs

Posted on 2008-06-17
5
531 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 74

Accepted Solution

by:
sdstuber earned 500 total points
ID: 21803294
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
ID: 21811280
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 74

Expert Comment

by:sdstuber
ID: 21812066
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…

821 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