UrbanPro
true

Learn Datastage from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

Datastage: DB2 Indirect Privileges For Stored Procedures

Kriti C.
31/08/2017 0 0

1. I recently updated a Datastage job to use a direct Update query instead of calling a Stored Procedure(SP) through the job which had the Update query.

2. The result: The job failed with the error that the 'userid' did not have Update privilege on the table.

3. I was using the same userid to execute the SP as well.

4. It took me sometime to understand the reason for this.

5. The reason is that DB2 userid needs execute privileges for a SP.

6. The Execute privilege in turn grants indirect privilege to the userid executing the SP for the SQL statement specified in the procedure.

7. So, as I had the Update SQL statement in my procedure. And my userid had execute privilege on the procedure.

8. t was granted indirect privilege to update the table for the purpose of executing the SP. These are temporary privileges and last only till the SP is executing.

9. Now, I tried to update the table directly using the same userid. And I got an Update access error because that user id did not have explicit Update privilege on the table.

10. So, a point to keep in mind while deploying changes that replace stored procedures with direct SQL statements.

0 Dislike
Follow 2

Please Enter a comment

Submit

Other Lessons for You

etl testing & BI testing training institute in pune
Training: ETL Testing and BI Testing Expert Training Contents: • Data warehousing Plus BI Concepts • ETL Testing Process SQL - MS SQL Server 2008 Software...

What is Microsoft Access?
Microsoft Access has been around for some time, yet people often still ask me what is Microsoft Access and what does it do? Microsoft Access is a part of the Microsoft Office Suite. It does not come with...

Oracle Architecture - Introduction
As a Oracle developer or a DBA, you should know the in & out of it’s Architecture. Let’s keep it simple first and explore later. Oracle is a software or a program, so like any other program,...

5 Tips For Improving Your Documentation Immediately.
Tip 1) Quit it with the Passive Voice The passive voice is a plague on effective documentation. It reduces its clarity, its consistency, and the efficiency and tightness of the writing. The passive voice...

What Are Olap, Molap, Rolap, Dolap, Holap?
1. OLAP: On-Line Analytical Processing: Designates a category of applications and technologies that allow the collection, storage, manipulation and reproduction of multidimensional data, with the goal...

Looking for Datastage Training?

Learn from Best Tutors on UrbanPro.

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for Datastage Classes?

The best tutors for Datastage Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn Datastage with the Best Tutors

The best Tutors for Datastage Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more