Re: Imports / Compression

From: Mark D Powell <Mark.Powell2_at_hp.com>
Date: Thu, 22 Sep 2011 06:38:18 -0700 (PDT)
Message-ID: <1e06c000-c1fc-4c1d-b705-af32b46d0cf1_at_y7g2000yqh.googlegroups.com>



On Sep 20, 12:11 pm, Mladen Gogala <gogala.mla..._at_gmail.com> wrote:
> On Tue, 20 Sep 2011 09:03:20 -0700, ExecMan wrote:
> > Sorry, it is SE (or maybe SE1).  But if we cannot use compression, is
> > there a way to uncompress during the export?  Or, will we need to create
> > new tables, uncompressed, then export.   A real pain!
>
> The problem is in creating tables with the compressed attribute. Try this
> in your destination database:
>
> SQL> create table t1(c1 varchar2(20),c2 number(10,0)) compress;
>
> Table created.
>
> If that succeeds, and I don't think it will, the problem is soluble by
> using the DB link for export/import. If not, you will have to create all
> compressed tables without the "COMPRESS" option before the import and
> import with TABLE_EXISTS_ACTION=APPEND
>
> --http://mgogala.byethost5.com

You could potentially use dbms_metadata to generate all the create table statements and just edit the result to remove the compress statement then create the tables manually in the target database followed by trying an impor into the existing table.

HTH -- Mark D Powell -- Received on Thu Sep 22 2011 - 08:38:18 CDT

Original text of this message