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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Help on developer 2000

Re: Help on developer 2000

From: Sybrand Bakker <postmaster_at_sybrandb.demon.nl>
Date: Tue, 21 Dec 1999 23:22:18 +0100
Message-ID: <945815001.765.0.pluto.d4ee154e@news.demon.nl>


You need to use <package name>.<procedure name> if you want to use the procedure from the package.
I would like to advise you, you need to make your procedure names a bit more different. Soon you will fall in the trap you set up for yourself. This is one of the reasons why you need to qualify with the package name.

Hth,

--
Sybrand Bakker, Oracle DBA
Tom Deseamus <tdeseamus_at_digital-hire.com> wrote in message news:aBR74.33927$Dk.440801_at_news1.mia...
> Newbie question:
>
> I've set up a package spec, package body with one procedure and one
separate
> procedure:
>
> Package Spec
>
> PACKAGE UPDATE_PRODUCT IS
> END;
>
> Package Body
>
> PACKAGE BODY UPDATE_PRODUCT IS
> procedure UP_PRODUCT is
> BEGIN
> UPDATE PRODUCT
> SET DESCRIPTION = 'TEST'
> WHERE
> PRODUCT_ID = 100890;
> END;
>
> END;
>
>
> Procedure
>
> PROCEDURE UPROD IS
> BEGIN
> UPDATE PRODUCT
> SET DESCRIPTION = 'TEST'
> WHERE
> PRODUCT_ID = 100890;
> END;
>
>
> All information is stored in the schema DEMO. I try to run the procedure
> UP_PRODUCT as follows and get the error message below.
>
> SQL> EXECUTE UP_PRODUCT;
>
> BEGIN UP_PRODUCT; END;
>
> *
> ERROR at line 1:
> ORA-06550: line 1, column 7:
> PLS-00201: identifier 'UP_PRODUCT' must be declared
> ORA-06550: line 1, column 7:
> PL/SQL: Statement ignored
>
>
> SQL>
>
>
>
>
>
>
>
> When I try to run the procedure uprod, I get the following error.
>
> SQL> execute uprod;
> BEGIN uprod; END;
>
> *
> ERROR at line 1:
> ORA-06550: line 1, column 7:
> PLS-00201: identifier 'UPROD' must be declared
> ORA-06550: line 1, column 7:
> PL/SQL: Statement ignored
>
>
> SQL>
>
> Any help would be greatly appreceated
>
>
>
Received on Tue Dec 21 1999 - 16:22:18 CST

Original text of this message

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