Unix Technical Forum

Strange problem with 'drop synonym'

This is a discussion on Strange problem with 'drop synonym' within the Informix forums, part of the Database Server Software category; --> I have a customer running IDS 7.31.UD4 on Solaris. They have a program which is run from a script ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-19-2008, 09:14 PM
Five Cats
 
Posts: n/a
Default Strange problem with 'drop synonym'


I have a customer running IDS 7.31.UD4 on Solaris. They have a program
which is run from a script every night, and part of what it does is drop
& recreate a synonym.

All of a sudden it won't do that (getting the error that says the user
doesn't own it). The synonym was dropped before running the program by
another user which fixed it for that run, but then the problem came
back.

They have Resource access to the DB (I checked it myself!) which they
have always had, and the synonym (according to systables.owner) is owned
by the correct user.

I've suggested they up the access level to DBA to see if that helps, but
of course they shouldn't have to do that.

Any suggestions as to what the problem might really be, please? There
is no sign of any other database-related problem at the site.

TIA


--
Five Cats
Email to: cats_spam at uk2 dot net
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-19-2008, 09:14 PM
Jonathan Leffler
 
Posts: n/a
Default Re: Strange problem with 'drop synonym'

Five Cats wrote:
> I have a customer running IDS 7.31.UD4 on Solaris. They have a program
> which is run from a script every night, and part of what it does is drop
> & recreate a synonym.
>
> All of a sudden it won't do that (getting the error that says the user
> doesn't own it). The synonym was dropped before running the program by
> another user which fixed it for that run, but then the problem came back.
>
> They have Resource access to the DB (I checked it myself!) which they
> have always had, and the synonym (according to systables.owner) is owned
> by the correct user.


A RESOURCE level user can create their own tables and synonyms, but
cannot manipulate other people's tables and synonyms unless given
explicit permission to do so - GRANT ALTER etc. Off-hand, I'd say
that you cannot drop someone else's synonym unless you are a DBA.

> I've suggested they up the access level to DBA to see if that helps, but
> of course they shouldn't have to do that.


Depends on the owner...

> Any suggestions as to what the problem might really be, please? There
> is no sign of any other database-related problem at the site.


Ownership...

--
Jonathan Leffler #include <disclaimer.h>
Email: jleffler@earthlink.net, jleffler@us.ibm.com
Guardian of DBD::Informix v2003.04 -- http://dbi.perl.org/

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-19-2008, 09:14 PM
Five Cats
 
Posts: n/a
Default Re: Strange problem with 'drop synonym'

In message <c7QUb.16801$uM2.3374@newsread1.news.pas.earthlink .net>,
Jonathan Leffler <jleffler@earthlink.net> writes
>Five Cats wrote:
>> I have a customer running IDS 7.31.UD4 on Solaris. They have a
>>program which is run from a script every night, and part of what it
>>does is drop & recreate a synonym.
>> All of a sudden it won't do that (getting the error that says the
>>user doesn't own it). The synonym was dropped before running the
>>program by another user which fixed it for that run, but then the
>>problem came back.
>> They have Resource access to the DB (I checked it myself!) which
>>they have always had, and the synonym (according to systables.owner)
>>is owned by the correct user.

>
>A RESOURCE level user can create their own tables and synonyms, but
>cannot manipulate other people's tables and synonyms unless given
>explicit permission to do so - GRANT ALTER etc. Off-hand, I'd say that
>you cannot drop someone else's synonym unless you are a DBA.


That was my point. They appear to own the synonym but can't drop it.

>
>> I've suggested they up the access level to DBA to see if that helps,
>>but of course they shouldn't have to do that.

>
>Depends on the owner...
>
>> Any suggestions as to what the problem might really be, please? There
>>is no sign of any other database-related problem at the site.

>
>Ownership...
>


--
Five Cats
Email to: cats_spam at uk2 dot net
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:05 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com