Unix Technical Forum

using "call" for packaged procedure?

This is a discussion on using "call" for packaged procedure? within the Oracle Miscellaneous forums, part of the Oracle Database category; --> After moving a procedure into a package I discovered I can no longer use "call" to invoke the procedure. ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database > Oracle Miscellaneous

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-29-2008, 09:59 AM
mh@pixar.com
 
Posts: n/a
Default using "call" for packaged procedure?

After moving a procedure into a package I discovered I can
no longer use "call" to invoke the procedure.

Can someone explain why this is?
Many TIA!


old code:

call p4_add(:typeid,:reposid,:depotFile,:rev,:tmstamp)

new code (broken):

call p4.add(:typeid,:reposid,:depotFile,:rev,:tmstamp)

ORA-01747: invalid user.table.column,table.column,
or column specification

new code (works):

begin p4asset.add(:typename,:repos,:depotFile,:rev); end


--
Mark Harrison
Pixar Animation Studios

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 08-29-2008, 09:59 AM
Laurenz Albe
 
Posts: n/a
Default Re: using "call" for packaged procedure?

mh@pixar.com wrote:
> After moving a procedure into a package I discovered I can
> no longer use "call" to invoke the procedure.
>
> Can someone explain why this is?
> Many TIA!
>
>
> old code:
>
> call p4_add(:typeid,:reposid,:depotFile,:rev,:tmstamp)
>
> new code (broken):
>
> call p4.add(:typeid,:reposid,:depotFile,:rev,:tmstamp)
>
> ORA-01747: invalid user.table.column,table.column,
> or column specification
>
> new code (works):
>
> begin p4asset.add(:typename,:repos,:depotFile,:rev); end


Are there typos in your posting?

Because if not, then the solution would be obvious:

CALL p4asset.add(:typename,:repos,:depotFile,:rev);

Yours,
Laurenz Albe
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 09-05-2008, 12:00 PM
Mark D Powell
 
Posts: n/a
Default Re: using "call" for packaged procedure?

On Aug 29, 2:35*am, Laurenz Albe <inv...@spam.to.invalid> wrote:
> m...@pixar.com wrote:
> > After *moving a procedure into a package I discovered I can
> > no longer use "call" to invoke the procedure.

>
> > Can someone explain why this is?
> > Many TIA!

>
> > old code:

>
> > * *call p4_add(:typeid,:reposid,:depotFile,:rev,:tmstamp)

>
> > new code (broken):

>
> > * *call p4.add(:typeid,:reposid,:depotFile,:rev,:tmstamp)

>
> > * *ORA-01747: invalid user.table.column,table.column,
> > * * * * * * * or column specification

>
> > new code (works):

>
> > * *begin p4asset.add(:typename,:repos,:depotFile,:rev); end

>
> Are there typos in your posting?
>
> Because if not, then the solution would be obvious:
>
> CALL p4asset.add(:typename,:repos,:depotFile,:rev);
>
> Yours,
> Laurenz Albe- Hide quoted text -
>
> - Show quoted text -


Mark, it took me a couple of readings but it does appear that Laurenz
is pointing out that your spelled the package name different in your
example of what failed and what worked. Based on this the error
message was telling you the truth. Be there, done that. LOL.

It is time for the weekend!

HTH -- Mark D Powell --



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads for: using "call" for packaged procedure?

Thread Thread Starter Forum Replies Last Post
processing flow for <map:call resource=""/> (was: <map:serializetype="{1}"/>) Joerg Heinicke Apache Users 0 08-15-2008 09:02 PM
"CREATE TABLESPACE" cannot run within a Stored Procedure - "Inside a transaction bloc" Abraham, Danny pgsql Admins 0 04-10-2008 08:47 AM
Store procedure -------------- !!!!!!!!!!!!!! URGENTE """"""""""""""" =?iso-8859-1?Q?Adelson_-_Inform=E1tica?= Pgsql General 1 04-08-2008 08:44 PM
Why "execute count" larger than "user call" in v$sysstat. anysql@gmail.com Oracle Database 1 02-24-2008 02:23 PM
amavisd "Can't call method "lookup_re" on" bulba008 comp.unix.bsd.openbsd.misc 0 02-16-2008 06:53 AM


All times are GMT. The time now is 08:37 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com