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: Creating a copy of a partitioned table without the data...

Re: Creating a copy of a partitioned table without the data...

From: IANAL_VISTA <IANAL_Vista_at_hotmail.com>
Date: Mon, 04 Jul 2005 20:21:03 GMT
Message-ID: <Xns968987D0979D9SunnySD@68.6.19.6>


"RaviAlluru" <ravi.alluru_at_gmail.com> wrote in news:1120507146.455202.213150_at_z14g2000cwz.googlegroups.com:

> Hello All,
> Is there a quick way to create an empty table having the same
> structure as an existing partitioned table (minus the data):
>
> i.e sort of do this
>
> CREATE TABLE BCK_A_PART AS SELECT * FROM A_PART
> WHERE 1=2;
>
> where A_PART is the partitioned table and BCK_A_PART is the copy (minus
> data).
>
> PS:The above command just created the table without the partition.
>
>
> Also is there a dictionary view or table to extract DDL for a users
> objects ?
>
>
> Thanks
>
> Ravi Alluru
>
>

DBMS_METADATA.GET_DDL FUNCTION GET_DDL RETURNS CLOB

 Argument Name                  Type                    In/Out Default?
 ------------------------------ ----------------------- ------ --------
 OBJECT_TYPE                    VARCHAR2                IN
 NAME                           VARCHAR2                IN
 SCHEMA                         VARCHAR2                IN     DEFAULT
 VERSION                        VARCHAR2                IN     DEFAULT
 MODEL                          VARCHAR2                IN     DEFAULT
 TRANSFORM                      VARCHAR2                IN     DEFAULT
Received on Mon Jul 04 2005 - 15:21:03 CDT

Original text of this message

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