Just an example:

#!/bin/ksh

. $HOME/.profile

{Insert additional environment variables here}

ftp -vin {Box Name or IP Address}<<EOF
user {FTP Account Name} {FTP Password}
asc
get {Source Filename} {Destination Filename}
bye
EOF

sqlload {Schema}/{Password} control={Name Of Control File}

Schedule the whole thing in cron.

--Michael

-----Original Message-----
Sent: Thursday, August 30, 2001 1:27 PM
To: Multiple recipients of list ORACLE-L


Ron,

try


man cron  or man crontab


write your shell script as if you were going to run it from the command line

manually (however, make sure you define all the environment variables you 
will need within the script)

Once it is done and working, use cron to schedule it for Unix.

Rachel


>From: [EMAIL PROTECTED]
>Reply-To: [EMAIL PROTECTED]
>To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
>Subject: Unix-script
>Date: Thu, 30 Aug 2001 07:16:24 -0800
>
>Hallo
>
>Can anyone give me an example on how to write a unix script
>which schedules the run run of  a sqlloader script from unix server into 
>the database.
>I mean I could easily get the file tmanually o be imported if i use the ftp

>command, but how do i do
>if I want  that to be  scheduled?
>
>Roland S
>
>
>
>
>--
>Please see the official ORACLE-L FAQ: http://www.orafaq.com
>--
>Author:
>   INET: [EMAIL PROTECTED]
>
>Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
>San Diego, California        -- Public Internet access / Mailing Lists
>--------------------------------------------------------------------
>To REMOVE yourself from this mailing list, send an E-Mail message
>to: [EMAIL PROTECTED] (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).


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Rachel Carmichael
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (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).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Jenkins, Michael
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (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).

Reply via email to