Oracle FAQ Your Portal to the Oracle Knowledge Grid

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Moving db to linux

Re: Moving db to linux

From: Tanel Põder <>
Date: Thu, 26 Feb 2004 09:38:59 +0200
Message-ID: <22e501c3fc3b$9915ab30$73f823d5@porgand>

Moving db to linuxSorry, I didn't see the HP-UX part in beginning of your mail. Yep, you have to go with exp-imp for changing platforms.

I'd go with exp-imp with rows=n indexes=n constraints=n and transfer all data over dblink. After which I'd run modified create index statements on tables followed by imp constraints=y.

Here's a simple query for generating insert commands over database link (you might want to remove parallel hint and use several serial inserts instead):

set linesize 300

set pagesize 0

set feedback off

set trimspool on  

spool /tmp/apps_insert.sql  

prompt alter session enable parallel dml;;  

select 'insert /*+ APPEND PARALLEL(' || table_name || ',4) NOLOGGING */ into '

   || owner || '.' || table_name

   || ' select * from ' || owner || '.' || table_name || '@dblink;'

from dba_tables

where owner in ('AP', 'APPLSYS', 'APPS', 'AR', 'GL', 'JE')

order by owner;  

spool off




  Who told you you have to use exp-imp for that?   Since the platform remains the same, you can use regular migration path to go from 8i to 9i.


    Im, going to be moving a 220 GB database from HP-UX to Red Hat AS 3.0 running I'm told that we have to use export/import to get that job done. I plan to work through pipes and use split to keep the file sizes to 2 GB or less to aviod large file issues between the platforms. Does anyone know of other issues that may trip me up?

    Thanks In Advance

      Allan L. Nelson
      Oracle DBA 
      M-I L.L.C.

(832) 295-2238 office
(832) 351-4180 fax <> ______________________________________________________________________________
    This email is intended solely for the person or entity to which it is addressed and may contain confidential and/or privileged information. Copying, forwarding or distributing this message by persons or entities other than the addressee is prohibited. If you have received this email in error, please contact the sender immediately and delete the material from any computer. This email may have been monitored for policy compliance. [021216]

Please see the official ORACLE-L FAQ:

To unsubscribe send email to: put 'unsubscribe' in the subject line.
Archives are at
FAQ is at
Received on Thu Feb 26 2004 - 01:36:05 CST

Original text of this message