If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > error with executing UDF when username and schema name are different

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-06-07, 12:23
malark79 malark79 is offline
Registered User
 
Join Date: Jan 2007
Posts: 3
error with executing UDF when username and schema name are different

Hi,

I am facing some issues while executing permissions for routines(user defined functions) in Informix DB.

GRANT execute ON function admin.SORTKEYJ(LVARCHAR(32672), VARCHAR(50) ) TO public;

My user id is informix and my schema is admin

I created a routine admin.sortkeyj with admin as schema, and while executing the grant privilege for the routine, it fails with error "execute privilege denied on procedure".

The same works fine, if the schema name is 'informix'. So it looks like my schema name and user id should be the same.

Please let me know whether the schema name and user id should always be the same for executing routines and anything needs to be done for user defined functions, if the user name and schema are different. Please help me.

Thanks
Malar
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On