473,396 Members | 1,785 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,396 software developers and data experts.

Authorization/Privilege Issue

Hi All
I need to give authrization/Privilege for a user such that he should be
able to run stored procedures but cannot change its code i.e he should not
be able to compile it.I looked in the documentation but for ROUTINES there
is only 'EXECUTE' privilege which is for running the SP's.What is the
authorization/Privilege required for Compiling a Stored Procedure.

TIA
Praveen

Mar 24 '06 #1
2 1916
Praveen_db2 wrote:
Hi All
I need to give authrization/Privilege for a user such that he should be
able to run stored procedures but cannot change its code i.e he should not
be able to compile it.I looked in the documentation but for ROUTINES there
is only 'EXECUTE' privilege which is for running the SP's.What is the
authorization/Privilege required for Compiling a Stored Procedure.

You have to grant bind privilege on the underlying package:
http://publib.boulder.ibm.com/infoce...n/r0000962.htm

But I wonder whether a call to
REBIND_ROUTINE_PACKAGE()
Already encapsulates this privilege.
Try that one first. If it doesn't work then you have to hunt for the
package name. Should be logged in either SYSCAT.PACKAGEDEP or
SYSCAT.ROUTINEDEP

Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Mar 24 '06 #2
Serge Rielau wrote:
Praveen_db2 wrote:
Hi All
I need to give authrization/Privilege for a user such that he should be
able to run stored procedures but cannot change its code i.e he should
not be able to compile it.I looked in the documentation but for ROUTINES
there is only 'EXECUTE' privilege which is for running the SP's.What is
the authorization/Privilege required for Compiling a Stored Procedure.

You have to grant bind privilege on the underlying package:

http://publib.boulder.ibm.com/infoce...n/r0000962.htm

Do you need the BIND privilege also for SQL/PL procedures?

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Mar 24 '06 #3

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

Similar topics

0
by: Chris Callahan | last post by:
Greetings: Long time reader, first time poster. Here we go: ==Specific question: Does there exist in MySQL a privilege configuration which will allow an account to issue `SHOW MASTER...
0
by: Sean C. | last post by:
Hello, In my production environment, select authorization on most tables has been granted to PUBLIC. However, there is one (untrustworthy) userid that I don't want to have select access on all...
7
by: Parv | last post by:
I am impersoanting a user to an other domain. But while doing so i am getting A required privilege is not held by the client exception. I have tried with aal possible usernames and passwords...
4
by: Jatinder | last post by:
Hi, I am trying to grant connect privilege to a user present on my O.S. (Windows) using following statement. GRANT CONNECT ON DATABASE TO user "user1" now when I execute this statemnt from...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.