IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

DB2 Background Process


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rahul_sinha786
Warnings : 1

New User


Joined: 15 Jul 2006
Posts: 6
Location: Bangalore

PostPosted: Sat Jul 15, 2006 10:59 pm
Reply with quote

Hi,

Suppose we fire any SQL query then what happened in Background Process.

Reply.....................



Bye
Back to top
View user's profile Send private message
rahul_sinha786
Warnings : 1

New User


Joined: 15 Jul 2006
Posts: 6
Location: Bangalore

PostPosted: Sat Jul 15, 2006 11:01 pm
Reply with quote

Hi,

We are copiling a souce COBOL program which contains SQL code.After precompile System go down then BIND will work or not and why.



Reply.......................


Bye
Back to top
View user's profile Send private message
anamikak

New User


Joined: 10 May 2006
Posts: 64
Location: Singapore

PostPosted: Tue Jul 18, 2006 10:00 pm
Reply with quote

The bulk of SQL execution takes place in the DB2 Database Services address space (ssnmDBM1), which contains these components: the Relational Data System (RDS), the Data Manager, and the Buffer Manager. The SQL travels through these three components before the results are returned to the application. The RDS passes requests to the Data Manager, which passes requests to the Buffer Manager. The results trace back from the Buffer Manager to the Data Manager to the RDS .wheather the Sql needs to pass throgh all the 3 layers depends on wheather the sql predicates ate type 1 or type2.
Back to top
View user's profile Send private message
red_roses

New User


Joined: 31 Oct 2005
Posts: 27

PostPosted: Tue Jul 18, 2006 11:24 pm
Reply with quote

Rahul,
i dont see how you can relate the two posts. It would help if u put the topics separately,

the answer to ur second post.

Precompile doesnt need the data base, a pgm will pre compile even if the database is down. it only uses ur dclgen to validate ur sql statements etc
its only in Bind that actual acces is made to the database.

so if ur databse will go down, ur bind will fail, ur precompile wont.
Back to top
View user's profile Send private message
ravi17s
Warnings : 1

New User


Joined: 15 Aug 2003
Posts: 57

PostPosted: Wed Jul 19, 2006 5:27 pm
Reply with quote

Hi,

If the Precompile was Succesful, DBRM will be ready for ur bind.
Hence the Bind will be successfull, u can not execute the Program as there is no Load module.

Thanks,
Ravi....
Back to top
View user's profile Send private message
Hanfur

Active User


Joined: 21 Jun 2006
Posts: 104

PostPosted: Wed Jul 19, 2006 5:33 pm
Reply with quote

Ravi,
I agree that Precompilation would create DBRM.Now let us assume that
DBRM got created successfully and after that DB2 went down.I have a separate BIND card which uses this DBRM for my BIND. If DB2 is down do you think BIND would go successfully?

-Han.
Back to top
View user's profile Send private message
ravi17s
Warnings : 1

New User


Joined: 15 Aug 2003
Posts: 57

PostPosted: Wed Jul 19, 2006 8:45 pm
Reply with quote

Dear Hanfur,

If Db2 is down bind will not be successfull

The bind will fail RC=12 with the following message,

READY
DSN SYSTEM(DB2T)
DB2T NOT OPERATIONAL, RETRY COUNT IS ZERO

Thanks,
Ravi...
Back to top
View user's profile Send private message
red_roses

New User


Joined: 31 Oct 2005
Posts: 27

PostPosted: Wed Jul 19, 2006 8:57 pm
Reply with quote

I see rahul has tried it out : )
Back to top
View user's profile Send private message
Hanfur

Active User


Joined: 21 Jun 2006
Posts: 104

PostPosted: Thu Jul 20, 2006 12:04 pm
Reply with quote

Ravi,

Quote:
DBRM will be ready for ur bind.
Hence the Bind will be successfull,..

This caused a confusion ...

-Han.
Back to top
View user's profile Send private message
rahul_sinha786
Warnings : 1

New User


Joined: 15 Jul 2006
Posts: 6
Location: Bangalore

PostPosted: Sun Jul 23, 2006 10:56 pm
Reply with quote

Hi,


Thanks for reply but its pretty confusing that someone saying that in my second post that Bind will work and some are saying not.

One thing i wou'd like to clr that both post r different no relation to each other


bye.
Back to top
View user's profile Send private message
Hanfur

Active User


Joined: 21 Jun 2006
Posts: 104

PostPosted: Mon Jul 24, 2006 12:23 pm
Reply with quote

Rahul,
Bottom line is BIND require to have the avaialbity of DB2.If DB2 is down the BIND wont happen successfully..You dont have to get confused for this..




-Han
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts process statement for SUPREC, CMPCOLM... TSO/ISPF 4
No new posts How to process dependent file based o... JCL & VSAM 8
No new posts Bind process DB2 4
This topic is locked: you cannot edit posts or make replies. How to process gdg in rexx program wh... CLIST & REXX 12
No new posts Process Last Key of a record based on... DFSORT/ICETOOL 5
Search our Forums:

Back to Top