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: Accessing Synonym -Solved

RE: Accessing Synonym -Solved

From: Abdul Aleem <dmit_at_beaconhouse.edu.pk>
Date: Thu, 18 Apr 2002 21:33:20 -0800
Message-ID: <F001.004490C1.20020418213320@fatcity.com>


Yes, the table exists,

I wasn't giving select privileges to users who would use the table through synonym.

Thank you for your response.

Aleem

 -----Original Message-----

Sent:	Thursday, April 18, 2002 7:29 PM
To:	Multiple recipients of list ORACLE-L
Subject:	Re: Accessing Synonym


Does the table inventory.company exist?  

                    Abdul Aleem

                    <dmit                To:     Multiple recipients of list
ORACLE-L      
                    @beaconhouse.        <ORACLE-L_at_fatcity.com>

                    edu.pk>              cc:

                    Sent by: root        Subject:     Accessing Synonym

 

 

                    04/18/2002

                    02:18 AM

                    Please

                    respond to

                    ORACLE-L

 

 





Hi,

I tried to create a public synonym for a table in schema "inventory", but it
does not seem to be working, i.e., when I connect as another user, and try to select from the synonym it says table or view does not exist.

I would appreciate any help.

Aleem

Following are the commands from SQL*Plus:

SQL> connect inventory/invent_at_test_server <mailto:inventory/invent_at_test_server>
Connected.
SQL> create public synonym company for company;

Synonym created.
SQL> connect scott/tiger_at_test_server <mailto:scott/tiger_at_test_server> Connected.
SQL> select * from company;
select * from company

                        *

ERROR at line 1:
ORA-00942: table or view does not exist
SQL> select * from inventory.company;
select * from inventory.company
                        *

ERROR at line 1:
ORA-00942: table or view does not exist
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Abdul Aleem
  INET: dmit_at_beaconhouse.edu.pk

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: INET: tday6_at_csc.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). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Abdul Aleem INET: dmit_at_beaconhouse.edu.pk 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 Fri Apr 19 2002 - 00:33:20 CDT

Original text of this message

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