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: Compile Procedure with Synonym/Dblink Oracle 9.2

RE: Compile Procedure with Synonym/Dblink Oracle 9.2

From: <oracle-l-bounce_at_freelists.org>
Date: Fri, 8 Jul 2005 13:51:28 -0400
Message-ID: <F4C27E77F7A33E4CA98C19A9DC6722A2150DFD@EXCHANGE.corp.perceptron.com>


Obviously, it's complaining about absence of Synonym/dblink during compile time.
Either have your Synonym/dblink valid at compile time, Or,
If it's not possible (Synonym/dblink exists only at "execution" time) - use dynamic sql (i.e. "execute immediate...") for sql statements referencing Synonym/dblink.

Igor

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

From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Smith, Ron L. Sent: Friday, July 08, 2005 1:43 PM
To: Oracle-l
Subject: Compile Procedure with Synonym/Dblink Oracle 9.2

I am trying to compile a procedure that contains a synonym pointing to another database.
I am getting an error ORA-00980 Synonym translation is no longer valid.

Is there an easy way around this?

Thanks!
Ron

Important Notice!!
If you are not the intended recipient of this e-mail message, any use, distribution or copying of the message is prohibited. Please let me know immediately by return e-mail if you have received this message by mistake, then delete the e-mail message. Thank you.
--

http://www.freelists.org/webpage/oracle-l

--

http://www.freelists.org/webpage/oracle-l Received on Fri Jul 08 2005 - 12:53:30 CDT

Original text of this message

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