473,405 Members | 2,310 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Difference between Collection ID and qualifier

Hi Friends ,

I want to know the exact difference between collection ID and
qualifier.
I also want to know in detail : When we perform BIND operation on a
stored procedure, what we are actually trying to do ?
Why Bind operation is performed ??

Can anyone please tell me bout complete Lifecycle of developing a
Stored Prcedure ??

I know following things : [I m using db2 Ver -8 ]
1) We create stored proc using developement center.
2) We perform build operation.
3) Later we Perform BIND operation.
4) We GRANT priveliges to other users for Ececution of stored proc in
case required.
In my application , we ,the developer team , writes Stored Proc using
Our OWN ID.
But when the application is deployed , we use a special new ID created
fo that particular application.
How shld we procedd in this scenario. We follow above steps.
Waiting Expert replies. ;)

Mar 17 '06 #1
6 8402
ni***********@gmail.com wrote:
I want to know the exact difference between collection ID and
qualifier.
In which context do you have "collection IDs"? I know that "qualifiers" are
used in replication scenarios. But maybe you have it somewhere else as
well?
I also want to know in detail : When we perform BIND operation on a
stored procedure, what we are actually trying to do ?
Why Bind operation is performed ??
When you create a bind file, the SQL statements in the embedded SQL code are
send to the database server (DB2 server), analyzed syntactically and
semantically, privileges are verified and then the statements are compiled
and optimized. As a final step the compiled statements are stored in the
bind file.

The binding itself takes the statements from those files and creates a
package in the database (can be another database than the one used for the
creation of the bind file). The existence of the tables (base tables or
views) is verified along with the privileges of the caller.
Can anyone please tell me bout complete Lifecycle of developing a
Stored Prcedure ??

I know following things : [I m using db2 Ver -8 ]
1) We create stored proc using developement center.
2) We perform build operation.
3) Later we Perform BIND operation.
4) We GRANT priveliges to other users for Ececution of stored proc in
case required.


5) You drop the procedure or database. ;-)

Seriously, the BIND operation is only necessary if you have SQL statements
embedded in C/C++ code. Java procedures or procedures written in SQL don't
require the bind files. Java procedures always use dynamic SQL and there
the SQL statements are send to the server and compiled/optimized there when
needed. And SQL procedures are directly translated into the DB2 internal
representation (called "section") when they are created (assuming you're on
V8.2).

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Mar 20 '06 #2
"Knut Stolze" <st****@de.ibm.com> wrote in message
news:dv**********@lc03.rz.uni-jena.de...
ni***********@gmail.com wrote:

In which context do you have "collection IDs"? I know that "qualifiers"
are
used in replication scenarios. But maybe you have it somewhere else as
well?

--
Knut Stolze
DB2 Information Integration Development
IBM Germany


Collection id's are used when binding packages in DB2 for z/OS.
Mar 20 '06 #3

In my project we are using SQL stored procedures.
So with reference to your last post , can i say that we dont need to
peorform BIND operation ??

Also, when I perform BUILD, does package for that soted procedure gets
automatically created ??
Is there any way to access the package related information for a stored
proc ?

Mar 21 '06 #4
Mark ,
can u please provide more inputs on the Collection ID's ??
We are using z/OS mainframe env.

Mar 21 '06 #5
<ni***********@gmail.com> wrote in message
news:11**********************@v46g2000cwv.googlegr oups.com...
Mark ,
can u please provide more inputs on the Collection ID's ??
We are using z/OS mainframe env.


Your question is a little too broad. You should consult the manuals which
describe how to use collection id's with packages. If you have a specific
question after reading the manuals, then you can post it.
Mar 21 '06 #6
ni***********@gmail.com wrote:

In my project we are using SQL stored procedures.
So with reference to your last post , can i say that we dont need to
peorform BIND operation ??
On DB2 for LUW Version 8.2 and later you won't need it.
Also, when I perform BUILD, does package for that soted procedure gets
automatically created ??


The package is not created if you specify the BINDFILE option for the
PRECOMPILE command and do not have the PACKAGE option present.
http://tinyurl.com/mleqh

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Mar 21 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Mahesh Tomar | last post by:
Dear Readers, I am porting my existing C code to C++. In my existing code there are numerous functions that has been defined with CONST qualifier. For eg. foo(const DATA_TYPE *x); DATA_TYPE is...
9
by: Gerald Lightsey | last post by:
I am doing some work that involves automating MS MapPoint 2002. The object model is documented in the context of Visual Basic 6.0. A typical example follows. 'Output first result of find...
5
by: ari | last post by:
hey all, i was wondering what the difference is between obtaining a user name like Request.ServerVariables("Auth_User").Split("\")(1)) and User.Identity.Name
7
by: Charles Sullivan | last post by:
On my system (using gcc) I found I need to use the "volatile" qualifier to limit compiler optimization. I notice that this qualifier is described in K&R 2nd edition (1988) but not in K&R 1st...
5
by: sophie_newbie | last post by:
OK this might seem like a retarded question, but what is the difference between a library and a module? If I do: import string am I importing a module or a library? And if i do...
6
by: bleyddyn.apRhys | last post by:
I have a bit of code that doesn't compile under MSVC++ but does under GCC. Even under GCC, though, it seems odd that I don't need a std namespace qualifier for the exp function. Is this just one...
4
by: Ben Petering | last post by:
Hi group, this is a 'best practice' type question (I want discussion of the issue - whys and why nots - similar to "casting the return value of malloc()", to cite an analogous case). Let's...
2
by: venkat | last post by:
Hi, i came across restrict qualifier while looking the code. I haven't able to understand what does this do?. Can some one help me how does this makes the things restrict to an specified...
9
by: istillshine | last post by:
It seems I never need to use it. It only made a long line longer, and made you type five more characters. I feel so strange why people are talking about it.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.