Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Interesting (painful) Migration Problem (Nov 7.2.2.4.10 -> NT 7.3.3.0.0)
Hi Nassif,
Looks like it is time to reevaluate your migration strategy.
The last time I migrated anything on an NT I did the following.
This isn't nearly as difficult as you might think. Step by step here is what to do.
to create it you want the following for each table:
SPOOL <table_name>.sql
SELECT owner||'.'||table_name FROM ALL_TABLES;
SPOOL OFF
If you are fortunate to have vi/vim/elvis available the following
command will build the selects:
:%s/.*/SPOOL '&.sql'^MSELECT * FROM &;^MSPOOL OFF/
3. To create the description file edit another copy of the file created in step 2. using vi etc:
:%s/.*/SELECT '&' FROM DUAL^M\/^M DESC &/
Now copy the script in order to provide the basis for your control file and edit it to create one control file for each table. For whatever it is worth my control files look like:
LOAD DATA INFILE <file_name> BADFILE 'extents.bad' INSERT INTO TABLE <table_name> FIELDS TERMINATED BY '|' TRAILING NULLCOLS ( column_one, column_two, . . . column n)
4. Back to the trusty editor to do any reorganization that you want by modifying the exp file
5. Getting the data out is a simple two step process:
SQLLDR <user_name>/<password> control=<table_name>.ctl for each
table. Needless to say you
should build a script to do this.
Regards
Jerry
nassif_at_mndsprin6.c0m wrote:
>
> Helmut Hahn <Helmut.Hahn_at_bitoek.uni-bayreuth.de> wrote:
>
> >nassif_at_mndsprng.cm wrote:
> >> hi,
> >>
> >> We've got an interesting and painful migration in progress.
<Sniperoo>
> >> Problems: The import program will try to create sys volumes instead
> >> of lettered drives, so we can't just import it (plus we need to fix
> >> some structural issues....)
> >
> >You could edit your dump file (with TextPad) and alter the datafile
> >locations to full Pathnames (D:\ORANT\DATABASE\INSTSYSTEM01.ORA). Thus
> >your files are created where you want.
>
> I tried to edit that 1.6 Gigabyte dump file with TextPad,
> WordPad andNotePad.
>
> TextPad wouldn't recognize it at text and wouldn't
> open it...
>
> WordPad and NotePad, after running the system out of
> virtual memory (even after i tried to bump the pagefile to
> 1.5 G on top of the 568M of chip-ram) produced no better
> results...
>
> Are there any other editors out there that can handle that
> kind of file (on NT, mind you)?
>
> Anything other techniques I should try with Word- Text- or Note- pad?
>
> >Helmut
>
> Thanks!
> Nassif!!
-- Jerry Gitomer ICT Group jgitomer_at_ictgroup.com Langhorne PA jgitomer_at_p3.net Opinions are mine not those of ICT GroupReceived on Mon Mar 30 1998 - 00:00:00 CST