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...

How To Minimize The Page Splits In Sqlserver To Improve The Performane Of Database?
How to minimize the page splits in sqlserver to improve the performane of database? Page Splits: A page is 8Kbytes of data which can be index related, data related, large object binary (lob’s)...

Power View
Power View is now a feature of Microsoft Excel 2013, and is part of the Microsoft SQL Server 2012 Reporting Services add-in for Microsoft SharePoint Server 2010 and 2013 Enterprise Editions. Power View...

Introduction to Performance tuning
What is Performance in general terms? Throughput per Input. For Eg: we keep saying, this bike has so and so much of mileage and all that. That is one of the parameters in measuring the performance of...

Database Origins
The need for a database originates from the fact that computers are dumb devices having batman like abilities which can be smartly be utilised by feeding it the right content. That is, for example, consider...
M

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