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: Re Re: Due apologies for DDLs

Re: Re Re: Due apologies for DDLs

From: Stephane Faroult <sfaroult_at_oriole.com>
Date: Fri, 04 Jan 2002 00:30:48 -0800
Message-ID: <F001.003E6B4D.20020104000520@fatcity.com>

Cyril Thankappan wrote:
>
> U r right ..I still dunno 'much' about perl..
>
> as for dbms_metadata
>
> it is a built in pl/sql package
>
> saying
>
> 'select dbms_metadata.get_ddl(object_type,object_name,schema_name) from dual;
>
> gives the entire ddl creation script.
>
> However, 'interestingly'
> execute dbms_metadata.get_ddl does not work
> as well!
>

Everything which works as select blahblah() from dual cannot work as execute blahblah() (and vice versa). One is for functions (which return something, in that case a string) and the other for procedures, which return nothing. Do not get confused by the use of dbms_output.put_line().

-- 
Regards,

Stephane Faroult
Oriole Ltd
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Stephane Faroult
  INET: sfaroult_at_oriole.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (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).
Received on Fri Jan 04 2002 - 02:30:48 CST

Original text of this message

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