Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Conditional compiles in PL/SQL...?
bobdev_at_fc.hp.com wrote:
>
> I have a stored procedure (SP) which works fine on System A. My database on
> system B has a database which lacks a table that part of the SP references.
>
> What I'd like to be able to do is bracket sections of the SP which are to be
> *ignored* on system B when I compile the SP into the database. Assume, of
> course, that the SP is syntactically correct in either case.
>
> How do I do this? A good deal of surfing time has so far yielded no answer.
> Is there a #pragma or some sort of #define which lets me drop out sections
> of the SP at compile time?
>
> Thanks!
Not trivially...
Maybe move the problem code into a separate proc and then conditionally call it...
..or move the offending code into dbms_sql
HTH
--
"Some days you're the pigeon, and some days you're the statue." Received on Wed Dec 08 1999 - 05:11:06 CST