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: Begin... END; gives odd error:

Re: Begin... END; gives odd error:

From: hpuxrac <johnbhurley_at_sbcglobal.net>
Date: 13 Oct 2006 08:12:29 -0700
Message-ID: <1160752349.755875.47590@h48g2000cwc.googlegroups.com>

erich.keane_at_verizon.net wrote:
> Ok, I have agreed that it is a bad idea from the start. I did it
> because I am lazy! The database is meaningless, and stores Zero data.
> >From now on, I will store it as a separate user. You win on that. Can
> we please get to the issue I am having?
>
> My issue still remains, I am attempting to execute through ODP.Net a
> single event with the database, and am getting errors still. I
> followed the advice above to try a dynamic query, and am getting the
> illegal character (ORA-00911) error:
>
> BEGIN
> EXECUTE IMMEDIATE 'ALTER TABLE "TESTUSER"."OpenBOXTest" DROP
> CONSTRAINT "SYS_C0013604";
> ALTER TABLE "OpenBOXTest" DROP COLUMN "ObxTestCol2" ;
> ALTER TABLE "OpenBOXTest" ADD ("ObxTestCol3" integer DEFAULT 0 );
> ALTER TABLE "TESTUSER"."OpenBOXTest" ADD "PKConstraint_OBXTest" primary
> key ("ObxTestCol1" ) ';
> END;
You could always create a stored procedure in oracle that has the commands that you want and then just execute that stored procedure.

BEGIN
     my_funky_named_stored_proc;
END; Received on Fri Oct 13 2006 - 10:12:29 CDT

Original text of this message

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