RE: Accessing Synonym -Solved

2002-04-18 Thread Abdul Aleem

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



edu.pk>  cc:

Sent by: rootSubject: 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@test_server
<mailto:inventory/invent@test_server>
Connected.
SQL> create public synonym company for company;

Synonym created.
SQL> connect scott/tiger@test_server <mailto:scott/tiger@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: [EMAIL PROTECTED]

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: [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).



-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

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: [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).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Abdul Aleem
  INET: [EMAIL PROTECTED]

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: [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).



RE: Accessing Synonym

2002-04-18 Thread Hately Mike

Hi,

Try :

  SQL> connect inventory/invent@test_server
  SQL> grant select on company to public;

Regards,
Mike Hately


-Original Message-
Sent: 18 April 2002 15:29
To: Multiple recipients of list ORACLE-L



Does the table inventory.company exist?


 

Abdul Aleem



edu.pk>  cc:

Sent by: rootSubject: 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@test_server

Connected.
SQL> create public synonym company for company;

Synonym created.
SQL> connect scott/tiger@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



 

 

This email and any attached to it are confidential and intended only for the
individual or 
entity to which it is addressed.  If you are not the intended recipient,
please let us know 
by telephoning or emailing the sender.  You should also delete the email and
any attachment 
from your systems and should not copy the email or any attachment or
disclose their content 
to any other person or entity.  The views expressed here are not necessarily
those of 
Churchill Insurance Group plc or its affiliates or subsidiaries. Thank you. 
Churchill Insurance Group plc.  Company Registration Number - 2280426.
England. 
Registered Office: Churchill Court, Westmoreland Road, Bromley, Kent BR1
1DP. 


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Hately Mike
  INET: [EMAIL PROTECTED]

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: [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).



Re: Accessing Synonym

2002-04-18 Thread tday6


Does the table inventory.company exist?


   

Abdul Aleem



edu.pk>  cc:   

Sent by: rootSubject: 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@test_server

Connected.
SQL> create public synonym company for company;

Synonym created.
SQL> connect scott/tiger@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: [EMAIL PROTECTED]

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: [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).



-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

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: [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).



RE: Accessing Synonym

2002-04-18 Thread GKor

you have to grant that user rights on that specific table

grant select on inventory.table to user;

> -Oorspronkelijk bericht-
> Van:  Abdul Aleem [SMTP:[EMAIL PROTECTED]]
> Verzonden:donderdag 18 april 2002 8:18
> Aan:  Multiple recipients of list ORACLE-L
> Onderwerp:Accessing Synonym
> 
> 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@test_server
>  
> Connected.
> SQL> create public synonym company for company;
> 
> Synonym created.
> SQL> connect scott/tiger@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: [EMAIL PROTECTED]
> 
> 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: [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).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

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: [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).