Tanel, you can't create a public synonym owned by a role, sorry if I wasn't clear. But public synonyms are available to all users, regardless of the role you assign to the user. So you have to use public synonyms when you use roles, unless you either specify the object owner name in all references or, as I was gently reminded, you use set current_schema to the object owner.
Because I have applications that use data from multiple owners, I have to use public synonyms. However, I am going to see if I can use set current_schema wherever possible in the future. Rachel --- Tanel Poder <[EMAIL PROTECTED]> wrote: > Hi! > > > If you intend to use roles to simplify privilege management, you > are > > almost forced to use public synonyms, as you cannot create a > private > > synonym owned by a role. Your other alternative is to hard-code the > > How can you create a public synonym OWNED by a role? > This is new to me, despite the knowledge that roles and usernames are > kept > in the same base table... > > Tanel. > > > > > -- > Please see the official ORACLE-L FAQ: http://www.orafaq.net > -- > Author: Tanel Poder > INET: [EMAIL PROTECTED] > > Fat City Network Services -- 858-538-5051 http://www.fatcity.com > San Diego, California -- Mailing list and web hosting services > --------------------------------------------------------------------- > To REMOVE yourself from this mailing list, send an E-Mail message > to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in > the message BODY, include a line containing: UNSUB ORACLE-L > (or the name of mailing list you want to be removed from). You may > also send the HELP command for other information (like subscribing). __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Rachel Carmichael INET: [EMAIL PROTECTED] Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).