Print Thread
TOraclePackage - PLS-00225 error
#700 07/18/00 10:33 PM
Joined: Jul 2000
Posts: 2
Ju
F
Member
OP Offline
Member
F
Joined: Jul 2000
Posts: 2
Ju
I have this stored procedure:
procedure mulnum (
numuno in number,
numdos in number,
resultado out number) as
begin
resultado := numuno * numdos;
end;

I already tested it with D2K and it works (But I dont like D2K).

Here is my code in Delphi:
procedure TForm1.Button1Click(Sender: TObject);
begin
with OraclePackage1 do
begin
OraclePackage1.CallProcedure('MULNUM',[15,5,parInteger]);
Label1.Caption:='15 Times 5 is'+IntToStr(GetParameter(2));
end;
end;

I receive the error "ORA-06550 line 2 column 10" and then the "PLS-00225 Subprogram or cursos MULNUM reference is out of scope" and then the "ORA-06550: line 2 , column 3 :PL/SQL Statment ignored"

So stupid question?? yes/no? either way and dont know whats going on.

Re: TOraclePackage - PLS-00225 error
#701 07/20/00 01:48 PM
Joined: Oct 1999
Posts: 10
Rotterdam, ZH, Netherlands
J
Member
Offline
Member
J
Joined: Oct 1999
Posts: 10
Rotterdam, ZH, Netherlands
Hello,

I've tried your code and it works just fine.
Is the procedure in the database valid?
What are the settings for the OraclePackage component and for the Session component.

[Linked Image]
Greetings Johan



------------------
JohaViss


JohaViss
Re: TOraclePackage - PLS-00225 error
#702 07/20/00 07:24 PM
Joined: Jul 2000
Posts: 2
Ju
F
Member
OP Offline
Member
F
Joined: Jul 2000
Posts: 2
Ju
What do you mean with valid?. I think it is ok because I can call it from D2K.

Here are the OraclePackage properties:
Cursor => crDefault
Debug => False
Name => OraclePackage1
Optimize => True
PackageName => MULNUM
ParameterMode => pmPositional
Session => OracleSession1
Tag => 0

In the OracleSession component I only changed:

Connected => True
LogonDatabase => molddie (it is in the tnsnames file)
LogonPassword => the system manager password.
LogonUserName => the system manager user.

All other setting are the default.

While I write this. I changed the OraclePackage1.PackageName to SYS.STANDARD, where the MULNUM procedure is. But now I get the error "PLS-00302 component MULNUM must be declared"


Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.032s Queries: 13 (0.010s) Memory: 2.5030 MB (Peak: 3.0393 MB) Data Comp: Off Server Time: 2024-04-27 09:16:49 UTC
Valid HTML 5 and Valid CSS