What does this mean ?
GRANT BIND,EXECUTE ON PLAN MK2 TO PUBLIC;

Answers were Sorted based on User's Feedback



What does this mean ? GRANT BIND,EXECUTE ON PLAN MK2 TO PUBLIC;..

Answer / guest

Granting BIND gives BIND authority on the Plan MK2 to all
users.
BIND PLAN establishes the relationship between DB2 and all
DBRMs or packages in that plan.

BIND(ADD) can be used for creating a new plan or package.
BIND(REPLACE) can be used when the program has been changed.

With this authority, any user is able to bind a DBRM or a
package to the plan MK2. The users can rebind the Plan as
well.

The Bind process performs the following :
1) Checks SQL syntax.
2) Checks security.
3) Compares column and table names against the DB2 Catalog.
4) Builds an access path strategy for each SQL statement.

Granting EXECUTE to PUBLIC gives all users, the authority
to EXECUTE the plan MK2.

Regards,
Amit

Is This Answer Correct ?    7 Yes 0 No

What does this mean ? GRANT BIND,EXECUTE ON PLAN MK2 TO PUBLIC;..

Answer / guest

BIND gives the authority to bind, rebind and free the plan
MK2 by anyone(PUBLIC)

EXECUTE gives the authority to run the programs that uses
the plan MK2.

Is This Answer Correct ?    0 Yes 1 No

What does this mean ? GRANT BIND,EXECUTE ON PLAN MK2 TO PUBLIC;..

Answer / shilpa

this is data control language these work will done by data
base administrator. if the dba gives the permission then
only we can use tables and other components otherwise we
can do any operation.

Is This Answer Correct ?    0 Yes 2 No

What does this mean ? GRANT BIND,EXECUTE ON PLAN MK2 TO PUBLIC;..

Answer / ravi

This is basically -922 error, Authorization failure, so
admin will grant permission to bind the plan or dbrm

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More DB2 Interview Questions

What is DCLGEN ?

2 Answers  


Hi All, In a Cobol-DB2 program, I am fetching rows from 4 tables using cursor and then based on the a field present in that table, It processes the information accordingly..for example stat-c is one digit field..if stat-c is 'D' then the a row is deleted from table and written those details in to a file. If the stat-c is 'U' then a row is updated (hardcoded what to update)in a table and written those details in to a file. If the stat-c is 'I' then a row is inserted in a table and written those details in to two files. The issue is i have to include the intermediate commits. When an abend occurs, due to commit statement db2 tables will be saved, But there will be lose of file contents. When we resubmitting the job associated with this program there will be insert ,update and delete anomolies to avoid that what measures could be taken?. The intermediate commit is nothing but issuing commit after massive inserts, updates and deletes(sum of 500actions)

1 Answers  


What is ALTER ?

3 Answers  


How to see the structure of db2 table??

4 Answers   IBM,


how to resolve -805. give clear explination for that

2 Answers   IBM,






What is the use of with ur in db2?

0 Answers  


What is a bind in db2?

0 Answers  


What is the physical storage length of the data types: date, time, timestamp in the db2 database?

0 Answers  


What is FREEPAGE and PCTFREE in TABLESPACE creation?

1 Answers  


can you use symbolic parameters in JOB?

5 Answers   IBM,


What is the picture clause of the null indicator variable?

6 Answers  


How do you prepare a COBOL + DB2 program from coading till execution ?

1 Answers   Amdocs, Xansa,


Categories