MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DB2 SP Calling through .Net windows application

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
Kuldip
Beginner


Joined: 02 Mar 2012
Posts: 3
Topics: 1
Location: India

PostPosted: Tue Mar 06, 2012 8:22 am    Post subject: DB2 SP Calling through .Net windows application Reply with quote

Hi, I am trying to insert the record into the DB2 DB table through calling the SP on click event,but I am facing the below IBM DB2 error. I have checked the all required parameters, their data types,privileges into DB2 Table, SP & .Net code also & it is same well sets.

DB2 ERROR [07006] [IBM] CLI0102E Invalid conversion. SQLSTATE=07006
ERROR [56098] [IBM][DB2/NT] SQL0727N An error occurred during implicit system action type "3".
Information returned for the error includes SQLCODE "-551", SQLSTATE "42501"
and message tokens "DB2ADMIN|INSERT|EMRDHH.TBLINTEGRATION".

Please help me to resolve this issue.

Thanks,
Kuldip
_________________
Thanks,
Kuldip Jadhav
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Tue Mar 06, 2012 9:08 am    Post subject: Reply with quote

the user (he who clicked)
does not have authority to INSERT in the table,

does this SP reside in a z/OS mainframe
or is this server db2?
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Tue Mar 06, 2012 1:07 pm    Post subject: Re: DB2 SP Calling through .Net windows application Reply with quote

Kuldip wrote:

Information returned for the error includes SQLCODE "-551", SQLSTATE "42501"


Kuldip,

-551 means that you are not Authorized to perform the operation.

Check this link for a detailed explanation of the error

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/dsnmcj12/2.3.248?

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Kuldip
Beginner


Joined: 02 Mar 2012
Posts: 3
Topics: 1
Location: India

PostPosted: Thu Mar 08, 2012 6:45 am    Post subject: Reply with quote

kolusu,

Thanks for your reply Kolusu,
I have checked the privileges for user & its "GRANT" for all.
So assist me some other way to resolve the issue.

Thanks
_________________
Thanks,
Kuldip Jadhav
Back to top
View user's profile Send private message
Kuldip
Beginner


Joined: 02 Mar 2012
Posts: 3
Topics: 1
Location: India

PostPosted: Thu Mar 08, 2012 6:51 am    Post subject: Reply with quote

dbzTHEdinosauer,

Thanks for your reply,
SP reside in DB2 Server & OS is MS SPK2 on system.
I have checked & the all privileges are Granted to user.
_________________
Thanks,
Kuldip Jadhav
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Thu Mar 08, 2012 8:24 am    Post subject: Reply with quote

Kuldip wrote:
dbzTHEdinosauer,
...
I have checked & the all privileges are Granted to user.


1. a user who has GRANT authority does not automatically have the authorities that he can grant.
...a dba can grant update authority to a user, without having update authority himself,
and this is often the case.

2.
Quote:
SQLCODE "-551", SQLSTATE "42501"
and message tokens "DB2ADMIN|INSERT|EMRDHH.TBLINTEGRATION".


for the second time (by me), the user does not have insert authority,
that is all, nothing else,
i suggest that you stop pounding sand.
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
GuyC
Supermod


Joined: 27 May 2011
Posts: 35
Topics: 0

PostPosted: Fri Mar 09, 2012 7:08 am    Post subject: Reply with quote

-551 auth-id DOES NOT HAVE THE PRIVILEGE TO PERFORM OPERATION operation ON OBJECT object-name
together with the tokens :
DB2ADMIN DOES NOT HAVE THE PRIVILEGE TO PERFORM OPERATION INSERT ON OBJECT EMRDHH.TBLINTEGRATION
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group