Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: conversion from public to private synonym

RE: conversion from public to private synonym

From: Rachel Carmichael <carmichr_at_hotmail.com>
Date: Wed, 29 Aug 2001 07:58:47 -0700
Message-ID: <F001.0037B0A9.20010829065614@fatcity.com>

a private synonym can certainly have the same name as the object does. Unless you mean that the same user owns the object AND the synonym. But in that case, why would you want a synonym.

In fact, I used to set up test environments this way. One schema owned the objects. I created public synonyms for those objects. The developers could create copies of those tables and grant access to each other (if several where working on the same project). Each developer would have his/her own private synonym that pointed to the other developer's object. When testing was done, we did not have to recode to get the correct table names in.

>From: Amar Kumar Padhi <TS2017_at_emirates.com>
>Reply-To: ORACLE-L_at_fatcity.com
>To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>
>Subject: RE: conversion from public to private synonym
>Date: Wed, 29 Aug 2001 05:16:18 -0800
>
>A private synonym cannot have the same name as the object. You will have to
>change dependent code if your public synonym name was same as the object
>name.
>
>rgds
>amar
>
>-----Original Message-----
>Sent: Wednesday, August 29, 2001 1:46 AM
>To: Multiple recipients of list ORACLE-L
>
>
>Actually, it's even easier. You can create the private synonym (which will
>then take precedence over the public synonym when logged in as the synonym
>owner) and then drop the public synonym. Users wouldn't even notice any
>change.
>
>Jay Miller
>
>-----Original Message-----
>Sent: Tuesday, August 28, 2001 5:18 PM
>To: Multiple recipients of list ORACLE-L
>
>
>THE FOLLOWING IS A JOKE, KIDDIES, DONT TRY THIS AT HOME(OR WORK)
>
>update sys.syn$ set type = 'PRIVATE' where name = 'SYNONYM NAME';
>
>
>you can't u must drop and recreate.
>
>joe
>Seema Singh wrote:
> >
> > Hi
> > how to change from public synonym to private synonym without droping the
> > synonym?
> > thanks
> > -Seema
> >
> > _________________________________________________________________
> > Get your FREE download of MSN Explorer at
>http://explorer.msn.com/intl.asp
> >
> > --
> > Please see the official ORACLE-L FAQ: http://www.orafaq.com
> > --
> > Author: Seema Singh
> > INET: oracledbam_at_hotmail.com
> >
> > Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> > San Diego, California -- Public Internet access / Mailing Lists
> > --------------------------------------------------------------------
> > To REMOVE yourself from this mailing list, send an E-Mail message
> > to: ListGuru_at_fatcity.com (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)
>
>--
>Joe Testa
>Performing Remote DBA Services, need some backup DBA support?
>For Sale: Oracle-dba.com domain, its not going cheap but feel free to
>ask :)
>IM: n8xcthome or joen8xct
>--
>Please see the official ORACLE-L FAQ: http://www.orafaq.com
>--
>Author: Joe Testa
> INET: teci_at_the-testas.net
>
>Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
>San Diego, California -- Public Internet access / Mailing Lists
>--------------------------------------------------------------------
>To REMOVE yourself from this mailing list, send an E-Mail message
>to: ListGuru_at_fatcity.com (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).
>--
>Please see the official ORACLE-L FAQ: http://www.orafaq.com
>--
>Author: Miller, Jay
> INET: JayMiller_at_TDWaterhouse.com
>
>Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
>San Diego, California -- Public Internet access / Mailing Lists
>--------------------------------------------------------------------
>To REMOVE yourself from this mailing list, send an E-Mail message
>to: ListGuru_at_fatcity.com (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).



Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Rachel Carmichael
  INET: carmichr_at_hotmail.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (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).
Received on Wed Aug 29 2001 - 09:58:47 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US