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: Calling Package / Procedure

Re: Calling Package / Procedure

From: Jared Still <jkstill_at_cybcon.com>
Date: Sun, 22 Apr 2001 15:08:14 -0700
Message-ID: <F001.002EEC02.20010422144532@fatcity.com>

On Saturday 21 April 2001 16:55, Don Dealy II wrote:
> It is possible to call a package - subprogram without using dot notation?
>
> package name = my_package
> subprogram name = my_subp
>
> The only way I get it to work is calling my_package.my_subp.

Don,

I thought a synonym would work, but then I tried it:



create or replace package myp
as

   function my_func return date;
end;
/  

create or replace package body myp
as

   function my_func return date
   is
   begin

      return sysdate;
   end;
end;
/  

create synonym testfunc for myp.my_func;  

select testfunc from dual;
select myp.my_func from dual;


The first SELECT statement fails, but the second one works.

It doesn't appear that this can be done. Synonyms for packages work, but this is the first time if tried to use synonym to reference a function or procedure inside a package.

Anyone else?

Jared

P.S. You're still with teleport? Their customer service has been pretty bad since they were bought out. I jumped ship.

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Jared Still
  INET: jkstill_at_cybcon.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 Sun Apr 22 2001 - 17:08:14 CDT

Original text of this message

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