RE: procedure error

2002-01-28 Thread Seefelt, Beth
First, do a SHOW ERROR after you compile to see what/where the error is. You can't issue DDL in a procedure. Look at using dynamic sql instead, eg. - EXECUTE IMMEDIATE 'Drop Table PRIMUS_TEMP_DUMP'; HTH, Beth -Original Message- Sent: Monday, January 28, 2002 1:45 PM To: Multiple rec

RE: procedure error

2002-01-28 Thread Jamadagni, Rajendra
You can't run a DDL in a procedure directly, you have to use dynamic_sql to execute DDL statements. Raj __ Rajendra Jamadagni MIS, ESPN Inc. Rajendra dot Jamadagni at ESPN dot com Any opinion expressed here is personal and doesn't r

procedure error

2002-01-28 Thread Lance Prais
I am trying to create the following procedure but getting the error "compiled with errors" Can anyone tell me why? Thanks In advance CREATE OR REPLACE PROCEDURE Primus_Report as Begin Drop Table PRIMUS_TEMP_DUMP; CREATE TABLE PRIMUS_TEMP_DUMP ( SOLUTION_ID VARCHAR2 (85) NOT NUL

RE: Re: Ang: Re: PL/SQL procedure - error

2002-01-24 Thread אדר יחיאל
l; > > Rick > > > > Roland.Skoldb > [EMAIL PROTECTED] To: Multiple recipients of > list ORACLE-L <[EMAIL PROTECTED]> > Sent by: cc: > root@fatcity.

Re: Ang: Re: Ang: Re: PL/SQL procedure - error

2002-01-24 Thread Joe Raube
To: Multiple > recipients of list ORACLE-L <[EMAIL PROTECTED]> > Sent by: cc: > root@fatcity.Subject: Ang: Re: > PL/SQL procedure - error > com > > > 01/22/

Ang: Re: Ang: Re: PL/SQL procedure - error

2002-01-24 Thread Roland . Skoldblom
Sent by: cc: root@fatcity.Subject: Ang: Re: PL/SQL procedure - error com 01/22/2002 09:15 AM Please respond to ORACLE-L Thanks, a

Re: Ang: Re: PL/SQL procedure - error

2002-01-22 Thread Rick_Cale
ct: Ang: Re: PL/SQL procedure - error

Ang: Re: PL/SQL procedure - error

2002-01-22 Thread Roland . Skoldblom
Thanks, and can you please tell me how to get hold of the time when the procedures starts and finishes.? Thanks in advance. Roland "Pullikol Kumar" <[EMAIL PROTECTED]>@fatcity.com den 2002-01-22 04:40 PST Sänd svar till [EMAIL PROTECTED] Sänt av: [EMAIL PROTECTED] Till: Multiple r

Re: PL/SQL procedure - error

2002-01-22 Thread Pullikol Kumar
hi Roland Hope below code will help u, BEGIN p1; p2; p3; p4; COMMIT; EXCEPTION WHEN OTHERS THEN ROLLBACK; END; procedure p1 is BEGIN insert into aa values (1,'1'); END; procedure p2 is BEGIN insert into aa values (2,'2'); END; procedure p3 is BEGIN insert into aa v

PL/SQL procedure - error

2002-01-22 Thread Roland . Skoldblom
Hallo, anyone who can help me with a pl/sql procedure that I have four procedures that will run one after one: in an error table logs the procedurename, the start time of the procedure and the end time of the procedure.the number of rows inserted(there are insertstatements in the procedures),

RE: procedure error

2002-01-17 Thread אדר יחיאל
ehish Computer Services [EMAIL PROTECTED] > -Original Message- > From: Lance Prais [SMTP:[EMAIL PROTECTED]] > Sent: Wed, January 16, 2002 11:36 PM > To: Multiple recipients of list ORACLE-L > Subject: procedure error > > Why in toad when I try to create a stor

Re: procedure error

2002-01-16 Thread Jared . Still
Sent by: cc: [EMAIL PROTECTED] Subject: Re: procedure error

RE: procedure error

2002-01-16 Thread Jamadagni, Rajendra
RACLE-LSubject: procedure error Why in toad when I try to create a stored proc where I drop and create a table I get the following error:    PLS-00103: Encountered the symbol "DROP" when expecting one of the following:    begin function package p

Re: procedure error

2002-01-16 Thread Peter . McLarty
ision" = "Lance Prais" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 17/01/2002 07:35 AM Please respond to ORACLE-L                 To:        Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>         cc:                 Fax to:                 Subject:        procedure e

RE: procedure error

2002-01-16 Thread Bala, Prakash
You need to use 'Dynamic SQL' in order to drop and create tables. -Original Message-From: Lance Prais [mailto:[EMAIL PROTECTED]]Sent: Wednesday, January 16, 2002 4:36 PMTo: Multiple recipients of list ORACLE-LSubject: procedure error Why in toad

procedure error

2002-01-16 Thread Lance Prais
Why in toad when I try to create a stored proc where I drop and create a table I get the following error:    PLS-00103: Encountered the symbol "DROP" when expecting one of the following:    begin function package pragma procedure subtype type use   cur     Here i

RE: procedure error

2001-07-20 Thread MacGregor, Ian A.
A slight correction, the pragma is part of the package specification which contains the function. For example CREATE OR REPLACE PACKAGE REMEDY IS FUNCTION SLAC_DATE(ELAPSED_SECONDS IN NUMBER) RETURN DATE ; PRAGMA RESTRICT_REFERENCES(SLAC_DATE,WNDS, RNDS, TRUST); END REMEDY; / The "TR

RE: procedure error

2001-07-20 Thread Steve Sapovits
Can you summarize how you'd use that? I'm not familiar. Thanks. > -Original Message- > From: MacGregor, Ian A. [mailto:[EMAIL PROTECTED]] > Sent: Thursday, July 19, 2001 11:11 PM > To: Multiple recipients of list ORACLE-L > Subject: RE: procedure error >

Re: procedure error

2001-07-20 Thread Christian Trassens
You need in the stored procedure this stmt: pragma restrict_references (, WNDS [, WNPS] [, RNDS] [, RNPS]); where: WNDS means "writes no database state" (does not modify database tables) WNPS means "writes no package state" (does not change the values of packaged variables) RNDS means "reads

RE: procedure error

2001-07-19 Thread MacGregor, Ian A.
610-574-7706 Pager: 877-239-4003 > -Original Message- > From: Steve Sapovits [SMTP:[EMAIL PROTECTED]] > Sent: Thursday, July 19, 2001 6:11 PM > To: Multiple recipients of list ORACLE-L > Subject: procedure error > > > I have a DB instance (B) that&#x

RE: procedure error

2001-07-19 Thread Steve Sapovits
-4003 > -Original Message- > From: Steve Sapovits [SMTP:[EMAIL PROTECTED]] > Sent: Thursday, July 19, 2001 6:11 PM > To: Multiple recipients of list ORACLE-L > Subject: procedure error > > > I have a DB instance (B) that's a snapshot of another (A). >

procedure error

2001-07-19 Thread Steve Sapovits
I have a DB instance (B) that's a snapshot of another (A). Taking a stored procedure that runs fine on A to B as part of a query (a function really I guess?) produces this error: DBD::Oracle::db prepare failed: ORA-06571: Function GET_EVENT does not guarantee not to update database Any idea

RE: procedure error

2001-06-11 Thread Venkata Ramana Kanchinadam
CLE-L > Subject: procedure error > > Dear Gurus. > I created a procedure and this procedure takes parameters and then makes > and alter table DDL on the database. > But when I write > exec pp(table_name1,field,table_name2); > Gives error. > ERROR at line 1: > ORA-0655

procedure error

2001-06-11 Thread Bunyamin K. Karadeniz
Dear Gurus. I created a procedure and this procedure takes parameters and then makes and alter table DDL on the database. But when I write exec pp(table_name1,field,table_name2); Gives error. ERROR at line 1:ORA-06550: line 1, column 10:PLS-00357: Table,View Or Sequence reference 'K_CT_IST_K