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

Unable to grant execute privilege (Urgent)

I 'recreated' a stored procedure.

Earlier, i had given privileges to a particular group but now (after
rebuilding) when I try to grant execute privilege for the SP to the same
user group, it gives me the below message.
Any clues on this??

[IBM][CLI Driver][DB2/AIX64] SQL0458N In a reference to routine
"SITSCHM.SP_ERND_PREM" by signature, a matching routine could
not be found. SQLSTATE=42883


Explanation:

In a reference to function, method, or stored procedure
"<routine-name>" by signature, no matching function, method, or
stored procedure could be found.

If a data type is used that can accept a parameter, then the type
parameter is optional. For example, for CHAR(12), you can either
specify the parameter (CHAR(12) or omit it (CHAR()). If you
specify the parameter, then the DBMS will only accept an exact
match on the data type AND the data type parameter. If you omit
the parameter, then the DBMS will accept a match on data type
only. The CHAR() syntax provides a way to tell the DBMS to ignore
data type parameters when finding a matching function.

Note also that in the DROP FUNCTION/PROCEDURE and COMMENT ON
FUNCTION/PROCEDURE statements, an unqualified reference is
qualified with the statement authorization ID, and this is the
schema where the problem can be found. In the SOURCE clause of a
CREATE function, the qualification comes from the current
function path. In this case, there is no matching function in the
entire path.

A function cannot be sourced on the COALESCE, NULLIF, NODENUMBER,
PARTITION, RAISE_ERROR, TYPE_ID, TYPE_NAME, TYPE_SCHEMA, or VALUE
built-in functions.

The statement cannot be processed.

User Response:

Possible responses include:

o Changing the function path to include the correct schema.

o Removing parameters from the specifications of data types.

o Using a SPECIFIC name to refer to the function or procedure
instead of a signature.

sqlcode : -458

sqlstate : 42883
Oct 19 '06 #1
1 5901
Solved it!!
Had built the procedure in Development Center.
But did not drop the procedure from Control Center. So, this is what I
did:
dropped the procedure from control center.
Rebuilt the SP in Dev Center.
Granted the privileges thru CC.

However, I would be happy to know the reason for this strange behaviour if
anybody knows it.

Cheers,
San.

Oct 19 '06 #2

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

Similar topics

1
by: KVN Chary | last post by:
create TYPE temp1 AS OBJECT ( col1 VARCHAR2(20), col2 VARCHAR2(20) ) / create TYPE temp1_array AS VARRAY (6) OF temp1 /
4
by: Amardeep Verma | last post by:
Hi, I have a quick question. Which role/privileges are required before a user can give the statement "GRANT ALL PRIVILEGES"? Thanking you in Advance Have a nice day
1
by: Adam Smith | last post by:
I have a new DB provided by my ISP don't know details of installation, setup etc. I can log in as anybody except root. mysql -h localhost -u mysql Welcome to the MySQL monitor. Commands end...
1
by: Radu | last post by:
Hi. Thru a sproc, I drop & re-create some temp tables. When I call that sproc from the client, though, I cannot drop the tables. I need to allow the user, say "Alex", to drop/create tables...
0
by: Yogesh Pancholi | last post by:
For some unexplained reason, I am suddenly unable to browse to a virtual directory on my laptop. I have a number of sample websites to which I could happliy browse up until last week. As of Monday,...
3
by: kangaroo | last post by:
Hi guys, table "A" was created by user "USER1". Is there a way for USER1 to grant access to DROP that table to user "B"? The answer I heard so far was "only if user B has administrative...
3
by: pc | last post by:
hi everyone, I am trying to connect to a new mysql installation. I have given root permission to connect to all databases from anywhere; GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY...
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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: 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...

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.