Title: RE: Creating a simple stored procedure

Hi Bob,

first of all who are you creating the sp as? 

If it's not the table owner, is there a synonym declared?  Is update granted via a role?  If it is, grant update directly to the procedure owner.

Or forget all this and run the proc as the schema owner.

Lisa Koivu
Oracle Diaper Administrator
Fairfield Resorts, Inc.
5259 Coconut Creek Parkway
Ft. Lauderdale, FL, USA  33063


-----Original Message-----
From: Bob Metelsky [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 10:31 AM
To: Multiple recipients of list ORACLE-L
Subject: Creating a simple stored procedure


How can I create this simple stored procedure

Obiviously I don't have much experience but I would not think this being
as difficult as it appears

I want to run an update on a table (eventually from a job) I just need
to get the sp working... Any examples Ive seen are much too complex for
this simple task

CREATE OR REPLACE PROCEDURE XYZ
  AS
 BEGIN
UPDATE myTab SET STATUS = 'a'  WHERE  STATUS = 'b' ;
  END XYZ;

This is telling me I need to declare myTab... Ive tried every iteration
of declaring... But its not happening
So, I present my delimma to my knowledgable friends @fatcity!

{about to go insane}
bob
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Bob Metelsky
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (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).

Reply via email to