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: Script for Import 29000000 lines in background and to create index.

Re: Script for Import 29000000 lines in background and to create index.

From: Rachel Carmichael <wisernet100_at_yahoo.com>
Date: Sat, 19 Oct 2002 19:18:24 -0800
Message-ID: <F001.004EE428.20021019191824@fatcity.com>


create a file called run_backgnd.sh (shell script) with the following lines in it:

imp user/passwd file=file.dmp fromuser=user1 touser=user2 rows=y log=log1
sqlplus user/password << EOF
create index ind1 on table1 (col1, col2) tablespace tbs1; EOF then at the command line type:

nohup run_backgnd.sh &

this will run the run_backgnd.sh script in the background and allow you to discconect your session (you can run in the background by entering the command without the nohup but with the & but if you log off, it kills the background job)

The sqlplus step will automatically wait for the imp step to finish


Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site http://webhosting.yahoo.com/
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Rachel Carmichael
  INET: wisernet100_at_yahoo.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 Sat Oct 19 2002 - 22:18:24 CDT

Original text of this message

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