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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Strange behaviour of SQLPLUS with "create type..."

Re: Strange behaviour of SQLPLUS with "create type..."

From: Jonathan Gennick <jonathan_at_gennick.com>
Date: Mon, 19 Jun 2000 10:26:43 -0400
Message-Id: <10533.109709@fatcity.com>


I believe you must terminate the definition of an object using a forward slash. For example:

CREATE TYPE project_t as object (

   pno CHAR(5)
);
/

Since a type can contain PL/SQL procedure definitions as well as variable definitions, a semicolon isn't enough to tell SQL*Plus that you are done.

Jonathan



jonathan_at_gennick.com =20
http://gennick.com
Brighten the Corner Where You Are

On Mon, 19 Jun 2000 04:44:15 -0800, you wrote:

>I entered the following into SQLPLUS:
>
>SQL> create type project_t as object (pno char(5));
>
>I expected that Oracle will process the statement and returns
>with the prompt. However Oracle does not return and just
>hangs waiting for any additional input.
>
>This looks like a bug ?! =20
>
>My environ: Oracle 8i, Solaris 2.7
>
>Andreas
>
>--=20
> _\\|//_
> (' O-O ')
>------------------------------ooO-(_)-Ooo-------------------------------=



> Andreas Jung, Saarbr=FCcker Zeitung Verlag und Druckerei GmbH
> Saarbr=FCcker Daten-Innovations-Center
> Untert=FCrkheimerstra=DFe 15, D-66103 Saarbr=FCcken, Germany
> Phone: +49-(0)681-502-1528, Fax: +49-(0)681-502-1509
> Email: ajung_at_sz-sb.de (PGP key available)
>------------------------------------------------------------------------=
Received on Mon Jun 19 2000 - 09:26:43 CDT

Original text of this message

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