Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Script for Import 29000000 lines in background and to create index.

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

From: Eriovaldo Andrietta <eca_at_siteplanet.com.br>
Date: Sat, 19 Oct 2002 16:53:25 -0800
Message-ID: <F001.004EE3F3.20021019165325@fatcity.com>

Friends :

I have a situation :

I need to import file wiht 29.000.000 lines and after it i would like to create a index in background on unix.

Does anyone have some example off shell script that does it using nohup and & ?

My idea is to call just one time and to run all operations, like that :

1.) imp user/passwd file=file.dmp fromuser=user1 touser=user2 rows=y log=log1;

2.) create index ind1 on table1 (col1, col2) tablespace tbs1;

My doubt is : How to write a shell script using nohup and & and that the second item wait the first finish.

Regards

Eriovaldo Andrietta
eriovaldo_at_trust.com.br
eca_at_siteplanet.com.br
ecandrietta_at_uol.com.br

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Eriovaldo Andrietta
  INET: eca_at_siteplanet.com.br

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 - 19:53:25 CDT

Original text of this message

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