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: Export 8.1.7 - Import 7.3.4

RE: Export 8.1.7 - Import 7.3.4

From: Stephen Lee <Stephen.Lee_at_DTAG.Com>
Date: Fri, 15 Aug 2003 15:04:25 -0800
Message-ID: <F001.005CAF48.20030815150425@fatcity.com>

If 8.1.7 is production, then I would use selects, sql loader. If you are REAL industrious, you can try exp with 8.1.7 exp, then imp with show=y to generate a big nasty mess of text that you can try whipping up on with sed and/or awk to clean up.

If 8.1.7 is a slam and bang around database, it might be interesting to try running 7.3.4 catexp into it. Or try running 8.1.7 catexp into the 7.3.4 database. See if it works, or if it blows up.

Below is an example of show=y cleaner upper script:

  awk ' BEGIN { prev=";" }

        / \"CREATE /  { N=1; }
        / \"ALTER /   { N=1; }
        / \"ANALYZE / { N=1; }
        / \"GRANT /   { N=1; }
        / \"COMMENT / { N=1; }
        / \"AUDIT /   { N=1; }
        N==1 { printf "\n/\n\n"; N++ }
        /\"$/ { prev=""
              if (N==0) next;
              s=index( $0, "\"" );
                      if ( s!=0 ) {
                    printf "%s",substr( $0,s+1,length( substr($0,s+1))-1 )
                    prev=substr($0,length($0)-1,1 );
              }
              if (length($0)<78) printf( "\n" );
              }'



> -----Original Message-----
>
> I need to export the data from an Oracle 8.1.7 database HPUX 64 and
> import it back into an old 7.3.4 HPUX 32 database.
> The 7.3.4 import doesn't like the 8.1.7 export file.
>
> Any ideas?

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Stephen Lee
  INET: Stephen.Lee_at_DTAG.Com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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 Aug 15 2003 - 18:04:25 CDT

Original text of this message

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