Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: ORA 6503 - function argument across a database link:

Re: ORA 6503 - function argument across a database link:

From: Snewber <snew_at_snew.com>
Date: Mon, 19 Dec 2005 15:52:50 +1000
Message-ID: <do5hri$1j8b$1@bunyip2.cc.uq.edu.au>


This is a long shot as I ran across a similar problem many years ago (I think) that was simply fixed by adding the @linktofdc to the function. Where does the function reside and who owns it?

Like this maybe

select ord_cntrl_no, sum(tp_load.exp_wght_at_linktofdc(load.rowid)) from load_at_linktofdc where ord_cntrl_no = 40804346 group by ord_cntrl_no;

dbaplusplus_at_hotmail.com wrote:
> I am using .Oracle 10.1..0.4 on HP UNIX 11i
>
> When I run following sql it runs fine:
> select ord_cntrl_no, sum(tp_load.exp_wght(load.rowid))
> from load where ord_cntrl_no = 40804346
> group by ord_cntrl_no;
> exit;
>
> But when I run same statement where load table is across in a db link,
> I get ORA-6503 error, why?
> select ord_cntrl_no, sum(tp_load.exp_wght(load.rowid))
> from load_at_linktofdc where ord_cntrl_no = 40804346
> group by ord_cntrl_no;
> exit;
>
> I get
>
> select ord_cntrl_no, sum(tp_load.exp_wght(load.rowid))
> *
> ERROR at line 1:
> ORA-06553: PLS-306: wrong number or types of arguments in call to
> 'EXP_WGHT'
>
> Am I doing anything wrong?
>
Received on Sun Dec 18 2005 - 23:52:50 CST

Original text of this message

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